Watch on Instagram

Math Bytes · Algebra 1 · Episode 1 · Foundations

What a variable is

In algebra, a letter like x is a variable: it stands for a number we don't know yet, or a number that can change. Think of it as a box with a number hiding inside.

Posted · About a 1 minute watch, 2 minute read · Take the quiz

x is a box with a number inside

When you see x in algebra, it isn't a new kind of math. It's just a number you can't see yet. Picture a closed box with the letter x on the front. There's one number inside. Your job is often to figure out which one.

What "variable" means

That letter is called a variable. It's used in two ways:

  • An unknown: a number we don't know yet, but want to find. In x + 3 = 8, there's one number that makes it true.
  • A quantity that can change: in a formula like "cost = 2 × n", the letter n can be 1, 2, 3 or any number of items, and the cost changes with it.

A number that stays the same, like the 3 or the 8, is called a constant.

Worked example: x + 3 = 8

Which number fits in the box? Try numbers and check (this is called substitution: putting a number in place of the letter).

  • Try 5: 5 + 3 = 8. That's true, so 5 fits.
  • Try 6: 6 + 3 = 9. That's not 8, so 6 doesn't fit.

So x = 5. Guess-and-check works for small problems; later in the course you'll solve equations by undoing each step, which is faster.

Any letter works

x is the most common letter, but n, y, a, b or t work the same way. They're all placeholders for a number. n + 3 = 8 has exactly the same answer as x + 3 = 8.

Try it yourself

What number is hiding in the box: x + 7 = 12? Try a few numbers and check each one by putting it in place of x. Then try n − 2 = 9. (Answers: 5, because 5 + 7 = 12; and 11, because 11 − 2 = 9.)

Good to know

  • A variable is a letter (or other symbol) that stands for a number: either an unknown to be found, as in x + 3 = 8, or a quantity that can change, as in a formula.
  • "Placeholder" and "box" are plain-English pictures, not formal math terms.
  • Checking 5 and 6 one at a time is guess-and-check on purpose. Solving by undoing (subtracting 3 from both sides) comes in a later lesson.
  • In printed math, variables are usually written in italics (x), so the letter x isn't confused with the times sign ×.

Answer to the comment question

x + 4 = 10. What number is hiding in the box? x = 6, because 6 + 4 = 10. You can also undo the "+ 4": 10 − 4 = 6.

Test your knowledge

Quick quiz: What a variable is

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What is a variable in algebra?
2In x + 3 = 8, which number fits in the box?
3Someone tries x = 6 in x + 3 = 8. What happens?
4Which equation has the same answer as x + 3 = 8?

Sources

Video transcript

What does the letter x actually mean in algebra?

Think of x as a box with a number hiding inside. You can't see the number yet, but it's there.

That letter is called a variable. It stands for a number we don't know yet, or a number that can change.

Here's a clue: x plus three equals eight. Which number fits in the box? Try five. Five plus three is eight. It fits!

Try six instead. Six plus three is nine, not eight. So six doesn't fit, and x equals five.

Other letters work too, like the letter n. They're all placeholders for a number.

Your turn. x plus four equals ten. What number is hiding in the box? Comment your answer below!

That's your byte.

More from Algebra 1

All Algebra 1 lessons