Skip to content

Order of Operations Calculator

Solve any arithmetic expression step by step in BEDMAS, PEMDAS or BODMAS order: brackets, exponents, × ÷ and + − left to right, with exact fractions.

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 BEDMAS order

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

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 (BEDMAS)
StepRuleWorkingExpression now
0StartAs typed3 + 6 × (5 + 4) ÷ 3 − 7
1B: Bracketsinside 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

BEDMAS: Brackets, Exponents, Division and Multiplication, 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 BEDMAS stand for?

Brackets, Exponents, Division and Multiplication, Addition and Subtraction. It is the name Canadian schools use for the order of operations. Division and multiplication have the same priority and are done from left to right, and so are addition and subtraction.

Are BEDMAS, PEMDAS and BODMAS different?

No, they describe the same order. PEMDAS (US) says Parentheses instead of Brackets; BODMAS (UK, India, Australia) says Orders (powers) instead of Exponents. The order of the letters D and M or M and D does not matter, because those two are worked left to right together.

Do you always multiply before dividing?

No. This is the most common mistake with BEDMAS and PEMDAS. Multiplication and division share one level and are done in the order they appear, left to right: 12 ÷ 3 × 2 = 4 × 2 = 8, not 12 ÷ 6 = 2. The same is true for addition and subtraction: 10 − 4 + 3 = 9.

What is 6 ÷ 2(1 + 2)?

This calculator gives 9: the bracket first, 6 ÷ 2(3), then the implied multiplication is treated like any other × and worked left to right, 6 ÷ 2 × 3 = 3 × 3 = 9. Some people and older calculators give the implied product higher priority and get 1. The expression is ambiguous, so write 6 ÷ (2 × 3) or (6 ÷ 2) × 3 to make your meaning clear.

Is −3² equal to 9 or −9?

By the order of operations it is −9: the exponent applies to the 3 first, then the minus sign. To square negative 3, write (−3)², which is 9. Spreadsheets such as Excel are an exception and treat −3^2 as 9, which surprises many people.

How do nested brackets work?

Work from the innermost bracket outwards. In [2 + {3 × (4 − 1)}], first 4 − 1 = 3, then 3 × 3 = 9 in the curly brackets, then 2 + 9 = 11 in the square brackets. Square and curly brackets mean exactly the same as round ones; they just make nesting easier to read.

How do I type powers and fractions?

Use ^ for powers (2^3 means 2³) and / or ÷ for division, so 3/4 is three quarters. The calculator keeps answers as exact fractions, so 1/3 + 1/6 gives exactly 1/2, and shows the decimal and mixed number as well.

Why is there an order of operations at all?

So everyone reads an expression the same way. Without an agreed order, 3 + 4 × 2 could be 14 or 11. The convention (powers, then products, then sums) also matches how algebra is written: 3x² + 2x means 3 × (x²) + (2 × x) without any brackets.

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.

Order of Operations Calculator: BEDMAS, PEMDAS and BODMAS Step by Step

By FindMySum · Last reviewed

The order of operations is the agreement that lets everyone read the same arithmetic expression the same way. Without it, 3 + 4 × 2 could be 14 (adding first) or 11 (multiplying first). Canadian students learn it as BEDMAS, American students as PEMDAS and students in the UK, India and Australia as BODMAS, but all three describe the same rule. This calculator works through any expression one operation at a time, shows which rule applies at each step, and keeps every value as an exact fraction. The opening example is 3 + 6 × (5 + 4) ÷ 3 − 7.

The rule

  1. Brackets: work out anything inside brackets first, starting with the innermost.
  2. Exponents: powers and roots.
  3. Division and Multiplication: together, from left to right.
  4. Addition and Subtraction: together, from left to right.

PEMDAS calls brackets "parentheses", BODMAS calls exponents "orders", and the D and M swap places, but none of that changes the order, because division and multiplication sit on the same level, as do addition and subtraction.

Worked example

Take the default expression:

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

  • B: the bracket first, 5 + 4 = 9, giving 3 + 6 × 9 ÷ 3 − 7.
  • E: there are no exponents.
  • D/M, left to right: 6 × 9 = 54, giving 3 + 54 ÷ 3 − 7; then 54 ÷ 3 = 18, giving 3 + 18 − 7.
  • A/S, left to right: 3 + 18 = 21, then 21 − 7 = 14.

Five steps, and the calculator lists each one with the expression as it stands after that step.

The left-to-right pairs

The acronym's letters suggest that division comes before multiplication (BEDMAS) or multiplication before division (PEMDAS). Neither is true. They are a pair, done in the order they appear:

  • 12 ÷ 3 × 2 = 4 × 2 = 8 (not 12 ÷ 6 = 2)
  • 10 − 4 + 3 = 6 + 3 = 9 (not 10 − 7 = 3)

This is the mistake teachers see most often, and the reason many now write the acronym as B-E-DM-AS.

Exponents and negative numbers

An exponent applies only to what is directly in front of it. So:

  • −2² = −(2²) = −4, because the power comes before the minus sign;
  • (−2)² = 4, because the bracket makes −2 the base.

Powers stacked on powers are worked from the top down: 2^3^2 means 2^(3^2) = 2⁹ = 512, not (2³)² = 64. Spreadsheets such as Excel read −2^2 as 4, which is a common source of disagreement; this calculator follows the mathematical convention.

Brackets inside brackets

Square [ ] and curly { } brackets work exactly like round ones and are used to make nesting easier to see. Always start with the innermost:

[2 + {3 × (4 − 1)}] ÷ 2²

  • 4 − 1 = 3
  • 3 × 3 = 9
  • 2 + 9 = 11
  • 2² = 4
  • 11 ÷ 4 = 11/4, which is 2 3/4 or 2.75.

Implied multiplication: the 6 ÷ 2(1 + 2) puzzle

A number written right next to a bracket means multiply: 2(1 + 2) is 2 × (1 + 2). Puzzles such as 6 ÷ 2(1 + 2) go viral because people disagree about whether that hidden multiplication should come before the division. This calculator, like the site's scientific calculator and most software, treats it as an ordinary multiplication worked left to right:

6 ÷ 2(1 + 2) = 6 ÷ 2 × 3 = 3 × 3 = 9

Some textbooks and older calculators give implied multiplication a higher priority and get 1. The honest answer is that the expression is ambiguous: mathematicians would write 6 ÷ (2 × 3) or (6 ÷ 2) × 3, or use a fraction bar, so the question never arises.

Fractions and decimals, exactly

Because division can create fractions, the calculator keeps every value as an exact fraction rather than a rounded decimal. 1/3 + 1/6 gives exactly 1/2, and 1/2 + 1/3 × 3/4 gives exactly 3/4 (the multiplication and divisions are worked left to right first: 1/3 × 3 = 1, 1 ÷ 4 = 1/4, then 1/2 + 1/4). The answer is shown as a fraction, a mixed number when it is larger than 1, and a decimal; repeating decimals such as 3/7 = 0.428571… are marked.

Tips for checking homework

  • Rewrite the expression after every step, as the calculator does; most errors happen when a step is done in your head.
  • Underline the operation you are about to do before you do it.
  • When an expression could be read two ways, add brackets: they never change a correct answer and often prevent a wrong one.
  • Estimate first. If 3 + 6 × 9 ÷ 3 − 7 should be about 3 + 18 − 7, an answer of 74 is a sign something went wrong.

More questions

When do Canadian students learn BEDMAS?

In Ontario's 2020 mathematics curriculum, students use the order of operations with whole numbers in Grade 6 and extend it to exponents, fractions and decimals in Grades 7 and 8. The Western and Northern Canadian Protocol framework used by the western provinces and territories introduces it at a similar stage. The acronym BEDMAS is the usual memory aid in both.

Does a basic phone calculator follow the order of operations?

Most modern phone calculators do: typing 3 + 4 × 2 gives 11. Some simple four-function calculators work immediately on each key press instead, so the same keys give 14. If in doubt, test with 3 + 4 × 2 and use brackets or the memory keys for anything longer.

Is there a mnemonic for remembering BEDMAS or PEMDAS?

In the US, 'Please Excuse My Dear Aunt Sally' is a classic for PEMDAS. Canadian teachers often just use the acronym, sometimes as 'Big Elephants Destroy Mice And Snails'. Whatever the phrase, remember that the D and M (and the A and S) are pairs done left to right, not one before the other.

How do fraction bars fit into the order of operations?

A long fraction bar acts as a bracket around the whole top and the whole bottom. (2 + 4) over (1 + 2) means (2 + 4) ÷ (1 + 2) = 2. When you type it on one line, add the brackets yourself; 2 + 4 ÷ 1 + 2 is 8, a completely different expression.

Where does the order of operations come from?

It grew out of algebraic notation in the 16th to 19th centuries, when writing 3x² + 2x needed an agreed reading. The conventions became standard in school textbooks in the early 20th century; the acronyms came later as teaching aids. Mathematicians follow the same rules but avoid ambiguous expressions such as a ÷ b(c) by using brackets or a fraction bar.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical 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