Order of operations
Work out calculations in the right order: brackets, powers, then multiplication and division, then addition and subtraction.
Also known as: BIDMAS, BODMAS, PEMDAS, order of operations rules.
Key ideas
- Brackets first, then powers (indices or exponents), then multiplication and division, then addition and subtraction.
- Multiplication and division have equal priority: work them from left to right. The same goes for addition and subtraction.
- A fraction bar groups everything above it and everything below it: , not .
- , but : the power applies only to what it's attached to.
Why there's an order
Without an agreed order, could mean or . Everyone uses the same convention, so it means : multiplication happens before addition.
The order goes by different names around the world:
| Name | Used in | Stands for |
|---|---|---|
| BIDMAS | UK | Brackets, Indices, Division and Multiplication, Addition and Subtraction |
| BODMAS | UK, India, Australia and elsewhere | Brackets, Orders, Division and Multiplication, Addition and Subtraction |
| PEMDAS | US | Parentheses, Exponents, Multiplication and Division, Addition and Subtraction |
They all describe the same rules.
The left-to-right rule
The most common misunderstanding is thinking that multiplication always comes before division (because M comes before D in PEMDAS), or that addition always comes before subtraction. It doesn't: multiplication and division have the same priority, and so do addition and subtraction. When operations have the same priority, work from left to right.
Brackets, powers and fraction bars
Work out the innermost brackets first. Then powers: in , square the first, giving .
A fraction bar acts like brackets around the top and the bottom:
Be careful with negative numbers and powers: means , while . Calculators follow the same rule, so type the brackets if you mean .
Worked examples
Example 1 · Mixed operations
Work out .
- Step 1.Division and multiplication come before addition. Work them left to right: , then .
- Step 2.Then add: .
Answer:
Example 2 · Brackets and powers
Work out .
- Step 1.Brackets: .
- Step 2.Power: .
- Step 3.Multiplication and division, left to right: , then .
- Step 4.Subtraction: .
Answer:
Example 3 · A fraction bar
Work out .
- Step 1.Top: , then .
- Step 2.Bottom: , then .
- Step 3..
Answer:
Common mistakes
- Always multiplying before dividing: is , not .
- Always adding before subtracting: is , not .
- Squaring a negative without brackets: .
- Working left to right through the whole calculation and ignoring the priorities.
- Forgetting that a fraction bar groups the top and bottom.
Try it yourself
Original practice questions. Your answer is checked instantly.
Work out .
Work out .