Order of Operations (PEMDAS): Rules, Examples and Common Traps

Quick answer: Work in this order: Parentheses, Exponents, Multiplication and Division (left to right), then Addition and Subtraction (left to right). The big trap is thinking M always comes before D, or A before S. They're partners: do whichever comes first, reading left to right.
The rule
Parentheses (and other brackets)
Exponents
Multiplication and division, from left to right
Addition and subtraction, from left to right
Some students learn "Please Excuse My Dear Aunt Sally" to remember PEMDAS.
Worked examples
1. Multiply before adding
8 + 2 × 5
2 × 5 = 10, then 8 + 10 = 18. (Not 50.)
2. Parentheses change everything
(8 + 2) × 5
8 + 2 = 10, then 10 × 5 = 50.
3. Exponents next
3 + 6² ÷ 4
6² = 36, then 36 ÷ 4 = 9, then 3 + 9 = 12.
4. Left to right for × and ÷
12 ÷ 3 × 2
Left to right: 12 ÷ 3 = 4, then 4 × 2 = 8. (Not 2.)
5. Left to right for + and −
10 − 4 + 3
10 − 4 = 6, then 6 + 3 = 9. (Not 3.)
6. Everything together
20 − 3 × (4 + 2)² ÷ 9
Parentheses: 4 + 2 = 6. Exponent: 6² = 36. Then 3 × 36 = 108 and 108 ÷ 9 = 12. Finally 20 − 12 = 8.
7. Brackets inside brackets
2[5 + (6 − 2)²]
Innermost first: 6 − 2 = 4, 4² = 16, 5 + 16 = 21, then 2 × 21 = 42.
Common mistakes
Doing multiplication before division every time. Go left to right.
Adding before subtracting every time. Go left to right.
Squaring a negative wrongly. (−3)² = 9, but −3² = −9, because the exponent applies before the minus sign.
When extra support might help
Support is worth considering when multi-step problems keep going wrong, or before state tests.
A tutor can't guarantee a grade, but can build careful habits. Math Make Smart offers one-to-one online math tutoring, and you can book a free trial lesson. See also our ratios and proportions guide.
Frequently asked questions
What does PEMDAS stand for?
Parentheses, Exponents, Multiplication and Division, Addition and Subtraction.
Does multiplication always come before division?
No. They have equal priority; work left to right.
What is 8 + 2 × 5?
18.