Pre-Algebra Foundations

PEMDAS, BODMAS and BIDMAS, One Rule With Different Names

PEMDAS, BODMAS, BIDMAS and BEDMAS describe the same order of operations. Compare the letters and avoid the traps each one invites.

Key takeaways

  • The acronyms differ in vocabulary, such as parentheses or brackets and exponents, orders or indices, not in mathematics.
  • DM in one acronym and MD in another describe a single shared level, read left to right.
  • Addition and subtraction also share a level, so 12 - 5 + 3 equals 10.
  • No acronym mentions fraction bars, root signs or negative signs, which need their own care.
  • A viral expression that splits readers is usually badly written, and parentheses resolve it.

PEMDAS, BODMAS, BIDMAS and BEDMAS are different memory aids for the same order of operations. All of them say to handle grouping first, then powers, then multiplication and division together from left to right, then addition and subtraction together from left to right.

So a student who learned BODMAS and one who learned PEMDAS should get identical answers. When they disagree, the usual cause is that someone read the letters as six separate steps.

What the letters stand for

Acronym First Second Third Fourth
PEMDAS Parentheses Exponents Multiplication, Division Addition, Subtraction
BODMAS Brackets Orders (also taught as "of") Division, Multiplication Addition, Subtraction
BIDMAS Brackets Indices Division, Multiplication Addition, Subtraction
BEDMAS Brackets Exponents Division, Multiplication Addition, Subtraction
GEMDAS Grouping symbols Exponents Multiplication, Division Addition, Subtraction

PEMDAS is the familiar form in the United States. BODMAS and BIDMAS are widely taught in the United Kingdom and in many places influenced by its schools, and BEDMAS is common in Canada. Usage varies between schools, so treat this as a general pattern.

Exponent, index (plural indices) and order all refer here to the small raised number, as in 5³. Parentheses are the round marks ( ), and in British usage "brackets" often covers them along with the square marks [ ].

Why M and D can swap places

PEMDAS writes multiplication first. BODMAS writes division first. Both can be right only because neither letter has priority.

Division by a nonzero number is multiplication by its reciprocal. So any chain of × and ÷ is really a chain of multiplications, and reading left to right keeps each ÷ attached to the number just after it.

48 ÷ 6 × 2
left to right:        8 × 2 = 16
as multiplication:    48 × (1/6) × 2 = 16
M strictly first:     48 ÷ 12 = 4        (incorrect)

The third line is what happens when PEMDAS is read as "all multiplication before any division."

Same four levels, different words
PEMDAS Parentheses Exponents Multiply and divide Add and subtract BODMAS Brackets Orders Divide and multiply Add and subtract BIDMAS Brackets Indices Divide and multiply Add and subtract PEMDAS Parentheses Exponents Multiply and divide Add and subtract BODMAS Brackets Orders Divide and multiply Add and subtract BIDMAS Brackets Indices Divide and multiply Add and subtract

Why A and S behave the same way

The last two letters cause a matching error, especially for readers who learned that A comes before S.

20 - 8 + 5
left to right:        12 + 5 = 17
A strictly first:     20 - 13 = 7        (incorrect)

Subtraction is addition of the opposite: 20 + (-8) + 5. In that form the terms may be added in any order. Gathering the positives and then the negatives, 25 + (-8) = 17.

The minus sign travels with the number that follows it. Rearranging 20 - 8 + 5 as 20 + 5 - 8 is fine. Rearranging it as 8 - 20 + 5 is not.

The "of" reading of BODMAS

In some classrooms the O is explained as "of," as in "one half of 20." Taking a fraction of a quantity is multiplication: (1/2) of 20 is 10. Where "of" is given its own early step, it is meant to keep a phrase such as "half of 20" together as one quantity.

Compare 60 ÷ (1/2 of 20). The phrase forms a unit worth 10, so the result is 6. If the word were replaced by a plain × sign with no brackets, 60 ÷ 1/2 × 20 read left to right would give 2,400.

In symbolic algebra the cleanest solution is to write the brackets. Most textbooks interpret O as orders, meaning powers and roots, so check which reading your course uses.

Brackets of several shapes

When groups are nested, writers often change the shape to make pairs easy to match:

{ 50 - [ 4 × (7 - 2) + 6 ] } ÷ 8
= { 50 - [ 4 × 5 + 6 ] } ÷ 8
= { 50 - 26 } ÷ 8
= 24 ÷ 8
= 3

Work from the innermost pair outward, applying all the levels inside each pair. The shapes carry no extra rank in ordinary arithmetic. In other parts of algebra, braces can denote sets and square brackets can denote intervals or matrices, so context matters.

Fraction bars and root bars group too, although no acronym lists them. See grouping symbols and hidden parentheses.

Terms first: a way that needs no letters

If the letters keep misleading you, try reading an expression as a sum of terms. Look for plus and minus signs that are outside every grouping symbol, and draw a line before each one. Each segment is a term. Simplify the terms separately, then combine them.

7 + 12 ÷ 4 × 2 - 3² + 1
| 7 | + 12 ÷ 4 × 2 | - 3² | + 1 |
= 7 + 6 - 9 + 1
= 5

Within the second segment, only division and multiplication appear, so it is read left to right: 12 ÷ 4 = 3, then 3 × 2 = 6. The third segment is a power with a subtraction sign attached.

This method makes it nearly impossible to add 7 and 12 too early, since a line separates them. It also carries straight into algebra, where an expression such as 4x² - 3x ÷ 3 + 8 has three terms that can be simplified one at a time: 4x², -x and 8.

The word term has the same meaning in British and American usage, which makes this a helpful common language when two people learned different acronyms.

One worked expression in each vocabulary

Take 5 + 2 × (9 - 6)² ÷ 3 - 4.

Step Result PEMDAS name BIDMAS name
9 - 6 5 + 2 × 3² ÷ 3 - 4 parentheses brackets
3² 5 + 2 × 9 ÷ 3 - 4 exponent index
2 × 9 5 + 18 ÷ 3 - 4 multiplication multiplication
18 ÷ 3 5 + 6 - 4 division division
5 + 6, then - 4 7 addition, subtraction addition, subtraction

Only the names change. A student moving between school systems needs new words, not new math.

What no acronym tells you

Negative signs. In -6², the power is applied first and the value is -36. In (-6)², it is 36. The letters do not mention this, and the details are in why -3² and (-3)² differ.

Stacked powers. A power raised in a tower is read from the top: 2 to the power 2³ is 2⁸ = 256.

Unwritten multiplication. Expressions such as 2π or 5(x + 1) mean multiplication. Many writers also read 1 ÷ 2π as 1 ÷ (2π), while a strict left to right reading gives (1 ÷ 2) × π.

Shortcuts. The properties of numbers permit reordering that the acronym seems to forbid. In 17 × 5 × 2 you may compute 5 × 2 first, by the associative property.

Substituting letters under any acronym

The same four levels apply once variables appear. To evaluate 100 - 4(x + 2)² at x = 3, substitute with parentheses, work the bracket, apply the power or index, multiply and then subtract.

100 - 4((3) + 2)²
= 100 - 4(5)²
= 100 - 4(25)
= 100 - 100
= 0

A reader who subtracted 4 from 100 first would get 96 × 25 = 2,400. The acronym cannot help if the letters S and M are treated as a ranking in the wrong direction, but the term picture shows at once that 4(x + 2)² is a single term.

At x = -7, the bracket is -5, its square is 25 again and the result is 0. Squaring gives equal values for opposite inputs, which is why this equation has two solutions.

Why viral puzzles split people

Puzzles such as 6 ÷ 2(1 + 2) circulate because two reasonable readings exist.

  • Left to right: 6 ÷ 2 × 3 = 3 × 3 = 9.
  • Treating 2(1 + 2) as one bundled product: 6 ÷ 6 = 1.

The acronyms do not settle the question of whether unwritten multiplication binds more tightly, because that is a typesetting convention that differs among authors and calculators. Switching from PEMDAS to BODMAS does not help either: they are the same rule.

A mathematician writing for readers would avoid the form and use a fraction bar or an extra pair of parentheses. If you meet it on a test or in software, check the stated convention. For more, see implied multiplication and calculators.

Convention versus mathematical law

It helps to separate two kinds of rules. The order of operations is a convention about notation: a shared decision about what a string of symbols means. People could have agreed on something else, as long as everyone used it.

The properties of numbers are different. The statement that 4 × 7 equals 7 × 4, or that 3(5 + 2) equals 15 + 6, is a fact about how the numbers behave, whichever notation you use to write it.

This explains why some calculator and programming languages can follow different reading rules without doing different mathematics. Certain notations avoid precedence altogether, such as postfix notation, in which 3 4 2 × + means 3 + (4 × 2) because each operator acts on the values just before it.

It also explains why arguing about an ambiguous typed expression leads nowhere. There is no law of numbers to discover in it. There is only a question about what the writer intended, and the writer can answer it with a pair of parentheses.

When you write mathematics for others, your goal is that no convention at the edge of agreement is needed to understand you.

Choosing a memory aid

Any of these names works if you picture it as four rows:

grouping
powers
× ÷   (left to right)
+ -   (left to right)

Writing it in this stacked way removes the false impression that six letters mean six turns. If you teach or help at home, use the acronym the student's school uses and add the stacked picture beside it. The underlying structure is explored further in order of operations beyond PEMDAS.

Practice

Name no acronym; just evaluate.

  1. 18 ÷ 3 × 3
  2. 15 - 6 + 4
  3. 2 + 3 × 4²
  4. (2 + 3) × 4 ÷ 10
  5. 40 ÷ [2 × (8 - 3)]
  6. -5² + 30

Answers: 18; 13; 50; 2; 4; 5.

Common questions

Is one acronym more correct than the others?

No. They are teaching labels for a shared convention. GEMDAS has the small advantage of reminding you that more than parentheses can group.

Do all calculators follow this order?

Scientific calculators generally apply precedence, while many simple four-function calculators carry out each operation as you press it. Enter 2 + 3 × 4: a result of 14 shows precedence, and 20 shows step by step evaluation. Check the manual for how yours treats negative signs and unwritten multiplication.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 41 articles in Pre-Algebra Foundations →

Latest news on this topic