Sub topic 4
Multiplication and Division: Left to Right
This chapter assumes you can multiply and divide whole numbers, know what a negative integer is, and read a fraction as a numerator over a denominator. It does not cover exponents or grouping symbols in detail. Those have their own chapters, and here they appear only where they affect the multiplication and division rule.
The rule
Multiplication and division share one rank. When an expression has several of them in a row, with no parentheses or exponents in the way, you work from the left end to the right end. You do each operation as you reach it.
The common mnemonics PEMDAS and BODMAS list the two operations in a fixed order (M before D, or D before M). Neither order is a rule. Both operations sit on the same level.
Take 24 ÷ 4 × 3:
- Reach
24 ÷ 4first, because it is leftmost. The result is 6. - Replace it, giving
6 × 3. - Compute
6 × 3 = 18.
If you multiplied first, you would compute 4 × 3 = 12 and then 24 ÷ 12 = 2. That answer is wrong, because it ignores the agreed order.
Why the two operations share a rank
Division is multiplication by a reciprocal. The reciprocal of 4 is 1/4, so 24 ÷ 4 means 24 × 1/4. The expression 24 ÷ 4 × 3 can therefore be read as 24 × 1/4 × 3. Every operation is now multiplication, and multiplication can be done in any order:
24 × 1/4 = 6, then6 × 3 = 181/4 × 3 = 3/4, then24 × 3/4 = 18
Both give 18. This is why the two operations belong on one level. Left to right is the standard way to get one reproducible answer. It also agrees with this reciprocal view, provided each division stays attached to the number that follows it.
A consequence is that you may reorder a product-and-quotient expression, but only if each ÷ stays with its own divisor. For example, 24 ÷ 4 × 3 equals 24 × 3 ÷ 4, because ÷ 4 moved together. It does not equal 24 ÷ 3 × 4 or 4 × 3 ÷ 24, which change which number is the divisor.
Worked examples
The table shows the left-to-right steps beside the result you get from the common wrong approach.
| Expression | Left-to-right steps | Correct | Typical wrong result |
|---|---|---|---|
| `24 ÷ 4 × 3` | `6 × 3` | 18 | 2 (multiplied first) |
| `12 ÷ 3 × 2` | `4 × 2` | 8 | 2 (multiplied first) |
| `6 × 2 ÷ 3` | `12 ÷ 3` | 4 | 9 (divided first: `2 ÷ 3` is not a whole number, so this is easy to miscopy) |
| `100 ÷ 5 ÷ 2` | `20 ÷ 2` | 10 | 40 (computed `5 ÷ 2` first) |
| `8 × 6 ÷ 2 ÷ 3` | `48 ÷ 2`, `24 ÷ 3` | 8 | varies |
The 100 ÷ 5 ÷ 2 row matters because division is not associative. (100 ÷ 5) ÷ 2 is 10, while 100 ÷ (5 ÷ 2) is 40. The expression without parentheses means the first form.
When the expression also has addition or subtraction, finish every multiplication and division first, working left to right, and then add and subtract. Take 2 + 12 ÷ 3 × 2:
- Find the multiplication and division run:
12 ÷ 3 × 2. - Evaluate it left to right:
12 ÷ 3 = 4, then4 × 2 = 8. - Substitute:
2 + 8 = 10.
Negative numbers in a run
Signs follow the usual rules, and the position rule does not change. A product or quotient of two numbers with the same sign is positive. With different signs it is negative.
Evaluate -12 ÷ 4 × -3:
-12 ÷ 4 = -3-3 × -3 = 9
The result is positive 9, because the two negatives cancel in the final step. Check the order matters even with signs. If you computed 4 × -3 = -12 first, you would get -12 ÷ -12 = 1, which is wrong.
Fractions in a run
The same rule holds when the operands are fractions. Dividing by a fraction means multiplying by its reciprocal, but you still decide the order from left to right.
Evaluate 1/2 ÷ 3/4 × 2/3:
1/2 ÷ 3/4 = 1/2 × 4/3 = 4/6 = 2/32/3 × 2/3 = 4/9
If you multiplied 3/4 × 2/3 first, you would get 1/2, and then 1/2 ÷ 1/2 = 1. That differs from the correct 4/9.
How the rule is applied in a longer expression
An expression is not always only multiplication and division. The overall procedure is to pick out each run of × and ÷ that is not inside grouping symbols and not part of an exponent, resolve it left to right, and carry on. The diagram shows how to handle a run once you have found it.
Each pass shortens the run by one operation, so the loop always ends.
Checking with Python
Python's * and / also share one rank and evaluate from left to right, so they match the hand rule. Use parentheses to build the wrong readings for comparison.
from fractions import Fraction
print(24 / 4 * 3) # 18.0: (24 / 4) * 3
print(24 / (4 * 3)) # 2.0: the wrong reading, made explicit
print(100 / 5 / 2) # 10.0: (100 / 5) / 2
print(100 / (5 / 2)) # 40.0: a different expression
print(2 + 12 / 3 * 2) # 10.0
print(-12 / 4 * -3) # 9.0
result = Fraction(1, 2) / Fraction(3, 4) * Fraction(2, 3)
print(result) # 4/9The / operator always returns a float, which is why the output shows 18.0 and not 18. Fraction keeps results exact, so you can compare each step with your hand work.
Common errors
- Multiplying first because M comes before D in PEMDAS. The letters do not mean "multiply, then divide".
24 ÷ 4 × 3is 18, not 2. - Dividing first because D comes before M in a different mnemonic. The same mistake in the other direction.
6 × 4 ÷ 2is24 ÷ 2 = 12. Dividing first gives4 ÷ 2 = 2, then6 × 2 = 12, which happens to agree. Try6 ÷ 2 × 3and you get 9 left to right, but dividing the last pair first gives2 ÷ ...confusion. Always scan from the left. - Treating
a ÷ b × casa ÷ (b × c). This is the most frequent error. The expression only means that if the parentheses are there. - Moving a divisor. Swapping
÷ 4with× 3in24 ÷ 4 × 3is fine only if each sign stays attached to its own number:24 × 3 ÷ 4. - Dropping signs. Handle the sign of each product or quotient as you go, not at the end.
Exercise
Evaluate 36 ÷ 6 × 3 − 4 × 2 ÷ 4, writing each step.
Show answer
Resolve each run of multiplication and division left to right first. 36 ÷ 6 × 3 becomes 6 × 3 = 18. 4 × 2 ÷ 4 becomes 8 ÷ 4 = 2. Then subtract: 18 − 2 = 16.
Exercise
Evaluate 1/2 ÷ 1/4 × 1/3 as a fraction. Then say what answer you would get by wrongly multiplying 1/4 × 1/3 first.
Show answer
Left to right: 1/2 ÷ 1/4 = 1/2 × 4 = 2, then 2 × 1/3 = 2/3. The wrong reading gives 1/4 × 1/3 = 1/12, and 1/2 ÷ 1/12 = 6.
Exercise
Without a calculator, find -20 ÷ 5 × -2 ÷ 4. Then write a one-line Python expression that checks it.
Show answer
-20 ÷ 5 = -4. Then -4 × -2 = 8. Then 8 ÷ 4 = 2. The Python check is print(-20 / 5 * -2 / 4), which prints 2.0.