Order of Operations Calculator (PEMDAS / BODMAS With Steps)

Type an expression with brackets, exponents, ×, ÷, + and − and see it solved one operation at a time in PEMDAS / BODMAS order,…

Results

Enter your details and click Calculate to see your results.
About This Calculator

PEMDAS (BODMAS in the UK) sets the order: Parentheses (Brackets) first, then Exponents (Orders), then Multiplication and Division from left to right, then Addition and Subtraction from left to right.

Multiplication doesn't come before division, and addition doesn't come before subtraction — each pair is worked left to right as they appear. So 8 ÷ 2 × 4 = 16, not 1. Powers stack from the right: 2^3^2 = 2^9 = 512.

Example

Example: 3 + 6 × (5 + 4) ÷ 3 − 7 = 14 — brackets first (9), then 6 × 9 = 54, 54 ÷ 3 = 18, then 3 + 18 − 7.

Assumptions

A number next to a bracket means multiply: 2(3 + 4) = 2 × (3 + 4). −3^2 is read as −(3^2) = −9. % divides the number before it by 100. Results are shown to 12 significant digits.

Frequently Asked Questions

What is 6 ÷ 2(1 + 2)?

With strict left-to-right PEMDAS, 6 ÷ 2 × 3 = 9.

Is multiplication done before division?

No — they have equal priority and are worked left to right.

What's the difference between PEMDAS and BODMAS?

Only the names: brackets/parentheses and orders/exponents. The order is the same.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile