Chapter 1 · Whole number operations review

Grouping and the Order of Operations

Learn the agreed order for doing operations. Then evaluate expressions one step at a time, including ones with parentheses and brackets.

13 min read

A numerical expression is a math phrase made of numbers and operations, such as 4+6×54 + 6 \times 5. The operations in this lesson are addition, subtraction, multiplication and division. To evaluate an expression is to find the one number it equals. That number is the value of the expression.

Look at two ways to work out 4+6×54 + 6 \times 5:

  • Add first: 4+6=104 + 6 = 10, then 10×5=5010 \times 5 = 50.
  • Multiply first: 6×5=306 \times 5 = 30, then 4+30=344 + 30 = 34.

The two ways give different numbers. That would be confusing, because one expression should not have two values. So everyone who does mathematics follows one agreed order for the operations. It is called the order of operations. That order gives 3434 here, and the next part shows why.

Think about what 4+6×54 + 6 \times 5 can stand for. You have 44 loose markers and 66 packs with 55 markers in each pack. The part 6×56 \times 5 means 66 groups of 55. It is one amount: 3030 markers. Add the 44 loose markers and you have 3434 markers. Adding 4+64 + 6 first would mix 44 markers with 66 packs, and that sum is not a number of markers. Division makes one amount too: 12÷412 \div 4 is the size of one share when 1212 is split into 44 equal shares.

The agreed order fits this meaning. For an expression made only of numbers and the signs ++, −-, ×\times and ÷\div:

  1. Multiply and divide first, working from left to right.
  2. Then add and subtract, working from left to right.

Multiplication and division have the same rank: they sit at the same level in the order. Neither one always goes first, so you take them as they appear from left to right. Addition and subtraction share a rank in the same way.

To evaluate one step at a time, do exactly one operation on each line:

  • Choose the next operation, using the order above.
  • Replace that part with the number it equals.
  • Copy everything else exactly as it is.

When you choose the operation this way, each new line equals the line before it. You have only swapped a part, such as 6×56 \times 5, for the number it equals, 3030. So the value of the whole expression stays the same. It just gets easier to see.

Each step uses up one operation sign, so an expression with four operations takes four steps. Keep going until a single number is left. That number is the value.

Here is 4+6×54 + 6 \times 5 written this way. It has two operations, so it takes two steps.

4+6×5=4+30=34\begin{aligned} 4 + 6 \times 5 &= 4 + 30 \\ &= 34 \end{aligned}

Worked example

One step at a time

Evaluate 30−12÷4×2+530 - 12 \div 4 \times 2 + 5 one step at a time.

  1. Multiplication and division come before addition and subtraction. This expression has one division and one multiplication. They have the same rank, so take the one on the left first: 12 divided by 4 is 3. Copy everything else.

    30−12÷4×2+5=30−3×2+530 - 12 \div 4 \times 2 + 5 = 30 - 3 \times 2 + 5
  2. One multiplication is left. It still comes before the subtraction and the addition: 3 times 2 is 6.

    30−3×2+5=30−6+530 - 3 \times 2 + 5 = 30 - 6 + 5
  3. Only subtraction and addition are left. They have the same rank, so go from left to right. The subtraction is on the left: 30 minus 6 is 24.

    30−6+5=24+530 - 6 + 5 = 24 + 5
  4. Only the addition is left: 24 plus 5 is 29. A single number remains, so you are done. Four operations took four steps.

    24+5=2924 + 5 = 29

Answer

The value of 30−12÷4×2+530 - 12 \div 4 \times 2 + 5 is 2929.

Grouping symbols are marks that wrap part of an expression. They come in pairs: one opens the group and one closes it. This lesson uses two kinds: parentheses, as in (3+4)(3 + 4), and brackets, as in [3+4][3 + 4]. Both mean the same thing: treat everything inside as one number, and find that number first. To find it, evaluate the inside like any other expression.

Go back to the markers. The expression 8×(3+4)8 \times (3 + 4) can stand for 88 packs that each hold 33 red markers and 44 blue markers. The parentheses keep 3+43 + 4 together as one amount: the markers in one pack. So you add first, even though multiplication usually comes before addition. You get 3+4=73 + 4 = 7 markers in a pack, then 8×7=568 \times 7 = 56 markers in all.

Grouping symbols can change the value of an expression, but they do not always. The table shows both cases with the same numbers.

The same numbers and operations, grouped in three ways
ExpressionFirst stepNext stepValueWhat the parentheses do
8×3+48 \times 3 + 4
8×3=248 \times 3 = 24
24+4=2824 + 4 = 28
2828
There are no parentheses.
(8×3)+4(8 \times 3) + 4
8×3=248 \times 3 = 24
24+4=2824 + 4 = 28
2828
They wrap the step that already comes first, so the value stays the same.
8×(3+4)8 \times (3 + 4)
3+4=73 + 4 = 7
8×7=568 \times 7 = 56
5656
They move the addition to the front, so the value changes.

Worked example

Two operations inside parentheses

Evaluate 6×(20−3×4)+96 \times (20 - 3 \times 4) + 9.

  1. Start inside the parentheses, because grouping symbols come first. Inside them, multiplication comes before subtraction: 3 times 4 is 12.

    6×(20−3×4)+9=6×(20−12)+96 \times (20 - 3 \times 4) + 9 = 6 \times (20 - 12) + 9
  2. Finish the parentheses: 20 minus 12 is 8. The parentheses now hold a single number, so you can write it without them.

    6×(20−12)+9=6×8+96 \times (20 - 12) + 9 = 6 \times 8 + 9
  3. No grouping symbols are left. Multiplication comes before addition: 6 times 8 is 48.

    6×8+9=48+96 \times 8 + 9 = 48 + 9
  4. Only the addition is left: 48 plus 9 is 57.

    48+9=5748 + 9 = 57

Answer

The value of 6×(20−3×4)+96 \times (20 - 3 \times 4) + 9 is 5757.

Sometimes one pair of grouping symbols sits inside another. The outer pair is often written as brackets so that you can tell the pairs apart, as in [20−(4+3)]×2[20 - (4 + 3)] \times 2.

You cannot finish the brackets until the parentheses inside them have become a single number. So start with the innermost pair, the one with no grouping symbols inside it, and work outward. Here that gives 4+3=74 + 3 = 7, then 20−7=1320 - 7 = 13, then 13×2=2613 \times 2 = 26.

Key concept

The order of operations

For an expression made of numbers, the signs ++, −-, ×\times and ÷\div, and grouping symbols, evaluate in this order:

  1. Grouping symbols. Work inside parentheses and brackets first, starting with the innermost pair. Inside each pair, follow steps 2 and 3.
  2. Multiply and divide from left to right.
  3. Add and subtract from left to right.

Do one operation on each line and copy the rest. Then every line equals the line before it, and the last line is the value.

Worked example

Parentheses inside brackets

Evaluate 4+60÷[2×(7+3)−8]4 + 60 \div [2 \times (7 + 3) - 8].

  1. The parentheses are the innermost pair, so begin there: 7 plus 3 is 10.

    4+60÷[2×(7+3)−8]=4+60÷[2×10−8]4 + 60 \div [2 \times (7 + 3) - 8] = 4 + 60 \div [2 \times 10 - 8]
  2. Stay inside the brackets until they hold a single number. Inside them, multiplication comes before subtraction: 2 times 10 is 20.

    4+60÷[2×10−8]=4+60÷[20−8]4 + 60 \div [2 \times 10 - 8] = 4 + 60 \div [20 - 8]
  3. Only a subtraction is left inside the brackets: 20 minus 8 is 12. The brackets now hold a single number, so write it without them.

    4+60÷[20−8]=4+60÷124 + 60 \div [20 - 8] = 4 + 60 \div 12
  4. No grouping symbols are left. Division comes before addition, even though the addition is written first: 60 divided by 12 is 5.

    4+60÷12=4+54 + 60 \div 12 = 4 + 5
  5. Only the addition is left: 4 plus 5 is 9.

    4+5=94 + 5 = 9

Answer

The value of 4+60÷[2×(7+3)−8]4 + 60 \div [2 \times (7 + 3) - 8] is 99.

Takeaway. The order of operations is the agreed order that lets everyone get the same value for an expression. For expressions with ++, −-, ×\times, ÷\div and grouping symbols, work inside the grouping symbols first, starting with the innermost pair. Then multiply and divide from left to right. Then add and subtract from left to right. Do one operation on each line, and every line equals the one before it.

Next, you will write numerical expressions from words, insert parentheses to make an equation true, and find mistakes in the order of operations.