Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Order of operations (PEMDAS)

When a sum has more than one operation, everyone has to agree which part to do first, or 2 + 3 × 4 could be 20 or 14. The agreed answer is 14, and here is the rule that gets you there.

By the Calcist team · Updated October 26, 2026 · About a 4-minute read

The rule

  1. Parentheses (brackets) first, working from the inside out.
  2. Exponents (powers and roots).
  3. Multiplication and Division, together, from left to right.
  4. Addition and Subtraction, together, from left to right.

In the UK and elsewhere it's taught as BODMAS or BIDMAS (Brackets, Orders or Indices, Division, Multiplication, Addition, Subtraction). It's the same rule with different names.

The trap: M doesn't come before D

PEMDAS makes it look as if multiplication always beats division, and addition always beats subtraction. It doesn't. They are pairs, and within each pair you go left to right.

ExpressionRightWrong
12 ÷ 3 × 2(12 ÷ 3) × 2 = 812 ÷ (3 × 2) = 2
10 − 4 + 3(10 − 4) + 3 = 910 − (4 + 3) = 3

Worked examples

ExpressionStepsAnswer
2 + 3 × 43 × 4 = 12, then 2 + 1214
(2 + 3) × 42 + 3 = 5, then 5 × 420
3 + 2^3 × 22^3 = 8, 8 × 2 = 16, 3 + 1619
20 − 6 ÷ 3 + 16 ÷ 3 = 2, then 20 − 2 + 1 left to right19
−3^2the power comes before the minus: −(3^2)−9
(−3)^2the parentheses make the −3 the base9
2^3^2powers stack from the top down: 2^(3^2) = 2^9512

The famous viral one: 6 ÷ 2(1 + 2)

Following the rule as written, the parentheses give 3, then 6 ÷ 2 × 3 left to right is 9. Some people read "2(1 + 2)" as one stuck-together term and get 1. Both readings exist in older textbooks, which is exactly why mathematicians write it clearly instead: 6 ÷ (2(1 + 2)) or (6 ÷ 2)(1 + 2). Calcist follows the left-to-right rule and gives 9, and its working shows you how it read the sum.

Try it

Type any of the examples into the scientific calculator or the ask bar on the homepage. Calcist shows each step in order, so you can see exactly which part it did first.

Every worked example on this page was checked with Calcist's own engine and an independent reference.

Questions people ask

What is PEMDAS?

Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right). It's the order to work out a sum with more than one operation.

Does multiplication come before division?

No. They have equal rank, so you do whichever comes first reading from left to right. 12 ÷ 3 × 2 = 8.

What is 2 + 3 × 4?

14. Multiply first (3 × 4 = 12), then add 2.

Is −3² equal to 9 or −9?

−9. The power applies to 3 only, then the minus. Write (−3)² if you mean 9.