Study and Productivity

Order of Operations Explained: PEMDAS, BODMAS and the 8 ÷ 2(2 + 2) Puzzle

Learn the order of operations step by step: brackets, powers, multiplication and division left to right, fractions, negative signs and the viral puzzle.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
Order of Operations Explained: PEMDAS, BODMAS and the 8 ÷ 2(2 + 2) Puzzle

Order of Operations Explained: PEMDAS, BODMAS and the 8 ÷ 2(2 + 2) Puzzle

Every few months a short sum goes viral because half of the people who try it get a different answer from the other half. The disagreement is almost never about arithmetic. It is about the order in which the operations are done. This guide sets out the rules that schools teach, shows how they apply to fractions and negative numbers, and explains how to check your working with the free order of operations calculator, which solves an expression one operation at a time.

One rule, several names

In the United States students learn PEMDAS: Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. In the UK, India, Bangladesh, Nigeria and Australia the same idea is called BODMAS (Brackets, Orders, Division and Multiplication, Addition and Subtraction) or BIDMAS, where I stands for Indices. Some teachers say GEMDAS for Grouping symbols. The letters differ but the order is identical.

The most important detail hides in the middle. Multiplication and division are one level, not two. Addition and subtraction are also one level. Inside a level you work from left to right. So:

  • 6 ÷ 2 × 3 = 3 × 3 = 9, not 6 ÷ 6 = 1.
  • 10 − 4 + 1 = 6 + 1 = 7, not 10 − 5 = 5.

If you remember only one thing, remember that PEMDAS is a list of four levels, not six steps.

Working an expression by hand

Take 3 + 4 × 2. There are no brackets or powers, so look for multiplication and division first: 4 × 2 = 8. Now 3 + 8 = 11. Writing each line underneath the last, with one change at a time, is the habit that prevents mistakes. The calculator shows exactly this layout and highlights the part it is working on, so you can compare it line by line with your exercise book.

For something longer, such as [2 + {3 × (4 − 1)}] ÷ 11, start with the innermost bracket: 4 − 1 = 3. Then the curly bracket: 3 × 3 = 9. Then the square bracket: 2 + 9 = 11. Finally 11 ÷ 11 = 1. Nested brackets are simply worked from the inside out.

Powers and negative numbers

Two traps catch even confident students.

First, a power belongs only to the thing right in front of it. In −3^2 the square applies to 3, and the minus sign is applied afterwards, giving −9. If you want negative three squared, you must write (−3)^2, which is 9. Many calculators and spreadsheets follow this rule, which is why the brackets matter on homework.

Second, stacked powers are read from the top: 2^3^2 means 2^(3^2) = 2^9 = 512. Reading it left to right as (2^3)^2 = 64 is a different expression.

Fractions without rounding

When an expression contains fractions, such as 1/2 + 2/3 × 3/4, do the multiplication first: 2/3 × 3/4 = 6/12 = 1/2. Then 1/2 + 1/2 = 1. Converting to decimals too early, for example 0.667 × 0.75, gives 0.50025 and an answer that is slightly off. The calculator keeps every intermediate result as an exact fraction and only shows the decimal at the end, with repeating digits in brackets, such as 0.(3) for one third.

The famous 8 ÷ 2(2 + 2)

Under the rules above, the bracket comes first: 2 + 2 = 4, leaving 8 ÷ 2(4). The 2(4) is a multiplication written without a sign, and multiplication shares its level with division, so we go left to right: 8 ÷ 2 = 4, then 4 × 4 = 16.

Some people argue for 1. Their reasoning is that a number written directly against a bracket forms a tight unit, as it would in algebra (8 ÷ 2x usually means 8 over 2x). Older textbooks and some calculator models used that convention. Neither side is making an arithmetic error; the expression is simply badly written. The calculator has a switch for both readings and tells you when they disagree. The practical lesson for exams is to write either (8 ÷ 2)(2 + 2) or 8 ÷ [2(2 + 2)] so that nobody can misread you.

Practice that sticks

Rules become automatic only with practice. The Practice tab generates questions at three levels: whole numbers with brackets, then powers and nested brackets, then fractions. Type your answer, check it, and open the worked solution if you were wrong. The Worksheets tab prints a fresh set of up to forty questions in two columns, with an answer key on a separate page, which is useful for teachers and for revision at home.

A good routine is ten questions a day for a week, starting at level 1 and moving up when you get nine out of ten right. Read the solution of every wrong answer and identify which level of the rule you skipped.

Limits

The calculator handles arithmetic with numbers, brackets, powers and fractions. It does not solve equations, simplify algebra with letters, or work with roots, logarithms or trigonometry, and fractional exponents are not worked exactly. When your teacher asks for a particular layout or method, follow that; use the tool to check your answers rather than to replace your working.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages