Skip to content

PEMDAS Calculator (Order of Operations)

Type an expression with parentheses, exponents, ×, ÷, + and − and see it solved one operation at a time in PEMDAS order, with the rule used at each step and an exact answer.

Calculator Details

Answer:14See results ↓

Numbers, + − × ÷ (or * /), ^ for powers and brackets ( ) [ ] { }; fractions like 3/4 and decimals work too

BEDMAS (Canada), PEMDAS (US) or BODMAS (UK, India, Australia): the same order

Your Results

Answer: 14

Answer

14

3 + 6 × (5 + 4) ÷ 3 − 7

Steps

5

In PEMDAS order

3 + 6 × (5 + 4) ÷ 3 − 7 = 14, worked out in 5 steps using PEMDAS.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Step by step (PEMDAS)
StepRuleWorkingExpression now
0StartAs typed3 + 6 × (5 + 4) ÷ 3 − 7
1P: Parenthesesinside brackets: 5 + 4 = 93 + 6 × 9 ÷ 3 − 7
2M: Multiplication6 × 9 = 543 + 54 ÷ 3 − 7
3D: Division54 ÷ 3 = 183 + 18 − 7
4A: Addition3 + 18 = 2121 − 7
5S: Subtraction21 − 7 = 1414

How This Calculator Works

How it's calculated

PEMDAS: Parentheses, Exponents, Multiplication and Division, Addition and Subtraction

innermost brackets first · then exponents · then × and ÷ from left to right · then + and − from left to right

Your expression: 3 + 6 × (5 + 4) ÷ 3 − 7 took 5 steps and equals 14. Every step uses exact fractions, so nothing is rounded until the decimal is shown.

Frequently Asked Questions

What does PEMDAS stand for?

Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. US students often learn it as 'Please Excuse My Dear Aunt Sally'. Multiplication and division share one step, worked left to right, and so do addition and subtraction.

What is 8 ÷ 2 × (3 + 1)²?

64. Parentheses first: 3 + 1 = 4. Then the exponent: 4² = 16. Then division and multiplication from left to right: 8 ÷ 2 = 4, and 4 × 16 = 64. Doing the multiplication first (8 ÷ 32) is the classic PEMDAS mistake.

Where is the order of operations in the US standards?

The Common Core State Standards, adopted with changes by most states, introduce it in grade 5 (5.OA.A.1, using parentheses, brackets or braces) and expect students in grade 6 (6.EE.A.2c) to evaluate expressions with whole-number exponents 'in the conventional order when there are no parentheses to specify a particular order'.

Why is the 'M before D' reading of PEMDAS wrong?

Because the letters list pairs of operations with equal rank, not six separate steps. Reading it as multiplication always before division gives 12 ÷ 3 × 2 = 2 instead of the correct 8. Some teachers write it as P E MD AS, or use GEMS (Grouping, Exponents, Multiply/Divide, Subtract/Add), to avoid that.

Follows the order of operations in the Ontario Mathematics Curriculum (2020) and the Western and Northern Canadian Protocol framework (BEDMAS), the same rule as PEMDAS and BODMAS, with exact fractions throughout. Conventions match this site's scientific calculator: implied multiplication such as 2(3) is an ordinary × worked left to right with ÷, a leading minus applies after a power (−2² = −4) and powers group from the right (2^3^2 = 2^9). Not included: roots, fractional exponents, functions (sin, log), percentages, variables and algebraic simplification; use the scientific calculator or the fraction calculator for those.

PEMDAS Calculator: Order of Operations Step by Step

By FindMySum · Last reviewed

This order of operations calculator solves an arithmetic expression the way American students are taught with PEMDAS: first anything in parentheses, then exponents, then multiplication and division from left to right, and finally addition and subtraction from left to right. It shows each step with the rule that applies, so you can check homework or see where a hand calculation went wrong, and it works in exact fractions, so 1/3 + 1/6 comes out as exactly 1/2.

Worked example: 3 + 6 × (5 + 4) ÷ 3 − 7

The US page starts with the expression 3 + 6 × (5 + 4) ÷ 3 − 7, with the steps named in PEMDAS terms.

  1. Parentheses: 5 + 4 = 9, giving 3 + 6 × 9 ÷ 3 − 7.
  2. Multiplication and division, left to right: 6 × 9 = 54, then 54 ÷ 3 = 18, giving 3 + 18 − 7.
  3. Addition and subtraction, left to right: 3 + 18 = 21, then 21 − 7 = 14.

The answer is 14, in 5 steps counting each operation once. Try 8 ÷ 2 × (3 + 1)^2 and the calculator works the parentheses, then the exponent (16), then 8 ÷ 2 = 4 and 4 × 16 = 64.

PEMDAS, BEDMAS and BODMAS

Canada teaches the same rule as BEDMAS (Brackets, Exponents, Division and Multiplication, Addition and Subtraction) and the UK, India and Australia as BODMAS or BIDMAS, where O means "orders" or "of". They all give the same answers; only the names and the order the paired letters are written in differ. The calculator lets you choose which name to show.

Tricky cases

Negative numbers and exponents: −3² means −(3²) = −9, because the exponent applies before the negation; write (−3)² for 9. Powers stack from the top down, so 2^3^2 is 2^9 = 512. Implied multiplication, such as 6 ÷ 2(1 + 2), is treated as ordinary multiplication here, which gives 9; some textbooks and calculators give implied multiplication a higher priority and get 1, which is why such expressions go viral online. When you write expressions for others, add parentheses so there's only one reading.

Spreadsheets and programming languages follow the same order with two catches worth knowing. In Excel and Google Sheets, negation comes before exponents, so =-3^2 returns 9, not -9. And in most languages ^ is not a power at all (Python uses **), so check the syntax before you trust a formula. A graphing calculator such as a TI-84 follows PEMDAS but treats implied multiplication its own way, which is another reason to add parentheses.

For BEDMAS naming as taught in Canadian schools, use the order of operations calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax or legal advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy