Order of Operations (Precedence) — Definition, Formula & Examples
Order of operations is the set of rules that tells you which calculations to perform first when an expression has more than one operation. The standard order is Parentheses, Exponents, Multiplication and Division (left to right), then Addition and Subtraction (left to right), often remembered by the acronym PEMDAS.
Operator precedence is a convention that assigns a hierarchy to arithmetic and algebraic operations so that any well-formed numerical expression has exactly one value. Operations enclosed in grouping symbols are evaluated first, followed by exponentiation, then multiplication and division (processed left to right at equal precedence), and finally addition and subtraction (also processed left to right at equal precedence).
How It Works
When you see an expression like , you need a rule to decide whether to add first or multiply first—different choices give different answers. The order of operations resolves this ambiguity. Start by simplifying anything inside parentheses or brackets, then evaluate exponents, then handle all multiplication and division from left to right, and finish with addition and subtraction from left to right. The mnemonic PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction) helps you remember the sequence, but keep in mind that M and D share the same level, and A and S share the same level.
Worked Example
Problem: Evaluate:
Parentheses: Simplify inside the parentheses first.
Exponents: Evaluate the exponent next.
Multiplication and Division (left to right): Multiply first (it appears to the left), then divide.
Addition: Finally, add.
Answer:
Another Example
Problem: Evaluate:
Multiplication and Division (left to right): Scan left to right for multiplication and division. First, , then .
Addition and Subtraction (left to right): Work left to right: subtract, then add.
Answer:
Why It Matters
Every algebra, geometry, and science course depends on correctly evaluating expressions—one misplaced operation changes your answer entirely. Spreadsheet formulas, programming languages, and calculators all follow operator precedence rules modeled on the same convention. Mastering this skill now prevents errors in everything from solving equations in pre-algebra to writing code in a computer science class.
Common Mistakes
Mistake: Always doing multiplication before division (or addition before subtraction) because of the left-to-right order in PEMDAS.
Correction: M and D share the same precedence level; so do A and S. Evaluate whichever comes first when reading left to right. For , subtract first to get , then add to get .
Mistake: Forgetting to apply the exponent before multiplying when there are no parentheses, e.g., reading as .
Correction: Exponents bind more tightly than multiplication. Evaluate first, then multiply: , not .
