Order of Operations (PEMDAS/BODMAS): Why It Matters
Understand the order of operations (PEMDAS/BODMAS): the rules for parentheses, exponents, multiplication, division, addition, and subtraction.
Math···5 min read
Introduction: Avoiding Ambiguity in Math
Consider the expression: 2 + 3 * 4. Do you add 2 and 3 first, then multiply by 4? Or do you multiply 3 and 4 first, then add 2?
- (2 + 3) × 4 = 5 × 4 = 20add first: not the rule
- 2 + (3 × 4) = 2 + 12 = 14multiply first: the rule
2 + 3 × 414
Show the numbers
| Step | Note |
|---|---|
| (2 + 3) × 4 = 5 × 4 = 20 | add first: not the rule |
| 2 + (3 × 4) = 2 + 12 = 14 | multiply first: the rule |
| 2 + 3 × 4 | 14 |
You get two different answers! To ensure everyone gets the same result from the same mathematical expression, there's a standard convention called the order of operations.
This set of rules dictates the sequence in which mathematical operations should be performed. Without it, calculations would be ambiguous and lead to constant confusion.
The Rules: PEMDAS / BODMAS
Two common acronyms help remember the order of operations. They represent the same rules, just with slightly different terminology:
PEMDAS (Common in the US)
- Parentheses (or Brackets): Perform operations inside parentheses or brackets first.
- Exponents (or Orders): Calculate exponents and roots next.
- Multiplication and Division: Perform multiplication and division from left to right.
- Addition and Subtraction: Perform addition and subtraction from left to right.
BODMAS (Common in the UK, Canada, Australia, etc.)
- Brackets (or Parentheses): Perform operations inside brackets or parentheses first.
- Orders (or Exponents): Calculate powers, indices, exponents, and roots next.
- Division and Multiplication: Perform division and multiplication from left to right.
- Addition and Subtraction: Perform addition and subtraction from left to right.
Key Points:
- Parentheses/Brackets First: Always simplify expressions within grouping symbols first, working from the innermost set outwards.
- Exponents/Orders Second: After dealing with parentheses, evaluate any powers or roots.
- Multiplication and Division (Left to Right): These operations have the same priority. Perform them as they appear from left to right.
- Addition and Subtraction (Left to Right): These operations also have the same priority. Perform them as they appear from left to right.
Examples
Let's apply the rules:
Example 1: 2 + 3 * 4
- No Parentheses or Exponents.
- Multiplication:
3 * 4 = 12 - Addition:
2 + 12 = 14Correct Answer: 14
Example 2: (2 + 3) * 4
- Parentheses:
2 + 3 = 5 - Multiplication:
5 * 4 = 20Correct Answer: 20
Example 3: 10 - 2 * 3^2
- No Parentheses.
- Exponent:
- Multiplication:
- Subtraction: Correct Answer: -8
Example 4: 30 / 5 * 3
- No Parentheses or Exponents.
- Multiplication and Division (Left to Right):
-
Correct Answer: 18 (Note: doing multiplication first would give
30 / 15 = 2, which is wrong).
Example 5: (5 + 4) / (2 + 1) - 1
- Parentheses:
- Expression becomes:
- No Exponents.
- Division: Expression becomes:
- Subtraction: Correct Answer: 2
Example 6:
- 7 + 2 × (6 − 3)² ÷ 9Brackets first
- 7 + 2 × 3² ÷ 9Then the exponent
- 7 + 2 × 9 ÷ 9× and ÷, left to right
- 7 + 18 ÷ 9÷ next
- 7 + 2+ last
Answer9
Show the numbers
| Step | Note |
|---|---|
| 7 + 2 × (6 − 3)² ÷ 9 | Brackets first |
| 7 + 2 × 3² ÷ 9 | Then the exponent |
| 7 + 2 × 9 ÷ 9 | × and ÷, left to right |
| 7 + 18 ÷ 9 | ÷ next |
| 7 + 2 | + last |
| Answer | 9 |
Why It Matters in Computing and Science
The order of operations is absolutely critical in programming, spreadsheet calculations, and scientific formulas.
- Programming: Computers strictly follow the order of operations when evaluating expressions. Writing
x = a + b / 2is very different fromx = (a + b) / 2. Understanding PEMDAS/BODMAS ensures your code calculates what you intend. - Spreadsheets (Excel, Google Sheets): Formulas rely on the correct order of operations. Incorrect placement of parentheses can lead to wildly inaccurate results in financial models, data analysis, etc.
- Science and Engineering: Scientific formulas often involve multiple operations. Applying them in the correct order is essential for accurate calculations in physics, chemistry, engineering, and other fields.
Conclusion
The order of operations (PEMDAS/BODMAS) is a fundamental convention in mathematics that eliminates ambiguity in calculations. By consistently applying the rules – Parentheses/Brackets, Exponents/Orders, Multiplication/Division (left-to-right), Addition/Subtraction (left-to-right) – we ensure that everyone arrives at the same correct answer for a given expression. Mastering this order is essential not only for basic arithmetic but also for success in algebra, programming, and any field involving quantitative calculations.
Share this post
Keep reading
Math· Oct 7, 2026· 8 min· Updated Nov 2026
How to Add, Subtract, Multiply and Divide Fractions
Fractions step by step: simplify with the GCF, add unlike denominators with the LCD, multiply, divide with keep-change-flip, and handle mixed numbers.Math· Apr 18, 2025· 4 min· Updated Oct 2026
Understanding Euler's Identity: The Most Beautiful Equation
Explore Euler's Identity, e^(iπ) + 1 = 0, and why this equation linking five fundamental constants is called the most beautiful in math.Math· Apr 4, 2025· 5 min· Updated Nov 2026
The Power of Exponentials: Growth and Decay in Nature and Finance
Explore exponential functions and their profound impact on modeling real-world phenomena, from population growth and radioactive decay to compound interest.