Answered Plainly

Leer esta página en español

Order of Operations: PEMDAS

Some math problems have many signs in them: +, −, ×, ÷.

Which part do you do first?

If everyone picks a different part, everyone gets a different answer.

So math has one rule for the order. It is called the order of operations.

Its nickname is PEMDAS.

Follow the order, and your answer matches everyone's answer.

Pick your grade:

Elementary: The Order, One Step at a Time

PEMDAS is the whole rule in six letters.

The order (PEMDAS)

P — Parentheses first. Do what is inside ( ) before anything else.

E — Exponents next. A small raised number like 3² means 3 × 3.

MD — Multiply and Divide next, from left to right.

AS — Add and Subtract last, from left to right.

A memory trick: Please Excuse My Dear Aunt Sally. The first letters spell PEMDAS.

Example 1: 3 + 4 × 2

There are no parentheses and no exponents.

Multiply before you add. 4 × 2 = 8.

Now the problem is 3 + 8.

Add. 3 + 8 = 11. The answer is 11.

Example 2: (3 + 4) × 2

Parentheses come first. 3 + 4 = 7.

Now the problem is 7 × 2.

Multiply. 7 × 2 = 14. The answer is 14.

See? Parentheses changed the answer from 11 to 14. Parentheses are powerful.

The mistake to watch for

Do not just go left to right and do whatever you see first.

In Example 1, going left to right gives 3 + 4 = 7, then 7 × 2 = 14. That is wrong.

Multiplication jumps the line. It goes before addition, even when it comes later in the problem.

Words to Know

Order of operations: The order of operations is the rule that says which part of a problem to do first, second, and last.

Parentheses: Parentheses are the curved marks ( ) that group numbers together. Do what is inside them first.

Exponent: An exponent is a small raised number that tells how many times to multiply a number by itself. In 3², the 2 is the exponent.

PEMDAS: PEMDAS is the nickname for the order: Parentheses, Exponents, Multiply, Divide, Add, Subtract.

Expression: An expression is a math statement with numbers and signs but no equals sign, like 3 + 4 × 2.

Sources

OpenStax, Prealgebra, the Order of Operations section: simplify inside parentheses first, then exponents, then multiply and divide from left to right, then add and subtract from left to right.

The memory sentence “Please Excuse My Dear Aunt Sally” is the classic classroom mnemonic for PEMDAS, in wide use in U.S. schools.

All worked examples on this page were computed and checked step by step for this page: 3 + 4 × 2 = 11; (3 + 4) × 2 = 14; 2 + 3² × 2 = 20; 12 ÷ 3 × 2 = 8.

Related guides: The Planets in Order for Kids, What Causes Tides, What Is a Black Hole, What Is a Comet and What Is a Galaxy? What Is the Milky Way.