Learn
Lesson · Foundations of Algebra · The number system

Order of Operations

Written arithmetic is ambiguous until a reading order is fixed. The order everybody uses is a convention, not a theorem, and the two places it is misremembered are same-level operations and the base of an exponent.

1 brackets, innermost first 2 exponents 3 multiplication and division left to right, one level 4 addition and subtraction left to right, one level
The convention, in four levels

Core ideas

What this lesson establishes

Nothing in this lesson is a fact about numbers. All of it is a fact about notation, and it is agreed rather than discovered.

1

The order is a convention, and it is arbitrary

2 + 3 · 4 could mean 20 or 14, and both readings are coherent. The world settled on 14. Nothing forced that choice; what matters is that every book, calculator and piece of software makes the same one, so an expression names a single number.

2

Same level means left to right

Multiplication and division are one level, not two. So are addition and subtraction. 8 − 3 + 2 is 7, and 24 / 4 / 2 is 3. The familiar acronyms list the four operations separately and quietly suggest an order between them that does not exist.

3

Brackets are the override, and some are invisible

Anything you want evaluated first goes in brackets. A fraction bar brackets its whole numerator and its whole denominator, and a radical sign brackets everything under it — which is why typing a printed fraction onto one line changes its value unless you add the brackets back.

The material

One reading order, and where it is misread

The four levels, the two operations that share a level, and the two things that look like grouping symbols because they are.

2 + 3 · 4 has to mean something definite or algebra cannot start. Read strictly left to right it is 20; read with multiplication first it is 14. The convention picks the second, and the reason is convenience rather than truth: it lets a polynomial like 3x² + 5x + 7 be written without a single bracket.

Definition · Order of operations

Evaluate in this order: brackets first, innermost outward; then exponents; then multiplication and division together, left to right; then addition and subtraction together, left to right.

Levels 3 and 4 each contain two operations, and within a level the rule is position, not the kind of operation.

Within a level, left to right

8 − 3 + 2 = (8 − 3) + 2 = 7 not 8 − (3 + 2) = 3 24 / 4 / 2 = (24 / 4) / 2 = 3 not 24 / (4 / 2) = 12

Both wrong readings come from treating the last-named operation as the one to do first. Addition does not outrank subtraction and multiplication does not outrank division; they are read in the order they are written.

The base of an exponent

An exponent applies to the smallest thing written immediately before it. A minus sign written in front is not part of that thing unless brackets say so.

−3² = −(3²) = −9 (−3)² = (−3)(−3) = 9

This is not a trick question and it is not a disagreement between sources; it follows from the exponent level coming before any multiplication, and −3² is (−1) · 3². The practical consequence arrives in “Evaluating Expressions”: when you substitute a negative value for a letter, write brackets round it. x² at x = −3 is (−3)² = 9.

The brackets you cannot see

A fraction bar groups everything above it and everything below it. When the same expression is typed on one line, those groupings have to be written as brackets or the value changes:

2 + 4 ----- = (2 + 4) / (3 − 1) = 6 / 2 = 3 3 − 1 typed as 2 + 4 / 3 − 1 it means 2 + 4/3 − 1 = (2 − 1) + 4/3 = 1 + 4/3 = 7/3

A radical sign groups in the same way. √(9 + 16) is √25 = 5, while √9 + √16 is 3 + 4 = 7. The bar over the radicand is a bracket drawn differently.

Example · All four levels in one expression

2 · (3 + 4)² − 10 / 5. The bracket gives 7; the exponent gives 49; at level 3, 2 · 49 = 98 and 10 / 5 = 2; at level 4, 98 − 2 = 96.

Interactive

The queue of pending operations

Which operation goes first, and why

The queue of pending operations
next in the queueread left to right instead

Method

Evaluating an expression

Rewrite the whole expression after each step. Working in your head across two levels is where the value gets lost.

1

Finish the innermost bracket

Find the bracket with no brackets inside it and evaluate it completely, then rewrite the expression without it. Repeat outward. Treat a fraction bar and a radical sign as brackets while you do this.

2

Take the exponents, reading the base carefully

The base is the smallest thing the exponent is written on. −3² has base 3; (−3)² has base −3. These are −9 and 9.

3

Multiplication and division, left to right

One level. Sweep from the left and do whichever of the two you meet first. Do not do all the multiplications and then all the divisions.

4

Addition and subtraction, left to right

One level again, and the same sweep. 20 − 3 + 1 is 18; grouping it as 20 − (3 + 1) gives 16 and is a misreading.

One value each

Score 0 / 0

One expression, every level used

20 − 2 · (5 − 8)² / 6 + 1, rewritten in full at each stage.

20 − 2 · (5 − 8)² / 6 + 1 brackets 5 − 8 = −3 20 − 2 · (−3)² / 6 + 1 exponents (−3)² = 9 the brackets are written, so the base is −3 20 − 2 · 9 / 6 + 1 × and / left to right: 2 · 9 = 18 18 / 6 = 3 20 − 3 + 1 + and − left to right: 20 − 3 = 17 17 + 1 = 18 answer 18

The last level is where the direction mattered. Reading it as 20 − (3 + 1) gives 16, and that is the single most common way to lose this expression.

At the third level the direction happened not to matter for these numbers — 2 · (9 / 6) is also 3 — so this example does not demonstrate the rule there. 24 / 4 / 2 does: it is 3, and 24 / (4 / 2) is 12.

Had the expression read 20 − 2 · 5 − 8² / 6 + 1, the base of the exponent would be 8 and nothing else, and the answer would be different. Read the brackets before you read anything else.

Now do one with most of the guidance removed: 18 / 3 / 2 + (−2)². Write only the next operation on each line. The queue gives 18 / 3 = 6, then 6 / 2 = 3, and the answer is 7. An answer of 12 grouped the division from the right; an answer of −1 also lost the brackets around the negative base.

Common mistakes

1
Trusting an acronym over the two-level rulePEMDAS and BODMAS list four operations in a row, which reads as if multiplication precedes division and addition precedes subtraction. Neither is true: 8 − 3 + 2 = 7 and 24 / 4 / 2 = 3.
2
Writing the base of an exponent without its sign−3² is −9 and (−3)² is 9. When a negative number is substituted for a letter, the brackets are what carry the sign into the power, and leaving them out changes the answer rather than the appearance.
3
Losing the invisible brackets when a fraction is typed on one line(2 + 4) / (3 − 1) is 3. Typed as 2 + 4 / 3 − 1 it is 7/3, because the bar was grouping both the numerator and the denominator and nothing on the typed line does.

Check your understanding

✓
Finish when your value and a calculator's value agree on the awkward expressions, not just the easy ones.

Evaluate −6² + 24 / 3 / 2, (−6)² + 24 / (3/2), and a fraction whose numerator and denominator each contain a sum. Rewrite the whole expression after every operation and label the invisible grouping made by the fraction bar. These shapes account for nearly every arithmetic disagreement later in the path.

Note: This convention is why a polynomial can be written 3x² + 5x + 7 with no brackets at all: the exponent level binds before the multiplication level, which binds before the addition level, so the expression reads as (3 · x²) + (5 · x) + 7 without being told to. Every notation you meet later is built on top of it.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.