🔢 Order of Operations (PEMDAS)

Enter a math expression · See every step explained · Learn PEMDAS · Grades 5–8

📖 PEMDAS — The Order of Operations
P — Parentheses
Solve ( ) first, always!
E — Exponents
Powers next (e.g. 2³ = 8)
MD — Multiply & Divide
Left to right, equal priority
AS — Add & Subtract
Left to right, last of all
🎲 Practice Generator

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.

🎯 Practice Problems

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:

  1. Parentheses first: 6 − 2 = 4, so the expression becomes 4 × 4 ^ 2 ÷ 8.
  2. Exponent: 4 ^ 2 = 16, giving 4 × 16 ÷ 8.
  3. Multiply (left to right): 4 × 16 = 64, giving 64 ÷ 8.
  4. 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

MistakeExampleWhat to say
Multiplying before dividing every time12 ÷ 3 × 2 → 2M and D are a tie; go left to right. Answer: 8
Adding before subtracting every time10 − 4 + 3 → 3A and S are a tie; go left to right. Answer: 9
Working straight left to right2 + 3 × 4 → 20Multiplication outranks addition. Answer: 14
Applying an exponent to the wrong number2 × 3^2 → 36The 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

Related tools: Exponents Visualizer and Long Division.

Standards

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

Last reviewed: November 2026 · CCSS 5.OA.A.1, 6.EE.A.1, 6.EE.A.2c

🌟 Keep Exploring
📈Exponents 🧠Mental Math ➗Long Division