# 1.4.1: Order of Operations

- Page ID
- 4292

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)## Evaluate Numerical and Variable Expressions Using the Order of Operations

eb enters his name into a draw to win a handheld game system from his local electronics megastore. A week later he visits the store for the draw and his name is picked! In order to claim the prize, he must correctly answer a skill testing question.

The question is:45[30−(4×2−3)]

Jeb has to answer the skill testing question without the use of technology. How can Jeb answer this question correctly to claim the prize?

In this concept, you will learn to use the order of operations to solve numerical and **variable** expressions.

### Order of Operations

In mathematics, you will often hear the word **evaluate**. Before you begin, it is important for you to understand what the word evaluate means. When you **evaluate** a mathematical sentence, you figure out the value of the number sentence. Often times you think of evaluating as solving, and it can be that, but more specifically, evaluating is figuring out the value of a sentence.

In mathematics, you can evaluate different types of number sentences. Sometimes you will be working with equations and other times you will be working with expressions. First you need to know the difference between an **equation** and an **expression**.

An **equation** is a statement that two mathematical expressions have the same value. An equation has an equal sign such that the quantity on the left side of the equal sign is equal to the quantity on the right side of the equal sign. This means both sides of the equation stand for the same number. 5x=30 is an equation. It states that "5x" and "30" have the same value.

An **expression** is a general term in mathematics for a group of numbers, symbols and variables representing numbers and operations. You evaluate an expression to figure out the value of the mathematical statement itself, you are not trying to make one side equal another, as with an equation. 3a−2b+8 is an expression. There is no equal sign.

Let’s start with an example of evaluating expressions.

Two eighth grade math students evaluated the expression 2+3×4÷2. Macy’s answer was ten and Cole’s answer was eight. The students you are asked to write their step by step solutions on the board.

Macy‘s Solution:

=2+3×4÷2=5×4÷2=20÷2=10

Cole‘s Solution:

=2+3×4÷2=2+12÷2=2+6=8

It appears that each student performed the indicated operations in different orders. Of course, there cannot be two correct solutions for the same expression. There is actually a specific order in which operations must be performed.

The **order of operations** is a rule that tells you which operation you need to perform and the order in which it must be done to achieve the correct answer. The order of operations is often called **PEMDAS** and each of the letters represents one part of the rule. **P**: parenthesis and **grouping symbols**; **E**: exponents; **M**: multiplication; **D**: division; **A**: addition; **S**: subtraction. **MD** (multiplication and division) are performed in the order they appear in the expression from left to right. **AS** (addition and subtraction) are also performed in the order they appear in the expression from left to right.

Looking at the two solutions for evaluating the expression 2+3×4÷2, who has the correct answer?

Macy

First:2+3=5Next:5×4=20Then:20÷2=10

Cole

First:3×4=12Next:12÷2=6Then:6+2=8

Macy evaluated the expression by performing the addition first, followed by multiplication and division. Cole performed the multiplication and division first, then addition. Macy simply completed the operations as they appeared from left to right. Cole completed the multiplication and division as they appeared from left to right and then performed the addition as his final step. Cole used the order of operations rule, PEMDAS, and his answer is correct.

This is called evaluating or simplifying a **numerical expression**. A **numerical expression** is an expression made up only of numbers and operations.

In addition to numbers, expressions can also have letters. The letters in an expression are called **variables**. These variables represent an unknown quantity. When an expression is written with a variable in it, you call it a **variable expression**.

A variable expression is evaluated using the order of operations in the same way as a numerical expression is evaluated. In this Concept there will be a value given for the variable and you will substitute it into the variable expression before evaluating the expression.

Evaluate the variable expression:

60÷2⋅2a+16−4 when a=5.

First, substitute the given value for a in the expression:

60÷2⋅2(5)+16−4

Remember that, used this way, parenthesis mean you are multiplying 2 times (5).

Now apply the order of operations (PEMDAS) and continue to evaluate the expression.

First, divide: 60÷2=30, and write the new expression.

30⋅2(5)+16−4

Next, multiply: 30⋅2=60, since this is the first multiplication from left to right.

60(5)+16−4

Next, multiply: 60(5)=300 and write the new expression.

300+16−4

Next, add: 300+16=316 and write the new expression.

316−4

Then, subtract: 316−4=312

The answer is 312.

Now let’s add in the grouping symbols. The **grouping symbols** that you will be working with are **brackets** [ ] and parenthesis ( ). According to the order of operations (PEMDAS), you perform all operations inside the grouping symbols BEFORE any other operation in the list.

Evaluate the numerical expression

7+4(15÷5)−6.

First, perform the operation in the parenthesis: 15÷5=3, and write the new expression.

7+4(3)−6

Next, multiply 4(3)=12 to clear the parenthesis and write the new expression.

7+12−6Next, add:7+12=19 and write the new expression.

19−6

Then, subtract: 19−6=13

The answer is 13.

Brackets can be used to group more than one operation. When you see a set of brackets, remember that brackets are a way of grouping numbers and operations with other groups already in parenthesis. Always evaluate grouping symbols from the innermost to the outermost.

Evaluate the numerical expression.

6+[5+(4×6)]−17.

First, evaluate the innermost grouping symbols: the parenthesis.

Multiply:4×6=24 and write the new expression.

6+[5+24]−17.

Next, perform the operation inside the brackets.

Add:5+24=29 and write the new expression.

6+29−17

Next, add:6+29=35 and write the new expression.

35−17Then, subtract: 35−17=18

The answer is 18.

**Examples**

Example \(\PageIndex{1}\)

Earlier, you were given a problem about Jeb and his (almost) prize.

Remember, when solving a problem like this skill testing question, you need to complete the indicated operations in the order of PEMDAS.

45[30−(4×2−3)]

**Solution**

Notice there are parenthesis within the brackets. You need to evaluate from the inside out. So start with the parenthesis. According to PEMDAS multiplication comes before subtraction, and this is just as true within a group as without.

First, multiply: 4×2=8 and write the new expression.

45[30−(8−3)]Next, subtract: 8−3=5 and write the new expression.

45[30−5]

Next, subtract: 30−5=25 and write the new expression.

45(25)

Next, multiply:45×251=1005 and write the new expression.

1005

Then, divide: 1005=20

The answer is 20.

Jeb needs to answer 20 to claim his prize.

Example \(\PageIndex{1}\)

Evaluate the expression 3+9⋅2÷3+8

**Solution**

First, multiply 9⋅2=18, and write down the new expression.

3+18÷3+8

Next, divide 18÷3=6 and write down the new expression.

3+6+8

Next add 3+6=9 and write down the new expression.

9+8Then, add 9+8=17.

The answer is 17.

Example \(\PageIndex{1}\)

Evaluate the variable expression 6y+3−(2×4) when y=15.

**Solution**

First, substitute y=15 into the expression.

6(15)+3−(2×4)

Next, perform the operation inside the parenthesis.

Multiply: 2×4=8 and write the new expression.

6(15)+3−8

Next, multiply: 6(15)=90 to clear the parenthesis and write the new expression.

90+3−8

Next add: 90+3=93 and write the new expression.

93−8Then, subtract:

93−8=85The answer is 85.

Example \(\PageIndex{1}\)

Evaluate the numerical expression.

7+4[4+(3×2)]−5

**Solution**

Remember to evaluate the grouping symbols from the innermost to the outermost.

First, perform the operation inside the parenthesis.

Multiply: 3×2=6 and write the new expression.

7+4[4+6]−5

Next, perform the operation inside the brackets.

Add: 4+6=10 and write the new expression.

7+4[10]−5

Then multiply 4×10=40.

7+40−5

Next, add: 7+40=47 and write the new expression.

47−5 Finally, subtract

47−5=42

The answer is 42.

Example \(\PageIndex{1}\)

Evaluate the variable expression.

14×2÷7+3b−4 when b=12.

**Solution**

First substitute b=12 into the expression.

14×2÷7+3(12)−4

First, multiply:14×2=28 and write the new expression.

28÷7+3(12)−4

Next, divide:28÷7=4 and write the new expression.

4+3(12)−4

Then, multiply again: 3×12=36, and write another new expression.

4+36−4

Next, add:4+36=40 and write the new expression.

40−4

Finally, subtract : 40−4=36

The answer is 36.

### Review

Evaluate each numerical expression using the order of operations.

1. 4+5×2−3

2.6+6×3÷2−7

3. 5+5×8÷2+6

4.13−3×2+8−2

5.17−5×3+8÷2

6.9+4×2+7−1

7.8+5×6+2×4−3

8.19+2×4−3⋅2+10

9. 12+4×4÷8−3

10. 12×2+6÷2−12

Evaluate each variable expression. Remember to use PEMDAS when necessary.

11.4y+6−2,when y=6

12.9+3x−5+2,when x=8

13.6y+2y−5,when y=3

14.8+3y−5,when y=4

15.7x−2×3÷3+12,when x=5

### Review (Answers)

To see the Review answers, open this PDF file and look for section 1.4.

### Vocabulary

Term | Definition |
---|---|

Brackets |
Brackets [ ], are symbols that are used to group numbers in mathematics. Brackets are the 'second level' of grouping symbols, used to enclose items already in parentheses. |

Equation |
An equation is a mathematical sentence that describes two equal quantities. Equations contain equals signs. |

Evaluate |
To evaluate an expression or equation means to perform the included operations, commonly in order to find a specific value. |

Expression |
An expression is a mathematical phrase containing variables, operations and/or numbers. Expressions do not include comparative operators such as equal signs or inequality symbols. |

Grouping Symbols |
Grouping symbols are parentheses or brackets used to group numbers and operations. |

nested parentheses |
Nested parentheses describe groups of terms inside of other groups. By convention, nested parentheses may be identified with other grouping symbols, such as the braces "{}" and brackets "[]" in the expression {3+[2−(5+4)]}. Always evaluate parentheses from the innermost set outward. |

Numerical expression |
A numerical expression is a group of numbers and operations used to represent a quantity. |

Parentheses |
Parentheses "(" and ")" are used in algebraic expressions as grouping symbols. |

PEMDAS |
PEMDAS (Please Excuse My Daring Aunt Sally) is a mnemonic device used to help remember the order of operations: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction. |

Real Number |
A real number is a number that can be plotted on a number line. Real numbers include all rational and irrational numbers. |

Variable |
A variable is a symbol used to represent an unknown or changing quantity. The most common variables are a, b, x, y, m, and n. |

Variable Expression |
A variable expression is a mathematical phrase that contains at least one variable or unknown quantity. |

### Additional Resources:

PLIX: Play, Learn, Interact, eXplore: **Order of Operations: Barrels of Candy**

Video: **Order of Operations (PEMDAS)**

Practice: **Order of Operations**

Real World Application: **Everyone Loves a Bargain!**

Activities: **PEMDAS Discussion Questions**