Pre-Algebra · Grades 6

Variables and Expressions: Letters That Stand for Numbers

Quick answer

A variable is a letter standing in for a number, used when the value is unknown or when it changes. An expression combines variables and numbers with operations but has no equals sign, so 3n + 5 is an expression while 3n + 5 = 20 is an equation. Writing 3n rather than 3 × n is a convention that keeps the multiplication sign from being mistaken for a letter.

What you'll learn

  • Explain what a variable represents
  • Write an algebraic expression from a worded description
  • Tell an expression from an equation

A letter standing in for a number

A variable is a letter used in place of a number.

3n+53n + 5

The nn is standing in for something. It is used in two different situations:

  • The value is unknown. You are trying to work out what it is.
  • The value varies. It changes from case to case, which is where the name comes from.

A taxi charging 55 dollars plus 33 per mile costs 3n+53n + 5 dollars for nn miles. One expression covers every possible journey.

Miles (nn)Cost
221111
552020
10103535

Writing out a separate sum for each distance would never end. One expression with a letter in it covers all of them at once.

Expressions and equations

Has an equals sign?Example
expressionno3n+53n + 5
equationyes3n+5=203n + 5 = 20

An expression is a quantity — something to evaluate. An equation is a claim that two quantities are equal — something to solve.

3n+5means "the value of this"3n + 5 \quad \text{means "the value of this"} 3n+5=20asks "which n makes this true?"3n + 5 = 20 \quad \text{asks "which } n \text{ makes this true?"}

Why 3n3n means multiplication

Two symbols written next to each other are being multiplied:

3n=3×nab=a×b5(x+2)=5×(x+2)3n = 3 \times n \qquad ab = a \times b \qquad 5(x + 2) = 5 \times (x + 2)

The ×\times sign is dropped because it is nearly identical to the letter xx, which algebra uses constantly. In an expression like 3×x+2×x3 \times x + 2 \times x the crosses and the letters blur together, and 3x+2x3x + 2x does not.

A few related conventions follow the same logic:

WrittenMeansNote
3n3n3×n3 \times nnumber first
n4\tfrac{n}{4}n÷4n \div 4a fraction bar, not ÷\div
n2n^2n×nn \times nnot 2n2n
nn1×n1 \times na lone letter has coefficient 11

Writing an expression from words

Name the unknown, then translate phrase by phrase.

WordsExpression
five more than a numbern+5n + 5
five less than a numbern5n - 5
a number decreased by fiven5n - 5
twice a number2n2n
a number divided by fiven5\tfrac{n}{5}
twice a number, plus five2n+52n + 5
twice the sum of a number and five2(n+5)2(n + 5)

The last two rows are the pair worth studying. “Twice a number plus five” doubles only the number. “Twice the sum” doubles everything, so the sum needs brackets around it.

Subtraction has a trap of its own. “Five less than a number” is n5n - 5, not 5n5 - n — the five is being taken away from the number, so the number comes first even though it is written second.

Why letters are worth the trouble

An expression with a letter in it says something a list of numbers cannot: it records the rule, not the results.

"3n+53n + 5" tells you the taxi charges a flat 55 plus 33 a mile. That is visible in the expression itself — the 55 standing alone is the fixed charge and the 33 attached to nn is the rate. A table of fares hides that structure and runs out at the last row.

Because the rule is written down, it can be worked with. It can be evaluated at any distance, rearranged, compared against a different company’s rule, or set equal to a budget and solved. None of that is available from a list of prices, and all of it comes from the one letter.

Worked examples

Common mistakes

Practice problems

  1. Write “a number plus nine” as an expression.

    Answer

    n+9n + 9

    Full solution

    “Plus” translates directly to addition.

  2. Write “three less than a number”.

    Answer

    n3n - 3

    Full solution

    The three is taken away from the number, so the number comes first.

  3. Write “five times a number”.

    Answer

    5n5n

    Full solution

    The number written against the letter means multiply.

  4. Write “a number divided by four”.

    Answer

    n4\tfrac{n}{4}

    Full solution

    Division is written as a fraction bar in algebra.

  5. Is 7x+27x + 2 an expression or an equation?

    Answer

    An expression

    Full solution

    There is no equals sign, so there is nothing to solve.

  6. Write “twice a number, increased by six”.

    Answer

    2n+62n + 6

    Full solution

    The doubling applies to the number only, then six is added.

  7. Write “four times the sum of a number and one”.

    Hint

    What gets multiplied by four?

    Answer

    4(n+1)4(n + 1)

    Full solution

    The sum is formed first, then quadrupled, so it needs brackets.

  8. A phone plan costs 1515 a month plus 0.100.10 per text. Write the cost for tt texts in one month.

    Answer

    0.10t+150.10t + 15

    Full solution

    The 1515 is fixed and stands alone; the 0.100.10 repeats per text, so it attaches to tt.

  9. A rectangle is xx cm wide and 33 cm longer than it is wide. Write its perimeter.

    Hint

    Write the length first.

    Answer

    4x+64x + 6

    Full solution

    The length is x+3x + 3. Perimeter is two widths plus two lengths:

    2x+2(x+3)=2x+2x+6=4x+62x + 2(x + 3) = 2x + 2x + 6 = 4x + 6.

  10. Asked to write “eight less than three times a number”, Dan writes 83n8 - 3n. Find his error.

    Hint

    What is being taken away, and from what?

    Answer

    He reversed the subtraction. It is 3n83n - 8.

    Full solution

    “Eight less than” means eight is removed from something, so the something comes first: 3n83n - 8.

    His 83n8 - 3n says the opposite — three times the number taken away from eight.

    Testing a value settles it. With n=5n = 5, three times the number is 1515, and eight less than that is 77. His expression gives 815=78 - 15 = -7, which is not the same number.

Frequently asked questions

What is a variable?

A letter standing in for a number, used when the value is unknown or when it can change. In 3n + 5, the n is the variable.

What is the difference between an expression and an equation?

An equation has an equals sign and an expression does not. 3n + 5 is an expression; 3n + 5 = 20 is an equation.

Why is it written 3n instead of 3 × n?

The multiplication sign looks too much like the letter x. Writing the number against the letter avoids that, so 3n means 3 times n.

Does 3n mean the digits 3 and n side by side?

No. Two symbols written together always means multiply, so 3n is 3 × n. If n is 4, then 3n is 12.

How do I turn a sentence into an expression?

Name the unknown with a letter, then translate the words into operations. 'Five more than twice a number' becomes 2n + 5.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.6.EE.A.2Expressions and EquationsWrite, read, and evaluate expressions in which letters stand for numbers.
  • CCSS.MATH.CONTENT.6.EE.A.2aExpressions and EquationsWrite expressions that record operations with numbers and with letters standing for numbers.
  • CCSS.MATH.CONTENT.6.EE.B.6Expressions and EquationsUse variables to represent numbers and write expressions when solving a real-world or mathematical problem; understand that a variable can represent an unknown number, or, depending on the purpose at hand, any number in a specified set.