Skip to content

BIDMAS, BODMAS and PEMDAS: the order of operations explained

TutorAura guide · Updated

BIDMAS, BODMAS and PEMDAS are three names for the same rule: the order of operations, which tells you which part of a calculation to do first. They only differ in the words used:

  • BIDMAS (UK): Brackets, Indices, Division and Multiplication, Addition and Subtraction.
  • BODMAS (UK, older): Brackets, Orders (or "of"), Division and Multiplication, Addition and Subtraction.
  • PEMDAS (US): Parentheses, Exponents, Multiplication and Division, Addition and Subtraction.

All three give the same answer when you apply the left-to-right rule correctly.

Key takeaways

  • BIDMAS, BODMAS and PEMDAS are the same rule.
  • Brackets first, then powers.
  • × and ÷ have equal priority: work left to right.
    • and − have equal priority: work left to right.

The order

StepWhatExample
1Brackets (parentheses)(2+3)=5(2 + 3) = 5
2Indices / orders / exponents52=255^2 = 25
3× and ÷, left to right12÷3×2=812 \div 3 \times 2 = 8
4+ and −, left to right10−4+1=710 - 4 + 1 = 7

The rule people forget

The order of the letters makes it look as if division always comes before multiplication (BIDMAS) or multiplication before division (PEMDAS). That's not the rule. Multiplication and division have equal priority, and so do addition and subtraction: work them from left to right.

  • 12÷3×2=4×2=812 \div 3 \times 2 = 4 \times 2 = 8 (not 12÷6=212 \div 6 = 2)
  • 10−4+1=6+1=710 - 4 + 1 = 6 + 1 = 7 (not 10−5=510 - 5 = 5)

Worked examples

  1. 3+4×2=3+8=113 + 4 \times 2 = 3 + 8 = 11
  2. (3+4)×2=7×2=14(3 + 4) \times 2 = 7 \times 2 = 14
  3. 20−2×32=20−2×9=20−18=220 - 2 \times 3^2 = 20 - 2 \times 9 = 20 - 18 = 2
  4. 8+42×3=126=2\dfrac{8 + 4}{2 \times 3} = \dfrac{12}{6} = 2 (a fraction bar acts like brackets around the top and the bottom)

Try any expression in our order of operations calculator, which shows one step at a time.

Negative numbers and powers

  • −32=−9-3^2 = -9: the power applies to 3, then the negative.
  • (−3)2=9(-3)^2 = 9: the brackets make −3-3 the base.

Calculators follow this convention, which is why typing −32-3^2 gives −9-9. See negative numbers.

Common mistakes

  • Working strictly left to right and ignoring the order: 3+4×2≠143 + 4 \times 2 \neq 14.
  • Doing all multiplication before any division (or the reverse).
  • Forgetting that a fraction bar groups the top and the bottom.
  • Treating "of" in BODMAS as a separate step: it means multiplication ("half of 10").

Practice

  1. 6+18÷36 + 18 \div 3
  2. (6+18)÷3(6 + 18) \div 3
  3. 2×32+42 \times 3^2 + 4
  4. 40÷5×240 \div 5 \times 2

Answers: 12, 8, 22, 16. For more, see the order of operations topic guide.

Order of operations beyond the classroom

The same rule is built into calculators, spreadsheets and programming languages. In a spreadsheet, =A1+B1*2 doubles B1 before adding A1; in Python, 2 + 3 * 4 gives 14. When you write formulas for other people, add brackets even when they're not strictly needed, such as =A1+(B1*2), so nobody has to remember the rule to read them.

Frequently asked questions

What is the answer to 6 ÷ 2(1 + 2)?

Using the standard convention, the bracket gives 3, and implied multiplication is treated like an ordinary ×, so 6 ÷ 2 × 3 = 9. Some people and some calculators give implied multiplication higher priority and get 1, which is why it goes viral. Exam questions avoid the ambiguity with fractions or extra brackets, and so should your own working.

Do you multiply or divide first?

Neither has priority. Multiplication and division are done in the order they appear, reading from left to right. So 12 ÷ 3 × 2 = 4 × 2 = 8, not 12 ÷ 6 = 2.

Is BODMAS the same as PEMDAS?

Yes. BODMAS and BIDMAS are the names used in the UK and PEMDAS is the US name, but all three describe the same order: brackets, powers, then multiplication and division from left to right, then addition and subtraction from left to right.

Sources

  1. National curriculum in England: mathematics programmes of study. Department for Education.
  2. Common Core State Standards for Mathematics. Common Core State Standards Initiative.