Chapter 5 · Numerical expressions

The Order of Operations: One Expression, One Value

See why everyone must work out an expression in the same order. Then multiply and divide before you add and subtract, writing one operation on each line.

12 min read

An expression is made of numbers and operation signs written in a row, such as 4+3×24 + 3 \times 2. It has no equals sign. An operation is a way of combining two numbers to make one number. This lesson uses four operations: addition, subtraction, multiplication and division. To evaluate an expression means to find the single number it is worth. That number is called its value.

Here is a puzzle. Maya and Leo both evaluate the expression below. Each of them does two calculations, and every calculation is correct. But they do them in different orders.

4+3×24 + 3 \times 2
One expression, evaluated in two orders
StudentFirst calculationSecond calculationValue found
Maya adds first
4+3=74 + 3 = 7
7×2=147 \times 2 = 14
1414
Leo multiplies first
3×2=63 \times 2 = 6
4+6=104 + 6 = 10
1010

The same expression gave two values, 1414 and 1010. Neither student made a calculation slip. The only difference was the order.

That is a real problem. If one expression could be worth two different numbers, you could never be sure what another person meant by it. Nobody could check anyone else's work.

The fix is an agreement. Everyone who uses mathematics follows the same rules about which operation to do first, next and last. These rules are called the order of operations. Because everyone follows them, every expression has exactly one value.

Which order did people agree on? A sticker count shows the idea.

You have 44 loose stickers and 33 packs with 22 stickers in each pack. In symbols, the number of stickers is 4+3×24 + 3 \times 2.

  • 3×23 \times 2 means 33 packs of 22 stickers, which is 66 stickers.
  • Now join the loose stickers and the pack stickers: 4+6=104 + 6 = 10 stickers.

Adding 4+34 + 3 first would join 44 stickers to 33 packs. The 77 you would get is not a number of stickers. A multiplication such as 3×23 \times 2 acts as one amount, so you find it before you add. Division works the same way. The agreed order follows this idea: the value of 4+3×24 + 3 \times 2 is 1010, as Leo found.

Key concept

The order of operations

When an expression has only numbers and the signs ++, −-, ×\times and ÷\div, evaluate it in two passes. A pass is one trip across the expression from left to right.

  1. First pass: multiply and divide, from left to right.
  2. Second pass: add and subtract, from left to right.

Multiplication and division share the first pass. Addition and subtraction share the second pass. Within a pass, the operation farther to the left goes first.

How you write your work matters too. Do one operation on each line.

  1. Write the expression on the first line.
  2. Choose the operation that the order of operations says comes next.
  3. On a new line, write the result in place of the two numbers and the sign you just used. Copy everything else exactly as it was.
  4. Repeat until one number is left. That number is the value.

Your lines together make a record of your work. Each line differs from the line above it in only one place, so the record is easy to check. Read down the lines and ask two questions about each one: Was this the right operation to do next? and Is this one fact correct? If the value is wrong, the record shows you which line went wrong.

Leo's work, recorded with one operation on each line
LineWhat you writeOperation doneFact to check
1
4+3×24 + 3 \times 2
None yet
The expression is copied correctly
2
4+64 + 6
Multiply 33 by 22
3×2=63 \times 2 = 6
3
1010
Add 44 and 66
4+6=104 + 6 = 10

Worked example

One division, one subtraction

Evaluate 20−12÷420 - 12 \div 4. Record one operation on each line.

  1. Begin with the first pass: look for multiplication or division. There is one division, 12 divided by 4, and it is 3. It goes before the subtraction, even though the subtraction is farther left, because the first pass comes before the second. Write 3 in its place and copy the 20 and the minus sign.

    20−12÷4=20−320 - 12 \div 4 = 20 - 3
  2. No multiplication or division is left, so begin the second pass. One subtraction remains: 20 minus 3 is 17.

    20−3=1720 - 3 = 17

Answer

The value of 20−12÷420 - 12 \div 4 is 1717.

Worked example

Division and multiplication in the same pass

Evaluate 24÷4×3+524 \div 4 \times 3 + 5. Record one operation on each line.

  1. First pass: there is a division and a multiplication. They share this pass, so take them from left to right. The division is farther left, so it goes first: 24 divided by 4 is 6. Copy the rest unchanged.

    24÷4×3+5=6×3+524 \div 4 \times 3 + 5 = 6 \times 3 + 5
  2. The first pass is not finished, because a multiplication is left: 6 times 3 is 18. Copy the plus 5.

    6×3+5=18+56 \times 3 + 5 = 18 + 5
  3. Second pass: only an addition is left. 18 plus 5 is 23.

    18+5=2318 + 5 = 23

Answer

The value of 24÷4×3+524 \div 4 \times 3 + 5 is 2323.

Worked example

All four operations

Evaluate 250−12×15+48÷6250 - 12 \times 15 + 48 \div 6. Record one operation on each line, then check the record.

  1. First pass, from left to right: the first multiplication or division you meet is 12 times 15, which is 180. Write 180 in its place and copy everything else.

    250−12×15+48÷6=250−180+48÷6250 - 12 \times 15 + 48 \div 6 = 250 - 180 + 48 \div 6
  2. Still the first pass: 48 divided by 6 is 8. Write 8 in its place.

    250−180+48÷6=250−180+8250 - 180 + 48 \div 6 = 250 - 180 + 8
  3. Second pass, from left to right: the subtraction is farther left than the addition, so it goes first. 250 minus 180 is 70.

    250−180+8=70+8250 - 180 + 8 = 70 + 8
  4. One addition is left: 70 plus 8 is 78.

    70+8=7870 + 8 = 78
  5. Check the record. Each line used one fact: 12 times 15 is 180, 48 divided by 6 is 8, 250 minus 180 is 70, and 70 plus 8 is 78. All four facts are correct, and each operation was the right one to do next.

Answer

The value of 250−12×15+48÷6250 - 12 \times 15 + 48 \div 6 is 7878.

Takeaway: an expression must have exactly one value, so everyone evaluates it in the same agreed order. First multiply and divide from left to right. Then add and subtract from left to right. Write one operation on each line so that every step can be checked.

Next, you will evaluate expressions that have parentheses, brackets and braces. These are symbols that group part of an expression.