AlgebraBeginner

Order of Operations (PEMDAS / BODMAS)

Why does 2 + 3 × 4 equal 14 and not 20? Because mathematicians agreed on a specific order for evaluating expressions — and once you know the rules, every expression has exactly one correct answer.

1 What is the order of operations?

Mathematics is a language, and like any language it needs grammar rules to be unambiguous. The order of operations is the grammar of arithmetic — it tells us which operations to perform first when an expression contains multiple operations.

Without an agreed order, the same expression could mean different things to different people. The expression 2 + 3 × 4 could be read as "(2 + 3) × 4 = 20" or as "2 + (3 × 4) = 14" depending on which operation you do first. Mathematicians worldwide agreed that multiplication comes before addition, so the answer is always 14.

Key Idea

The order of operations ensures every valid mathematical expression has exactly one correct answer. It's a convention — an agreement — not a law of nature. But once agreed upon, everyone can communicate mathematical ideas without ambiguity.

2 The PEMDAS / BODMAS Rules

The acronym PEMDAS (used in the US) or BODMAS (used in the UK and elsewhere) describes the order:

PEMDAS — the order to follow
PParentheses first — evaluate everything inside brackets before anything outside. If there are nested brackets, work from the innermost outward.
EExponents (powers and roots) — evaluate after parentheses but before multiplication or division.
M/DMultiplication and Division — these have equal priority and are evaluated left to right as they appear.
A/SAddition and Subtraction — also equal priority, evaluated left to right as they appear.

Important: Multiplication and division are the same level — do them left to right. Same for addition and subtraction. These are pairs of equal priority, not four separate levels.

BODMAS equivalent

BODMAS stands for Brackets, Orders (exponents), Division, Multiplication, Addition, Subtraction. It's the same rule — the naming difference is regional. The operations at each level still have equal priority and are evaluated left to right.

3 Worked Examples

Example 1 — Basic
Solve: 8 + 2 × 5 − 3
1No parentheses or exponents, so start with multiplication: 2 × 5 = 10
2Rewrite: 8 + 10 − 3
3Now work left to right: 8 + 10 = 18
4Then: 18 − 3 = 15
Answer: 15
Example 2 — With Parentheses
Solve: (8 + 2) × 5 − 3
1Parentheses first: (8 + 2) = 10
2Rewrite: 10 × 5 − 3
3Multiplication next: 10 × 5 = 50
4Finally: 50 − 3 = 47
Answer: 47 — notice how the parentheses completely changed the answer
Example 3 — With Exponents
Solve: 3 + 2² × (10 − 4)
1Parentheses first: (10 − 4) = 6
2Exponents next: 2² = 4
3Rewrite: 3 + 4 × 6
4Multiplication: 4 × 6 = 24
5Finally: 3 + 24 = 27
Answer: 27
Example 4 — Division and Subtraction
Solve: 20 − 12 ÷ 4 + 1
1No parentheses or exponents. Division comes before addition/subtraction: 12 ÷ 4 = 3
2Rewrite: 20 − 3 + 1
3Now left to right: 20 − 3 = 17
4Then: 17 + 1 = 18
Answer: 18

4 Why This Order? The Intuition

The order of operations isn't arbitrary. It reflects the way mathematical operations relate to each other in terms of "strength" or "binding power."

Multiplication is repeated addition: 3 × 4 means 4 + 4 + 4. When you see 2 + 3 × 4, the multiplication "binds" the 3 and 4 together more tightly than the addition binds 2 and 3. It makes sense to resolve that tight binding first, giving 2 + 12 = 14.

Similarly, exponentiation is repeated multiplication: 2³ = 2 × 2 × 2. Exponents bind more tightly than multiplication, so they go first.

Parentheses override everything because they explicitly tell you: "handle this group as a unit first." They're the escape hatch that lets you write any expression in any order you want, as long as you use parentheses to clarify.

Real World Connection

Spreadsheets follow PEMDAS exactly. In Excel, =2+3*4 returns 14, not 20. If you want 20, write =(2+3)*4. Understanding order of operations helps you write formulas correctly in Excel, Google Sheets, and every programming language.

5 Common Mistakes

Mistake 1: Doing left-to-right when you shouldn't

The most common error: seeing 8 + 2 × 5 and doing 8 + 2 = 10 first because it appears first from left to right. Multiplication always beats addition regardless of position. Left-to-right only applies within the same priority level.

Mistake 2: Treating M before D as a rule

PEMDAS lists Multiplication before Division, but they have equal priority. 12 ÷ 4 × 3 is not 12 ÷ 12 = 1. You do it left to right: (12 ÷ 4) × 3 = 3 × 3 = 9. Same for addition and subtraction — they're equal priority.

Mistake 3: Forgetting that exponents apply before multiplication

In 2 × 3², the exponent applies to 3 only, not to 2 × 3. 2 × 3² = 2 × 9 = 18. Only if there were parentheses — (2 × 3)² — would the exponent apply to the whole product: 6² = 36.

Try the Quadratic Formula Calculator

Once you master order of operations, see PEMDAS in action inside the quadratic formula.

Open Calculator →

Practice Problems

Solve: 6 + 4 × 3 − 2
Multiplication first: 4 × 3 = 12. Rewrite: 6 + 12 − 2. Left to right: 18 − 2 = 16.
Solve: (6 + 4) × 3 − 2
Parentheses first: (6 + 4) = 10. Then: 10 × 3 = 30. Then: 30 − 2 = 28.
Solve: 5² − 3 × (2 + 4)
Parentheses: (2 + 4) = 6. Exponent: 5² = 25. Multiplication: 3 × 6 = 18. Final: 25 − 18 = 7.
Solve: 24 ÷ 6 × 2
Division and multiplication are equal priority — go left to right. 24 ÷ 6 = 4. Then 4 × 2 = 8. (Not 24 ÷ 12 = 2, which is a common error.)
Solve: 3 + 2³ × (5 − 2) ÷ 6
Parentheses: (5 − 2) = 3. Exponent: 2³ = 8. Rewrite: 3 + 8 × 3 ÷ 6. Left to right, multiply/divide: 8 × 3 = 24, 24 ÷ 6 = 4. Final: 3 + 4 = 7.