Order of Operations Example

Evaluate 24 ÷ 3 + 2² × (5 − 2) using the standard order of operations. First simplify the parentheses, then evaluate the exponent. Perform division and multiplication from left to right before adding. The worked steps show why the expression equals 20 and how to check it.

Evaluate the expression

PEMDAS and BODMAS describe the same precedence: grouping, exponents or orders, multiplication and division from left to right, then addition and subtraction from left to right.

24÷3+22×(5−2)24\div3+2^2\times(5-2)
Keep each operation in its correct order
StageExpressionReason
Grouping24 ÷ 3 + 2² × 35 − 2 = 3
Exponent24 ÷ 3 + 4 × 32² = 4
Division and multiplication8 + 1224 ÷ 3 = 8; 4 × 3 = 12
Addition208 + 12 = 20

Step-by-step solution

Do not simply calculate from left to right across the whole expression. Use precedence first, and use left-to-right order only among operations at the same level.

  1. 1

    Simplify the parentheses

    Evaluate the grouped subtraction before using the result in the rest of the expression.

    5−2=3⟹24÷3+22×35-2=3\quad\Longrightarrow\quad24\div3+2^2\times3
  2. 2

    Evaluate the exponent

    Square 2 before performing multiplication or division.

    22=4⟹24÷3+4×32^2=4\quad\Longrightarrow\quad24\div3+4\times3
  3. 3

    Complete division and multiplication

    Division and multiplication have equal precedence, so evaluate them from left to right as they appear.

    24÷3+4×3=8+1224\div3+4\times3=8+12
  4. 4

    Add the remaining terms

    Only addition remains, so combine 8 and 12 to get the value of the original expression.

    8+12=208+12=20

ANSWER

The expression equals 20

The parentheses and exponent are evaluated first. Division and multiplication come next from left to right, followed by addition.

24÷3+22×(5−2)=8+12=2024\div3+2^2\times(5-2)=8+12=20

Check the result

Substitute the simplified values back into the original expression and follow the same precedence rules.

24÷3+22×(5−2)=8+4×3=8+12=2024\div3+2^2\times(5-2)=8+4\times3=8+12=20