Skip to content

Order of operations

What comes first? Enter your calculation and see every step — so you can find exactly where your own working went a different way.

The explanation is shown. Quick: enter the calculation and get the answer. Advanced: also see what you get if you forget the rule — and the examples worked out.

Your numbers

Use + − · : ^ and brackets. You can also type * for multiply and / for divide.

Answer

Result

15

How to work it out

  1. 3 + 4 · (2 − 5) ^ 2 : 3
  2. =3 + 4 · (−3) ^ 2 : 3
  3. =3 + 4 · 9 : 3
  4. =3 + 36 : 3
  5. =3 + 12
  6. =15

The formula

  1. Brackets first — the innermost before the outer ones.
  2. Powers and roots.
  3. Multiplication and division, from left to right.
  4. Addition and subtraction, from left to right.
In depth: more numbers and “what if”

If you forget the rule and calculate from left to right, you get 147 instead of 15. That is the typical mistake. The calculation took 5 steps.

The examples: correct and from the left

CalculationWith the ruleFrom the left
3 + 4 · (2 − 5)^2 : 315147
12 − 3 · 2 + 8 : 486.5
(5 + 3) · (10 − 4) : 22424
2^3 + 4 · 5 − 62254

More: Numbers and percentages

6