🔢 Order of Operations (PEMDAS)
Enter a math expression · See every step explained · Learn PEMDAS · Grades 5–8
New problems every time, all with whole-number answers. Type your answer and check it, then see the steps. Teachers can print a sheet of 12 with an answer key.
How the Solver Works
Type an expression and press Solve. The tool rewrites it one operation at a time and labels each step: parentheses first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right. Each step card shows the small calculation it did (for example "4 × 2 = 8") and the whole expression after that step, so students can follow the work the same way they would on paper. Below the solver, a reference card lists the PEMDAS levels, a practice generator makes new problems at three levels (and prints a sheet of 12 with an answer key), and four quick multiple-choice problems give instant feedback with a hint.
You can type × or x for multiply, ÷ or / for divide, ^ for an exponent, and ( ), [ ] or { } for grouping. Decimals and negative numbers work too. If something can't be solved, such as dividing by zero or a missing parenthesis, the tool says so.
Worked Example
Enter 4 × (6 − 2)^2 ÷ 8. The tool shows four steps:
- Parentheses first: 6 − 2 = 4, so the expression becomes 4 × 4 ^ 2 ÷ 8.
- Exponent: 4 ^ 2 = 16, giving 4 × 16 ÷ 8.
- Multiply (left to right): 4 × 16 = 64, giving 64 ÷ 8.
- Divide: 64 ÷ 8 = 8.
Now remove the parentheses and try 4 × 6 − 2^2 ÷ 8. The answer changes to 23.5. Comparing the two step lists is a fast way to show what grouping symbols do.
Why We Need an Agreed Order
Without a rule, 2 + 3 × 4 could be 20 (adding first) or 14 (multiplying first). Mathematicians agreed to the second reading so that everyone gets the same answer. The Common Core puts the formal rule in Grade 6: 6.EE.A.2c asks students to perform operations, including whole-number exponents, "in the conventional order when there are no parentheses to specify a particular order (Order of Operations)." Grade 5 lays the groundwork with parentheses, brackets and braces (5.OA.A.1).
The Mistakes Students Make Most
| Mistake | Example | What to say |
|---|---|---|
| Multiplying before dividing every time | 12 ÷ 3 × 2 → 2 | M and D are a tie; go left to right. Answer: 8 |
| Adding before subtracting every time | 10 − 4 + 3 → 3 | A and S are a tie; go left to right. Answer: 9 |
| Working straight left to right | 2 + 3 × 4 → 20 | Multiplication outranks addition. Answer: 14 |
| Applying an exponent to the wrong number | 2 × 3^2 → 36 | The exponent belongs only to the 3. Answer: 18 |
The first two come from reading PEMDAS as six separate steps. Writing it as four levels helps: P, then E, then MD together, then AS together.
Activities
- Make it true: add parentheses to 2 + 3 × 4 so it equals 20, and to 24 ÷ 4 + 2 so it equals 4. Check with the solver.
- Four 4s: using exactly four 4s and any operations, make each number from 0 to 10. For example, (4 + 4) ÷ (4 + 4) = 1.
- Error hunt: write a wrong solution on the board and ask students to find the first wrong step, then confirm with the tool.
- Explain the step: students solve on paper, then compare their steps to the tool's step cards and explain any difference.
Related tools: Exponents Visualizer and Long Division.
Standards
- 5.OA.A.1: Use parentheses, brackets, or braces in numerical expressions, and evaluate expressions with these symbols.
- 6.EE.A.1: Write and evaluate numerical expressions involving whole-number exponents.
- 6.EE.A.2c: Perform arithmetic operations, including those involving whole-number exponents, in the conventional order when there are no parentheses to specify a particular order (Order of Operations).
Order of Operations FAQ
Is it PEMDAS, BODMAS or GEMS?
They are the same rules with different names. PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction) is common in the U.S.; BODMAS or BIDMAS (Brackets, Orders or Indices, Division/Multiplication, Addition/Subtraction) is common in the UK and elsewhere; some teachers use GEMS (Grouping, Exponents, Multiply/Divide, Subtract/Add). The order of D and M in the name doesn't matter, because they share a level.
Why does 12 ÷ 3 × 2 equal 8 and not 2?
Multiplication and division are on the same level, so you work left to right: 12 ÷ 3 = 4, then 4 × 2 = 8. Type it into the tool to see the two steps.
How does the tool handle 2^3^2?
Stacked exponents are worked from the top down (right to left), so 2^3^2 means 2^(3^2) = 2^9 = 512. This is the standard convention, and the tool shows it as two steps.
Can I type brackets and braces?
Yes. [ ] and { } work just like parentheses, which matches the Grade 5 standard 5.OA.A.1. You can also type 2(3 + 4) and the tool reads it as 2 × (3 + 4).
What does -3^2 equal?
−9. The exponent applies to the 3 first, and then the negative sign. If you mean negative three, squared, write (−3)^2, which equals 9. The tool works out the exponent first and then makes the result negative.
Sources
- Common Core State Standards: Grade 5 Operations and Algebraic Thinking
- Common Core State Standards: Grade 6 Expressions and Equations
Last reviewed: November 2026 · CCSS 5.OA.A.1, 6.EE.A.1, 6.EE.A.2c
📖 Word Help on This Page
Look up any word from this page in our kid-friendly dictionary:
Explore more: Word Tools Hub · Word Safari