Order of Operations

Watch the video explainer

Learning goals

  • Explain why a written expression needs one agreed reading before it names a number
  • Evaluate an expression in four tiers, from grouping down to addition and subtraction
  • Say why ranking multiplication first lets a product be written without parentheses
  • Work left to right within a tier, so 8÷4×28 \div 4 \times 2 is 44
  • Settle grouping symbols from the innermost outward, and read a fraction bar as grouping

Why we need an agreed order at all

A shared agreement is called a convention. The order of operations is a convention about how to read a calculation, not a theorem about numbers. A different convention could work, but writer and reader must use the same one.

The tiers, and why they are ranked this way

We sort the operations into tiers and work through the tiers from the top down. From first to last:

  1. Grouping. Anything inside parentheses (  )(\;), brackets [  ][\;], or braces {  }\{\;\} is evaluated first, working from the innermost group outward.
  2. Exponents. Powers are evaluated next.
  3. Multiplication and division. These two share one tier and are evaluated together, left to right.
  4. Addition and subtraction. These also share one tier, evaluated together, left to right.
The four tiers, in evaluation orderA vertical stack of four bars, labeled down the left side first, next, then and last. Top to bottom: grouping (parentheses, brackets, braces); exponents; multiplication and division, which share one tier and run left to right; addition and subtraction, which share one tier and run left to right.Grouping( ) , [ ] , firstExponentspowersnextMultiply and Divideone tier, left to rightthenAdd and Subtractone tier, left to rightlastwork down the stack, one tier at a time
The four tiers, in the order they are evaluated. Settle every group, then the exponents, then multiplication and division, then addition and subtraction. Each of the bottom two bars holds two operations that share one tier.

The mnemonic PEMDAS can help you remember the order: Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. Think of it as four levels: P, E, MD, AS. The paired letters share a level; M does not outrank D, and A does not outrank S.

Why put multiplication above addition? Think of a shopping bill: a 5-dollar item plus three 4-dollar items. Multiplication abbreviates the repeated addition:

5+3×4=5+(4+4+4)=5+12=17.5 + 3 \times 4 = 5 + (4 + 4 + 4) = 5 + 12 = 17.

Our convention lets us write that bill without parentheses around every product. If we mean eight 4-dollar items instead, we write (5+3)×4=32(5 + 3) \times 4 = 32. Parentheses show that the 5+35 + 3 belongs together.

Exponents sit above multiplication for a similar reason. A power is shorthand for repeated multiplication. In 232^3 the small raised 33 counts how many copies of 22 are multiplied together:

23=2×2×2=8.2^3 = 2 \times 2 \times 2 = 8.

Read 323^2 the same way. It is 3×3=93 \times 3 = 9, not 3×23 \times 2. Ranking powers above multiplication lets a power be written bare too, so 5×235 \times 2^3 means 5×8=405 \times 8 = 40.

Grouping comes first because parentheses tell you to treat their contents as one quantity. Work out that quantity before you use it in the calculation outside the group.

Why same-tier operations go left to right

Within either paired tier, work from left to right. The properties lesson showed that regrouping a subtraction or a division can change its value, so we need a rule for which grouping to use.

Why a left-to-right convention is needed for 10−3−210 - 3 - 2#

The two groupings of 10−3−210 - 3 - 2 give different answers:

(10−3)−2=7−2=5,(10 - 3) - 2 = 7 - 2 = 5,10−(3−2)=10−1=9.10 - (3 - 2) = 10 - 1 = 9.

We agree that the expression without parentheses means the first grouping. Start at 1010, subtract 33, then subtract 22 from the running total.

The same convention applies when addition and subtraction are mixed: 8−3+28 - 3 + 2 means 5+2=75 + 2 = 7. Reading it as 8−(3+2)=38 - (3 + 2) = 3 would insert parentheses that were not there.

Division works the same way. The expression 16÷4÷216 \div 4 \div 2 means (16÷4)÷2=4÷2=2(16 \div 4) \div 2 = 4 \div 2 = 2, not 16÷(4÷2)=16÷2=816 \div (4 \div 2) = 16 \div 2 = 8. If you always work left to right within a tier, there is only one way to read the expression.

Check your understanding

A bill has one 5-dollar item and three 4-dollar items. Why agree to read 5+3×45 + 3 \times 4 as 1717?

Answer choices

Check your understanding

Evaluate 20−6−420 - 6 - 4.

Answer choices

What a grouping symbol actually tells you

Parentheses tell you to evaluate their contents as one quantity. The usual tiers still apply inside the group, and they still apply outside it afterward.

For example, in 4+2×(5−1)4 + 2 \times (5 - 1), work out 5−15 - 1 first. Once it becomes 44, the remaining expression is 4+2×44 + 2 \times 4. Multiplication still comes before addition.

Worked example 1 Evaluate 4+2×(5−1)4 + 2 \times (5 - 1), one operation per line

Evaluate the group:

4+2×(5−1)=4+2×44 + 2 \times (5 - 1) = 4 + 2 \times 4

Now multiply before adding:

4+2×4=4+84 + 2 \times 4 = 4 + 84+8=124 + 8 = 12

The value is 1212. Doing 4+24 + 2 immediately after the parentheses would wrongly give 6×4=246 \times 4 = 24.

When you want an addition to happen before a multiplication, use parentheses. Writing (4+2)×5(4 + 2) \times 5 makes you do the sum first and gives 6×5=306 \times 5 = 30, a different number from the un-grouped 4+2×5=144 + 2 \times 5 = 14.

Nested groups: innermost first

When a group sits inside another group, settle the innermost one first and work outward. Brackets and braces behave exactly like parentheses; the different shapes are only there to make each matching pair easy to spot at a glance.

Worked example 2 Evaluate 3×[ 4+(10−2×3) ]3 \times [\,4 + (10 - 2 \times 3)\,], one operation per line

Start at the innermost group. Even inside parentheses the tiers still apply, so the multiplication 2×32 \times 3 goes before the subtraction:

3×[ 4+(10−2×3) ]=3×[ 4+(10−6) ]3 \times [\,4 + (10 - 2 \times 3)\,] = 3 \times [\,4 + (10 - 6)\,]

Finish the inner group:

3×[ 4+(10−6) ]=3×[ 4+4 ]3 \times [\,4 + (10 - 6)\,] = 3 \times [\,4 + 4\,]

Now settle the outer bracket:

3×[ 4+4 ]=3×83 \times [\,4 + 4\,] = 3 \times 83×8=243 \times 8 = 24

The fraction bar is an invisible grouping symbol

A horizontal fraction bar means divide. It also groups the whole numerator (the top) and the whole denominator (the bottom), as if each had parentheses around it. Evaluate both before dividing. The denominator must not be zero.

6+42+3=105=2.\frac{6 + 4}{2 + 3} = \frac{10}{5} = 2.
What the fraction bar groupsOn the left, the fraction with numerator six plus four and denominator two plus three, with a ring drawn around the whole numerator and another around the whole denominator. An arrow leads to the one-line form, where the same two rings have become written parentheses on either side of a division sign.6 + 42 + 3(6 + 4)÷(2 + 3)settle the whole top and the whole bottom, then divide
The fraction bar carries two pairs of parentheses that nobody writes. Flatten the fraction onto one line and you have to write both pairs in by hand.

On one line, the fraction becomes (6+4)÷(2+3)(6 + 4) \div (2 + 3). Dropping the parentheses would give a different expression, 6+4÷2+3=116 + 4 \div 2 + 3 = 11. Keep both groups when you change the way a fraction is written.

Worked example 3 Evaluate 23+46−2+1\dfrac{2^3 + 4}{6 - 2} + 1, one operation per line

The bar groups the numerator and the denominator separately, so settle each fully before dividing. Inside the numerator the exponent goes first:

23+46−2+1=8+46−2+1\frac{2^3 + 4}{6 - 2} + 1 = \frac{8 + 4}{6 - 2} + 1

Finish the numerator:

8+46−2+1=126−2+1\frac{8 + 4}{6 - 2} + 1 = \frac{12}{6 - 2} + 1

Finish the denominator:

126−2+1=124+1\frac{12}{6 - 2} + 1 = \frac{12}{4} + 1

Both are single numbers now, so divide:

124+1=3+1\frac{12}{4} + 1 = 3 + 13+1=43 + 1 = 4

So the value is 44. The +1+1 sits outside the fraction, so it is never part of the numerator.

Check your understanding

Evaluate 16÷4×216 \div 4 \times 2.

Answer choices

Check your understanding

Evaluate 30−2×[3+(5−3)2]30 - 2 \times [3 + (5 - 3)^2].

Answer choices

A larger expression, start to finish

A reliable habit is to scan the whole expression, find the highest tier present, do one operation from it, rewrite the line, and repeat. If you write one step per line, you can check each step.

Worked example 4 Evaluate 5+2×32−45 + 2 \times 3^2 - 4, one operation per line

The highest tier present is exponents, so square the 33 first:

5+2×32−4=5+2×9−45 + 2 \times 3^2 - 4 = 5 + 2 \times 9 - 4

Multiplication is now the highest tier, so do it next:

5+2×9−4=5+18−45 + 2 \times 9 - 4 = 5 + 18 - 4

Only addition and subtraction remain. They share a tier, so go left to right:

5+18−4=23−45 + 18 - 4 = 23 - 423−4=1923 - 4 = 19

The expression has value 1919.

Check your understanding

Evaluate 18−61+2+5\dfrac{18 - 6}{1 + 2} + 5.

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

People were already arguing about the order of operations more than a century ago. In 1917, N. J. Lennes of the University of Montana published a discussion in The American Mathematical Monthly. He pointed out a mismatch between textbook rules and the way algebra was actually written.

His concern was multiplication written without a multiplication sign, such as letters placed next to each other. Following a division sign, writers often treated that whole product as the divisor, even when a literal left-to-right rule suggested another reading. Lennes compared mathematical notation with language: people say “drank,” even though “drinked” would follow a more regular pattern.

That disagreement should not be confused with this lesson’s explicit ×\times and ÷\div calculations. It concerned how much grouping readers understood when signs were omitted. A fraction bar or clear parentheses can make the intended grouping visible.

Lennes’s 1917 discussion preserves the argument in his own words.

Your progress

See all your progress →