Skip to main content
Daily Math Minute

Order of Operations (PEMDAS) Explained

The order of operations tells you which part of an expression to calculate first. Learn what PEMDAS really means, why multiplication and division share a rank, and how to avoid the most common mistakes.

ArithmeticBeginnerDaily Math Minute5 min read

What you'll learn

  • The order of operations and what each letter of PEMDAS stands for
  • Why multiplication and division are done together, from left to right
  • How grouping symbols like brackets and fraction bars change the order
  • How to evaluate multi-step expressions correctly

Introduction

The order of operations is the agreed-upon rule for which part of a math expression to calculate first. Without it, an expression like 3+4×53 + 4 \times 5 could mean 35 or 23 depending on who calculated it. With it, everyone gets 23.

Why this matters

An expression is only useful if it has one meaning. Calculators, spreadsheets, and programming languages all follow the order of operations, so you need to know it to predict what they'll do with what you type. It's also the foundation of algebra. Simplifying an expression like 2(x+3)22(x + 3)^2 correctly depends entirely on doing the steps in the right order.

The concept

The order

Definition — Order of operations

Evaluate an expression in this order:

  1. Grouping symbols such as parentheses, working from the innermost group outward
  2. Exponents
  3. Multiplication and division, together, from left to right
  4. Addition and subtraction, together, from left to right

In the United States this is often remembered as PEMDAS: Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. Other countries use BODMAS or BIDMAS (B for brackets, O for orders or I for indices). They all describe the same rule.

Multiplication and division share a rank

PEMDAS lists M before D, but that's only because a word has to put one letter first. Multiplication and division have equal priority. You do whichever comes first, reading left to right. The same is true for addition and subtraction.

Example — Left to right matters

8÷2×4=4×4=168 \div 2 \times 4 = 4 \times 4 = 16

Dividing first, because it comes first from the left, gives 16. Doing the multiplication first would give 8÷8=18 \div 8 = 1, which is wrong.

10−4+3=6+3=910 - 4 + 3 = 6 + 3 = 9

Subtracting first gives 9. Adding first would give 10−7=310 - 7 = 3, which is also wrong.

Grouping symbols come in many forms

Parentheses are the most familiar grouping symbol, but they aren't the only one. All of these group whatever is inside them and are evaluated first:

  • Parentheses ( )( \ ), brackets [ ][ \ ], and braces { }\{ \ \}
  • A fraction bar: the whole numerator and the whole denominator are each a group
  • Absolute value bars ∣ ∣| \ | and square root symbols

Example — A fraction bar acts like parentheses

12+65−2=183=6\frac{12 + 6}{5 - 2} = \frac{18}{3} = 6

The fraction bar means (12+6)÷(5−2)(12 + 6) \div (5 - 2). Both sums are worked out before dividing.

Worked examples

Example — Worked example 1: multiplication before addition

Problem: Evaluate 3+4×53 + 4 \times 5.

Step 1: There are no grouping symbols or exponents. Multiplication comes before addition: 4×5=204 \times 5 = 20.

Step 2: 3+20=233 + 20 = 23.

Answer: 23

Compare this with (3+4)×5(3 + 4) \times 5, where the parentheses force the addition first: 7×5=357 \times 5 = 35.

Example — Worked example 2: an exponent with multiplication

Problem: Evaluate 2×322 \times 3^2.

Step 1: The exponent applies only to the 3: 32=93^2 = 9.

Step 2: 2×9=182 \times 9 = 18.

Answer: 18. A common error is to compute 2×3=62 \times 3 = 6 first and then square it to get 36.

Example — Worked example 3: every step

Problem: Evaluate 20−3×(6−2)2÷420 - 3 \times (6 - 2)^2 \div 4.

Step 1 (grouping): 6−2=46 - 2 = 4, so the expression is 20−3×42÷420 - 3 \times 4^2 \div 4.

Step 2 (exponent): 42=164^2 = 16, so it's 20−3×16÷420 - 3 \times 16 \div 4.

Step 3 (multiply and divide, left to right): 3×16=483 \times 16 = 48, then 48÷4=1248 \div 4 = 12. That leaves 20−1220 - 12.

Step 4 (subtract): 20−12=820 - 12 = 8.

Answer: 8

Example — Worked example 4: nested grouping

Problem: Evaluate 2[5+3(4−1)]2[5 + 3(4 - 1)].

Step 1: Start with the innermost group: 4−1=34 - 1 = 3. The expression becomes 2[5+3×3]2[5 + 3 \times 3].

Step 2: Inside the brackets, multiply before adding: 3×3=93 \times 3 = 9, then 5+9=145 + 9 = 14.

Step 3: 2×14=282 \times 14 = 28.

Answer: 28

Common mistakes

Warning — Always multiplying before dividing

Because M comes before D in PEMDAS, it's easy to think multiplication always goes first. It doesn't.

12÷3×2=4×2=812 \div 3 \times 2 = 4 \times 2 = 8

Working left to right gives 8. Multiplying first would give 12÷6=212 \div 6 = 2, which is wrong.

Warning — Always adding before subtracting

15−5+2=10+2=1215 - 5 + 2 = 10 + 2 = 12

The answer is 12, not 8. Addition and subtraction share a rank, so go left to right.

Warning — Squaring a negative number

−32-3^2 and (−3)2(-3)^2 are different. The exponent is applied before the negative sign unless parentheses say otherwise:

−32=−(32)=−9(−3)2=(−3)(−3)=9-3^2 = -(3^2) = -9 \qquad (-3)^2 = (-3)(-3) = 9

Many calculators follow this rule too, so type the parentheses when you mean to square a negative number.

Note — About those viral math problems

Expressions like 6÷2(1+2)6 \div 2(1 + 2) go viral because people get different answers. Under the strict left-to-right rule, it's 6÷2×3=96 \div 2 \times 3 = 9. However, some textbooks and calculators give multiplication written by placing things side by side higher priority, which gives 1. The real lesson is that the expression is written ambiguously. Mathematicians avoid the problem by writing 62(1+2)\tfrac{6}{2}(1 + 2) or 62(1+2)\tfrac{6}{2(1 + 2)}, which leave no doubt.

Practice questions

  1. Evaluate 18−2×618 - 2 \times 6.

    Show answer
    1. Multiply first: 2×6=122 \times 6 = 12. Then 18−12=618 - 12 = 6.
  2. Evaluate (9−3)2÷4(9 - 3)^2 \div 4.

    Show answer
    1. The parentheses give 9−3=69 - 3 = 6. The exponent gives 62=366^2 = 36. Then 36÷4=936 \div 4 = 9.
  3. Evaluate 5+24÷4×2−35 + 24 \div 4 \times 2 - 3.

    Show answer
    1. Divide and multiply from left to right: 24÷4=624 \div 4 = 6, then 6×2=126 \times 2 = 12. Now add and subtract from left to right: 5+12=175 + 12 = 17, then 17−3=1417 - 3 = 14.
  4. Evaluate 4+2[10−(3+1)22]4 + 2\left[10 - \frac{(3 + 1)^2}{2}\right].

    Show answer
    1. Innermost first: 3+1=43 + 1 = 4, and 42=164^2 = 16. The fraction is 16÷2=816 \div 2 = 8. Inside the brackets, 10−8=210 - 8 = 2. Then 2×2=42 \times 2 = 4, and finally 4+4=84 + 4 = 8.

Summary

  • Evaluate grouping symbols first, then exponents, then multiplication and division, then addition and subtraction.
  • Multiplication and division have equal priority. So do addition and subtraction. Within each pair, work from left to right.
  • Fraction bars, brackets, absolute value bars, and square roots all act as grouping symbols.
  • An exponent applies only to what it's directly attached to, so −32=−9-3^2 = -9 but (−3)2=9(-3)^2 = 9.

To practice with instant feedback, try the order of operations lesson in the Grade 5 curriculum.