Order of Operations

The rules that tell you which part of an expression to evaluate first.

Definition

Order of operations is the agreed-upon sequence for evaluating an expression when it contains more than one operation. The acronym BEDMAS (or PEMDAS) summarises the sequence:

StepBEDMASPEMDAS
1BracketsParentheses
2ExponentsExponents
3DivisionMultiplication
3MultiplicationDivision
4AdditionAddition
4SubtractionSubtraction

Division and multiplication have equal priority โ€” work left to right. Same for addition and subtraction.

Step-by-step evaluation

Evaluate 3+4ร—23 + 4 \times 2.

Multiplication before addition:

3+4ร—2=3+8=113 + 4 \times 2 = 3 + 8 = 11

Not 1414. If you add first you get the wrong answer.

Brackets change everything

Evaluate (3+4)ร—2(3 + 4) \times 2.

Brackets first:

(3+4)ร—2=7ร—2=14(3 + 4) \times 2 = 7 \times 2 = 14
Left to right for equal-priority operations

12รท4ร—312 \div 4 \times 3 โ€” division and multiplication have the same priority, so go left to right:

12รท4ร—3=3ร—3=912 \div 4 \times 3 = 3 \times 3 = 9

Not 12รท12=112 \div 12 = 1.

Try it

Evaluate without a calculator:

2+32ร—(8โˆ’5)2 + 3^2 \times (8 - 5)
Solution

Brackets first: 8โˆ’5=38 - 5 = 3

Exponent: 32=93^2 = 9

Multiply: 9ร—3=279 \times 3 = 27

Add: 2+27=292 + 27 = \mathbf{29}

Related concepts