PEMDAS Calculator

Type any math problem and get the answer with step-by-step working. PEMDAS is the order of operations: parentheses, exponents, multiplication, division, addition and subtraction.

Answer
Use ^ for exponents, for example 3^2. You can type x or * for multiplication, and use [ ] or { } too.

What does PEMDAS stand for?

LetterStands forExample
PParentheses(2 + 3) is solved first
EExponents3² = 9
MMultiplication3 × 5 = 15
DDivision12 ÷ 4 = 3
AAddition6 + 2 = 8
SSubtraction9 − 4 = 5

A popular way to remember the order is the phrase "Please Excuse My Dear Aunt Sally".

The PEMDAS rule

P → E → M and D (left to right) → A and S (left to right)

Multiplication and division have equal priority, so do whichever comes first from the left. Addition and subtraction work the same way. Brackets [ ] and braces { } work like parentheses: solve the innermost group first.

PEMDAS vs BODMAS

PEMDAS (USA)BODMAS (UK, India)
ParenthesesBrackets
ExponentsOrders
Multiplication and DivisionDivision and Multiplication
Addition and SubtractionAddition and Subtraction

They are the same rule with different names. You can also try the BODMAS calculator.

PEMDAS examples

ProblemWorkingAnswer
8 + 2 × 52 × 5 = 10, then 8 + 1018
(8 + 2) × 58 + 2 = 10, then 10 × 550
12 ÷ 3 × 212 ÷ 3 = 4, then 4 × 28
3 + 4^2 × 24² = 16, 16 × 2 = 32, then 3 + 3235
5 × (2 + 3)^2 − 10 ÷ 22 + 3 = 5, 5² = 25, 5 × 25 = 125, 10 ÷ 2 = 5, then 125 − 5120

PEMDAS Practice Problems with Answers (40 Questions)

Try each problem yourself first, then open it to check the step-by-step solution. You can also copy any problem into the calculator above.

Brackets [ ] and braces { } work like parentheses: solve the innermost group first, then work outwards. The working below shows every group as ( ).

Grades 6–8 questions

Q1.  9 + 3 × 4 = ?
  1. Multiplication3 × 4 = 12
    9 + 12
  2. Addition9 + 12 = 21
    21

Answer: 21

Q2.  24 − 18 ÷ 6 = ?
  1. Division18 ÷ 6 = 3
    24 − 3
  2. Subtraction24 − 3 = 21
    21

Answer: 21

Q3.  (5 + 4) × 6 = ?
  1. Parentheses · Addition5 + 4 = 9
    9 × 6
  2. Multiplication9 × 6 = 54
    54

Answer: 54

Q4.  40 ÷ 5 + 7 = ?
  1. Division40 ÷ 5 = 8
    8 + 7
  2. Addition8 + 7 = 15
    15

Answer: 15

Q5.  14 − 2 × 3 + 1 = ?
  1. Multiplication2 × 3 = 6
    14 − 6 + 1
  2. Subtraction14 − 6 = 8
    8 + 1
  3. Addition8 + 1 = 9
    9

Answer: 9

Q6.  6 × (10 − 4) ÷ 3 = ?
  1. Parentheses · Subtraction10 − 4 = 6
    6 × 6 ÷ 3
  2. Multiplication6 × 6 = 36
    36 ÷ 3
  3. Division36 ÷ 3 = 12
    12

Answer: 12

Q7.  2^3 + 5 × 2 = ?
  1. Exponents2^3 = 8
    8 + 5 × 2
  2. Multiplication5 × 2 = 10
    8 + 10
  3. Addition8 + 10 = 18
    18

Answer: 18

Q8.  45 ÷ (4 + 5) × 2 = ?
  1. Parentheses · Addition4 + 5 = 9
    45 ÷ 9 × 2
  2. Division45 ÷ 9 = 5
    5 × 2
  3. Multiplication5 × 2 = 10
    10

Answer: 10

Q9.  18 − 3^2 + 4 = ?
  1. Exponents3^2 = 9
    18 − 9 + 4
  2. Subtraction18 − 9 = 9
    9 + 4
  3. Addition9 + 4 = 13
    13

Answer: 13

Q10.  7 + (12 − 8) × 5 = ?
  1. Parentheses · Subtraction12 − 8 = 4
    7 + 4 × 5
  2. Multiplication4 × 5 = 20
    7 + 20
  3. Addition7 + 20 = 27
    27

Answer: 27

Algebra 1 and high school questions

Q11.  3 × (2 + 5)^2 − 20 = ?
  1. Parentheses · Addition2 + 5 = 7
    3 × 7^2 − 20
  2. Exponents7^2 = 49
    3 × 49 − 20
  3. Multiplication3 × 49 = 147
    147 − 20
  4. Subtraction147 − 20 = 127
    127

Answer: 127

Q12.  100 ÷ 5^2 + 6 × 3 = ?
  1. Exponents5^2 = 25
    100 ÷ 25 + 6 × 3
  2. Division100 ÷ 25 = 4
    4 + 6 × 3
  3. Multiplication6 × 3 = 18
    4 + 18
  4. Addition4 + 18 = 22
    22

Answer: 22

Q13.  (−4)^2 + 3 × (−2) = ?
  1. Exponents(−4)^2 = 16
    16 + 3 × (−2)
  2. Multiplication3 × (−2) = −6
    16 + (−6)
  3. Addition16 + (−6) = 10
    10

Answer: 10

Q14.  5 + 2 × [8 − (3 + 1)^2 ÷ 4] = ?
  1. Parentheses · Addition3 + 1 = 4
    5 + 2 × (8 − 4^2 ÷ 4)
  2. Parentheses · Exponents4^2 = 16
    5 + 2 × (8 − 16 ÷ 4)
  3. Parentheses · Division16 ÷ 4 = 4
    5 + 2 × (8 − 4)
  4. Parentheses · Subtraction8 − 4 = 4
    5 + 2 × 4
  5. Multiplication2 × 4 = 8
    5 + 8
  6. Addition5 + 8 = 13
    13

Answer: 13

Q15.  (18 − 6) ÷ (2 + 1) × 4 − 3 = ?
  1. Parentheses · Addition2 + 1 = 3
    (18 − 6) ÷ 3 × 4 − 3
  2. Parentheses · Subtraction18 − 6 = 12
    12 ÷ 3 × 4 − 3
  3. Division12 ÷ 3 = 4
    4 × 4 − 3
  4. Multiplication4 × 4 = 16
    16 − 3
  5. Subtraction16 − 3 = 13
    13

Answer: 13

Q16.  2 × 3^3 − 4 × 2^2 = ?
  1. Exponents2^2 = 4
    2 × 3^3 − 4 × 4
  2. Exponents3^3 = 27
    2 × 27 − 4 × 4
  3. Multiplication2 × 27 = 54
    54 − 4 × 4
  4. Multiplication4 × 4 = 16
    54 − 16
  5. Subtraction54 − 16 = 38
    38

Answer: 38

Q17.  50 − 2 × (4 + 3^2) = ?
  1. Parentheses · Exponents3^2 = 9
    50 − 2 × (4 + 9)
  2. Parentheses · Addition4 + 9 = 13
    50 − 2 × 13
  3. Multiplication2 × 13 = 26
    50 − 26
  4. Subtraction50 − 26 = 24
    24

Answer: 24

Q18.  (6 + 4)^2 ÷ 5 − 3 × 2 = ?
  1. Parentheses · Addition6 + 4 = 10
    10^2 ÷ 5 − 3 × 2
  2. Exponents10^2 = 100
    100 ÷ 5 − 3 × 2
  3. Division100 ÷ 5 = 20
    20 − 3 × 2
  4. Multiplication3 × 2 = 6
    20 − 6
  5. Subtraction20 − 6 = 14
    14

Answer: 14

Q19.  8 × [12 ÷ (2 + 4)] − 5 = ?
  1. Parentheses · Addition2 + 4 = 6
    8 × (12 ÷ 6) − 5
  2. Parentheses · Division12 ÷ 6 = 2
    8 × 2 − 5
  3. Multiplication8 × 2 = 16
    16 − 5
  4. Subtraction16 − 5 = 11
    11

Answer: 11

Q20.  4 + 6 × 3 − 8 ÷ 2 × 3 = ?
  1. Multiplication6 × 3 = 18
    4 + 18 − 8 ÷ 2 × 3
  2. Division8 ÷ 2 = 4
    4 + 18 − 4 × 3
  3. Multiplication4 × 3 = 12
    4 + 18 − 12
  4. Addition4 + 18 = 22
    22 − 12
  5. Subtraction22 − 12 = 10
    10

Answer: 10

Q21.  (3 + 2)^3 − 5^2 = ?
  1. Parentheses · Addition3 + 2 = 5
    5^3 − 5^2
  2. Exponents5^2 = 25
    5^3 − 25
  3. Exponents5^3 = 125
    125 − 25
  4. Subtraction125 − 25 = 100
    100

Answer: 100

Q22.  7 − (−3) × 4 + 10 ÷ (−5) = ?
  1. Multiplication−3 × 4 = −12
    7 − (−12) + 10 ÷ (−5)
  2. Division10 ÷ (−5) = −2
    7 − (−12) + (−2)
  3. Subtraction7 − (−12) = 19
    19 + (−2)
  4. Addition19 + (−2) = 17
    17

Answer: 17

Q23.  1.2 × 5 + 0.8 × 10 = ?
  1. Multiplication1.2 × 5 = 6
    6 + 0.8 × 10
  2. Multiplication0.8 × 10 = 8
    6 + 8
  3. Addition6 + 8 = 14
    14

Answer: 14

Q24.  3 × {2 + [10 − (4 − 1)^2]} = ?
  1. Parentheses · Subtraction4 − 1 = 3
    3 × (2 + (10 − 3^2))
  2. Parentheses · Exponents3^2 = 9
    3 × (2 + (10 − 9))
  3. Parentheses · Subtraction10 − 9 = 1
    3 × (2 + 1)
  4. Parentheses · Addition2 + 1 = 3
    3 × 3
  5. Multiplication3 × 3 = 9
    9

Answer: 9

Q25.  72 ÷ 9 × 2 + 3^2 − 7 = ?
  1. Exponents3^2 = 9
    72 ÷ 9 × 2 + 9 − 7
  2. Division72 ÷ 9 = 8
    8 × 2 + 9 − 7
  3. Multiplication8 × 2 = 16
    16 + 9 − 7
  4. Addition16 + 9 = 25
    25 − 7
  5. Subtraction25 − 7 = 18
    18

Answer: 18

SAT, ACT and GRE-style questions

Q26.  4 + 3 × [18 − (2 + 4)^2 ÷ 3] = ?
  1. Parentheses · Addition2 + 4 = 6
    4 + 3 × (18 − 6^2 ÷ 3)
  2. Parentheses · Exponents6^2 = 36
    4 + 3 × (18 − 36 ÷ 3)
  3. Parentheses · Division36 ÷ 3 = 12
    4 + 3 × (18 − 12)
  4. Parentheses · Subtraction18 − 12 = 6
    4 + 3 × 6
  5. Multiplication3 × 6 = 18
    4 + 18
  6. Addition4 + 18 = 22
    22

Answer: 22

Q27.  100 − 5 × (6 + 2^3) ÷ 2 = ?
  1. Parentheses · Exponents2^3 = 8
    100 − 5 × (6 + 8) ÷ 2
  2. Parentheses · Addition6 + 8 = 14
    100 − 5 × 14 ÷ 2
  3. Multiplication5 × 14 = 70
    100 − 70 ÷ 2
  4. Division70 ÷ 2 = 35
    100 − 35
  5. Subtraction100 − 35 = 65
    65

Answer: 65

Q28.  6 ÷ 2 × (1 + 2) = ?
  1. Parentheses · Addition1 + 2 = 3
    6 ÷ 2 × 3
  2. Division6 ÷ 2 = 3
    3 × 3
  3. Multiplication3 × 3 = 9
    9

Answer: 9

Q29.  48 ÷ 2 ÷ (3 × 4) + 5 = ?
  1. Parentheses · Multiplication3 × 4 = 12
    48 ÷ 2 ÷ 12 + 5
  2. Division48 ÷ 2 = 24
    24 ÷ 12 + 5
  3. Division24 ÷ 12 = 2
    2 + 5
  4. Addition2 + 5 = 7
    7

Answer: 7

Q30.  (5^2 − 3^2) ÷ (5 − 3) + 10 = ?
  1. Parentheses · Subtraction5 − 3 = 2
    (5^2 − 3^2) ÷ 2 + 10
  2. Parentheses · Exponents3^2 = 9
    (5^2 − 9) ÷ 2 + 10
  3. Parentheses · Exponents5^2 = 25
    (25 − 9) ÷ 2 + 10
  4. Parentheses · Subtraction25 − 9 = 16
    16 ÷ 2 + 10
  5. Division16 ÷ 2 = 8
    8 + 10
  6. Addition8 + 10 = 18
    18

Answer: 18

Q31.  3 + 4 × {7 − [2 × (1 + 2)]} = ?
  1. Parentheses · Addition1 + 2 = 3
    3 + 4 × (7 − (2 × 3))
  2. Parentheses · Multiplication2 × 3 = 6
    3 + 4 × (7 − 6)
  3. Parentheses · Subtraction7 − 6 = 1
    3 + 4 × 1
  4. Multiplication4 × 1 = 4
    3 + 4
  5. Addition3 + 4 = 7
    7

Answer: 7

Q32.  2^3 × 3 − 4^2 ÷ 2 + 5 = ?
  1. Exponents4^2 = 16
    2^3 × 3 − 16 ÷ 2 + 5
  2. Exponents2^3 = 8
    8 × 3 − 16 ÷ 2 + 5
  3. Multiplication8 × 3 = 24
    24 − 16 ÷ 2 + 5
  4. Division16 ÷ 2 = 8
    24 − 8 + 5
  5. Subtraction24 − 8 = 16
    16 + 5
  6. Addition16 + 5 = 21
    21

Answer: 21

Q33.  [(10 − 4) × 5 − 6] ÷ 4 + 1 = ?
  1. Parentheses · Subtraction10 − 4 = 6
    (6 × 5 − 6) ÷ 4 + 1
  2. Parentheses · Multiplication6 × 5 = 30
    (30 − 6) ÷ 4 + 1
  3. Parentheses · Subtraction30 − 6 = 24
    24 ÷ 4 + 1
  4. Division24 ÷ 4 = 6
    6 + 1
  5. Addition6 + 1 = 7
    7

Answer: 7

Q34.  9 − 3 × (−2)^2 + 8 ÷ 2 = ?
  1. Exponents(−2)^2 = 4
    9 − 3 × 4 + 8 ÷ 2
  2. Multiplication3 × 4 = 12
    9 − 12 + 8 ÷ 2
  3. Division8 ÷ 2 = 4
    9 − 12 + 4
  4. Subtraction9 − 12 = −3
    −3 + 4
  5. Addition−3 + 4 = 1
    1

Answer: 1

Q35.  0.5 × (3 + 5)^2 − 2.5 × 4 = ?
  1. Parentheses · Addition3 + 5 = 8
    0.5 × 8^2 − 2.5 × 4
  2. Exponents8^2 = 64
    0.5 × 64 − 2.5 × 4
  3. Multiplication0.5 × 64 = 32
    32 − 2.5 × 4
  4. Multiplication2.5 × 4 = 10
    32 − 10
  5. Subtraction32 − 10 = 22
    22

Answer: 22

Q36.  15 + 5 × 2^2 − 18 ÷ 3 ÷ 2 = ?
  1. Exponents2^2 = 4
    15 + 5 × 4 − 18 ÷ 3 ÷ 2
  2. Multiplication5 × 4 = 20
    15 + 20 − 18 ÷ 3 ÷ 2
  3. Division18 ÷ 3 = 6
    15 + 20 − 6 ÷ 2
  4. Division6 ÷ 2 = 3
    15 + 20 − 3
  5. Addition15 + 20 = 35
    35 − 3
  6. Subtraction35 − 3 = 32
    32

Answer: 32

Q37.  4 × (3 + 2)^2 ÷ 10 − 1 = ?
  1. Parentheses · Addition3 + 2 = 5
    4 × 5^2 ÷ 10 − 1
  2. Exponents5^2 = 25
    4 × 25 ÷ 10 − 1
  3. Multiplication4 × 25 = 100
    100 ÷ 10 − 1
  4. Division100 ÷ 10 = 10
    10 − 1
  5. Subtraction10 − 1 = 9
    9

Answer: 9

Q38.  60 ÷ {5 × [2 + (3 − 1)^2]} = ?
  1. Parentheses · Subtraction3 − 1 = 2
    60 ÷ (5 × (2 + 2^2))
  2. Parentheses · Exponents2^2 = 4
    60 ÷ (5 × (2 + 4))
  3. Parentheses · Addition2 + 4 = 6
    60 ÷ (5 × 6)
  4. Parentheses · Multiplication5 × 6 = 30
    60 ÷ 30
  5. Division60 ÷ 30 = 2
    2

Answer: 2

Q39.  (2 + 3) × (4 − 1)^2 − 6 × 5 = ?
  1. Parentheses · Subtraction4 − 1 = 3
    (2 + 3) × 3^2 − 6 × 5
  2. Parentheses · Addition2 + 3 = 5
    5 × 3^2 − 6 × 5
  3. Exponents3^2 = 9
    5 × 9 − 6 × 5
  4. Multiplication5 × 9 = 45
    45 − 6 × 5
  5. Multiplication6 × 5 = 30
    45 − 30
  6. Subtraction45 − 30 = 15
    15

Answer: 15

Q40.  20 − [3 × (4 + 2) − 2^3] ÷ 5 = ?
  1. Parentheses · Addition4 + 2 = 6
    20 − (3 × 6 − 2^3) ÷ 5
  2. Parentheses · Exponents2^3 = 8
    20 − (3 × 6 − 8) ÷ 5
  3. Parentheses · Multiplication3 × 6 = 18
    20 − (18 − 8) ÷ 5
  4. Parentheses · Subtraction18 − 8 = 10
    20 − 10 ÷ 5
  5. Division10 ÷ 5 = 2
    20 − 2
  6. Subtraction20 − 2 = 18
    18

Answer: 18

Common questions

What does PEMDAS stand for?

PEMDAS stands for Parentheses, Exponents, Multiplication, Division, Addition and Subtraction. It is the order of operations used to solve a math expression.

Does multiplication come before division in PEMDAS?

No. Multiplication and division have equal priority, so work from left to right. The same is true for addition and subtraction. For example, 12 ÷ 3 × 2 = 4 × 2 = 8.

Is PEMDAS the same as BODMAS?

Yes. BODMAS (Brackets, Orders, Division, Multiplication, Addition, Subtraction) is the name used in the UK, India and other countries for the same rule. Only the names of the steps differ.

What is the answer to 8 + 2 × 5?

It is 18, not 50. Multiplication comes before addition, so 2 × 5 = 10 and then 8 + 10 = 18.

What is 6 ÷ 2(1 + 2)?

Working left to right, 6 ÷ 2(1 + 2) = 6 ÷ 2 × 3 = 9. Some textbooks and calculators treat 2(1 + 2) as one group and get 1, so the expression is ambiguous. Add parentheses to make it clear.

Related calculators

BODMAS Calculator Math Toolkit Percentage Calculator