Skip to content

Order of operationsGo deeperabout 45 min

Why the rule is the rule

Repeated addition, the distributive property, powers, the vinculum, history and how machines read maths

Justify the order of operations: why × comes before + (repeated addition, the distributive property), why partners go left to right (negatives and reciprocals), where powers fit, the vinculum and history of brackets, expression trees, RPN and edge cases.

Start at chapter 1

In this part you’ll

  • Explain why × is done before + using repeated addition and the distributive property.
  • Explain the left-to-right rule by rewriting − as adding a negative and ÷ as multiplying by a reciprocal.
  • Place powers and the vinculum correctly in the order and simplify long multi-bracket expressions.
  • Describe how expression trees and Reverse Polish Notation represent the order of operations.
  • Reason about when rewriting steps are valid, and handle edge cases such as division by zero.

You can now use the order of operations confidently. This layer asks harder questions. Why does multiplication come before addition, and not the other way round? Why left to right for − and ÷? Where did brackets come from, and why do some old books use a bar instead? How do calculators and computers actually read an expression? And what happens at the edges: powers, fractions, the word "of", dividing by zero?

By the end you should be able to justify the rule, not just use it, and to simplify long expressions of the kind found in olympiad papers and Class 8 textbooks.

Chapter 01

Why multiplication comes before addition

Multiplication is repeated addition: 3 × 4 means 4 + 4 + 4. So the expression 2 + 3 × 4 is short for

2 + 4 + 4 + 4 = 14.

Writing 3 × 4 is a compact way of writing a sum. When you see 2 + 3 × 4, the "3 × 4" is really a bundle of three 4s. It would be strange to break the bundle open and add the 2 to just the 3 (the count of the bundle), which is what (2 + 3) × 4 does: it means five 4s.

The same goes for money: 3 × ₹12 + 2 × ₹40 is ₹12 + ₹12 + ₹12 + ₹40 + ₹40. A bill is a sum of products, and sums of products are by far the most common shape of real-world calculations. The order of operations is designed so that this common shape needs no brackets at all.

Need a different angle?
TableWhich shape needs brackets?
SituationNatural expressionBrackets needed?
Bill: 3 items at ₹12, 2 at ₹403 × 12 + 2 × 40No
Perimeter of a 7 by 5 rectangle2 × 7 + 2 × 5 (or 2 × (7 + 5))No (or yes, if written the second way)
Cricket: 4 fours, 3 sixes, 5 singles4 × 4 + 3 × 6 + 5No
Sharing a total among 4(360 + 40) ÷ 4Yes
Algebra: 3 apples and 2 bananas3a + 2b (meaning 3 × a + 2 × b)No

There is a deeper link with the distributive property:

a × (b + c) = a × b + a × c

For example, 3 × (10 + 2) = 3 × 10 + 3 × 2 = 30 + 6 = 36. The right-hand side has no brackets, and it only means the right thing because × is done before +. The order of operations and the distributive property fit together: the distributive property tells you how to remove brackets, and the order of operations tells you how to read the result.

That is also why the syllabus pairs this topic with Properties of numbers. But note: the distributive property is a property (something always true about numbers); DMAS is a convention (an agreed way of reading). DMAS stands for Division, Multiplication, Addition, Subtraction, not "distributive".

Need a different angle?

Worked example

0 / 5 steps shown

The area picture of a × (b + c)

Show with an area argument that 6 × (5 + 3) = 6 × 5 + 6 × 3.

Lab

Match each product or sum to its distributive-property rewrite, seeing how the order of operations lets the rewrite drop brackets.

Connect each expression to its distributive rewrite (both sides have the same value).

8 pairs are hiding in two mixed-up columns. Pick one from each side to join them.

Text version of this activity

A connect-the-pairs game with 8 pairs. Each left card is an expression; each right card is the same value written with the distributive property.

  • 7 × (100 − 2) ↔ 7 × 100 − 7 × 2 = 686
  • 6 × (5 + 3) ↔ 6 × 5 + 6 × 3 = 48
  • 12 × 15 ↔ 12 × 10 + 12 × 5 = 180
  • 25 × 44 ↔ 25 × 40 + 25 × 4 = 1,100
  • 9 × 99 ↔ 9 × 100 − 9 × 1 = 891
  • (20 + 3) × 4 ↔ 20 × 4 + 3 × 4 = 92
  • 15 × 7 + 15 × 3 ↔ 15 × (7 + 3) = 150
  • 8 × 26 − 8 × 6 ↔ 8 × (26 − 6) = 160

The last two go the other way: a common factor is taken out and put in front of a bracket. The rewrites without brackets work only because × is done before + and −.

Need a different angle?

Chapter 02

Why partners go left to right

In Class 7 you meet integers and fractions, and they give a beautiful explanation of the left-to-right rule.

Subtracting is adding the opposite. 10 − 3 is the same as 10 + (−3). So

10 − 3 + 2 = 10 + (−3) + 2.

Now everything is addition, and addition can be done in any order: 10 + (−3) + 2 = 10 + 2 + (−3) = 9. The only danger is forgetting that the − belongs to the 3. Going left to right is simply a safe way to keep each sign attached to its number.

Dividing is multiplying by the reciprocal. 8 ÷ 4 is the same as 8 × ¼. So

8 ÷ 4 × 2 = 8 × ¼ × 2 = 4,

in any order. The trap 8 ÷ (4 × 2) = 1 would be 8 × ¼ × ½: it has quietly turned the × 2 into × ½.

Need a different angle?
TableRewriting − as + and ÷ as ×
ExpressionRewrittenValue
10 − 3 + 210 + (−3) + 29
50 − 20 + 10 − 550 + (−20) + 10 + (−5)35
8 ÷ 4 × 28 × ¼ × 24
36 ÷ 6 ÷ 236 × ⅙ × ½3
1 ÷ 2 × 31 × ½ × 33/2 (= 1½)

Predict first

What is 1 ÷ 2 × 4 using the standard convention?

Chapter 03

Powers: the next level up

Just as multiplication is repeated addition, a power (also called an index or exponent) is repeated multiplication: 3² = 3 × 3 = 9 and 2³ = 2 × 2 × 2 = 8. You will study powers properly in Class 7 and 8, but they fit neatly into the order of operations.

By the same logic as before, a power is a compact bundle of multiplications, so it binds even more tightly than ×. The full order is:

  1. Brackets
  2. Powers (the I in BIDMAS, the E in PEMDAS; some Indian books fold this into the O of BODMAS as "orders")
  3. × and ÷, left to right
    • and −, left to right
  • 2 + 3² = 2 + 9 = 11, but (2 + 3)² = 5² = 25.
  • 2 × 3² = 2 × 9 = 18, but (2 × 3)² = 6² = 36.
  • 10 − 2³ = 10 − 8 = 2.
TablePowers inside expressions
ExpressionPower firstValue
2 + 3²2 + 911
(2 + 3)²25
2 × 3²2 × 918
(2 × 3)²36
4² − 3²16 − 97
(4 − 3)²1
5 × 2³ ÷ 45 × 8 ÷ 410

Try it

Chapter 04

The vinculum and a short history of brackets

Before round brackets became common, mathematicians grouped things with a horizontal line drawn over them, called a vinculum (Latin for "bond" or "chain"). A line over 5 − 2 meant exactly what (5 − 2) means today.

Some Indian textbooks still include the vinculum in "simplify" questions, and call it the bar. The full BODMAS-style order in those books is: bar first, then ( ), then { }, then [ ], then of, ÷, ×, +, −. Since the bar is always the innermost grouping, this is just "innermost first" again.

The vinculum is not extinct. You use it every day in two disguises:

  • The fraction bar: in a stacked fraction with 6 + 4 on top and 2 below, the bar groups the whole top, so it means (6 + 4) ÷ 2 = 5, not 6 + 4 ÷ 2 = 8.
  • The square-root sign: the line that stretches over the numbers in √(16 + 9) is a vinculum, so it means √25 = 5, not √16 + 9 = 13.
Need a different angle?

Worked example

0 / 5 steps shown

A textbook-style "bar" question

Simplify: 40 − [10 + {12 − (8 − bar over 5 − 2)}] where the bar sits over 5 − 2.

How grouping symbols came to be

  1. 1484
    A line under the group Nicolas Chuquet, in Le Triparty en la Science des Nombres, draws a bar under the parts that belong together. Historians of notation record this as the earliest grouping symbol of any kind.
  2. c. 1550
    Square brackets Square brackets [ ] appear in the manuscript of Rafael Bombelli’s Algebra (the book itself was printed in 1572).
  3. 1556
    Round brackets appear Round parentheses are found in Niccolò Tartaglia’s printed arithmetic General trattato di numeri e misure in Italy — the earliest printed work in which Cajori names them.
  4. 1593
    Braces join in Braces { } and square brackets are both used in the 1593 edition of François Viète’s Zetetica. (Books often credit Viète with the overbar too, but that attribution is doubted.)
  5. 1646
    The bar moves on top Frans van Schooten, editing Viète’s collected works, throws the parentheses away and puts a horizontal bar above the grouped parts. This overbar is the vinculum you still meet in Indian textbooks.
  6. 1700s
    Brackets win Parentheses are only rarely found in printed mathematics before the eighteenth century; the vinculum was used far more. Through the 1700s brackets steadily take over, partly because a bar over the text is awkward to typeset.
  7. 1800s–1900s
    Rules written down School textbooks spell out the order of operations explicitly as arithmetic is taught to millions of children.
  8. 1900s
    Memory words Mnemonics like PEMDAS (USA) and BODMAS (UK, India) become common in school teaching.
  9. 1970s on
    Machines join in Scientific calculators and programming languages build the order of operations into their design.

Chapter 05

Long expressions, handled calmly

Olympiad and Class 8 questions often give long expressions with every feature at once. The method never changes:

  1. Scan the whole expression. Mark every bracket pair and match them up.
  2. Innermost first. Inside each bracket, use the normal order.
  3. One step per line, rewriting the whole expression each time (you can copy the parts that did not change).
  4. Look for shortcuts before grinding: the distributive property, cancelling, or noticing a factor of 0.
  5. Check with an estimate or a second method.

Worked example

0 / 5 steps shown

Everything at once

Simplify [84 ÷ {3 × (9 − 2)} + 5] × (18 − 4 × 4) − 6 ÷ 3.

Worked example

0 / 5 steps shown

Spot the shortcut

Simplify 37 × 64 + 37 × 36 − (125 − 5 × 25) × 999.

Worked example

0 / 5 steps shown

A BODMAS question with "of"

Simplify 3 of 12 ÷ 4 + [60 − {6 × (7 − 3)}] ÷ 9, doing "of" before ÷ and ×.

Lab

Reduce long, olympiad-style expressions with several layers of brackets, one step at a time.

  1. Brackets first. Innermost first: ( ) before [ ].
  2. × and ÷ are equal partners: do them left to right.
  3. + and − are equal partners: do them left to right.

BODMAS or DMAS is just a memory aid. D doesn’t beat M, and A doesn’t beat S. They take turns from left to right.

Expression 1 of 8: tap the operation to do next, or tap an opening bracket.

[84[392)]5]1844)63
Text version of this activity

Eight long expressions (curly brackets are written as square brackets, since the game uses ( ) and [ ] only). Their values:

  • [84 ÷ [3 × (9 − 2)] + 5] × (18 − 4 × 4) − 6 ÷ 3 = 16
  • 37 × 64 + 37 × 36 − (125 − 5 × 25) × 999 = 3,700
  • [60 − [6 × (7 − 3)]] ÷ 9 + 36 ÷ 4 = 13
  • (144 ÷ 12 − 2 × 3) × [5 + 45 ÷ (4 + 5)] = 60
  • [(17 − 5) × (13 − 8) − 10] ÷ [2 × (9 − 4)] = 5
  • 1,000 − [250 ÷ 5 × 4 + 3 × (60 − 5 × 11)] = 785
  • 48 ÷ [2 × (3 + 5)] × [7 × 8 − 6 × 9] = 6
  • 99 − 9 × [9 − (9 − 9 ÷ 9)] = 90

One in full: 99 − 9 × [9 − (9 − 9 ÷ 9)] = 99 − 9 × [9 − (9 − 1)] = 99 − 9 × [9 − 8] = 99 − 9 × 1 = 99 − 9 = 90. In the second, the bracket (125 − 5 × 25) is 0, so the 999 term vanishes.

Need a different angle?

Try it

Chapter 06

How machines read expressions

A computer cannot "see" an expression the way you do. It turns it into a structure called an expression tree. The operation done last sits at the top; each operation has two branches for the two things it combines.

For 2 + 3 × 4:

  • The top of the tree is + (it is done last).
  • Its left branch is 2.
  • Its right branch is ×, which has branches 3 and 4.

For (2 + 3) × 4 the tree is different: × at the top, with branches (+ with 2 and 3) and 4.

Working out the tree from the bottom up is exactly the order of operations. Brackets and the precedence rules are just a way of writing a tree in a single line. That is why the same expression must always give the same tree: otherwise two computers could get different answers.

TableReading an expression as a tree
ExpressionDone last (top of tree)Left branchRight branch
2 + 3 × 4+23 × 4
(2 + 3) × 4×2 + 34
10 − 3 + 2+ (the rightmost)10 − 32
8 ÷ 4 × 2× (the rightmost)8 ÷ 42
5 × 2 + 3 × 4+5 × 23 × 4

In the 1920s the Polish logician Jan Łukasiewicz showed that if you write each operation before its two numbers (now called Polish notation), you need no brackets and no precedence rules at all. In the 1950s computer scientists turned it around, putting the operation after its two numbers. This is Reverse Polish Notation (RPN), or postfix:

  • 2 + 3 × 4 becomes 2 3 4 × +
  • (2 + 3) × 4 becomes 2 3 + 4 ×

To evaluate RPN, read left to right with a stack (a pile of numbers): push numbers onto the pile; when you meet an operation, take the top two numbers, combine them, and push the result back.

For 2 3 4 × +: pile 2; pile 2, 3; pile 2, 3, 4; × takes 3 and 4 → pile 2, 12; + takes 2 and 12 → 14.

Famous scientific calculators made by Hewlett-Packard used RPN, and computers still use stacks like this inside them to evaluate expressions.

Lab

Translate between bracket-free Reverse Polish Notation and ordinary expressions, to see that precedence is really about tree shape.

Connect each Reverse Polish (postfix) expression to the ordinary expression it means.

6 pairs are hiding in two mixed-up columns. Pick one from each side to join them.

Text version of this activity

A connect-the-pairs game with 6 pairs:

  • 2 3 4 × + ↔ 2 + 3 × 4 = 14
  • 2 3 + 4 × ↔ (2 + 3) × 4 = 20
  • 10 3 − 2 + ↔ 10 − 3 + 2 = 9
  • 8 4 ÷ 2 × ↔ 8 ÷ 4 × 2 = 4
  • 7 2 − 1 3 + × ↔ (7 − 2) × (1 + 3) = 20
  • 20 12 4 ÷ − ↔ 20 − 12 ÷ 4 = 17

In postfix, each operation acts on the two most recent results, so no brackets or precedence rules are needed. The ordinary forms need brackets exactly when the tree has a + or − below a × or ÷.

Need a different angle?

Try it

Chapter 07

Reasoning with expressions

Knowing the rule lets you prove things about numbers, not just compute. A few examples:

Claim: for any numbers, a − (b − c) = a − b + c. Reason: taking away (b − c) means taking away b, which is c too much (you only needed to take away b − c), so give c back: a − b + c.

Claim: 9 × n + n = 10 × n for every n. Reason: 9 × n + n = 9 × n + 1 × n = (9 + 1) × n = 10 × n, by the distributive property. (Try it: 9 × 7 + 7 = 63 + 7 = 70.)

Claim: the expressions (a + b) × c and a + b × c are equal only if a = 0 or c = 1. Reason: (a + b) × c = a × c + b × c. Setting it equal to a + b × c gives a × c = a, which forces a = 0 or c = 1.

In each case, the order of operations tells us exactly what the expression means, and properties of numbers do the rest.

Lab

Judge whether each algebra-style rewriting step is always valid, using the order of operations and number properties.

Is each rewriting step valid for every number, or is it a mistake? Sort the cards.

12 cards, 2 bins. Tap a card, then tap its bin. You can also drag, or press a bin’s number key.

Text version of this activity

A sorting game with 12 rewriting steps and two bins.

Valid: 7 × (a + 3) → 7 × a + 21; 50 − (a + 8) → 50 − a − 8; a × b + a × c → a × (b + c); a ÷ (b × c) → a ÷ b ÷ c; a − b + c → a + c − b; 2 × a × 3 → 6 × a.

Invalid: 7 × (a + 3) → 7 × a + 3 (the 7 must multiply the 3 too); 50 − (a − 8) → 50 − a − 8 (should be + 8); (a + b)² → a² + b² (missing 2 × a × b); a ÷ b × c → a ÷ (b × c) (left to right gives (a ÷ b) × c); a − b + c → a − (b + c); 2 + a × 3 → (2 + a) × 3.

A quick test with small numbers catches every invalid step.

Need a different angle?

Try it

Which argument correctly shows that 99 × n + n = 100 × n for every n?

Chapter 08

How few brackets do you need?

The order of operations exists to save brackets. So here is a good test of understanding: given a fully bracketed expression, remove every bracket you can without changing the value for any numbers.

Rules of thumb that follow from the convention:

  • Brackets around a × or ÷ chunk that is being added or subtracted can go: (a × b) + c → a × b + c.
  • Brackets on the left of a partner chain can go, because left to right does them first anyway: (a − b) + c → a − b + c, and (a ÷ b) × c → a ÷ b × c.
  • Brackets on the right of a − or ÷ must stay (unless you flip signs): a − (b + c) and a ÷ (b × c) need them.
  • Brackets around a + or − that is then multiplied or divided must stay: (a + b) × c.
  • Brackets around a whole sum that is added can go: a + (b + c) → a + b + c, because addition is associative.
TableRemoving unnecessary brackets
Fully bracketedFewest bracketsValue
((2 + 3) × 4) − 1(2 + 3) × 4 − 119
(2 + (3 × 4)) − 12 + 3 × 4 − 113
(12 ÷ 4) × 312 ÷ 4 × 39
12 ÷ (4 × 3)12 ÷ (4 × 3) (must stay)1
(20 − 5) − (3 + 2)20 − 5 − (3 + 2)10
(6 × 5) + (8 ÷ 2)6 × 5 + 8 ÷ 234
9 + (4 + 7)9 + 4 + 720

Predict first

Which brackets in (a − b) − (c − d) can be removed without changing the value for any numbers?

Try it

Chapter 09

The same rule with fractions and decimals

The order of operations does not care what kind of numbers you use. Fractions, decimals and (later) negative numbers obey exactly the same levels. What changes is that the arithmetic inside each step is harder, so mistakes in the order are easier to miss.

  • ½ + ⅓ × 6 = ½ + 2 = . (× first: ⅓ × 6 = 2.) Reading left to right would give (½ + ⅓) × 6 = ⅚ × 6 = 5.
  • 0.5 × 4 + 1.5 = 2 + 1.5 = 3.5.
  • 2.4 ÷ 0.6 × 2 = 4 × 2 = 8 (left to right), not 2.4 ÷ 1.2 = 2.
  • ¾ of (20 − 4) = ¾ × 16 = 12.

With fractions, the "of" and the fraction bar often do the bracketing for you: in a stacked fraction such as (3 + 5) over (6 − 2), the bar says: work out the whole top, work out the whole bottom, then divide: 8 ÷ 4 = 2.

Worked example

0 / 5 steps shown

A fraction expression, step by step

Simplify ⅔ × 9 − 1½ ÷ ¾ + ⅚.

Worked example

0 / 4 steps shown

A shopping bill with decimals

Petrol costs ₹104.50 a litre. A scooter rider buys 4 litres and pays with ₹500, then buys a ₹12.50 snack with the change. How much money is left?

Try it

What is ½ + ¼ × 8 − ⅓ × 3?

Try it

Chapter 10

Formulas: expressions with letters

In Class 6 and 7 you start writing rules with letters, called formulas. A formula is an expression waiting for numbers. The order of operations is what lets a formula be written without dozens of brackets.

An app-cab company charges ₹50 to start, ₹12 per km after the first 2 km, and ₹2 per minute:

fare = 50 + 12 × (d − 2) + 2 × t, where d is the distance in km and t the time in minutes.

For a 10 km, 25-minute ride: substitute d = 10 and t = 25, putting each number where its letter was:

50 + 12 × (10 − 2) + 2 × 25 = 50 + 12 × 8 + 50 = 50 + 96 + 50 = ₹196.

Notice the bracket (d − 2): without it, 12 × d − 2 would charge for every km and then take off just ₹2.

TableEveryday formulas and the order they hide
FormulaWhere it is usedExampleValue
P = 2 × (l + b)Perimeter of a rectanglel = 12 m, b = 7 m38 m
A = l × b − s × sGarden area minus a square pondl = 20, b = 15, s = 4284 m²
C = 50 + 12 × (d − 2) + 2 × tCab fared = 10, t = 25₹196
S = runs × 100 ÷ ballsStrike rate63 runs, 42 balls150
M = (a + b + c) ÷ 3Mean of three marks68, 75, 8275
F = 9 × C ÷ 5 + 32Celsius to FahrenheitC = 35 (a hot day)95 °F
B = u × r + fElectricity bill250 units at ₹6, ₹120 fixed charge₹1,620

Worked example

0 / 5 steps shown

Why the temperature formula works in any order

Convert 35 °C to Fahrenheit using F = 9 × C ÷ 5 + 32, and check that 9 ÷ 5 × C + 32 gives the same.

Try it

Try it

Explore

The levels of the order of operations

Choose a level to see what belongs there and how it is handled.

  1. Bar (vinculum)
  2. ( )
  3. { }
  4. [ ]
  5. Fraction bar, √ bar

Innermost first

Anything that groups: brackets of every shape, the vinculum, the bar of a fraction and the bar of a square root. Work from the innermost group outwards. Inside each group, all the other levels apply in order.

Chapter 11

Negative numbers and the minus sign

In Class 7 you meet integers, and the − sign starts doing two jobs: subtract and negative. The order of operations still works, but you must read each − carefully.

  • 5 − 8 + 4: left to right, 5 − 8 = −3, then −3 + 4 = 1. (Or reorder: 5 + 4 − 8 = 1.)
  • −2 × 3 + 10: the −2 is a negative number. −2 × 3 = −6, then −6 + 10 = 4.
  • 10 − (−3): subtracting a negative is adding: 10 + 3 = 13.
  • −3²: by the usual convention the power is done first, then the negative: −(3²) = −9. If you mean negative three, squared, write (−3)² = 9.
  • 20 ÷ (−4) × 2: left to right, −5 × 2 = −10.

Worked example

0 / 4 steps shown

Temperatures in Leh

In winter, Leh records these night temperatures over 4 nights: −12 °C, −8 °C, −15 °C, −5 °C. Find the mean, using (sum) ÷ (count).

Try it

Predict first

A student types -4^2 into a spreadsheet and gets 16, but her textbook says −4² = −16. Who is right?

Chapter 12

Edge cases

A good rule should say what happens in awkward corners.

  • Dividing by zero. 12 ÷ (5 − 5) = 12 ÷ 0 has no value: no number times 0 gives 12. An expression that needs division by 0 is undefined, however it is bracketed.
  • Zero divided by something. 0 ÷ 7 = 0 is perfectly fine.
  • Non-whole results. In whole-number arithmetic, 7 + 5 ÷ 2 gives 7 + 2½ = 9½. The order of operations still works; the answer just is not whole.
  • Negative results along the way. 3 − 5 + 4 = −2 + 4 = 2. With integers (Class 7) nothing breaks; if you only know whole numbers, you can reorder as 3 + 4 − 5 = 2.
  • Unary minus. In −3 + 5, the − is not "subtract": it means negative three. The value is 2.
  • Very long chains of the same operation. 2 − 2 − 2 − 2 = −4 by left to right; 64 ÷ 4 ÷ 4 ÷ 4 = 1.

Reflect

This stays on this page only. It isn’t saved or sent anywhere.

Chapter 13

Words, check-up and summary

Deeper vocabulary

Repeated addition
Multiplication as adding equal groups: 3 × 4 = 4 + 4 + 4.
Distributive property
a × (b + c) = a × b + a × c. Multiplication distributes over addition (and subtraction).
Example: 7 × 98 = 7 × 100 − 7 × 2
Power / index / exponent
Repeated multiplication. In 2³, 2 is the base and 3 is the index.
Example: 2³ = 2 × 2 × 2 = 8
Reciprocal
The number that multiplies to give 1. Dividing by a number is multiplying by its reciprocal.
Example: The reciprocal of 4 is ¼.
Vinculum
A horizontal bar used to group terms. Survives as the fraction bar and in the square-root sign.
Obelus
The ÷ sign.
Expression tree
A diagram of an expression with the last operation at the top and each operation branching to what it combines.
Left-associative
Repeated operations of the same level group from the left: a − b − c = (a − b) − c.
Reverse Polish Notation (RPN)
Postfix notation: operations come after their two numbers. Needs no brackets.
Example: 2 3 4 × + means 2 + 3 × 4
Stack
A pile where you can only add or take from the top. Used to evaluate RPN.
Undefined
Having no value, like any division by 0.
Example: 12 ÷ (5 − 5)
Unary minus
A minus sign that makes a number negative rather than subtracting.
Example: −3 + 5 = 2

Quick check

Reasoning check-up

10 questions · answer what you can, then check. Getting one wrong is useful.

  1. Q1Why is 2 + 3 × 4 read as 2 + (3 × 4)?
  2. Q2Which uses the distributive property correctly?
  3. Q3Rewrite 20 − 6 + 4 using only addition.
  4. Q4What is 2 × 3²?
  5. Q5A vinculum over 7 − 4 means…
  6. Q6In Reverse Polish Notation, what does 5 1 + 2 × mean?
  7. Q7What is 37 × 64 + 37 × 36?
  8. Q8What is 18 ÷ (6 − 6)?
  9. Q9Which statement about (a + b)² is always true?
  10. Q10Where is the + in the expression tree of 10 − 3 + 2?

Keep this

Cheat sheet

  • × before + because multiplication is repeated addition: 2 + 3 × 4 = 2 + 4 + 4 + 4. Sums of products (bills, 3x + 2y) then need no brackets.
  • Distributive property: a × (b + c) = a × b + a × c. It removes brackets; the order of operations reads the result. It is a property, not a DMAS letter.
  • Left to right because − is + a negative and ÷ is × a reciprocal: 10 − 3 + 2 = 10 + (−3) + 2; 8 ÷ 4 × 2 = 8 × ¼ × 2.
  • Powers bind tighter than ×: 2 × 3² = 18, (2 × 3)² = 36. (a + b)² ≠ a² + b².
  • Full order: brackets (innermost; the bar first) → powers → of → × ÷ left to right → + − left to right.
  • Vinculum: an overbar used as a bracket; lives on as the fraction bar and the square-root sign.
  • History: brackets spread from the 1500s–1700s; the rule grew with algebra; mnemonics are 20th-century.
  • Machines: expressions become trees (last operation on top). RPN (2 3 4 × +) needs no brackets; stacks evaluate it.
  • Edge cases: division by 0 is undefined; 0 ÷ 7 = 0; non-whole and negative results are fine.
  • Long expressions: scan, innermost first, one step per line, look for shortcuts (a zero factor, a common factor).

Helps you understand

Properties of numbers

The distributive, associative and commutative properties explain why the order of operations is the way it is.

Related to

Number and shape patterns

Expressions like 9 × n + n = 10 × n describe number patterns; the order of operations makes each rule unambiguous.

Used in

Prime and composite numbers

Prime factorisations like 2³ × 3 × 5 = 120 are expressions whose value depends on doing powers before ×.

Used in

Electricity

Formulas such as power = current² × resistance, or costs = units × tariff + fixed charge, rely on the same order.

Where this comes from

Sources

  • Order of operations (opens another website) — Wikipediaawaiting owner check

    Supports the conventional order, the PEMDAS/BODMAS/BIDMAS/BEDMAS mnemonics, implied multiplication and the 8 ÷ 2(2 + 2) controversy, the TI-82 / TI-83 split over 1/2x, and the note that Excel reads −3² as (−3)² and evaluates a^b^c left to right.

  • Earliest Uses of Grouping Symbols (opens another website) — Jeff Miller, Earliest Uses of Various Mathematical Symbols (MacTutor, St Andrews)awaiting owner check

    Supports the history of grouping symbols, after Cajori: Chuquet's bar under the grouped parts (1484), parentheses in Tartaglia (1556), brackets in Bombelli's manuscript Algebra (c. 1550), braces in Viète's 1593 Zetetica, van Schooten's bar above (1646), and that "Girard, 1629" is inaccurate.

  • Vinculum (symbol) (opens another website) — Wikipediaawaiting owner check

    Supports the vinculum as a bar whose former main use was grouping, that parentheses are rarely found in mathematical literature before the eighteenth century while the vinculum was used extensively, and its survival in the fraction bar, radical sign and repeating-decimal bar.

  • Ganita Prakash, Mathematics textbook for Grade 7, Part 1 — Chapter 2: Arithmetic Expressions (opens another website) — NCERTawaiting owner check

    Supports the Indian school treatment of arithmetic expressions: the value of an expression, comparing expressions, brackets deciding the order, terms (parts separated by +), and writing expressions for shopping-style word problems.

  • Order of Operations – BODMAS (opens another website) — Math is Funawaiting owner check

    Supports the BODMAS mnemonic and the rule that Divide and Multiply rank equally and go left to right (likewise Add and Subtract), with worked examples. Note: this page reads the O as "Orders" (powers and roots), not as "of".

  • Calculation operators and precedence in Excel (opens another website) — Microsoft Supportawaiting owner check

    Supports Excel's published operator precedence: negation ranks above exponentiation (so =-3^2 is (−3)² = 9) and operators of equal precedence, ^ included, are evaluated left to right (so =2^3^2 is (2³)² = 64).

End of Go deeper

What you just read

  • Explain why × is done before + using repeated addition and the distributive property.
  • Explain the left-to-right rule by rewriting − as adding a negative and ÷ as multiplying by a reciprocal.
  • Place powers and the vinculum correctly in the order and simplify long multi-bracket expressions.
  • Describe how expression trees and Reverse Polish Notation represent the order of operations.
  • Reason about when rewriting steps are valid, and handle edge cases such as division by zero.

The web

Explore a connection

  • Builds on

    Properties of numbers

    The distributive property explains why multiplication is done before addition and how brackets change a result.

  • Builds on

    Four operations

    Once each operation is reliable, the next question is which one to do first when several appear together.

  • Related to

    Number and shape patterns

    A pattern rule such as 3 × n + 1 is an expression — you need the order of operations to use it.

Want to save topics or ask for new ones? Invited families can connect a learning device. Everything here stays free to read without signing in.

Revision 1 · release preview-7e1cbbcc4f · accepted 20/09/2026