See How Things Work

The order of operations as a convention

Unit
Order of Operations
Part
1. Order of Operations
Lesson
1.3

Writing grouping symbols around every step is clear but heavy, so mathematicians agree on a rule for reading expressions without them: multiplications and divisions first, then additions and subtractions, each from left to right. This lesson states that rule, explains why it was chosen, proves where reading from left to right makes a difference, and shows where people have disagreed.

A rule for reading expressions

Lesson 1.2 (“Parentheses and grouping symbols”) showed that a fully grouped expression has one value. But full grouping is heavy: 3 × 100 + 4 × 10 + 7 would have to be written [(3 × 100) + (4 × 10)] + 7. The same expression should give the same result for everyone, so mathematicians established guidelines, called the order of operations, that say in which order the parts of an expression are simplified.⁠[1][2] A rule of this kind, which decides the order in which the operations of an expression are applied, is also called precedence.⁠[3]

Definition (The order of operations).

An expression built from whole numbers, the four operations and grouping symbols is evaluated in this order:

  1. Work out the inside of the grouping symbols first, starting with the innermost pair.
  2. Then do all multiplications and divisions, in the order they appear from left to right.
  3. Then do all additions and subtractions, in the order they appear from left to right.

Inside each group, the same rules 2 and 3 decide the order.⁠[4][5][6][7]

1. Grouping symbols
Work out the inside of each pair first, innermost first.
2. × and ÷, left to right
Multiplications and divisions have equal priority: do them in the order they appear, from left to right.
3. + and −, left to right
Additions and subtractions have equal priority: do them in the order they appear, from left to right.
Figure. The order of operations for expressions built from whole numbers with +, −, × and ÷. Each level is finished, inside the current group, before the next level starts. Powers, studied later, get a level of their own between 1 and 2.⁠[8]
Convention.

The order of operations is a convention: an agreement about how to read the symbols, not a fact that could be proved.⁠[9] Nothing in the meaning of + or × forces it. A different agreement would be just as consistent; this one is used because it is convenient, for the reasons in Section 2. Lesson 1.1 (“Expressions with several operations”) proved facts about the different orders; the convention only chooses one of them.

Looking ahead.

The full rule has one more level, for powers, between the grouping symbols and the multiplications.⁠[8] Powers are introduced in the unit Powers & Square Roots, whose lesson Exponents in the order of operations adds that level.

Theorem .

Under the order of operations, every expression built from whole numbers, the four operations and grouping symbols has exactly one value, or no whole-number value at all.

Proof.

Inside a group that contains no further grouping symbols, the rule names exactly one operation to do next: the leftmost × or ÷ if there is one, and otherwise the leftmost + or −. Doing it and repeating, the group is reduced to one number in a fixed sequence of steps. That sequence is the same as one particular full grouping of the group, so reading by the convention amounts to inserting grouping symbols. With all groups treated in this way, the expression becomes a fully grouped expression, and by the Theorem of lesson 1.2 such an expression has exactly one value or none, whatever order its separate groups are worked out in.

For example, the convention reads 2 + 3 × 4 as 2 + (3 × 4), and 20 − 6 ÷ 2 + 1 as [20 − (6 ÷ 2)] + 1. Once the rule is agreed, an expression such as 2 + 3 × 4 is no longer ambiguous.⁠[10]

Example (One multiplication).

Evaluate 2 + 3 × 4.

  1. No grouping symbols. There is a multiplication, so it comes first: 3 × 4 = 12. The row becomes 2 + 12.
  2. Then the addition: 2 + 12 = 14.

Answer: 14. Lesson 1.1 found 14 and 20 for the two orders; the convention picks 14.

Example (Every level).

Evaluate 30 − 12 ÷ 4 × 2 + 1.

  1. Multiplications and divisions, from the left: first 12 ÷ 4 = 3, giving 30 − 3 × 2 + 1.
  2. The next one is 3 × 2 = 6, giving 30 − 6 + 1.
  3. Additions and subtractions, from the left: 30 − 6 = 24, giving 24 + 1.
  4. Then 24 + 1 = 25.

Answer: 25. With full grouping, the convention’s reading is {30 − [(12 ÷ 4) × 2]} + 1.

Why multiplication comes first

By convention, multiplications are performed before additions unless parentheses are used.⁠[11] One reason is the general principle behind precedence: “higher-level” operations are performed first, or “bind more tightly”.⁠[12] Multiplication is built from addition, as repeated addition (Multiplication 1.1), so it is the higher-level operation.

The practical reason is that sums of products are everywhere, and the convention lets them be written without parentheses. The mathematician H. Wu writes: “It seems natural, for example, that students be allowed to write 15 + 6 × 21 in place of 15 + (6 × 21).”⁠[13] A number in expanded form, such as 3 × 100 + 4 × 10 + 7 (Addition 1.7), is a sum of products; so is a bill for 3 notebooks at 4 dollars each and a pen at 2 dollars, 3 × 4 + 2. In algebra, long expressions keep a simple form precisely because of a common agreement of this kind.⁠[14]

3 × 4 + 2 = 12 + 2 = 143 rows of 42 more
Figure. 3 rows of 4 counters and 2 more: 3 × 4 + 2 counters. The rows form the product 3 × 4 = 12, and the 2 extra counters are added to it, so the total is 14. Doing the multiplication first matches this picture without any parentheses.
Reason.

The opposite agreement, additions first, would also give every expression one value. But then 3 × 4 + 2 would mean 3 × 6 = 18, and every sum of products would need parentheses. No convention is beyond question;⁠[15] this one is kept because it matches the most common kind of expression.

Example (A bill).

Three notebooks cost 4 dollars each and a pen costs 2 dollars. Write the total as one expression and evaluate it.

  1. The notebooks cost 3 × 4 dollars and the pen 2 dollars, so the total is 3 × 4 + 2.
  2. Multiplication first: 3 × 4 = 12. Then 12 + 2 = 14.

Answer: 14 dollars. The convention reads the expression the way the bill is built, without parentheses.

Example (Edge cases with 0).

Evaluate 7 × 0 + 5 and 5 + 0 × 7.

  1. 7 × 0 + 5: multiplication first, 7 × 0 = 0; then 0 + 5 = 5.
  2. 5 + 0 × 7: multiplication first, 0 × 7 = 0; then 5 + 0 = 5.
  3. Working 5 + 0 × 7 from left to right instead would give (5 + 0) × 7 = 35, a different number.

Answer: both are 5. A product with a factor 0 is 0, and adding 0 changes nothing (Addition 1.4).

Equal priority: left to right

Multiplication and division have equal priority, and so do addition and subtraction.⁠[16] Division has no precedence over multiplication, nor multiplication over division; addition has no precedence over subtraction, nor subtraction over addition.⁠[17][18] Multiplication is not always done before division, or division before multiplication: they are done in order from left to right.⁠[19] The unit Subtraction already used this rule for additions and subtractions (Subtraction 1.6).

The rule matters only for subtraction and division. The next proposition says exactly when.

Proposition .

Let a, b and c be whole numbers.

  1. In a row of additions only, or of multiplications only, every order of the steps gives the same value.
  2. If (a − b) + c and a − (b + c) both have whole-number values, they are equal exactly when c = 0.
  3. If (a ÷ b) × c and a ÷ (b × c) both have whole-number values, they are equal exactly when a = 0 or c = 1.
Proof.

(1) is the Proposition of Section 3 of lesson 1.1.

(2) Let d = a − b. Then (a − b) + c = d + c, which is at least d. And a − (b + c) = (a − b) − c = d − c (Subtraction 1.4), which is at most d. If they are equal, both equal d; and d + c = d only when c = 0 (Addition 1.4). Conversely, if c = 0 both are d.

(3) Let q = a ÷ b and r = a ÷ (b × c), so that q × b = a and r × (b × c) = a, with b ≠ 0 and c ≠ 0 (Division 1.2). By the associative and commutative properties of multiplication (Multiplication 1.6, 1.5), r × (b × c) = (r × c) × b. So (r × c) × b = q × b, and since b ≠ 0 the quotient is unique (Division 1.2): r × c = q. The two expressions are q × c = (r × c) × c and r. If c = 1, both are r. If a = 0, then r = 0, and both are 0. Otherwise r ≥ 1 and c ≥ 2, so r × c is at least r + r, and (r × c) × c is larger still, more than r. So they are equal exactly when a = 0 or c = 1.

Example (Additions and subtractions).

Evaluate 30 − 10 + 5.

  1. Both operations have equal priority, so from the left: 30 − 10 = 20, then 20 + 5 = 25.
  2. Adding first would compute 30 − (10 + 5) = 15, a different expression. By part (2), the two differ because c = 5 ≠ 0.

Answer: 25.

Example (Divisions and multiplications).

Evaluate 48 ÷ 6 × 2.

  1. Equal priority, so from the left: 48 ÷ 6 = 8, then 8 × 2 = 16.
  2. Multiplying first would compute 48 ÷ (6 × 2) = 48 ÷ 12 = 4. By part (3), the two differ because a = 48 ≠ 0 and c = 2 ≠ 1.

Answer: 16.

Example (A common mistake: “M before D”).

Someone evaluates 36 ÷ 4 × 3 by multiplying first, because “multiplication comes before division”, and gets 36 ÷ 12 = 3. Correct it.

  1. Multiplication and division have equal priority; neither comes first by itself.
  2. From the left: 36 ÷ 4 = 9, then 9 × 3 = 27.

Answer: 36 ÷ 4 × 3 = 27, not 3.

Game

Follow the convention

Round
1
Score
0
Streak
0

Work out this row by the order of operations. Tap the operation that comes next, then press Check. Repeat until one number is left.

26396

Where conventions differ

Short memory aids for the rule vary from country to country: PEMDAS in the United States,⁠[20] remembered as “Please Excuse My Dear Aunt Sally”,⁠[21] BODMAS in the United Kingdom and BEDMAS in Canada.⁠[22] The letters stand for parentheses (or brackets), exponents (or orders), multiplication, division, addition and subtraction.⁠[21][22] The aid has a trap: M before D seems to say that multiplication comes before division, and A before S that addition comes before subtraction, though each pair has the same precedence.⁠[16] In BODMAS, D even comes before M.

The trap is a real disagreement in disguise. In 6 ÷ 2 × 3, the rule used today works from left to right: (6 ÷ 2) × 3 = 3 × 3 = 9.⁠[19] Doing the multiplication first would give 6 ÷ (2 × 3) = 6 ÷ 6 = 1. The historian Florian Cajori reported in his history of mathematical notations, first published in 1928–1929, that there was then no agreement on which of ÷ and × is done first.⁠[23] His example was 24 ÷ 4 × 2: 12 from left to right, but 3 if the × is done first.⁠[24] Some textbooks did multiplications and divisions in the order they occur; others did all multiplications first and then the divisions.⁠[25]

24 ÷ 4 × 2left to right× first6 × 224 ÷ 8then ×then ÷123
Figure. The expression 24 ÷ 4 × 2 read in two ways. From left to right, the rule used today, it is (24 ÷ 4) × 2 = 12. If the multiplication is done first, it becomes 24 ÷ (4 × 2) = 3, a rule some textbooks once followed.⁠[19][24][25]

Cajori also quoted the advice that it is best to avoid such expressions, and an English committee recommended brackets to avoid the ambiguity.⁠[24][26] Modern textbooks state the left-to-right rule for the four operations,⁠[17][19] but beyond simple expressions the order of operations still depends on the system.⁠[27] The safe practice follows: the convention should be applied with judgment and never at the expense of clarity.⁠[28] When an expression mixes ÷ and ×, writing (6 ÷ 2) × 3 costs two symbols and removes every doubt.

Example (Reading 6 ÷ 2 × 3).

Evaluate 6 ÷ 2 × 3 by the order of operations, and write it so that no reader can misread it.

  1. ÷ and × have equal priority, so from the left: 6 ÷ 2 = 3, then 3 × 3 = 9.
  2. The unmistakable form is (6 ÷ 2) × 3. If 1 was meant, the writer must write 6 ÷ (2 × 3).

Answer: 9, written clearly as (6 ÷ 2) × 3.

Historical note.

The order of operations is not the only possible solution. In prefix notation, also called Polish notation, each operation is written before its two parts, and an expression is unambiguous without any parentheses.⁠[29] Its mirror image, reverse Polish notation, was used extensively in electronic calculators in the 1970s and 1980s.⁠[30] The history of the signs ÷ and × themselves is told in the lesson “Signs for multiplication and division”.

Lesson 1.4 (“Evaluating multi-step expressions”) puts grouping symbols and the convention together.

Exercises

Exercise .

Evaluate 7 + 6 × 5 and 7 × 6 + 5.

▸ Show solution

7 + 6 × 5 = 7 + 30 = 37, and 7 × 6 + 5 = 42 + 5 = 47. In both, the multiplication is done first.

Exercise .

Evaluate 40 − 15 + 5 and 40 − (15 + 5).

▸ Show solution

40 − 15 + 5: from the left, 40 − 15 = 25, then 25 + 5 = 30. 40 − (15 + 5) = 40 − 20 = 20. They differ, as part (2) of the Proposition predicts for c = 5 ≠ 0.

Exercise .

Evaluate 72 ÷ 8 × 3 and 72 ÷ (8 × 3).

▸ Show solution

72 ÷ 8 × 3: from the left, 72 ÷ 8 = 9, then 9 × 3 = 27. 72 ÷ (8 × 3) = 72 ÷ 24 = 3.

Exercise .

Write 50 − 18 ÷ 3 × 2 + 4 as a fully grouped expression that shows how the convention reads it, and evaluate it.

▸ Show solution

The convention’s reading is {50 − [(18 ÷ 3) × 2]} + 4: first 18 ÷ 3 = 6, then 6 × 2 = 12, then 50 − 12 = 38, then 38 + 4 = 42.

Exercise .

For which whole numbers c do 60 ÷ 5 × c and 60 ÷ (5 × c) both have whole-number values, and for which are they equal?

▸ Show solution

Both sides are defined when 5 × c divides 60, that is, for c = 1, 2, 3, 4, 6 and 12. By part (3) of the Proposition, with a = 60 ≠ 0, they are equal only for c = 1: 60 ÷ 5 × 1 = 12 = 60 ÷ 5. For c = 2, for example, they are 24 and 6.

Exercise .

Someone reads PEMDAS as “addition before subtraction” and evaluates 20 − 5 + 3 as 20 − 8 = 12. Correct the mistake.

▸ Show solution

The letters A and S in PEMDAS do not mean that addition comes before subtraction: they have equal priority and are done from left to right. So 20 − 5 + 3 = 15 + 3 = 18, not 20 − 8 = 12.

Exercise .

Show that a − b + c = a + c − b for all whole numbers with b ≤ a, both sides read by the convention.

▸ Show solution

By the convention, a − b + c means (a − b) + c and a + c − b means (a + c) − b. Subtraction 1.6 proved that (a + c) − b = (a − b) + c whenever b ≤ a (its Proposition, part (4), with the letters renamed). So the two are equal whenever b ≤ a. Example: 9 − 4 + 6 = 5 + 6 = 11 and 9 + 6 − 4 = 15 − 4 = 11.

Summary

  1. The order of operations is a convention: grouping symbols first (innermost first), then × and ÷ from left to right, then + and − from left to right.
  2. With the convention, every expression has exactly one value (or none in the whole numbers): reading by the convention amounts to inserting grouping symbols.
  3. Multiplication comes before addition because sums of products are common: 3 × 4 + 2 then needs no parentheses.
  4. × and ÷ have equal priority, and so do + and −. Left to right matters only for − and ÷: when both sides have whole-number values, (a − b) + c = a − (b + c) only when c = 0, and (a ÷ b) × c = a ÷ (b × c) only when a = 0 or c = 1.
  5. Memory aids such as PEMDAS can mislead, and textbooks once disagreed about expressions like 24 ÷ 4 × 2. When ÷ and × are mixed, parentheses make the meaning certain.

Sources

  1. 1.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “The same expression should give the same result.”
    Used for: an expression should give the same result for everyone.
  2. 2.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “So mathematicians established some guidelines called the order of operations, which outlines the order in which parts of an expression must be simplified.”
    Used for: mathematicians established guidelines, called the order of operations, that say in which order the parts of an expression are simplified.
  3. 3.
    Christopher Stover and Ed Pegg, Jr., “Precedence”, MathWorld, A Wolfram Web Resource.
    “Precedence is the rule that determines the order in which operators are applied in an expression.”
    Used for: a rule that decides the order in which the operations of an expression are applied is called precedence.
  4. 4.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “Simplify all expressions inside the parentheses or other grouping symbols, working on the innermost parentheses first.”
    Used for: rule 1 of the order of operations: grouping symbols first, starting with the innermost pair.
  5. 5.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “Perform all multiplication and division in order from left to right.”
    Used for: rule 2 of the order of operations: multiplications and divisions in order from left to right.
  6. 6.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “Perform all addition and subtraction in order from left to right.”
    Used for: rule 3 of the order of operations: additions and subtractions in order from left to right.
  7. 7.
    David Arnold, “Prealgebra, 1.5 “Order of Operations””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).
    “Perform all multiplications and divisions in the order that they appear in the expression, moving left to right.”
    Used for: the same rules as stated in a second textbook: multiplications and divisions in the order they appear, from left to right (followed there by additions and subtractions in the same way).
  8. 8.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “Simplify all expressions with exponents.”
    Used for: the full order of operations has a level for exponents (powers), between the grouping symbols and the multiplications and divisions.
  9. 9.
    H. Wu, ““Order of operations” and other oddities in school mathematics”, Department of Mathematics, University of California, Berkeley (2007).
    “An example is the convention known as the Rules for the Order of Operations”
    Used for: the order of operations is a convention.
  10. 10.
    David Arnold, “Prealgebra, 1.5 “Order of Operations””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).
    “Because of the established Rules Guiding Order of Operations, this expression is no longer ambiguous.”
    Used for: once the rules are agreed, an expression with an addition and a multiplication, such as 2 + 3 × 4, is no longer ambiguous (the source says it of its own example).
  11. 11.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter Appendix 1, “Axioms for the Real Numbers and the Positive Integers”, section A1.1, “Axioms for Real Numbers” (“The Field Axioms”), pp. A-1 (the whole topic: pp. A-1–A-2).
    “Also, by convention, we perform multiplications before additions unless parentheses are used.”
    Used for: by convention, multiplications are performed before additions unless parentheses are used.
  12. 12.
    Christopher Stover and Ed Pegg, Jr., “Precedence”, MathWorld, A Wolfram Web Resource.
    “Precedence of common operators is generally defined so that "higher-level" operations are performed first (i.e., advanced operations "bind more tightly").”
    Used for: the principle behind precedence: higher-level operations are performed first, or bind more tightly.
  13. 13.
    H. Wu, ““Order of operations” and other oddities in school mathematics”, Department of Mathematics, University of California, Berkeley (2007).
    Section “Why Not in Arithmetic?”. math.berkeley.edu/~wu/order5.pdf · open at the quoted passage.
    “It seems natural, for example, that students be allowed to write 15 + 6 × 21 in place of 15 + (6 × 21).”
    Used for: the lesson quotes Wu’s sentence and his example: it is natural to let students write 15 + 6 × 21 in place of 15 + (6 × 21).
  14. 14.
    H. Wu, ““Order of operations” and other oddities in school mathematics”, Department of Mathematics, University of California, Berkeley (2007).
    Section “The mathematical origin of Order of Operations”. math.berkeley.edu/~wu/order5.pdf · open at the quoted passage.
    “this simplicity is the result of a common agreement”
    Used for: in algebra, long expressions (the source’s example is a polynomial) keep a simple form because of a common agreement about the order of operations.
  15. 15.
    H. Wu, ““Order of operations” and other oddities in school mathematics”, Department of Mathematics, University of California, Berkeley (2007).
    Section “Why Not in Arithmetic?”. math.berkeley.edu/~wu/order5.pdf · open at the quoted passage.
    “No convention is sacrosanct.”
    Used for: no convention is beyond question; a convention is kept because it serves a purpose.
  16. 16.
    Christopher Stover, “PEMDAS”, MathWorld, A Wolfram Web Resource.
    “In addition, the ordering M-D (respectively, A-S) may appear to indicate that multiplication (respectively, addition) happens before division (respectively, subtraction), though multiplication (respectively, addition) receives the same precedence as division (respectively, subtraction).”
    Used for: multiplication and division have equal precedence, and so do addition and subtraction; the order of the letters M-D and A-S in PEMDAS may suggest otherwise.
  17. 17.
    David Arnold, “Prealgebra, 1.5 “Order of Operations””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).
    “Division has no precedence over multiplication, nor does multiplication have precedence over division.”
    Used for: division has no precedence over multiplication, nor multiplication over division.
  18. 18.
    David Arnold, “Prealgebra, 1.5 “Order of Operations””, Mathematics LibreTexts (College of the Redwoods, CC BY-NC-SA).
    “Addition has no precedence over subtraction, nor does subtraction have precedence over addition.”
    Used for: addition has no precedence over subtraction, nor subtraction over addition.
  19. 19.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 106 (the whole topic: pp. 105–106).
    “We do not always do multiplication before division or always do division before multiplication. We do them in order from left to right.”
    Used for: multiplication is not always done before division, or division before multiplication: they are done in order from left to right.
  20. 20.
    Christopher Stover and Ed Pegg, Jr., “Precedence”, MathWorld, A Wolfram Web Resource.
    “A number of geographically-varying methods for remembering basic precedence rules exist, e.g., PEMDAS in the United States.”
    Used for: memory aids for the order of operations vary from country to country; PEMDAS is used in the United States.
  21. 21.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 2, “The Language of Algebra”, section 2.1, “Use the Language of Algebra” (“Simplify Expressions Using the Order of Operations”), p. 105 (the whole topic: pp. 105–106).
    “Take the first letter of each key word and substitute the silly phrase. Please Excuse My Dear Aunt Sally.”
    Used for: the phrase “Please Excuse My Dear Aunt Sally” used to remember the order, made from the first letters of the key words of the rule as the source lists them on the same page: parentheses, exponents, multiplication, division, addition, subtraction.
  22. 22.
    Christopher Stover, “PEMDAS”, MathWorld, A Wolfram Web Resource.
    “BODMAS (where B denotes brackets and O denotes orders) in the UK and BEDMAS in Canada”
    Used for: BODMAS in the United Kingdom (B for brackets, O for orders) and BEDMAS in Canada.
  23. 23.
    Florian Cajori, A History of Mathematical Notations (two volumes bound as one, Dover (first published by Open Court, 1928–1929), 1993).
    Vol. I, Chapter III, “Symbols in Arithmetic and Algebra (Elementary Part)”, section §242, “Order of operations in terms containing both ÷ and ×”, p. 274 (the whole topic: pp. 274).
    “If an arithmetical or algebraical term contains ÷ and ×, there is at present no agreement as to which sign shall be used first.”
    Used for: Cajori reported that, when his history of notations was written (first published 1928–1929), there was no agreement on whether ÷ or × is done first.
  24. 24.
    Florian Cajori, A History of Mathematical Notations (two volumes bound as one, Dover (first published by Open Court, 1928–1929), 1993).
    Vol. I, Chapter III, “Symbols in Arithmetic and Algebra (Elementary Part)”, section §242, “Order of operations in terms containing both ÷ and ×”, p. 274 (the whole topic: pp. 274).
    ““It is best to avoid such expressions.” For instance, if in 24÷4×2 the signs are used as they occur in the order from left to right, the answer is 12; if the sign × is used first, the answer is 3.”
    Used for: Cajori’s example 24 ÷ 4 × 2: 12 from left to right, 3 with the × first; and the advice he quotes, that it is best to avoid such expressions.
  25. 25.
    Florian Cajori, A History of Mathematical Notations (two volumes bound as one, Dover (first published by Open Court, 1928–1929), 1993).
    Vol. I, Chapter III, “Symbols in Arithmetic and Algebra (Elementary Part)”, section §242, “Order of operations in terms containing both ÷ and ×”, p. 274 (the whole topic: pp. 274).
    “Some authors follow the rule that the multiplications and divisions shall be taken in the order in which they occur. Other textbook writers direct that multiplications in any order be performed first, then divisions as they occur from left to right.”
    Used for: some textbooks did multiplications and divisions in the order they occur; others did all multiplications first and then the divisions.
  26. 26.
    Florian Cajori, A History of Mathematical Notations (two volumes bound as one, Dover (first published by Open Court, 1928–1929), 1993).
    Vol. I, Chapter III, “Symbols in Arithmetic and Algebra (Elementary Part)”, section §242, “Order of operations in terms containing both ÷ and ×”, p. 274 (the whole topic: pp. 274).
    “An English committee recommends the use of brackets to avoid ambiguity in such cases.”
    Used for: an English committee recommended brackets to avoid the ambiguity.
  27. 27.
    Christopher Stover and Ed Pegg, Jr., “Precedence”, MathWorld, A Wolfram Web Resource.
    “For more complex operations, the order of operations depends on the system.”
    Used for: beyond simple expressions, the order of operations depends on the system.
  28. 28.
    H. Wu, ““Order of operations” and other oddities in school mathematics”, Department of Mathematics, University of California, Berkeley (2007).
    Section “Why Not in Arithmetic?”. math.berkeley.edu/~wu/order5.pdf · open at the quoted passage.
    “these Rules should be applied judiciously and never at the expense of clarity.”
    Used for: the order of operations should be applied with judgment and never at the expense of clarity.
  29. 29.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 11, “Trees”, section 11.3, “Tree Traversal” (11.3.4, “Infix, Prefix, and Postfix Notation”), p. 817 (the whole topic: pp. 816–817).
    “An expression in prefix notation (where each operation has a specified number of operands), is unambiguous, so no parentheses are needed in such an expression.”
    Used for: in prefix (Polish) notation each operation is written before its parts, and expressions are unambiguous without parentheses.
  30. 30.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 11, “Trees”, section 11.3, “Tree Traversal” (11.3.4, “Infix, Prefix, and Postfix Notation”), p. 817 (the whole topic: pp. 816–817).
    “Reverse polish notation was extensively used in electronic calculators in the 1970s and 1980s.”
    Used for: reverse Polish notation was used extensively in electronic calculators in the 1970s and 1980s.