Try it with your numbers
Show every step
PEMDAS looks like six steps, but it is really four steps, and nearly every lost point comes from reading it as six. The sections below explain why the rules exist, how they behave with negatives, fractions, roots and nested brackets, and how to check an answer before you trust it.
What Is the Order of Operations (PEMDAS) and Why Does It Exist?
An expression needs exactly one reading. Without an agreed priority, could mean or . The convention picks 23, and the choice has a reason behind it. Multiplication is shorthand for repeated addition, so is a packaged , and a package is evaluated as one chunk before it joins anything else. Exponents are shorthand for repeated multiplication, so they sit one level tighter still.
Ranking from tightest to loosest gives the four steps:
- Grouping symbols, which override everything outside them
- Exponents (and roots)
- Multiplication and division, equal rank, left to right
- Addition and subtraction, equal rank, left to right
Parentheses let you ask for a weaker operation first: . This is the distributive idea in disguise, since , which is explained in Commutative, Associative and Distributive Properties. The same ranking is why algebra writes with no brackets: is a product, and products form before sums.
Quick check
Answer:
Does Multiplication Come Before Division in PEMDAS?

No. The letters M then D suggest that multiplication wins, but the two share one rank and are processed in the order they appear. Take . Left to right, , then . Multiplying first would give , which is wrong.
Addition and subtraction behave the same way: , not . Subtraction is adding a negative, so is , and the minus sign belongs to the 4. Subtracting Integers shows how that sign travels through longer expressions.
means , not . Division is multiplication by a reciprocal, which is the idea behind Dividing Fractions.
The fastest reliable method is to split the expression into terms. Terms are the pieces separated by and signs that sit outside any brackets. Each term can be simplified on its own, and only then do you combine them. For the terms are , and .
PEMDAS vs BODMAS: Is It the Same Order of Operations?
It is the same rule with different labels. The mnemonic changes by country, but the structure never does.
| Name | Where used | First two steps |
|---|---|---|
| PEMDAS | United States | Parentheses, Exponents |
| BODMAS | UK, India and others | Brackets, Orders |
| BEDMAS | Canada | Brackets, Exponents |
| GEMDAS | Some US classrooms | Grouping, Exponents |
BODMAS puts D before M and PEMDAS puts M before D. That changes nothing, because the two are one step. Read every version as grouping, powers, then MD, then AS.
The word “parentheses” is narrower than the idea behind it. Grouping includes square brackets and braces, fraction bars, radical signs, function inputs such as , and absolute value bars. For instance, means simplify inside first, giving , and only then does the bar act.
Order of Operations With Negative Numbers and Exponents
The classic trap is . The exponent attaches to the 3 alone, because a leading minus sign behaves like multiplying by , which is a later step. So , while . Excel and some other spreadsheets read a leading minus differently and return 9 for a typed , so type the brackets you mean.
Try this: Without a calculator, evaluate , and . Then say in one sentence why two of them match.
Signs inside a longer expression follow the usual product rules, covered in Multiplying Integers. Here is a full example.
Exponent first, because the bracket already holds : .
Multiplication and division, left to right: and .
Addition and subtraction, left to right: , then . The answer is .
Quick check
Answer:
Order of Operations With Fractions and Fraction Bars

A fraction bar is a grouping symbol in disguise. It puts invisible parentheses around the entire top and the entire bottom, so each is simplified fully before the division happens. In , the top is and the bottom is , so the value is .
This is where typed expressions fail. Entering 3+9/2^2-1 on a calculator gives , because nothing told the machine to group the top and bottom. Entering (3+9)/(2^2-1) gives 4.
Fractions inside a longer line follow the same ranking. Consider . Multiplication comes first: . Then . Only when a sum of fractions has different denominators do you need a common denominator, as in Adding Fractions with Unlike Denominators. When fraction bars are stacked inside each other, simplify the top and bottom first, as shown in Simplifying Complex Fractions.
How Do Nested Brackets, Roots and Factorials Fit In?
With nested brackets, work from the innermost pair outward. Take .
Stacked exponents are the one place where the direction flips. A tower is evaluated from the top down, so , not . Reading a tower left to right is a common error.
A radical sign groups what is under it, so , while . The two are different expressions, and Square Roots explains why a root cannot be split across a sum. A factorial binds tighter than multiplication, so , whereas .
Why Does Implicit Multiplication Cause Arguments Online?
The viral expression splits people because two reasonable conventions collide. Under strict left to right, and then . Others treat as one glued unit, giving . Some calculator models follow the second habit and others the first, so the same keystrokes can disagree.
This is a notation problem, not a gap in arithmetic. The standard rule gives 16, but a writer who meant 1 should have written or . Professional writing avoids the question entirely by never leaving a division ahead of a juxtaposed product.
If a division should cover several factors, group them: . If it should cover only the next number, leave it plain: .
Where Is the Order of Operations Used in Real Life?
Every formula you plug numbers into depends on it. Temperature conversion is the cleanest example: . For , the bracket comes first: , then , so it is . Skipping the brackets gives , which is wrong. The full formula is on the Fahrenheit to Celsius Formula page.
Compound interest uses the exponent step. With , a deposit of at for 2 years gives . Squaring the product instead, , would claim .
Percent change has the same shape: needs the subtraction on top finished before dividing, giving . Spreadsheets and programming languages follow the same precedence, which is why their formulas are full of brackets.
Quick check
Answer:
How Do You Check an Order of Operations Answer?
Checking is quicker than redoing, and these habits catch most errors:
- Add the hidden brackets. Rewrite as to see the exact order the rules demand.
- Simplify one level per line and copy everything else unchanged. Skipped lines are where signs go missing.
- Estimate with round numbers first. If is about , an answer of 140 is a slip.
- Compare the sign of your final answer with the sign of the largest term.
After this, test yourself with the Order of Operations Practice Problems, and for every miss, find which of the four steps you reordered.
Practice problems
0 of 5 solved
Answer:
Multiplication comes before addition. . Then .Answer:
Division and multiplication share a rank, so go left to right. , then . Finally .Answer:
Parentheses first: . Exponent: . Multiply: . Subtract: .Answer:
Treat the numerator and denominator as grouped. Top: . Bottom: . Then .Answer:
Parentheses: . Exponents: and . Left to right: , , and . Finally .
Common questions
What does PEMDAS stand for?
Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. The common phrase is Please Excuse My Dear Aunt Sally. Multiplication and division share one step, and so do addition and subtraction.
Do you multiply or divide first in order of operations?
Neither has priority. Multiplication and division have equal rank, so you do whichever comes first when reading left to right. For example, .
Is equal to 9 or -9?
It equals . The exponent applies only to the 3, and the minus sign is applied afterwards. To square the negative number, write .
Is PEMDAS the same as BODMAS?
Yes. BODMAS (used in the UK and elsewhere), BEDMAS (Canada) and GEMDAS describe the same rule with different words for the first two steps. The order of the letters M and D, or A and S, never changes the result.
Do addition and subtraction go left to right?
Yes. They share one rank, so . Adding first would give , which is wrong.
Why do calculators give different answers to the same expression?
Most follow the standard precedence, but some treat implicit multiplication such as as binding tighter than division. Typing explicit parentheses or using a fraction bar removes the doubt.