Order of Operations

Order of Operations

In this lesson, you will learn

  • the four steps of the order of operations
  • why multiplication and division (and addition and subtraction) are done from left to right
  • what PEMDAS, BODMAS, BEDMAS and BIDMAS stand for
  • how to simplify expressions with nested parentheses

The order of operations is a specific order or a set of rules, agreed upon by mathematicians, one must follow when performing arithmetic operations to simplify expressions.

Order of Operations Rules

Here is the order for doing operations that you need to follow in the order given below to avoid having different answers when simplifying expressions. If grouping symbols are used such as parentheses, brackets, or braces (curly brackets), perform the operations inside the grouping symbols first. Then, proceed with exponents, and so forth...

  1. Simplify any expression within parentheses, brackets or grouping symbols: ( ) [ ] { }
  2. Simplify powers or expressions involving exponents: 42, 25, or 53
  3. Multiply and divide in order from left to right: × and ÷
  4. Add and subtract in order from left to right: + and −
Common mistake

Working straight from left to right through every operation. 2 + 3 × 4 is not 5 × 4 = 20. Multiply first: 2 + 12 = 14.

What is 8 + 2 × 5?

Show answer

18. Multiply first: 2 × 5 = 10. Then add: 8 + 10 = 18.

Order of Operations Problems

Study the example in the figure below carefully so that you understand how to use the order of operations!

PEMDAS example in 14 steps: 10 ÷ (3 + 2) × 4 + 5 squared + 6 − 9. Parentheses give 5, the exponent gives 25, 10 ÷ 5 = 2, 2 × 4 = 8, then 8 + 25 = 33, 33 + 6 = 39, and 39 − 9 = 30.

More Examples Showing How to Use the Order of Operations

Example #1:

42 − 6 × 2 ÷ 4 × 3 + 5

Do exponent:

16 − 6 × 2 ÷ 4 × 3 + 5

Multiply and divide from left to right

16 − 12 ÷ 4 × 3 + 5

16 − 3 × 3 + 5

16 − 9 + 5

Add and subtract from left to right

16 − 9 + 5

7 + 5

12

Example #2:

(2 + 52) + 4 × 3 − 10

Do parentheses:

(2 + 25) + 4 × 3 − 10

27 + 4 × 3 − 10

Do multiplication

27 + 12 − 10

Add

39 − 10

Subtract

29

Example #3:

10 − 14 ÷ 2 = 10 − 7 = 3 (Division comes before subtraction)

Remember

Remember that if you see multiplication and division at the same time, perform the operations from left to right.

Example #4:

4 + 5 ÷ 5 × 6 = 4 + 1 × 6 = 4 + 6 = 10

Worked example: Simplify 3 × (8 − 2)2 ÷ 9 + 1.
  1. Parentheses: 8 − 2 = 6, so the expression is 3 × 62 ÷ 9 + 1.
  2. Exponent: 62 = 36, so it is 3 × 36 ÷ 9 + 1.
  3. Multiply and divide from left to right: 3 × 36 = 108, then 108 ÷ 9 = 12.
  4. Add: 12 + 1 = 13.

3 × (8 − 2)2 ÷ 9 + 1 = 13

What is 20 ÷ 4 × 5?

Show answer

25. Work from left to right: 20 ÷ 4 = 5, then 5 × 5 = 25. (Doing 4 × 5 first would give 1, which is wrong.)

How to Remember the Order of Operations

The following acronyms can make it easier for you to remember the order of operations.

  • PEMDAS (used mostly in the United States of America and also in France)
  • BODMAS (used mostly in the UK, Australia, and India)
  • BEDMAS (used in Canada and New Zealand)
  • BIDMAS

The following mnemonic may help you remember the PEMDAS rule:

PEMDAS (Please Excuse My Dear Aunt Sally)

  • The P stands for parentheses
  • The E stands for exponents
  • The M stands for multiplication
  • The D stands for division
  • The A stands for addition
  • The S stands for subtraction

Even though M comes before D in PEMDAS, the two operations have the same precedence. Same precedence means that multiplication is not more important than division. By the same token, even though A comes before S, the two operations have the same precedence. Addition is not more important than subtraction.

Common mistake

Always multiplying before dividing because M comes first in PEMDAS. In 12 ÷ 3 × 2, divide first because it comes first from the left: 4 × 2 = 8. Multiplying first would give 12 ÷ 6 = 2, which is wrong.

A much better way, in my opinion, to write PEMDAS is P-E-MD-AS.

In P-E-MD-AS, operations with the same precedence have no hyphens between them.

For example, since addition and subtraction have the same precedence, there is no need to put a hyphen between them.

However, P and E have a hyphen between them because P has a higher precedence than E.

All four letters in MDAS and DMAS refer to multiplication, division, addition, and subtraction.

  • In the BODMAS rule, the B stands for bracket and the O stands for order. Order can be powers or roots.
  • In the BEDMAS rule, the B stands for bracket and the E stands for exponents.
  • In the BIDMAS rule, the B stands for bracket and the I stands for indices. Indices are powers such as 62.

Keep in mind also that PEMDAS, BODMAS, BEDMAS, and BIDMAS are all correct ways to perform the order of operations. None of them is better than the other. These are just names that are used, based on the country, to make it easier to remember the rules.

What is 10 − 4 + 3?

Show answer

9. Addition and subtraction have the same precedence, so work from left to right: 10 − 4 = 6, then 6 + 3 = 9.

What About Nested Parentheses in the Order of Operations?

Rule

When grouping symbols are inside other grouping symbols, start with the innermost set and work outward.

Example #5:

Simplify √4 + 1 + {2 − [(6 − 2) × 5] + 13}.

Work first with the innermost set of parentheses or (6 − 2).

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = √4 + 1 + {2 − [4 × 5] + 13}

Next, work again first with the inner set of parentheses or [4 × 5].

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = √4 + 1 + {2 − 20 + 13}

Stay inside the parentheses until you are done. While working inside the parentheses, notice that you need to add and subtract in order from left to right.

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = √4 + 1 + {−18 + 13}

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = √4 + 1 + (−5)

According to the BODMAS rule, you need to do the root first.

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = 2 + 1 + (−5)

Add and subtract again in order from left to right

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = 3 + (−5)

√4 + 1 + {2 − [(6 − 2) × 5] + 13} = −2

The final answer is −2

What is 2 × [3 + (5 − 1)]?

Show answer

14. Innermost first: 5 − 1 = 4. Then 3 + 4 = 7. Then 2 × 7 = 14.

A Real-Life Example of PEMDAS

The order of operations is a very important skill to have since you use it every day even if you are not aware of this.

Say, for instance, you go to the supermarket. Suppose peanuts cost $3.00 per pound and a bottle of water is 1 dollar. You get yourself 2 pounds of peanuts and 1 bottle of water.

How much money do you pay?

Since 1 pound of peanuts is 3 dollars and you bought 2 pounds, peanuts cost 6 dollars. Add that to the amount you pay for the water (1 dollar), you paid a total of 7 dollars.

You may have figured this out without any major problems. However, if I present you with the following expression, which is a model of the problem above, you might have a tendency to add 3 to 1 and multiply the result by 2. That will be the incorrect way to do it!

2 × 3 + 1

Doing this will give 8 and it is not equal to 7.

The correct way is to do multiplication first and then add the product to 1.

You buy 4 notebooks at $2 each and one pen for $3. Which expression gives the total, and what is it?

Show answer

4 × 2 + 3 = 11 dollars. Multiply first: 4 × 2 = 8. Then add the pen: 8 + 3 = 11.

Summary

  • Work in this order: grouping symbols, exponents, multiplication and division, addition and subtraction.
  • Multiplication and division have the same precedence, so do them from left to right.
  • Addition and subtraction also have the same precedence, so do them from left to right.
  • With nested grouping symbols, start with the innermost set and work outward.
  • PEMDAS, BODMAS, BEDMAS and BIDMAS all describe the same rules.

Test Yourself: 10-Question Quiz

Now check what you learned. Every answer is explained, and each time you play you get new questions.

Question 1 of 10Score: 0