Writing Algebraic Expressions
Learn to turn words into algebra: choose a variable, translate phrases like 'three more than' or 'twice a number', and write expressions step by step with worked examples.
Key takeaways
- A variable is a letter that stands for an unknown number you choose to name
- Key words tell you the operation: 'more than' means add, 'product' means multiply
- Order matters for subtraction and division, but not for addition and multiplication
- Write the expression, then read it back to check it matches the words
What is an algebraic expression?
An algebraic expression is a way of writing a calculation using letters as well as numbers. The letter is called a variable, and it stands for a number we don't know yet or a number that can change.
For example, if you don't know how many marbles are in a bag, you can call that number n. If you then add 4 more marbles, you have written your first expression:
n + 4
This single piece of algebra describes the situation for any starting number. If the bag held 10, you'd have 14; if it held 25, you'd have 29. The expression captures all of those cases at once. That is the real power of algebra, and it is the same idea you met in Algebra Basics.
Choosing a variable
The first step in writing an expression is to decide what the variable represents and give it a letter. Be specific. Don't just write "let x be the number" β write "let x be the number of students" so you remember what it means.
You can use any letter, but x, n, y, and a are the most common. Whatever you choose, use the same letter every time you mean the same quantity in one problem.
Key words and what they mean
Most word problems contain signal words that tell you which operation to use. Learning these is like learning vocabulary in a new language.
| Words | Operation | Example phrase | Expression |
|---|---|---|---|
| sum, plus, more than, increased by, total | add (+) | "8 more than x" | x + 8 |
| difference, minus, less than, decreased by, fewer | subtract (β) | "x decreased by 5" | x β 5 |
| product, times, twice, of, multiplied by | multiply (Γ) | "the product of 3 and x" | 3x |
| quotient, divided by, per, split into | divide (Γ·) | "x divided by 2" | x/2 |
Notice that "twice" means times 2, "triple" means times 3, and "half of" means divided by 2.
Worked example 1 β addition phrase
Write "the sum of a number and 12" as an expression.
- Choose a variable. Let the number be n.
- Find the key word. "Sum" means addition.
- Combine the parts: the number (n) plus 12.
- Write it: n + 12.
Read it back: "n plus 12" β yes, that is the sum of a number and 12. β
Worked example 2 β the tricky "less than"
Write "7 less than a number" as an expression.
This one traps a lot of students. "Less than" reverses the order you might expect.
- Choose a variable. Let the number be x.
- "7 less than x" means you start with x and take away 7.
- So the x comes first: x β 7.
It is not 7 β x. To see why, imagine the number is 20. "7 less than 20" is 13, which is 20 β 7. Writing 7 β 20 would give β13, the wrong answer. Always start from the number that follows "less than."
Worked example 3 β multiplication and addition together
Write "double a number, then add 5" as an expression.
- Choose a variable. Let the number be m.
- "Double" means times 2, so we have 2m.
- "Then add 5" means + 5.
- Put it together: 2m + 5.
Be careful: 2m + 5 is different from 2(m + 5). The first doubles the number and then adds 5. The second adds 5 first and then doubles everything. The words "double a number, then add" tell us to double first, so 2m + 5 is correct.
Worked example 4 β a real situation
A taxi charges a $3 fixed fee plus $2 for every kilometre travelled. Write an expression for the total cost.
- Decide the variable. Let k be the number of kilometres.
- The cost for the kilometres is $2 each, so that is 2k.
- There is also a fixed $3, no matter the distance.
- Total cost: 2k + 3.
Check with a number: for 5 km, 2(5) + 3 = 10 + 3 = $13. That matches "five kilometres at $2 each plus $3." β Building expressions like this is the first step toward solving linear equations later on.
Activity β translate these phrases
Write an expression for each. Use n as your variable.
- Four more than a number.
- A number multiplied by 6.
- Ten less than a number.
- A number divided by 3.
- Triple a number, then subtract 2.
- The sum of a number and itself.
Answers: 1) n + 4 2) 6n 3) n β 10 4) n/3 5) 3n β 2 6) n + n (which simplifies to 2n)
Why this matters
Almost every word problem in algebra, science, and everyday money maths begins with translating a sentence into an expression. If you can reliably turn "$3 plus $2 a kilometre" into 2k + 3, you can then evaluate it, graph it, or solve an equation with it.
Get into two habits: always state what your variable means, and always read your expression back in words to check it matches the original sentence. Those two checks catch almost every mistake.
Quick quiz
Test yourself and earn XP
Write 'five more than a number n' as an expression.
'More than' means addition, so five more than n is n + 5.
Write 'the product of 7 and a number x'.
'Product' means multiply, so 7 times x is written 7x.
Write '3 less than a number m'.
'3 less than m' starts from m and takes away 3, so it is m β 3, not 3 β m.
Write 'a number y divided by 4'.
The number y is being divided, so it goes on top: y Γ· 4 = y/4.
Write 'twice a number, then add 6'.
Twice the number is 2n, then add 6 gives 2n + 6.
FAQ
Any letter works, but x and n are the most common. Pick one letter and use it consistently throughout the same problem.
'Less than' tells you to subtract from the number that comes after it. You start with n and remove 3, so the n is written first.
Keep exploring
More in Math