Order of Operations

Order of Operations is the set of rules that tells you which calculation to do first when you have multiple operations in one expression.

PEM,DA,S\text{P} \to \text{E} \to \text{M},\text{D} \to \text{A},\text{S}

Solve a problem with Order of Operations

Type the problem. The solver will use Order of Operations where Order of Operations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

SymbolMeaning

When to use it

Use Order of Operations when you have a calculation with multiple operations and need to know the correct order to get the right answer.

Level

Usually taught in: Pre-Algebra

Worked examples

1. Simple expression with addition and multiplication

Problem

Work out 6+326 + 3 \cdot 2.
  1. 6+326 + 3 \cdot 2

    We have both addition and multiplication, so we need to follow the Order of Operations.

  2. 32=63 \cdot 2 = 6

    Multiplication comes before addition, so we calculate 323 \cdot 2 first.

  3. 6+6=126 + 6 = 12

    Now add the result to 6.

Answer: 1212

We followed the Order of Operations by doing multiplication before addition. If we had added first, we would get 6+3=96 + 3 = 9 and then 92=189 \cdot 2 = 18, which is wrong.

2. Expression with parentheses, exponents, and all operations

Problem

Work out 2(41)2+6÷32(4-1)^2 + 6 \div 3.
  1. 41=34 - 1 = 3

    Work inside the parentheses first.

  2. 32=93^2 = 9

    Do the exponent.

  3. 29=182 \cdot 9 = 18

    Now we have multiplication and division. Do 292 \cdot 9 and 6÷36 \div 3 from left to right.

  4. 6÷3=26 \div 3 = 2

    Continue with division.

  5. 18+2=2018 + 2 = 20

    Finally, add.

Answer: 2020

This problem needs every part of the Order of Operations. We do parentheses first, then exponents, then multiplication and division together (left to right), and finally addition.

3. Bake sale: calculating total cost

Problem

At a bake sale, boxes of brownies cost $4 each and individual muffins cost $3 each. You buy 2 boxes of brownies and 5 muffins. Work out the total cost using the expression 24+532 \cdot 4 + 5 \cdot 3.
  1. 24=82 \cdot 4 = 8

    First, multiply: 2 boxes of brownies at $4 each equals $8.

  2. 53=155 \cdot 3 = 15

    Next multiply: 5 muffins at $3 each equals $15.

  3. 8+15=238 + 15 = 23

    Finally add the two costs together.

Answer: $23\$23

The Order of Operations tells us to do multiplication before addition. We must calculate the cost of the brownies and the cost of the muffins separately before adding them together to find the total cost.

Common mistakes

Where Order of Operations usually goes wrong
Answer came out wrong
Working left to right and ignoring Order of Operations: 6+23=83=246 + 2 \cdot 3 = 8 \cdot 3 = 24
Do multiplication first: 6+23=6+6=126 + 2 \cdot 3 = 6 + 6 = 12
Treating division as lower priority than multiplication: 8÷23=8÷68 \div 2 \cdot 3 = 8 \div 6
Work left to right with multiplication and division: 8÷23=43=128 \div 2 \cdot 3 = 4 \cdot 3 = 12
Applying the exponent to the whole expression: 232=62=362 \cdot 3^2 = 6^2 = 36
Calculate the exponent first: 232=29=182 \cdot 3^2 = 2 \cdot 9 = 18
The mistakeWhy it is wrongThe fix
Working left to right and ignoring Order of Operations: 6+23=83=246 + 2 \cdot 3 = 8 \cdot 3 = 24Addition comes after multiplication in the Order of Operations, so 232 \cdot 3 must be calculated first, not 6+26 + 2.Do multiplication first: 6+23=6+6=126 + 2 \cdot 3 = 6 + 6 = 12
Treating division as lower priority than multiplication: 8÷23=8÷68 \div 2 \cdot 3 = 8 \div 6Multiplication and division have the same priority and must be done from left to right, not right to left.Work left to right with multiplication and division: 8÷23=43=128 \div 2 \cdot 3 = 4 \cdot 3 = 12
Applying the exponent to the whole expression: 232=62=362 \cdot 3^2 = 6^2 = 36Exponents apply only to the number directly attached to them, not to the entire term. Do exponents first, then multiply.Calculate the exponent first: 232=29=182 \cdot 3^2 = 2 \cdot 9 = 18

Tips and when to use something else

  • Remember the order with PEMDAS: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction. Most people remember this as a catchphrase like 'Please Excuse My Dear Aunt Sally'.
  • Multiplication and division have equal priority, so work left to right. The same goes for addition and subtraction.
  • If you are unsure about the order, add parentheses to make it clear what you want to calculate first.
  • When you want to break up a calculation differently, use the Distributive Property to rewrite it: for example, 3(2+5)=32+35=6+15=213(2 + 5) = 3 \cdot 2 + 3 \cdot 5 = 6 + 15 = 21.

Frequently asked questions

Why do we need order of operations?
Without the order of operations, different people might solve the same problem in different ways and get different answers. The order of operations is a rule everyone follows so that there is only one correct answer. For example, 2+342 + 3 \cdot 4 could be 54=205 \cdot 4 = 20 if you add first, or 2+12=142 + 12 = 14 if you multiply first. By following the order of operations (multiply first), everyone gets 14.
Is multiplication always done before division?
No. Multiplication and division have equal priority and are done from left to right. For example, in 12÷3212 \div 3 \cdot 2, you do the division first (left to right): 12÷3=412 \div 3 = 4, then 42=84 \cdot 2 = 8. If you did multiplication first you would get the wrong answer.
Can you use parentheses to break the order of operations?
Yes. Parentheses have the highest priority in the order of operations, so whatever is inside them is calculated first. For example, normally 2+34=2+12=142 + 3 \cdot 4 = 2 + 12 = 14, but if you add parentheses like (2+3)4(2 + 3) \cdot 4, you must do the addition first to get 54=205 \cdot 4 = 20.
Do exponents come before multiplication?
Yes. Exponents are done after parentheses but before any multiplication, division, addition, or subtraction. For example, in 2322 \cdot 3^2, you must calculate 32=93^2 = 9 first to get 29=182 \cdot 9 = 18. If you multiply first, you would incorrectly get 62=366^2 = 36.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18