What is a variable?

A variable is a letter, like x or n, that stands for a number. 3x means 3 × x. Pictures and a quiz for kids, parent help below.

🧒 Kids: meet the mystery number!

A variable is a mystery number wearing a letter costume. x might be 5 today and 9 tomorrow. Then try the quiz!

▶ Quiz 🔢 More practice

xxx11

💡 Trick: 3x means 3 × x. If x = 4, then 3x is 12!

More equations: What is an equation · Variables · Algebraic expressions · Evaluating expressions · Writing expressions · Inverse operations

For parents and teachers ↓

This part is for grown-ups: the key idea, pictures to draw, what to say, common mistakes, questions with answers and a free worksheet.

The trick: a letter next to a number means multiply

A variable is a letter that stands for a number. When a number is written right next to a variable, they are multiplied: 3x means 3 × x. When x is on its own, it means 1x.

Patterns to spot

Key words

Why it matters: Variables let children write a rule once and use it for any number. They turn “3 times a number plus 2” into 3n + 2, which is shorter and works every time. Every formula, from area to speed, is written with variables.

See it: pictures to draw with your child

Draw these on paper or a whiteboard. A quick sketch makes the idea concrete before any rules.

xxx11
Algebra tiles: each long tile is x and each small square is 1. This shows 3x + 2.
?× 4=20
A box is a variable without a letter. ? × 4 = 20, so the box is 5.
3coefficientxvariable
3x: the 3 is the coefficient and x is the variable.

What your child already knows

Children already fill in boxes like 4 + ? = 9 and know their times tables. A variable is simply a box with a name. Writing 3x for 3 × x is new, so practice it slowly.

In real life: Formulas use variables: the area of a rectangle is A = l × w, and the cost of n tickets at $5 is 5n. A recipe that serves p people uses variables too.

Two jobs a variable can do

Sometimes a variable is an unknown: one number we want to find. In x + 4 = 9, x can only be 5.

Sometimes a variable can change. In the rule cost = 3n for n pencils at $3 each, n can be any number of pencils.

Both uses are normal. Ask your child “is this one number, or can it change?” to see which job the letter is doing.

Worked examples

Example 1: Read a variable

  1. In 5n, the 5 is the coefficient and n is the variable. 5n means 5 × n.

Example 2: Find the value

  1. Find 4x + 1 when x = 3.
  2. Replace x with 3: 4 × 3 + 1 = 13.

Example 3: Write with a variable

  1. A pen costs $2.
  2. Write the cost of n pens.
  3. Each pen is $2, so n pens cost 2n dollars.

Common mistakes

Reading 3x as thirty-somethingSays 3x with x = 4 is 34.Fix: 3x means 3 × x, so it is 12.
Thinking x is always the same numberExpects x to be 5 in every problem.Fix: a variable’s value depends on the problem.
Adding instead of multiplyingWorks out 2x with x = 6 as 8.Fix: a number next to a letter means multiply: 2 × 6 = 12.

What to say to your child

A short script for your first session. Pause after each line and let your child answer.

  1. “A variable is a letter for a number we don’t know yet.”
  2. “What does 3x mean?” (3 times x.)
  3. “If x is 4, what is 3x?” (12.)
  4. “What is x + x?” (2x.)
  5. “Can x be 7 in one problem and 2 in another?” (Yes.)

Questions to try (answers below)

Ask these out loud or write them down. The last one is a stretch.

  1. What does 6y mean?
  2. Find 2x when x = 9
  3. Find x + 7 when x = 5
  4. Find 5n − 3 when n = 4
  5. What is the coefficient in 8m?
  6. What is x + x + x?
  7. Write the cost of b books at $6 each
  8. Find 10 − k when k = 3
  9. Stretch: find 2a + 3b when a = 4 and b = 5
Show the answers
  1. 6 × y
  2. 18
  3. 12
  4. 17
  5. 8
  6. 3x
  7. 6b
  8. 7
  9. 23

Games to play at home

Mystery bag game

Hide counters in a bag and call the bag x. Write expressions like x + 2 and count.

Letter prices

Give each letter a price, like a = 2. Work out the value of words.

Rule machine

Say a rule like “times 3”. Your child gives a number in and says what comes out.

A 5-day plan for variables

Ten minutes a day is enough. Short, regular practice works far better than one long session.

By grade

Grade 6 (Common Core 6.EE.B.6 and 6.EE.A.2a) uses variables to stand for unknown or changing numbers and writes expressions with them. Grade 7 and 8 build on this for equations and functions. In India, letter-numbers appear in the class 7 chapter “Expressions using Letter-Numbers”.

What comes next

Next, learn about algebraic expressions and evaluating expressions. See what is an equation for how variables are solved for.

Worksheet and more practice

Print a free worksheet with an answer key, or keep practicing online with equation practice.

Printable worksheets: evaluating expressions · combining like terms · one-step equations · make a fresh equations test · make an expressions test

More: solving equations for kids · equation solver · balance scale · equation practice · order of operations · integers

Last reviewed

Questions parents ask

What is a variable in math?

A letter, like x or n, that stands for a number we don’t know or a number that can change.

What does 3x mean?

3 times x. A number written next to a letter means multiply.

Why do we use letters in math?

Letters let us write a rule once and use it for any number, like cost = 3n.

Is x always the same number?

No. In each problem x stands for one value, but it can be different in another problem.

What grade learns variables?

Grade 6 under Common Core 6.EE.B.6. In India, class 7.