How to use the order of operations calculator
- Type an expression such as 3 + 4 × (2 − 1)^2. You can use the keyboard symbols * and / for multiplication and division, and ^ for exponents.
- Press Solve.
- Read the steps from top to bottom. Each step performs exactly one operation, tells you which rule allowed it, and rewrites the whole expression with the new value highlighted.
Switch between PEMDAS and BODMAS to see the rule names used in your classroom — the maths is identical.
What is the order of operations?
An expression like 3 + 4 × 2 could mean “add first” (14) or “multiply first” (11). To make sure everybody gets the same answer, mathematicians agreed on an order:
- P — Parentheses (and other grouping symbols): work out whatever is inside first, starting with the innermost pair.
- E — Exponents: powers and roots.
- MD — Multiplication and Division: these have the same priority, so do them in the order they appear, from left to right.
- AS — Addition and Subtraction: also equal partners, done from left to right.
So 3 + 4 × 2 = 3 + 8 = 11. Many people remember the order with “Please Excuse My Dear Aunt Sally”.
PEMDAS, BODMAS, BIDMAS, BEDMAS
| Name | Stands for | Common in |
|---|---|---|
| PEMDAS | Parentheses, Exponents, Multiplication, Division, Addition, Subtraction | United States |
| BODMAS | Brackets, Orders, Division, Multiplication, Addition, Subtraction | UK, India, Australia |
| BIDMAS | Brackets, Indices, Division, Multiplication, Addition, Subtraction | UK |
| BEDMAS | Brackets, Exponents, Division, Multiplication, Addition, Subtraction | Canada |
They all describe the same rules. Notice that PEMDAS lists multiplication before division while BODMAS lists division first — proof that neither comes first. They share a level and are worked left to right.
Worked examples
Example 1: 3 + 4 × (2 − 1)².
Parentheses: 2 − 1 = 1, giving 3 + 4 × 1².
Exponents: 1² = 1, giving 3 + 4 × 1.
Multiplication: 4 × 1 = 4, giving 3 + 4.
Addition: 3 + 4 = 7.
Example 2: 8 ÷ 2 × (2 + 2).
Parentheses: 2 + 2 = 4, giving 8 ÷ 2 × 4.
Division and multiplication, left to right: 8 ÷ 2 = 4, then 4 × 4 = 16. (Doing 2 × 4 first would give 1, which is the classic mistake.)
Common mistakes
- Always multiplying before dividing (or adding before subtracting). The pairs are equal: 12 − 4 + 3 is 8 + 3 = 11, not 12 − 7 = 5.
- Negative signs and exponents. −3² means −(3²) = −9, because the exponent is applied before the minus sign. To square negative three, write (−3)² = 9.
- Stacked exponents. 2^3^2 is read from the top down: 2^(3²) = 2⁹ = 512.
- Forgetting that a number next to a parenthesis means multiply. 2(3 + 4) is 2 × (3 + 4) = 14. This calculator treats it as an ordinary multiplication with the same priority as ÷.
Exact answers
The calculator keeps every intermediate value as an exact fraction, so 1 ÷ 3 × 3 comes out as exactly 1 rather than 0.9999…. When a result is not a whole number it is shown as a decimal if the decimal ends, and as a fraction otherwise. To practise the individual skills, try the exponent calculator or the fraction calculator.
Frequently asked questions
What does PEMDAS stand for?
Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right). It is the order in which operations in an expression are carried out.
Is multiplication always done before division?
No. Multiplication and division have the same priority and are done in the order they appear, from left to right. The same is true for addition and subtraction.
What is the difference between PEMDAS and BODMAS?
Only the words. BODMAS says Brackets and Orders where PEMDAS says Parentheses and Exponents, and it lists Division before Multiplication, but both describe exactly the same rules and give the same answers.
What is 8 ÷ 2(2 + 2)?
Following the standard left-to-right rule the answer is 16: the parentheses give 4, then 8 ÷ 2 = 4, then 4 × 4 = 16. The expression is famous because some people treat 2(2 + 2) as a single group and get 1; adding parentheses removes the ambiguity.
Is −3² equal to 9 or −9?
It equals −9. The exponent is applied first, giving 3² = 9, and then the negative sign is applied. To square negative three you must write (−3)², which is 9.
How do you solve nested parentheses?
Start with the innermost parentheses and work outwards, applying the usual order of operations inside each pair. For example 2 × (3 + (4 − 1)) = 2 × (3 + 3) = 2 × 6 = 12.