Order of Operations
Progress can't be saved in this browser, so this lesson's status can't be set.
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 is
- 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:
- Grouping. Anything inside parentheses , brackets , or braces is evaluated first, working from the innermost group outward.
- Exponents. Powers are evaluated next.
- Multiplication and division. These two share one tier and are evaluated together, left to right.
- Addition and subtraction. These also share one tier, evaluated together, left to right.
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:
Our convention lets us write that bill without parentheses around every product. If we mean eight 4-dollar items instead, we write . Parentheses show that the belongs together.
Exponents sit above multiplication for a similar reason. A power is shorthand for repeated multiplication. In the small raised counts how many copies of are multiplied together:
Read the same way. It is , not . Ranking powers above multiplication lets a power be written bare too, so means .
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 #
The two groupings of give different answers:
We agree that the expression without parentheses means the first grouping. Start at , subtract , then subtract from the running total.
The same convention applies when addition and subtraction are mixed: means . Reading it as would insert parentheses that were not there.
Division works the same way. The expression means , not . 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 as ?
The product represents the three 4-dollar items. Multiplication before addition lets us write it without extra parentheses.
Because everyone uses the same convention, the writer and the reader get the same total. Adding first would describe eight 4-dollar items instead, costing .
Check your understanding
Evaluate .
For a chain of subtractions, work from left to right.
Doing first would wrongly give , as if there were parentheses around .
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 , work out first. Once it becomes , the remaining expression is . Multiplication still comes before addition.
Worked example 1 Evaluate , one operation per line
Evaluate the group:
Now multiply before adding:
The value is . Doing immediately after the parentheses would wrongly give .
When you want an addition to happen before a multiplication, use parentheses. Writing makes you do the sum first and gives , a different number from the un-grouped .
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 , one operation per line
Start at the innermost group. Even inside parentheses the tiers still apply, so the multiplication goes before the subtraction:
Finish the inner group:
Now settle the outer bracket:
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.
On one line, the fraction becomes . Dropping the parentheses would give a different expression, . Keep both groups when you change the way a fraction is written.
Worked example 3 Evaluate , 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:
Finish the numerator:
Finish the denominator:
Both are single numbers now, so divide:
So the value is . The sits outside the fraction, so it is never part of the numerator.
Check your understanding
Evaluate .
Multiplication and division share one tier, so work left to right.
Doing first would wrongly give .
Check your understanding
Evaluate .
Work from the innermost group outward: subtract, then square.
The bracket is now . Outside it, multiply before subtracting.
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 , one operation per line
The highest tier present is exponents, so square the first:
Multiplication is now the highest tier, so do it next:
Only addition and subtraction remain. They share a tier, so go left to right:
The expression has value .
Check your understanding
Evaluate .
The fraction bar groups the whole numerator and denominator. Complete each group: on top, and below. Then divide before adding.
If you divided before finishing those groups, you would be working out a different expression.