Find a course

Module 2: Order of Operations and ExponentsLesson 4 of 1012 min

The Order of Operations

Use grouping, exponents, multiplication and division, then addition and subtraction in the right order, including the left-to-right rule.

Step 1 of 12Learn

The viral math problem

Every few months a problem like this spreads online: 8 − 2 × 3 = ? Thousands of people answer 18, and thousands answer 2. Only one is correct, and the reason is an agreement mathematicians made so that everyone reads an expression the same way: the order of operations.

Without an agreed order, the same expression would mean different things to different people, like a sentence without punctuation. With it, 8 − 2 × 3 has one value: multiply first, 2 × 3 = 6, then subtract, 8 − 6 = 2.

The order is:

  1. Grouping symbols: parentheses ( ), brackets [ ], braces { }, absolute value bars, and fraction bars. Work inside them first.
  2. Exponents (and roots).
  3. Multiplication and division, from left to right.
  4. Addition and subtraction, from left to right.

Many US students remember this as PEMDAS: Please Excuse My Dear Aunt Sally. Other countries use BODMAS or BIDMAS; the rule is the same, only the names differ ("brackets," "orders," "indices").

The acronym hides one crucial detail, which is the source of most errors and the topic of the next step.

Step 2 of 12Practice · Choose one

What is the value of 8 − 2 × 3?

Step 3 of 12Practice · Diagram

The order of operations, top to bottom

Work from the top layer down. The two bottom layers each hold partners of equal rank.

In 8 − 2 × 3, which layer do you use first?

Tap the shape that answers the question, then press Check.

The order of operations, top to bottomLayer diagram: Parentheses and grouping, Exponents and roots, × and ÷, left to right, + and −, left to right.Parentheses and groupingExponents and roots× and ÷, left to right+ and −, left to right
Parentheses and grouping

Includes brackets, fraction bars and absolute value bars.

Exponents and roots
× and ÷, left to right

Whichever comes first reading left to right.

+ and −, left to right

Whichever comes first reading left to right.

Step 4 of 12Learn

The left-to-right rule

PEMDAS lists M before D and A before S, but that does not mean multiplication beats division or addition beats subtraction. They are partners of equal rank:

  • Multiplication and division are done together, from left to right, whichever comes first.
  • Addition and subtraction are done together, from left to right, whichever comes first.

Look at 24 ÷ 4 × 2. Left to right: 24 ÷ 4 = 6, then 6 × 2 = 12. If you multiplied first because "M comes before D," you'd get 24 ÷ 8 = 3, which is wrong.

The same goes for 10 − 4 + 3. Left to right: 10 − 4 = 6, then 6 + 3 = 9. Adding first gives 10 − 7 = 3, also wrong.

A helpful way to picture PEMDAS is as four levels, not six letters:

LevelOperations
1Grouping
2Exponents
3× and ÷ (left to right)
4+ and − (left to right)

When an expression has nested grouping, like 2[5 + (6 − 4)], work from the innermost group outward: 6 − 4 = 2, then 5 + 2 = 7, then 2 × 7 = 14.

Step 5 of 12Practice · Work it out

Evaluate 24 ÷ 4 × 2.

Step 6 of 12Practice · Put in order

Put the steps for evaluating 3 + 2(7 − 3)2 in the correct order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Work inside the parentheses: 7 − 3 = 4
  2. Add: 3 + 32 = 35
  3. Apply the exponent: 42 = 16
  4. Multiply: 2 × 16 = 32

Step 7 of 12Practice · Diagram

Evaluating 3 + 2(7 − 3)2

Tap the line that comes right after squaring.

Tap the shape that answers the question, then press Check.

Evaluating 3 + 2(7 − 3)^2Process diagram: 3 + 2(7 − 3)^2 → 3 + 2(4)^2 → 3 + 2(16) → 3 + 32 → 35.3 + 2(7 − 3)^23 + 2(4)^23 + 2(16)3 + 3235
3 + 2(7 − 3)^2
3 + 2(4)^2

Parentheses: 7 − 3 = 4.

3 + 2(16)

Exponent: 42 = 16.

3 + 32

Multiply: 2 × 16 = 32.

35

Add last.

Step 8 of 12Try the calculator

Order matters

The first output follows the order of operations for a + b × c. The second forces the addition first with parentheses, (a + b) × c. Try a = 8, b = −2, c = 3, then other values, and notice when the results agree.

a + b × c
2
(a + b) × c
18

Step 9 of 12Note

Step 10 of 12Practice · Spot the mistake

Ana evaluated 20 − 12 ÷ 4 + 2 × 3 step by step. Tap the first line that contains a mistake.

Step 11 of 12Practice · Fill in the blanks

Fill in the blanks

Evaluate 2[10 − (3 + 1)] ÷ 3. Innermost first: 3 + 1 = . Then 10 − 4 = . Finally 2 × 6 ÷ 3 = .

Step 12 of 12Practice · Work it out

Evaluate (18 − 4 × 2) ÷ (3 − 8).