The hook: same problem, two calculators
Every so often a short problem goes viral: 6÷2(1+2). Half the comments swear it’s 9, the other half swear it’s 1, and someone always posts a photo of two calculators disagreeing. “Calculator” is one of the most searched words in the US, and part of that curiosity comes from exactly this: if machines don’t make mistakes, how can two of them give different answers?
The answer teaches something important: math notation is a language, and languages run on conventions. Knowing them is what separates getting expressions right from getting them right most of the time.
The order of operations
You read an expression in layers:
- Parentheses and other grouping symbols, innermost first.
- Exponents and roots.
- Multiplication and division, same priority, left to right.
- Addition and subtraction, same priority, left to right.
Step 3 trips people up. PEMDAS makes it look like M comes before D, but it doesn’t: they share one level, and position decides. The same goes for A and S. That’s why some teachers write it as P-E-(MD)-(AS).
Why calculators disagree
The split comes down to implied multiplication, where the times sign is left out, as in or . Two conventions are in use:
- Strict convention: implied multiplication is just multiplication. So 6÷2(1+2) = 6÷2×3 = 3×3 = 9. Most phone calculators work this way, and programming languages won’t even accept a missing sign.
- Juxtaposition convention: things written side by side form a block with higher priority. So 2(1+2) = 6 becomes one number, and 6÷6 = 1. Several scientific calculator models and many physics and engineering texts read it this way. Someone who writes almost always means , not .
Neither is wrong. They’re different reading rules applied to notation that doesn’t say what the author meant. That’s why working mathematicians never write 6÷2(1+2): they use a stacked fraction.
Worked example
Let’s solve an unambiguous expression carefully: 18 − 12 ÷ 3 × 2 + 1.
- No parentheses or exponents, so go straight to multiplication and division, left to right. The first one is 12 ÷ 3.
- Substitute and keep moving right: now 4 × 2.
- Only addition and subtraction remain, also left to right: 18 − 8 = 10.
- Final answer: 11.
- Check: add parentheses that make the order explicit, 18 − ((12 ÷ 3) × 2) + 1 = 18 − 8 + 1 = 11. Any basic calculator with the times sign typed in agrees.
Look at step 2: anyone doing 3 × 2 first would get 12 ÷ 6 = 2 and end at 18 − 2 + 1 = 17, which is wrong. Now compare (18 − 12) ÷ (3 × 2) + 1: the parentheses change everything, giving 6 ÷ 6 + 1 = 2. Same numbers, different grouping, 11 versus 2.
The stakes can be real. Say a hypothetical order costs $40 plus 3 items at $5 each. Typing 40 + 3 × 5 gives $55, the right total; typing (40 + 3) × 5 gives $215.
Common mistakes
- Always multiplying before dividing. They share a level; go left to right.
- Always adding before subtracting. 10 − 4 + 2 is 8, not 4.
- Mixing up and . The exponent comes before the sign: , while .
- Stacked exponents. is read top-down: , not .
- Trusting the keypad blindly. Before an exam, type 6÷2(1+2) into your calculator. If it says 1, it uses the juxtaposition convention.
How to write expressions nobody can misread
If it can be read two ways, add parentheses. Extra parentheses never change the value of a correct expression; they only remove doubt. On paper, prefer a fraction bar to ÷. On a calculator or spreadsheet, type (6/2)(1+2) or 6/(2(1+2)) with an explicit times sign, and every device will agree.
Frequently asked questions
So is 6÷2(1+2) equal to 9 or 1?
Under the strict convention used by most calculators and programming languages, it's 9. Under the convention that gives implied multiplication priority, it's 1. The expression is ambiguous; rewrite it with parentheses or as a fraction.
Does PEMDAS mean multiplication comes before division?
No. Multiplication and division share a level, as do addition and subtraction. Within each level, work left to right.
Why does my scientific calculator disagree with my phone?
Some models give a product without a sign, like 2(3), priority over division. Type the times sign and use parentheses and both will agree.
Which convention should I use on tests?
The strict one: parentheses, exponents, multiplication and division left to right, then addition and subtraction left to right. Well-written test questions avoid the ambiguity with fractions and parentheses.