Skip to main content

Order of Operations (PEMDAS) with Variables

Apply PEMDAS correctly to algebraic expressions β€” avoiding the most common mistakes students make when simplifying and evaluating.

Lesson 3 of 11 Algebra & Equations Beginner ⏱ 8 min read
πŸ”₯ Why This Matters

Without a consistent order of operations, the same expression gives different answers to different people β€” math breaks down. The classic "8 Γ· 2(2+2)" debate goes viral online every few years because people apply the rules differently. In real work β€” spreadsheet formulas, engineering calculations, code β€” a misapplied order of operations can corrupt an entire analysis. PEMDAS is the grammar of mathematics.

🎯 What You'll Learn
  • Apply PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction) in the correct order
  • Evaluate algebraic expressions with multiple operations step by step
  • Avoid the three most common PEMDAS errors: left-to-right tie-breaking, implied multiplication, and negative exponents
πŸ“– Key Vocabulary
PEMDASThe order: Parentheses β†’ Exponents β†’ Multiplication/Division (left to right) β†’ Addition/Subtraction (left to right). ParenthesesGrouping symbols β€” always evaluate the innermost group first. ExponentA power β€” evaluate after all parentheses are resolved. Left-to-Right RuleWhen operations have equal priority (Γ—Γ· or +βˆ’), work from left to right. Implied MultiplicationWriting 3(x+2) means 3 Γ— (x+2) β€” the Γ— sign is omitted but real.
Key Concept

PEMDAS is the universal agreement on the order to evaluate operations:

( )
Parentheses
first
xΒ²
Exponents
second
Γ— Γ·
Mult / Div
left β†’ right
+ βˆ’
Add / Sub
left β†’ right

Multiplication and division share the same priority β€” so do addition and subtraction. When two equal-priority operations appear, work left to right.

Step-by-Step Evaluation

Every time you evaluate an expression, work one step at a time and write out each simplification:

Evaluating 3 + 4Β² Γ· 2 βˆ’ (6 βˆ’ 2)

StepOperationResult
1Parentheses: (6βˆ’2)3 + 4Β² Γ· 2 βˆ’ 4
2Exponent: 4Β²3 + 16 Γ· 2 βˆ’ 4
3Division: 16Γ·23 + 8 βˆ’ 4
4Add/Sub left→right7
Worked Example 1 β€” Basic: Pure Numbers

Simplify: \(5 + 3 \times 4 - 2^2\)

  1. Exponent: \(2^2 = 4\) β†’ \(5 + 3 \times 4 - 4\)
  2. Multiply: \(3 \times 4 = 12\) β†’ \(5 + 12 - 4\)
  3. Add/Subtract left to right: \(17 - 4 = 13\)
\[ 5 + 3 \times 4 - 2^2 = 13 \]
Worked Example 2 β€” Intermediate: With Variables

Evaluate \(2(x + 3)^2 - 4x\) when \(x = 1\).

  1. Substitute: \(2(1 + 3)^2 - 4(1)\)
  2. Parentheses: \(2(4)^2 - 4\)
  3. Exponent: \(2(16) - 4\)
  4. Multiply: \(32 - 4\)
  5. Subtract: \(28\)
\[ 2(1+3)^2 - 4(1) = 28 \]
Worked Example 3 β€” Real World: Spreadsheet Formula

A spreadsheet calculates a bonus as: \(B = 0.1 \times (S - 5000)^2 / 1000\) where \(S\) = sales in dollars. Find the bonus when \(S = 7000\).

  1. Substitute: \(0.1 \times (7000 - 5000)^2 / 1000\)
  2. Parentheses: \(0.1 \times (2000)^2 / 1000\)
  3. Exponent: \(0.1 \times 4{,}000{,}000 / 1000\)
  4. Left-to-right (mult then div): \(400{,}000 / 1000 = 400\)

The bonus at $7,000 in sales is $400.

✏️ Quick Check

Evaluate each expression:

  1. \(12 - 3 \times 2 + 4\)
  2. \((8 - 3)^2 \div 5\)
  3. \(3n^2 + 2n - 1\) when \(n = 3\)
β–Ά Show Answers
  1. Multiply first: \(12 - 6 + 4 =\) 10.
  2. Parentheses: \((5)^2 \div 5 = 25 \div 5 =\) 5.
  3. \(3(9) + 2(3) - 1 = 27 + 6 - 1 =\) 32.
⚠️ Common Mistakes
  • Adding before multiplying: \(2 + 3 \times 4\) is NOT \(5 \times 4 = 20\). Multiply first: \(2 + 12 = 14\).
  • Forgetting left-to-right for Γ·: \(12 \div 4 \times 3\) is \((12 \div 4) \times 3 = 9\), NOT \(12 \div (4 \times 3) = 1\). Division and multiplication are equal priority β€” go left to right.
  • Applying the exponent to a negative sign: \(-3^2 = -(3^2) = -9\), NOT \((-3)^2 = 9\). The negative sign is only included if it's inside the parentheses.
βœ… Key Takeaways
  • PEMDAS order: Parentheses β†’ Exponents β†’ Γ— Γ· β†’ + βˆ’ (each pair left to right).
  • Equal-priority operations are resolved left to right β€” never skip ahead.
  • Substitute with parentheses to protect negative values and avoid sign errors.
  • Work one step at a time and rewrite the expression after each operation.
πŸ’Ό Career Connection β€” Engineering & Finance

Engineers embed formulas in simulation software where order of operations determines whether a structure is modeled safely or dangerously. Financial analysts write Excel formulas where a missing parenthesis can compound interest at the wrong rate across thousands of rows. Both fields require the same discipline: write every formula explicitly, apply PEMDAS consistently, and check by evaluating at known values.

Calculator Connection

The PEMDAS / Order of Operations Calculator shows every step of the simplification process β€” enter any expression and watch it work through PEMDAS left to right.

Try it with the Calculator

Apply what you've learned with this tool.

PEMDAS / Order of Operations Calculator
Evaluate numerical expressions following the correct order of operations: Parentheses, Exponents, Multiplication/Division, and Addition/Subtraction.
Use calculator β†’
← Previous Lesson
Back to
Variables and Expressions
Continue Learning
Up Next: Combining Like Terms
Next Lesson →
Test Your Knowledge

Order of Operations with Variables - Quiz

5 questions per attempt  Β·  Beginner  Β·  Pass at 70%

Start Quiz β†’

More in Algebra & Equations

Understanding Order of Operations Variables and Expressions Combining Like Terms
← All Algebra & Equations lessons