Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
ArithmeticArithmetic FoundationsMiddle school

Order of Operations

Evaluate expressions by handling grouping, exponents, multiplication/division and addition/subtraction in the right order.

An expression like 8−2×38 - 2 \times 3 only has one correct value because everyone agrees on the order in which operations are carried out. Without that agreement, the same line of symbols could mean 18 or 2, and calculators, spreadsheets and textbooks would disagree.

The convention is: work inside grouping symbols first, then evaluate powers and roots, then do multiplication and division as they appear from left to right, and finally addition and subtraction from left to right. Multiplication does not outrank division; they share a level, and so do addition and subtraction.

Key terms

Operation precedence
Grouping first, then powers, then multiplication and division left to right, then addition and subtraction left to right.
2+3×4=142 + 3 \times 4 = 14

Key ideas

  • Grouping symbols include parentheses, brackets, fraction bars and the bar of a square root.
  • Within one level, always move left to right: 12÷3×2=812 \div 3 \times 2 = 8, not 22.
  • A negative sign in front of a power is applied after the power: −32=−9-3^2 = -9, while (−3)2=9(-3)^2 = 9.
  • Rewrite step by step instead of doing several operations in your head.

Worked example

Evaluate 20−4×(5−2)2÷620 - 4 \times (5 - 2)^2 \div 6.

  1. Parentheses: 5−2=35 - 2 = 3.
  2. Power: 32=93^2 = 9.
  3. Multiply and divide left to right: 4×9=364 \times 9 = 36, then 36÷6=636 \div 6 = 6.
  4. Subtract: 20−6=1420 - 6 = 14.

Answer: 1414

Common mistakes

  • Doing all multiplication before any division, which breaks the left-to-right rule.
  • Treating −32-3^2 as 99.
  • Ignoring a fraction bar as a grouping symbol, for example reading 6+42\frac{6 + 4}{2} as 6+26 + 2.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.Evaluate 3+6×223 + 6 \times 2^2.

    Show answer

    2727

  2. 2.Evaluate 48÷4×3−548 \div 4 \times 3 - 5.

    Show answer

    3131

  3. 3.Evaluate 18−323+1\frac{18 - 3^2}{3} + 1.

    Show answer

    44

Keep practising

More in Arithmetic Foundations