S/Shortutorial
Home / Math / Order of operations
Math · Foundations

Order of Operations

Why does 2 + 3 × 4 equal 14, not 20? Calculators and mathematicians follow one agreed order. Learn it once and you'll never be tricked by a viral math puzzle again.

~8 min3 lessonsStep-by-step solver5-question quiz
01

The agreed order

When a calculation has several operations, do them in this order:

StepExamples
PParentheses (brackets) first( ), [ ]
EExponents (powers and roots)3², √9
MDMultiplication and Division, left to right×, ÷
ASAddition and Subtraction, left to right+, −

Common memory aids: PEMDAS (US), BODMAS or BIDMAS (UK and elsewhere). They're the same rule with different words.

Example · 2 + 3 × 4
  1. Multiplication before addition: 3 × 4 = 12
  2. Then 2 + 12
  3. = 14
02

The rule most people get wrong

Multiplication does not always come before division, and addition doesn't always come before subtraction. They're equal partners: work left to right.

Example · 12 ÷ 3 × 2
  1. Same level, so go left to right
  2. 12 ÷ 3 = 4
  3. 4 × 2
  4. = 8 (not 2)
Example · 10 − 4 + 3
  1. Left to right: 10 − 4 = 6
  2. 6 + 3
  3. = 9 (not 3)

This is why “PEMDAS” misleads people: the letters suggest M before D and A before S. Think of it as P · E · MD · AS, four levels, not six.

03

Viral puzzles and good habits

Puzzles like 8 ÷ 2(2 + 2) go viral because they're written ambiguously on purpose. Following the standard rules: brackets give 4, then left to right, 8 ÷ 2 = 4, then 4 × 4 = 16. Some people (and some older textbooks) treat “2(4)” as a single unit and get 1.

Real mathematicians avoid the argument by writing clearly: use extra brackets or a fraction bar so there's only one way to read it.

Negative numbers and powers: −3² is −9 (the power applies to 3 first), but (−3)² is 9.

Try it · step-by-step solver

Use * or × for multiply, / or ÷ for divide, and ^ or ² for powers.

NEXTKeep learning