Order of Operations Solver
Type any expression with parentheses, exponents, multiplication, division, addition, and subtraction. The solver breaks it down one step at a time following the PEMDAS rule, with each operation color-coded so you can see exactly what happens and why.
Use * for multiply, / for divide, ^ for exponents. Press Enter to solve.
Try an example
Reference Guide
The PEMDAS Rule
PEMDAS tells you the order in which to evaluate a math expression. Work through the letters from left to right.
Common Mistakes
In , the multiplication happens first. , then . The answer is 11, not 14.
Left-to-right only applies within the same priority level. In , subtract first because it comes first (left-to-right), giving 7, not 3.
In , evaluate the exponent inside the parentheses first. , then , then .
The Left-to-Right Rule
Multiplication and division are not "multiplication first." They have equal priority and are evaluated left-to-right. The same is true for addition and subtraction.
Example
If you multiply first you get , which is wrong. Always work left-to-right when operations share the same priority.
Parentheses Change Everything
Parentheses let you override the default order. Compare these two expressions that use the same numbers and operations but give different answers.
Same numbers, same operations, but the parentheses change the answer from 11 to 14. Whenever you want to force an operation to happen first, wrap it in parentheses.