FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Number & Arithmetic
Number & Arithmetic

Order of Operations (BIDMAS and PEMDAS) Explained

Why 2+3×42 + 3 \times 42+3×4 is 141414 and not 202020, what BIDMAS and PEMDAS really mean, and the left-to-right rule that catches almost everyone out.

3 min read Supports 2 lessons
In short

The order of operations is the agreed sequence for working out a calculation: brackets, then powers, then multiplication and division, then addition and subtraction.

Work out 2+3×42 + 3 \times 42+3×4. If you go left to right you get 5×4=205 \times 4 = 205×4=20. If you multiply first you get 2+12=142 + 12 = 142+12=14. Both feel reasonable, but a calculation can only have one answer, so mathematicians agree on an order.

That agreement is the order of operations. It is a convention, like driving on one side of the road. It works because everyone follows it.

Order of operations
(  )  →  xn  →  × ÷  →  + −(\;)\;\to\; x^n \;\to\; \times\,\div \;\to\; +\,-()→xn→×÷→+−

Brackets, then powers, then multiplication and division, then addition and subtraction.

BIDMAS, BODMAS and PEMDAS

Different countries teach different memory aids, but they all describe the same order:

BIDMAS: Brackets, Indices, Division, Multiplication, Addition, Subtraction.

BODMAS: Brackets, Orders, Division, Multiplication, Addition, Subtraction.

PEMDAS: Parentheses, Exponents, Multiplication, Division, Addition, Subtraction.

Indices, orders and exponents all mean powers, like the 222 in 323^232.

The rule people miss: left to right

The acronyms make it look as if division comes before multiplication (BIDMAS) or multiplication before division (PEMDAS). Neither is true. Multiplication and division share a rank, and so do addition and subtraction. Within a rank you work from left to right.

  1. 12÷3×212 \div 3 \times 212÷3×2

    Division and multiplication have equal rank.

1/3
Watch out

The same applies to subtraction: 10−4+3=910 - 4 + 3 = 910−4+3=9, not 333. Go left to right.

A full example

Worked example

Evaluate (8−2)2÷4×3+1(8 - 2)^2 \div 4 \times 3 + 1(8−2)2÷4×3+1.

  1. 1

    Brackets first.

    62÷4×3+16^2 \div 4 \times 3 + 162÷4×3+1

Hidden brackets

Some notation carries brackets you cannot see. A fraction bar groups everything above it and everything below it:

6+42=102=5not6+42=8\frac{6 + 4}{2} = \frac{10}{2} = 5 \qquad\text{not}\qquad 6 + \frac{4}{2} = 826+4​=210​=5not6+24​=8

A square root sign does the same to everything under it, and an exponent applies to everything written in its superscript.

Watch out

−32=−9-3^2 = -9−32=−9, because the power is applied before the minus sign. To square negative three you need brackets: (−3)2=9(-3)^2 = 9(−3)2=9.

Tip

When you write your own calculations, add brackets whenever there is any doubt. Extra brackets never change a correct answer, and they make your intention clear.

Common questions

Do you always do division before multiplication?

No. Multiplication and division have equal priority, so you work through them from left to right in the order they appear. The same goes for addition and subtraction.

Is BIDMAS the same as PEMDAS?

Yes. They are two memory aids for the same rule. Indices and exponents both mean powers, and brackets and parentheses are the same thing.

Practise order of operations

The Order of Operations lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. BIDMAS, BODMAS and PEMDAS
  2. The rule people miss: left to right
  3. A full example
  4. Hidden brackets
  5. Common questions
Lessons on this
  • Order of OperationsNumber Sense & Arithmetic
  • Evaluating ExpressionsAlgebra Foundations
Related reading5
Ideas this article builds on or leads to.
  • Powers & Roots
    What Are Exponents? Powers, Bases and Repeated Multiplication

    An exponent (or power) says how many times to multiply a number, the base, by itself: 25=2×2×2×2×2=322^5 = 2 \times 2 \times 2 \times 2 \times 2 = 3225=2×2×2×2×2=32.

  • Algebra
    Algebraic Expressions: Variables, Terms, Coefficients and Like Terms

    An expression combines numbers and variables (letters standing for numbers) with operations, like 3x+53x + 53x+5. Like terms have exactly the same variable part and can be combined by adding their coefficients.

  • Number & Arithmetic
    Negative Numbers: Adding, Subtracting, Multiplying and Dividing

    Negative numbers are numbers less than zero, written with a minus sign and placed to the left of zero on the number line. Together with zero and the positive whole numbers they form the integers.

  • Fractions, Decimals & Percentages
    What Is a Fraction? Numerators, Denominators and Mixed Numbers

    A fraction ab\frac{a}{b}ba​ means aaa parts of a whole that has been cut into bbb equal parts. The bottom number is the denominator; the top is the numerator.

  • Powers & Roots
    Square Roots and Surds: Simplifying Radicals Step by Step

    The square root n\sqrt{n}n​ is the non-negative number that squares to nnn: 49=7\sqrt{49} = 749​=7. A root that cannot be written as a whole number or fraction, like 2\sqrt{2}2​, is called a surd (or radical).