The short answer: evaluate grouping symbols first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right. So 2 + 3 × 4 is 14, not 20. The rules are a shared convention rather than a theorem, and an expression that does not supply enough grouping is genuinely ambiguous — rewrite it rather than argue about it.

Key takeaways

  • Precedence runs: grouping, exponents, × and ÷, + and −.
  • Multiplication and division share one level and are evaluated left to right.
  • Exponents are right-associative: 2^3^2 means 2^(3²) = 512.
  • Unary minus is not in PEMDAS and is handled differently by different tools.
  • Implicit multiplication is the usual culprit in viral “ambiguous” problems.
  • Parentheses are free, so use them whenever a reader could hesitate.

Why the convention exists

Without an agreed order, 2 + 3 × 4 could reasonably mean 20 or 14. Mathematicians fixed the reading that keeps polynomials and place-value arithmetic consistent: multiplication binds tighter than addition, so 2 + 3 × 4 = 2 + 12 = 14. Every algebra course then writes 3x + 5 without parentheses because the convention already says what it means.

The convention is a communication standard, not a discovery about numbers. That distinction matters when an expression is written badly. If two competent readers apply the same published rule and still disagree, the expression is at fault, and the fix is brackets, not a longer argument.

The precedence table

Level Operation Example Result
1 Grouping: ( ), [ ], { }, fraction bars 2 × (3 + 4) 14
2 Exponents and roots 2³ + 1 9
3 Unary minus (tool-dependent) −3² −9 in standard notation
4 Multiplication and division, left to right 8 ÷ 4 × 2 4
5 Addition and subtraction, left to right 5 − 2 + 1 4

Two rows cause most of the confusion. Unary minus sits outside the classic acronym, and multiplication and division are peers rather than a ranked pair. Everything below level 3 is simply left-to-right within its tier.

Grouping symbols, innermost first

Grouping overrides everything else, and nested groups resolve from the inside out. Take 2(3 + (4 − 1)²). The inner bracket gives 3, the exponent gives 9, the outer bracket gives 12, and the final multiplication gives 24. A fraction bar is also a grouping symbol: in (6 + 4) ÷ 2 the bar groups the sum before the division.

Nesting depth is not a difficulty measure, only a reading order. Rewriting a deep expression as a sequence of small steps is the most reliable way to avoid a slip, and it gives you intermediate values you can check.

Exponents and the right-associative trap

Exponentiation stacks from the top down: 2^3^2 = 2^(3²) = 2⁹ = 512, not (2³)² = 64. The convention exists because repeated powers grow fastest that way, and because (2³)² can always be written as 2⁶ when that is what you mean.

Unary minus is a separate question. In standard mathematical notation, −3² means −(3²) = −9, since the exponent binds tighter than the sign, while (−3)² = 9. A negative base must be bracketed. This is precisely where spreadsheet and programming conventions diverge, so check the tool rather than assuming.

Multiplication and division share a level

Division is multiplication by a reciprocal, so the two operations carry equal precedence and run left to right. That makes 8 ÷ 4 × 2 equal to 4, not 1: the division happens first because it is leftmost. Writing 8 ÷ (4 × 2) is the only way to get 1, and it should be written that way if that is the intent.

The same logic applies to subtraction. 10 − 4 + 2 is 8, because the subtraction comes first. PEMDAS lists the pairs as “MD” and “AS” for a reason, yet many readers silently promote multiplication above division and addition above subtraction.

Implicit multiplication and ambiguous expressions

The notorious case is 6 ÷ 2(1 + 2). Readers who treat juxtaposition as ordinary multiplication and work left to right get 6 ÷ 2 × 3 = 9. Readers who treat 2(1 + 2) as a single grouped quantity get 6 ÷ 6 = 1. Both readings are defensible because the notation never states which convention applies, and different calculators genuinely return different answers.

Juxtaposition usually binds tighter in algebra — 1/2x is read as 1/(2x) by most mathematicians — but that habit collides with left-to-right division in plain text. The honest answer is that the expression is under-specified. Rewrite it as (6 ÷ 2)(1 + 2) or 6 ÷ (2(1 + 2)), and the ambiguity disappears.

Worked example, step by step

Evaluate 3 + 4 × 2³ − (6 − 2) ÷ 2.

Parentheses: 6 − 2 = 4
Exponent: 2³ = 8
Multiply: 4 × 8 = 32
Divide: 4 ÷ 2 = 2
Add and subtract left to right: 3 + 32 − 2 = 33

The result is 33. A common wrong path applies the exponent to the product, reading 4 × 2³ as (4 × 2)³ = 512, which ignores that the exponent belongs to the 2 alone. Another wrong path adds 3 + 4 before multiplying. Writing each line with its operation named is enough to expose both errors.

Subtraction, negative numbers, and signs

A minus sign does double duty: it separates terms in 5 − 3, and it labels a value as negative in −7. In 5 − 3 − 2 the operations run left to right and give 0, while 5 − (3 − 2) gives 4. Parentheses decide which subtraction happens first, and the difference is not a rounding matter.

Negative numbers follow the same rules once the expression is written clearly. −4² is −16 because the exponent applies to 4, while (−4)² is 16. In 8 − 2 × 3 + 4 ÷ 2 the multiplication and division run first, giving 6 and 2, and the additions and subtractions then run left to right: 8 − 6 + 2 = 4. Rewriting every subtraction as adding a negative, 8 + (−6) + 2, removes the ambiguity entirely and is a reliable habit in long formulas.

Common mistakes

  • Working strictly left to right. 2 + 3 × 4 is 14; addition waits for multiplication.
  • Ranking multiplication above division. They are peers, so 8 ÷ 4 × 2 is 4.
  • Reading exponents left to right. 2^3^2 is 512, not 64.
  • Distributing a minus sign without brackets. 5 − (2 + 1) is 2, not 5 − 2 + 1 = 4.
  • Dropping parentheses from a fraction bar. (6 + 4) ÷ 2 is 5, not 8.
  • Assuming every calculator agrees. Implied multiplication and unary minus are implemented differently.

Practical caveats

Spreadsheets and programming languages have their own precedence quirks, and those quirks silently change results. Excel evaluates unary minus before exponentiation, so =-2^2 returns 4, and its ^ operator is left-associative, so =2^3^2 returns 64. Python and most mathematics notation give −4 and 512 for the same two expressions. Neither is wrong; they are different conventions.

Rules of thumb that survive every tool: bracket negative bases, write division as a fraction when more than one term follows, and never rely on juxtaposition to mean grouping in plain text. When a formula will be reused in a spreadsheet, test it against a hand-computed example before trusting a column of results.

Frequently asked questions

Does multiplication always come before division?

No. They share one precedence level and are evaluated left to right, so 8 ÷ 4 × 2 is 4.

What is 6 ÷ 2(1 + 2)?

It is ambiguous. Left-to-right with ordinary multiplication gives 9; treating 2(1 + 2) as a grouped unit gives 1. Rewrite the expression to state which you mean.

Why is 2^3^2 equal to 512?

Exponentiation is right-associative, so the top exponent is evaluated first: 3² = 9, then 2⁹ = 512.

Is −3² equal to 9 or −9?

In standard notation it is −9, because the exponent applies to 3 before the sign. Use (−3)² when you mean 9.

Do all calculators follow the same order?

No. Implied multiplication, unary minus, and exponent associativity vary between models and between spreadsheet and programming environments.

Do parentheses change the value of an expression?

They change the grouping, which can change the value. 2 + 3 × 4 is 14, while (2 + 3) × 4 is 20.

Further reading

Keep exploring

Read next Logarithm: Base, Product Rule, and Scale A logarithm is an exponent in disguise. Learn the definition, the product, quotient and power rules, change of… Read next Significant Figures: Counting, Rounding, and Precision Significant figures record how precisely a value was measured. Learn the counting rules, the addition and multiplication rules,… Read next Average: Mean, Weighted Mean, and Outliers The mean, median, and weighted mean answer different questions. Learn how outliers move an average, when to weight…