Order of Operations Calculator
Solve any expression step by step in the correct order of operations (PEMDAS, BODMAS or BIDMAS) – brackets, exponents, multiplication and division, addition and subtraction.
PEMDAS, BODMAS, BIDMAS
All three describe the same rule. Parentheses (or Brackets) first, then Exponents (Orders, Indices), then Multiplication and Division, then Addition and Subtraction. The letters suggest that multiplication comes before division, but they have equal rank and are done from left to right – the same for addition and subtraction.
Example
6 − 2 × (1 + 3)^2: the bracket gives 4, the exponent 16, the multiplication 32, and 6 − 32 = −26. Every step appears under the result, with the operation done next always the innermost and highest-ranked one.
The 8 ÷ 2(2 + 2) puzzle
This viral expression splits people between 16 and 1. By the standard rule a number in front of a bracket is a normal multiplication: 8 ÷ 2 × 4 = 16, the answer this calculator gives. Some older textbooks and calculators treat implied multiplication as binding more tightly and get 8 ÷ 8 = 1. The lesson: write 8 ÷ (2(2 + 2)) or (8 ÷ 2)(2 + 2) to say what you mean.
Negative numbers and powers
−3^2 is −9, because the exponent applies before the minus sign. To square −3, write (−3)^2 = 9.
Frequently asked questions
What is the order of operations?
Brackets, exponents, multiplication and division (left to right), addition and subtraction (left to right).
Do you multiply before dividing?
No – multiplication and division have the same priority and are done from left to right: 12 ÷ 3 × 2 = 8.
What is 8 ÷ 2(2 + 2)?
16 by the standard convention (8 ÷ 2 × 4). Some conventions give 1; avoid the ambiguity by adding brackets.