Order of Operations Guide

The order of operations is the agreed sequence for evaluating a math expression so everyone gets the same answer. The common mnemonic is PEMDAS (BODMAS in some countries).

Step Operation
P Parentheses (grouping)
E Exponents (powers, roots)
MD Multiplication & Division — left to right
AS Addition & Subtraction — left to right

The key subtlety

Multiplication and division share a tier and are done left to right, not multiplication first — same for addition and subtraction. So 8 ÷ 2 × 4 = (8 ÷ 2) × 4 = 16, not 8 ÷ (2×4).

Worked example

3 + 4 × 2² − (5 − 1): parentheses first (5−1=4), then the exponent (2²=4), then multiply (4×4=16), then add/subtract left to right → 3 + 16 − 4 = 15.

Frequently asked questions

What does PEMDAS stand for? Parentheses, Exponents, Multiplication/Division, Addition/Subtraction.

Is multiplication always before division? No — they’re equal; work left to right.

Why do we need an order? So every expression has one unambiguous answer.

When an expression gets long, add your own parentheses to make the intended order explicit — it costs nothing and prevents the ambiguity that trips up people and spreadsheets alike. Clarity beats cleverness in any formula someone else will read.

Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.