Skip to main content
Mathematics LibreTexts

1.1: Order of Operations

  • Page ID
    153105
  • \( \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}\)
    orthopaedic-female-surgeon-eyes-300x211.jpg
    Photo by bastamanography on flickr.

    We’ll begin with a look at order of operations. In many situations in life, the order in which we perform certain actions is important. For example, if you are putting on your shoes and socks, you need to put a sock on your foot before you put a shoe on that foot. However, if you put on your left sock first, it doesn’t really matter whether the next thing you put on is your left shoe or your right sock, as long as you don’t try putting on your right shoe next. A multi-step math calculation can be the same way; you might have some steps that need to happen in a specific sequence, but there may be some steps that you can do in whatever order you prefer.

    Evaluating an Expression

    To evaluate an expression means to simplify it and find its value.

    Exercises
    1. Evaluate by performing the addition first: \(12–2+3\)
    2. Evaluate by performing the subtraction first: \(12–2+3\)

    When we evaluate an expression, we want to have a single correct answer. It isn’t very helpful for the answer to be “maybe 7, or maybe 13”. Mathematicians have decided on an order of operations, which tells us which steps should be done before other steps. You can think of them as the rules of the road.

    Order of Operations: PEMDAS

    P: Work inside of parentheses or grouping symbols, following the order PEMDAS as necessary inside the grouping symbols.

    E: Evaluate exponents.

    MD: Perform multiplications and divisions from left to right.

    AS: Perform additions and subtractions from left to right.

    Exercises

    Evaluate each expression.

    1. \(12–(2+3)\)
    2. \(12–2+3\)

    Based on Exercises 3 & 4, we can see that Exercise 1 told us to use the wrong order of operations. If there are no parentheses, we must evaluate \(12–2+3\) by first performing the subtraction and then performing the addition.

    Before we move on, you should be aware that there are a handful of ways to show multiplication. All of the following represent \(3\times4\):

    \(3\cdot4\) \(3*4\) \(3(4)\) \((3)4\) \((3)(4)\)

    In this textbook, you will most often see the dot, like \(3\cdot4\), or parentheses directly next to a number, like \(3(4)\). We tend to avoid using the \(3\times4\) symbol because it can be mistaken for the letter x.

    Exercises

    Evaluate each expression.

    1. \(12\div(3\cdot2)\)
    2. \(12\div3\cdot2\)
    3. \(5(1+3)–2\)
    4. \(5(1)+(3–2)\)

    Exponents

    An exponent indicates repeated multiplication. For example, \(6^2=6\cdot6=36\) and \(4^3=4\cdot4\cdot4=64\). The exponent tells us how many factors of the base are being multiplied together.

    Exercises

    Evaluate each expression.

    1. \(3^2+4^2\)
    2. \((3 + 4)^2\)
    3. \((7+3)(7–5)^3\)
    4. \(7+3(7–5)^3\)

    Grouping Symbols

    In the next set of exercises, the only differences are the parentheses, but every exercise has a different answer.

    Exercises

    Evaluate each expression.

    1. \(39–7\cdot2+3\)
    2. \((39–7)\cdot2+3\)
    3. \(39–(7\cdot2+3)\)
    4. \(39–7\cdot(2+3)\)
    5. \((39–7)\cdot(2+3)\)

    It is possible to have grouping symbols nested within grouping symbols; for example, \(7+(5^2-(3(17-12\div4)+2\cdot5)\div4)\).

    To make it somewhat easier to match up the pairs of left and right parentheses, we can use square brackets instead: \(7+(5^2-[3(17-12\div4)+2\cdot5]\div4)\).

    Exercises

    Simplify the expression.

    1. \(7+(5^2-[3(17-12\div4)+2\cdot5]\div4)\)

    A fraction bar is another grouping symbol; it tells us to perform all of the steps on the top and separately perform all of the steps down below. The final step is to divide the top number by the bottom number.

    Exercises

    Evaluate each expression.

    1. \(\dfrac{15-1}{6+1}\)
    2. \(\dfrac{(7+2)\cdot4}{18\div(3+3)}\)
    3. \(\dfrac{5\cdot4^2}{2}\)
    4. \(\dfrac{(5\cdot4)^2}{2}\)
    5. \(\dfrac{(5 – 1)^2}{2+6}\)
    6. \((5 – 1)^2\div2+6\)

    We will look at formulas in a later module, but let’s finish by translating from words to a mathematical expression.

    Exercises

    Borgarnes-Celsius.jpg

    1. You can find the approximate Fahrenheit temperature by doubling the Celsius temperature and adding \(30\). If the temperature is \(9\)°C, what is the approximate Fahrenheit temperature? Write an expression and evaluate it.
    2. You can find the approximate Celsius temperature by subtracting \(30\) from the Fahrenheit temperature and then dividing by \(2\). If the temperature is \(72\)°F, what is the approximate Celsius temperature? Write an expression and evaluate it.

    1.1: Order of Operations is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?