PEMDAS Calculator
Type any math problem and get the answer with step-by-step working. PEMDAS is the order of operations: parentheses, exponents, multiplication, division, addition and subtraction.
What does PEMDAS stand for?
| Letter | Stands for | Example |
|---|---|---|
| P | Parentheses | (2 + 3) is solved first |
| E | Exponents | 3² = 9 |
| M | Multiplication | 3 × 5 = 15 |
| D | Division | 12 ÷ 4 = 3 |
| A | Addition | 6 + 2 = 8 |
| S | Subtraction | 9 − 4 = 5 |
A popular way to remember the order is the phrase "Please Excuse My Dear Aunt Sally".
The PEMDAS rule
Multiplication and division have equal priority, so do whichever comes first from the left. Addition and subtraction work the same way. Brackets [ ] and braces { } work like parentheses: solve the innermost group first.
PEMDAS vs BODMAS
| PEMDAS (USA) | BODMAS (UK, India) |
|---|---|
| Parentheses | Brackets |
| Exponents | Orders |
| Multiplication and Division | Division and Multiplication |
| Addition and Subtraction | Addition and Subtraction |
They are the same rule with different names. You can also try the BODMAS calculator.
PEMDAS examples
| Problem | Working | Answer |
|---|---|---|
| 8 + 2 × 5 | 2 × 5 = 10, then 8 + 10 | 18 |
| (8 + 2) × 5 | 8 + 2 = 10, then 10 × 5 | 50 |
| 12 ÷ 3 × 2 | 12 ÷ 3 = 4, then 4 × 2 | 8 |
| 3 + 4^2 × 2 | 4² = 16, 16 × 2 = 32, then 3 + 32 | 35 |
| 5 × (2 + 3)^2 − 10 ÷ 2 | 2 + 3 = 5, 5² = 25, 5 × 25 = 125, 10 ÷ 2 = 5, then 125 − 5 | 120 |
PEMDAS Practice Problems with Answers (40 Questions)
Try each problem yourself first, then open it to check the step-by-step solution. You can also copy any problem into the calculator above.
Brackets [ ] and braces { } work like parentheses: solve the innermost group first, then work outwards. The working below shows every group as ( ).
Grades 6–8 questions
Q1. 9 + 3 × 4 = ?
- Multiplication3 × 4 = 129 + 12
- Addition9 + 12 = 2121
Answer: 21
Q2. 24 − 18 ÷ 6 = ?
- Division18 ÷ 6 = 324 − 3
- Subtraction24 − 3 = 2121
Answer: 21
Q3. (5 + 4) × 6 = ?
- Parentheses · Addition5 + 4 = 99 × 6
- Multiplication9 × 6 = 5454
Answer: 54
Q4. 40 ÷ 5 + 7 = ?
- Division40 ÷ 5 = 88 + 7
- Addition8 + 7 = 1515
Answer: 15
Q5. 14 − 2 × 3 + 1 = ?
- Multiplication2 × 3 = 614 − 6 + 1
- Subtraction14 − 6 = 88 + 1
- Addition8 + 1 = 99
Answer: 9
Q6. 6 × (10 − 4) ÷ 3 = ?
- Parentheses · Subtraction10 − 4 = 66 × 6 ÷ 3
- Multiplication6 × 6 = 3636 ÷ 3
- Division36 ÷ 3 = 1212
Answer: 12
Q7. 2^3 + 5 × 2 = ?
- Exponents2^3 = 88 + 5 × 2
- Multiplication5 × 2 = 108 + 10
- Addition8 + 10 = 1818
Answer: 18
Q8. 45 ÷ (4 + 5) × 2 = ?
- Parentheses · Addition4 + 5 = 945 ÷ 9 × 2
- Division45 ÷ 9 = 55 × 2
- Multiplication5 × 2 = 1010
Answer: 10
Q9. 18 − 3^2 + 4 = ?
- Exponents3^2 = 918 − 9 + 4
- Subtraction18 − 9 = 99 + 4
- Addition9 + 4 = 1313
Answer: 13
Q10. 7 + (12 − 8) × 5 = ?
- Parentheses · Subtraction12 − 8 = 47 + 4 × 5
- Multiplication4 × 5 = 207 + 20
- Addition7 + 20 = 2727
Answer: 27
Algebra 1 and high school questions
Q11. 3 × (2 + 5)^2 − 20 = ?
- Parentheses · Addition2 + 5 = 73 × 7^2 − 20
- Exponents7^2 = 493 × 49 − 20
- Multiplication3 × 49 = 147147 − 20
- Subtraction147 − 20 = 127127
Answer: 127
Q12. 100 ÷ 5^2 + 6 × 3 = ?
- Exponents5^2 = 25100 ÷ 25 + 6 × 3
- Division100 ÷ 25 = 44 + 6 × 3
- Multiplication6 × 3 = 184 + 18
- Addition4 + 18 = 2222
Answer: 22
Q13. (−4)^2 + 3 × (−2) = ?
- Exponents(−4)^2 = 1616 + 3 × (−2)
- Multiplication3 × (−2) = −616 + (−6)
- Addition16 + (−6) = 1010
Answer: 10
Q14. 5 + 2 × [8 − (3 + 1)^2 ÷ 4] = ?
- Parentheses · Addition3 + 1 = 45 + 2 × (8 − 4^2 ÷ 4)
- Parentheses · Exponents4^2 = 165 + 2 × (8 − 16 ÷ 4)
- Parentheses · Division16 ÷ 4 = 45 + 2 × (8 − 4)
- Parentheses · Subtraction8 − 4 = 45 + 2 × 4
- Multiplication2 × 4 = 85 + 8
- Addition5 + 8 = 1313
Answer: 13
Q15. (18 − 6) ÷ (2 + 1) × 4 − 3 = ?
- Parentheses · Addition2 + 1 = 3(18 − 6) ÷ 3 × 4 − 3
- Parentheses · Subtraction18 − 6 = 1212 ÷ 3 × 4 − 3
- Division12 ÷ 3 = 44 × 4 − 3
- Multiplication4 × 4 = 1616 − 3
- Subtraction16 − 3 = 1313
Answer: 13
Q16. 2 × 3^3 − 4 × 2^2 = ?
- Exponents2^2 = 42 × 3^3 − 4 × 4
- Exponents3^3 = 272 × 27 − 4 × 4
- Multiplication2 × 27 = 5454 − 4 × 4
- Multiplication4 × 4 = 1654 − 16
- Subtraction54 − 16 = 3838
Answer: 38
Q17. 50 − 2 × (4 + 3^2) = ?
- Parentheses · Exponents3^2 = 950 − 2 × (4 + 9)
- Parentheses · Addition4 + 9 = 1350 − 2 × 13
- Multiplication2 × 13 = 2650 − 26
- Subtraction50 − 26 = 2424
Answer: 24
Q18. (6 + 4)^2 ÷ 5 − 3 × 2 = ?
- Parentheses · Addition6 + 4 = 1010^2 ÷ 5 − 3 × 2
- Exponents10^2 = 100100 ÷ 5 − 3 × 2
- Division100 ÷ 5 = 2020 − 3 × 2
- Multiplication3 × 2 = 620 − 6
- Subtraction20 − 6 = 1414
Answer: 14
Q19. 8 × [12 ÷ (2 + 4)] − 5 = ?
- Parentheses · Addition2 + 4 = 68 × (12 ÷ 6) − 5
- Parentheses · Division12 ÷ 6 = 28 × 2 − 5
- Multiplication8 × 2 = 1616 − 5
- Subtraction16 − 5 = 1111
Answer: 11
Q20. 4 + 6 × 3 − 8 ÷ 2 × 3 = ?
- Multiplication6 × 3 = 184 + 18 − 8 ÷ 2 × 3
- Division8 ÷ 2 = 44 + 18 − 4 × 3
- Multiplication4 × 3 = 124 + 18 − 12
- Addition4 + 18 = 2222 − 12
- Subtraction22 − 12 = 1010
Answer: 10
Q21. (3 + 2)^3 − 5^2 = ?
- Parentheses · Addition3 + 2 = 55^3 − 5^2
- Exponents5^2 = 255^3 − 25
- Exponents5^3 = 125125 − 25
- Subtraction125 − 25 = 100100
Answer: 100
Q22. 7 − (−3) × 4 + 10 ÷ (−5) = ?
- Multiplication−3 × 4 = −127 − (−12) + 10 ÷ (−5)
- Division10 ÷ (−5) = −27 − (−12) + (−2)
- Subtraction7 − (−12) = 1919 + (−2)
- Addition19 + (−2) = 1717
Answer: 17
Q23. 1.2 × 5 + 0.8 × 10 = ?
- Multiplication1.2 × 5 = 66 + 0.8 × 10
- Multiplication0.8 × 10 = 86 + 8
- Addition6 + 8 = 1414
Answer: 14
Q24. 3 × {2 + [10 − (4 − 1)^2]} = ?
- Parentheses · Subtraction4 − 1 = 33 × (2 + (10 − 3^2))
- Parentheses · Exponents3^2 = 93 × (2 + (10 − 9))
- Parentheses · Subtraction10 − 9 = 13 × (2 + 1)
- Parentheses · Addition2 + 1 = 33 × 3
- Multiplication3 × 3 = 99
Answer: 9
Q25. 72 ÷ 9 × 2 + 3^2 − 7 = ?
- Exponents3^2 = 972 ÷ 9 × 2 + 9 − 7
- Division72 ÷ 9 = 88 × 2 + 9 − 7
- Multiplication8 × 2 = 1616 + 9 − 7
- Addition16 + 9 = 2525 − 7
- Subtraction25 − 7 = 1818
Answer: 18
SAT, ACT and GRE-style questions
Q26. 4 + 3 × [18 − (2 + 4)^2 ÷ 3] = ?
- Parentheses · Addition2 + 4 = 64 + 3 × (18 − 6^2 ÷ 3)
- Parentheses · Exponents6^2 = 364 + 3 × (18 − 36 ÷ 3)
- Parentheses · Division36 ÷ 3 = 124 + 3 × (18 − 12)
- Parentheses · Subtraction18 − 12 = 64 + 3 × 6
- Multiplication3 × 6 = 184 + 18
- Addition4 + 18 = 2222
Answer: 22
Q27. 100 − 5 × (6 + 2^3) ÷ 2 = ?
- Parentheses · Exponents2^3 = 8100 − 5 × (6 + 8) ÷ 2
- Parentheses · Addition6 + 8 = 14100 − 5 × 14 ÷ 2
- Multiplication5 × 14 = 70100 − 70 ÷ 2
- Division70 ÷ 2 = 35100 − 35
- Subtraction100 − 35 = 6565
Answer: 65
Q28. 6 ÷ 2 × (1 + 2) = ?
- Parentheses · Addition1 + 2 = 36 ÷ 2 × 3
- Division6 ÷ 2 = 33 × 3
- Multiplication3 × 3 = 99
Answer: 9
Q29. 48 ÷ 2 ÷ (3 × 4) + 5 = ?
- Parentheses · Multiplication3 × 4 = 1248 ÷ 2 ÷ 12 + 5
- Division48 ÷ 2 = 2424 ÷ 12 + 5
- Division24 ÷ 12 = 22 + 5
- Addition2 + 5 = 77
Answer: 7
Q30. (5^2 − 3^2) ÷ (5 − 3) + 10 = ?
- Parentheses · Subtraction5 − 3 = 2(5^2 − 3^2) ÷ 2 + 10
- Parentheses · Exponents3^2 = 9(5^2 − 9) ÷ 2 + 10
- Parentheses · Exponents5^2 = 25(25 − 9) ÷ 2 + 10
- Parentheses · Subtraction25 − 9 = 1616 ÷ 2 + 10
- Division16 ÷ 2 = 88 + 10
- Addition8 + 10 = 1818
Answer: 18
Q31. 3 + 4 × {7 − [2 × (1 + 2)]} = ?
- Parentheses · Addition1 + 2 = 33 + 4 × (7 − (2 × 3))
- Parentheses · Multiplication2 × 3 = 63 + 4 × (7 − 6)
- Parentheses · Subtraction7 − 6 = 13 + 4 × 1
- Multiplication4 × 1 = 43 + 4
- Addition3 + 4 = 77
Answer: 7
Q32. 2^3 × 3 − 4^2 ÷ 2 + 5 = ?
- Exponents4^2 = 162^3 × 3 − 16 ÷ 2 + 5
- Exponents2^3 = 88 × 3 − 16 ÷ 2 + 5
- Multiplication8 × 3 = 2424 − 16 ÷ 2 + 5
- Division16 ÷ 2 = 824 − 8 + 5
- Subtraction24 − 8 = 1616 + 5
- Addition16 + 5 = 2121
Answer: 21
Q33. [(10 − 4) × 5 − 6] ÷ 4 + 1 = ?
- Parentheses · Subtraction10 − 4 = 6(6 × 5 − 6) ÷ 4 + 1
- Parentheses · Multiplication6 × 5 = 30(30 − 6) ÷ 4 + 1
- Parentheses · Subtraction30 − 6 = 2424 ÷ 4 + 1
- Division24 ÷ 4 = 66 + 1
- Addition6 + 1 = 77
Answer: 7
Q34. 9 − 3 × (−2)^2 + 8 ÷ 2 = ?
- Exponents(−2)^2 = 49 − 3 × 4 + 8 ÷ 2
- Multiplication3 × 4 = 129 − 12 + 8 ÷ 2
- Division8 ÷ 2 = 49 − 12 + 4
- Subtraction9 − 12 = −3−3 + 4
- Addition−3 + 4 = 11
Answer: 1
Q35. 0.5 × (3 + 5)^2 − 2.5 × 4 = ?
- Parentheses · Addition3 + 5 = 80.5 × 8^2 − 2.5 × 4
- Exponents8^2 = 640.5 × 64 − 2.5 × 4
- Multiplication0.5 × 64 = 3232 − 2.5 × 4
- Multiplication2.5 × 4 = 1032 − 10
- Subtraction32 − 10 = 2222
Answer: 22
Q36. 15 + 5 × 2^2 − 18 ÷ 3 ÷ 2 = ?
- Exponents2^2 = 415 + 5 × 4 − 18 ÷ 3 ÷ 2
- Multiplication5 × 4 = 2015 + 20 − 18 ÷ 3 ÷ 2
- Division18 ÷ 3 = 615 + 20 − 6 ÷ 2
- Division6 ÷ 2 = 315 + 20 − 3
- Addition15 + 20 = 3535 − 3
- Subtraction35 − 3 = 3232
Answer: 32
Q37. 4 × (3 + 2)^2 ÷ 10 − 1 = ?
- Parentheses · Addition3 + 2 = 54 × 5^2 ÷ 10 − 1
- Exponents5^2 = 254 × 25 ÷ 10 − 1
- Multiplication4 × 25 = 100100 ÷ 10 − 1
- Division100 ÷ 10 = 1010 − 1
- Subtraction10 − 1 = 99
Answer: 9
Q38. 60 ÷ {5 × [2 + (3 − 1)^2]} = ?
- Parentheses · Subtraction3 − 1 = 260 ÷ (5 × (2 + 2^2))
- Parentheses · Exponents2^2 = 460 ÷ (5 × (2 + 4))
- Parentheses · Addition2 + 4 = 660 ÷ (5 × 6)
- Parentheses · Multiplication5 × 6 = 3060 ÷ 30
- Division60 ÷ 30 = 22
Answer: 2
Q39. (2 + 3) × (4 − 1)^2 − 6 × 5 = ?
- Parentheses · Subtraction4 − 1 = 3(2 + 3) × 3^2 − 6 × 5
- Parentheses · Addition2 + 3 = 55 × 3^2 − 6 × 5
- Exponents3^2 = 95 × 9 − 6 × 5
- Multiplication5 × 9 = 4545 − 6 × 5
- Multiplication6 × 5 = 3045 − 30
- Subtraction45 − 30 = 1515
Answer: 15
Q40. 20 − [3 × (4 + 2) − 2^3] ÷ 5 = ?
- Parentheses · Addition4 + 2 = 620 − (3 × 6 − 2^3) ÷ 5
- Parentheses · Exponents2^3 = 820 − (3 × 6 − 8) ÷ 5
- Parentheses · Multiplication3 × 6 = 1820 − (18 − 8) ÷ 5
- Parentheses · Subtraction18 − 8 = 1020 − 10 ÷ 5
- Division10 ÷ 5 = 220 − 2
- Subtraction20 − 2 = 1818
Answer: 18
Common questions
What does PEMDAS stand for?
PEMDAS stands for Parentheses, Exponents, Multiplication, Division, Addition and Subtraction. It is the order of operations used to solve a math expression.
Does multiplication come before division in PEMDAS?
No. Multiplication and division have equal priority, so work from left to right. The same is true for addition and subtraction. For example, 12 ÷ 3 × 2 = 4 × 2 = 8.
Is PEMDAS the same as BODMAS?
Yes. BODMAS (Brackets, Orders, Division, Multiplication, Addition, Subtraction) is the name used in the UK, India and other countries for the same rule. Only the names of the steps differ.
What is the answer to 8 + 2 × 5?
It is 18, not 50. Multiplication comes before addition, so 2 × 5 = 10 and then 8 + 10 = 18.
What is 6 ÷ 2(1 + 2)?
Working left to right, 6 ÷ 2(1 + 2) = 6 ÷ 2 × 3 = 9. Some textbooks and calculators treat 2(1 + 2) as one group and get 1, so the expression is ambiguous. Add parentheses to make it clear.