Order of Operations
The order of operations is the agreed-upon order for computing an expression, so that everyone who simplifies gets the same answer. Without a fixed order, one person adds first and gets while another multiplies first and gets — and math stops working as a shared language. The rule says multiplication comes first, so is the answer.
The order is usually remembered as PEMDAS: Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. It shows up in every math course after this one, and it's also exactly how calculators and computers evaluate what you type — so knowing it keeps your work and your calculator in agreement.
The order
Work through an expression in this order. First, parentheses — compute whatever is inside grouping symbols. Second, exponents — evaluate powers like . Third, multiplication and division, working left to right. Fourth, addition and subtraction, working left to right.
Notice that's four levels, not six. Multiplication and division share one level, and addition and subtraction share one level. That detail is where most mistakes come from, so it gets its own section below.
Grouping symbols include more than parentheses: a fraction bar groups everything above it and everything below it. In , you compute first, then divide to get .
The left-to-right rule
PEMDAS does not mean multiplication always beats division. They are the same rank, so you take them in the order they appear, left to right. In , the division comes first: , then . Multiplying first would give , which is wrong.
The same goes for addition and subtraction. In , subtract first because it appears first: , then . Adding first would give , which is wrong.
Parentheses override everything
Parentheses are how you force a different order. , but — the parentheses make the addition happen first. If parentheses are nested inside other parentheses, work from the innermost pair outward.
This is also why parentheses matter with exponents and negatives: because the parentheses square the whole , while because the exponent applies only to the .
Worked examples
Example 1: multiply before adding
Simplify .
Answer:
Example 2: parentheses change the answer
Simplify .
Answer:
Example 3: division and multiplication, left to right
Simplify .
Answer:
Example 4: everything at once
Simplify .
Answer:
Try one yourself
Common questions
Does multiplication always come before division?
No — they are the same rank. Take them in the order they appear, left to right. In the division happens first because it's on the left, giving . The M-before-D in PEMDAS is just how the letters happen to be arranged.
Is PEMDAS the same as GEMDAS or BODMAS?
Yes — they're the same rules with different letters. GEMDAS says Grouping instead of Parentheses, and BODMAS (common outside the US) says Brackets and Orders. Every version agrees on the actual order: grouping symbols, exponents, multiply/divide left to right, add/subtract left to right.
What do I do with parentheses inside parentheses?
Work from the innermost pair outward. In , compute first, then , then .
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.