Skip to main content
Mathematics LibreTexts

1.7: Order of Operations

  • Page ID
    24445
    • Anonymous
    • LibreTexts
    \( \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}}\)

    Learning Objectives

    • Identify and work with grouping symbols.
    • Understand the order of operations.
    • Simplify using the order of operations.

    Grouping Symbols

    In a computation where more than one operation is involved, grouping symbols help tell us which operations to perform first. The grouping symbols commonly used in algebra are

    \(\begin{array} {cl}{(\:\:)}&{\color{Cerulean}{Parentheses}}\\{[\:\:]}&{\color{Cerulean}{Brackets}}\\{\{\:\:\}}&{\color{Cerulean}{Braces}}\\{\frac{\:\:}{\:\:}}&{\color{Cerulean}{Fraction\:bar}} \end{array}\)

    All of the above grouping symbols, as well as absolute value, have the same order of precedence. Perform operations inside the innermost grouping symbol or absolute value first.

    Example \(\PageIndex{1}\)

    Simplify:

    \(5-(4-12)\).

    Solution:

    Perform the operations within the parentheses first. In this case, first subtract \(12\) from \(4\).

    \(\begin{aligned} 5-(4-12)&=5-(-8) \\ &=5+8 \\ &=13 \end{aligned}\)

    Answer:

    \(13\)

    Example \(\PageIndex{2}\)

    Simplify:

    \(3\{−2[−(−3−1)]\}\).

    Solution:

    Answer:

    \(-24\)

    Example \(\PageIndex{3}\)

    Simplify:

    \(\frac{5-|4-(-3)|}{|-3|-(5-7)}\).

    Solution:

    \(\begin{aligned} \frac{5-|4-(-3)|}{|-3|-(5-7)}&=\frac{5-|4+3|}{|-3|-(-2)} \\ &=\frac{5-|7|}{|-3|+2} \\ &=\frac{5-7}{3+2} \\ &=\frac{-2}{5} \\ &=-\frac{2}{5} \end{aligned}\)

    Answer:

    \(-\frac{2}{5}\)

    Exercise \(\PageIndex{1}\)

    Simplify:

    \(−[−3(2+3)]\).

    Answer

    \(15\)

    Order of Operations

    When several operations are to be applied within a calculation, we must follow a specific order to ensure a single correct result.

    1. Perform all calculations within the innermost parentheses or grouping symbols.
    2. Evaluate all exponents.
    3. Perform multiplication and division operations from left to right.
    4. Finally, perform all remaining addition and subtraction operations from left to right.

    Note

    Caution: Note that multiplication and division operations must be worked from left to right.

    Example \(\PageIndex{4}\)

    Simplify:

    \(5^{2}−4⋅3÷12\).

    Solution:

    First, evaluate \(5^{2}\) and then perform multiplication and division as they appear from left to right.

    \(\begin{aligned} 5^{2}-4\cdot 3\div 12 &=25-\color{Cerulean}{\underbrace{\color{black}{4\cdot 3}}} \color{black}{\div 12} \\ &=25-\color{Cerulean}{\underbrace{\color{black}{12\div 12}}} \\ &=\color{Cerulean}{\underbrace{\color{black}{25}}}\color{black}{-1} \\ &=24 \end{aligned}\)

    Because multiplication and division operations should be worked from left to right, it is sometimes correct to perform division before multiplication.

    Example \(\PageIndex{5}\)

    Simplify:

    \(2^{4}−12÷3⋅2+11\).

    Solution:

    Begin by evaluating the exponent, \(2^{4}=2⋅2⋅2⋅2=16\).

    \(\begin{aligned} 2^{4}-12\div 3\cdot 2+11&=16-\color{Cerulean}{\underbrace{\color{black}{12\div 3}}}\color{black}{\cdot 2+11} \\ &=16-\color{Cerulean}{\underbrace{\color{black}{4\cdot 2}}}\color{black}{+11} \\ &=\color{Cerulean}{\underbrace{\color{black}{16-8}}}\color{black}{+11} \\ &=\color{Cerulean}{\underbrace{\color{black}{8+11}}}\\ &=19 \end{aligned}\)

    Multiplying first leads to an incorrect result.

    \(\begin{aligned} 2^{4}-12\div 3\cdot 2+11&=16-12\div\color{black}{\underset{\color{red}{Incorrect}}{\color{red}{\underbrace{\color{black}{3\cdot 2}}}}}\color{black}{+11} \\ &=16-\color{Cerulean}{\underbrace{\color{black}{12\div 6}}}\color{black}{+11} \\ &=\color{Cerulean}{\underbrace{\color{black}{16-2}}}\color{black}{+11} \\ &=\color{Cerulean}{\underbrace{\color{black}{14+11}}} \\ &=25\quad\color{red}{x} \end{aligned}\)

    Answer:

    \(19\)

    Example \(\PageIndex{6}\)

    Simplify:

    \(−3−5^{2}+(−7)^{2}\).

    Solution:

    Take care to correctly identify the base when squaring.

    \(\begin{aligned} -3-5^{2}+(-7)^{2}&=-3-25+49 \\ &=-28+49 \\ &=21 \end{aligned}\)

    Answer:

    \(21\)

    Example \(\PageIndex{7}\)

    Simplify:

    \(5−3[2^{3}−5+7(−3)]\).

    Solution:

    It is tempting to first subtract \(5 − 3\), but this will lead to an incorrect result. The order of operations requires us to simplify within the brackets first.

    \(\begin{aligned} 5-3[2^{3}-5+7(-3)]&=5-3[8-5-21] \\ &=5-3[-18] \\ &=5+54 \\ &=59 \end{aligned}\)

    Subtracting \(5 − 3\) first leads to an incorrect result.

    \(\begin{aligned} 5-3[2^{3}-5+7(-3)]&=\underset{\color{red}{Incorrect}}{\color{red}{\underbrace{\color{black}{5-3}}}}\color{black}{[8-5-21]} \\&=2[-18] \\ &=-36\quad\color{red}{x} \end{aligned}\)

    Answer:

    \(59\)

    Example \(\PageIndex{8}\)

    Simplify:

    \(−3^{2}−[5−(4^{2}−10)]\).

    Solution:

    Perform the operations within the innermost parentheses first.

    Answer:

    \(-8\)

    Example \(\PageIndex{9}\)

    Simplify:

    \(\left(−\frac{2}{3}\right)^{2}÷\left[\frac{5}{3}−\left(−\frac{1}{2}\right)^{3}\right]\).

    Solution:

    \(\begin{aligned} \left(−\frac{2}{3}\right)^{2}÷\left[\frac{5}{3}−\left(−\frac{1}{2}\right)^{3}\right]&=\left(-\frac{2}{3} \right)^{2}\div \left[\frac{5}{3}-\left(-\frac{1}{8}\right)\right] \\&=\left(-\frac{2}{3}\right)^{2}\div\left[\frac{5}{3}+\frac{1}{8}\right] \\ &=\left(-\frac{2}{3}\right)^{2}\div\left[\frac{40}{24}+\frac{3}{24}\right] \\ &=\left(-\frac{2}{3}\right)^{2}\div\frac{43}{24} \\ &=\frac{4}{\color{Cerulean}{\underset{3}{\cancel{\color{black}{9}}}}}\color{black}{\cdot\frac{\color{Cerulean}{\stackrel{8}{\cancel{\color{black}{24}}}}}{43}} \\ &=\frac{32}{129} \end{aligned}\)

    Answer:

    \(\frac{32}{129}\)

    We are less likely to make a mistake if we work one operation at a time. Some problems may involve an absolute value, in which case we assign it the same order of precedence as parentheses.

    Example \(\PageIndex{10}\)

    Simplify:

    \(2−4|−4−3|+(−2)^{4}\).

    Solution:

    We begin by evaluating the absolute value and then the exponent \((−2)^{4}=(−2)(−2)(−2)(−2)=+16\).

    Answer:

    \(-10\)

    Exercise \(\PageIndex{2}\)

    Simplify:

    \(10÷5⋅2|(−4)+|−3||+(−3)^{2}\).

    Answer

    \(13\)

    Key Takeaways

    • Grouping symbols indicate which operations to perform first. We usually group mathematical operations with parentheses, brackets, braces, and the fraction bar. We also group operations within absolute values. All groupings have the same order of precedence: the operations within the innermost grouping are performed first.
    • When applying operations within a calculation, follow the order of operations to ensure a single correct result.
      • Address innermost parentheses or groupings first.
      • Simplify all exponents.
      • Perform multiplication and division operations from left to right.
      • Finally, perform addition and subtraction operations from left to right.
    • It is important to highlight the fact that multiplication and division operations should be applied as they appear from left to right. It is a common mistake to always perform multiplication before division, which, as we have seen, in some cases produces incorrect results.

    Exercise \(\PageIndex{3}\) Order of Operations

    Simplify.

    1. \(−7−3⋅5\)
    2. \(3+2⋅3\)
    3. \(−3(2)−6^{2}\)
    4. \(2(−3)^{2}+5(−4)\)
    5. \(\frac{6}{3}*2\)
    6. \(6/(3*2)\)
    7. \(−\frac{1}{2}−\frac{3}{5}⋅\frac{2}{3}\)
    8. \(\frac{5}{8}÷\frac{1}{2}−\frac{5}{6}\)
    9. \(3.2^{2}−6.9÷2.3\)
    10. \(8.2−3÷1.2⋅2.1\)
    11. \(2+3(−2)−7\)
    12. \(8÷2−3⋅2\)
    13. \(3+6^{2}÷12\)
    14. \(5−4^{2}÷(−8)\)
    15. \(−9−3⋅2÷3(−2)\)
    16. \(−2−3^{2}+(−2)^{2}\)
    17. \(12÷6⋅2−2^{2}\)
    18. \(4⋅3÷12⋅2−(−2)^{2}\)
    19. \((−5)^{2}−2(5)^{2}÷10\)
    20. \(−3(4−7)+2\)
    21. \((−2+7)^{2}−10^{2}\)
    22. \(10−7(3+2)+7^{2}\)
    23. \(−7−3(4−2⋅8)\)
    24. \(5−3 [6−(2+7)]\)
    25. \(1+2 [(−2)^{3}−(−3)^{2}]\)
    26. \(−3 [2(7−5)÷4⋅(−2)+(−3)^{3}]\)
    27. \(−7^{2}−[−20−(−3)^{2}]−(−10)\)
    28. \(4.7−3.2(4−1.2^{3})\)
    29. \(−5.4(6.1−3.1÷0.1)−8.2^{2}\)
    30. \(−7.3^{2}+(−9.3)^{2}−37.8÷1.8\)
    31. \(2−7(3^{2}−3+4⋅3)\)
    32. \((\frac{1}{2})^{2}−(−\frac{2}{3})^{2}\)
    33. \((\frac{1}{2})^{3}+(−2)^{3}\)
    34. \((−\frac{1}{3})^{2}−(−\frac{2}{3})^{3}\)
    35. \(\frac{1}{3}−\frac{1}{2}⋅\frac{1}{5}\)
    36. \(\frac{5}{8}÷\frac{3}{2}⋅\frac{14}{15}\)
    37. \(5⋅\frac{2}{15}−(\frac{1}{2})^{3}\)
    38. \(\frac{5}{17}(\frac{3}{5}−\frac{4}{35})\)
    39. \(\frac{3}{16}÷(\frac{5}{12}−\frac{1}{2}+\frac{2}{3})⋅4\)
    40. \((\frac{2}{3})^{2}−(\frac{1}{2})^{2}\)
    41. \(\frac{1}{2} [\frac{3}{4}⋅(−4)^{2}−2]^{2}\)
    42. \(6⋅[(\frac{2}{3})^{2}−(\frac{1}{2})^{2}]÷(−2)^{2}\)
    43. \((−5)^{2}+\frac{3}{2}−\frac{4}{2}+2⋅7\)
    44. \((−3.2−3.3)(8.7−4.7)(−4.7+3.9+2.1)\)
    45. \(2−[3−(5−7)^{2}]3(6−32)\)
    46. \(\frac{2+3⋅6−4⋅32}{2−32}\)
    47. \((2+7)⋅2−\frac{23}{10}+\frac{9}{2}+3^{3}\)
    48. \(\frac{(−1−3)^{2}−1}{5−3⋅(−7+22)−5}\)
    49. \((7+4*(−2)) / (−3+(−2)^{2})\)
    50. \(4+3*((−3)^{3}+5^{2}) / 6−2^{2}\)
    Answer

    1. \(−22\)

    3. \(−42\)

    5. \(4\)

    7. \(−\frac{9}{10}\)

    9. \(7.24\)

    11. \(−11\)

    13. \(6\)

    15. \(−5\)

    17. \(0\)

    19. \(20\)

    21. \(−75\)

    23. \(29\)

    25.\(−33\)

    27. \(−10\)

    29. \(67.22\)

    31. \(−124\)

    33. \(−\frac{63}{8}\)

    35. \(\frac{7}{30}\)

    37. \(\frac{13}{24}\)

    39. \(\frac{9}{7}\)

    41. \(50\)

    43. \(−17\)

    45. \(−\frac{1}{3}\)

    47. \(\frac{5}{59}\)

    49. \(−1\)

    Exercise \(\PageIndex{4}\) Order of Operations

    1. Mary purchased \(14\) bottles of water at $\(0.75\) per bottle, \(4\) pounds of assorted candy at $\(3.50\) per pound, and \(16\) packages of microwave popcorn costing $\(0.50\) each for her party. What was her total bill?
    2. Joe bought four \(8\)-foot \(2\)-by-\(4\) boards for $\(24.00\). How much did he spend per linear foot?
    3. Margaret bought two cases of soda at the local discount store for $\(23.52\). If each case contained \(24\) bottles, how much did she spend per bottle?
    4. Billy earns $\(12.00\) per hour and “time and a half” for every hour he works over \(40\) hours a week. What is his pay for \(47\) hours of work this week?
    5. Audry bought \(4\) bags of marbles each containing \(15\) assorted marbles. If she wishes to divide them up evenly between her \(3\) children, how many will each child receive?
    6. Mark and Janet carpooled home from college for the Thanksgiving holiday. They shared the driving, but Mark drove twice as far as Janet. If Janet drove \(135\) miles, then how many miles was the entire trip?
    Answer

    1. \($32.50\)

    3. \($0.49\)

    5. \(20\) marbles

    Exercise \(\PageIndex{5}\) Order of Operations with Absolute Values

    Simplify.

    1. \(3+2|−5|\)
    2. \(9−4|−3|\)
    3. \(−(−|2|+|−10|)\)
    4. \(−(|−6|−|−8|)\)
    5. \(|−(40−|−22|)|\)
    6. \(||−5|−|10||\)
    7. \(−(|−8|−5)^{2}\)
    8. \((|−1|−|−2|)^{2}\)
    9. \(−4+2|2^{2}−3^{2}|\)
    10. \(−10−|4−5^{2}|\)
    11. \(−|(−5)^{2}+4^{2}÷8|\)
    12. \(−(−3−[ 6−|−7|])\)
    13. \(−2[7−(4+|−7|)]\)
    14. \(3−7 |−2−3|+4^{3}\)
    15. \(7−5|6^{2}−5^{2}|+(−7)^{2}\)
    16. \((−4)^{2}−|−5+(−2)^{3}|−3^{2}\)
    17. \(\frac{2}{3}−|\frac{1}{2}−(−\frac{4}{3})^{2}|\)
    18. \(−30|\frac{10}{3}−\frac{1}{2}÷\frac{1}{5}|\)
    19. \((−4)^{3}−(2−|−4|)÷|−3^{2}+7|\)
    20. \([10−3(6−|−8|)] ÷4−5^{2}\)
    Answer

    1. \(13\)

    3. \(−8\)

    5. \(18\)

    7. \(−9\)

    11. \(6\)

    13. \(−27\)

    15. \(8\)

    17. \(1\)

    19. \(−\frac{11}{18}\)

    21. \(−63\)

    Exercise \(\PageIndex{6}\) Order of Operations with Absolute Values

    Find the distance between the given numbers on a number line.

    1. \(\frac{1}{2}\) and \(−\frac{1}{4}\)
    2. \(−\frac{3}{4}\) and \(−\frac{2}{3}\)
    3. \(−\frac{5}{8}\) and \(−\frac{3}{4}\)
    4. \(−\frac{7}{5}\) and \(\frac{3}{7}\)
    5. \(−0.5\) and \(8.3\)
    6. \(10.7\) and \(−2.8\)
    7. \(3\frac{1}{5}\) and \(−2\frac{1}{3}\)
    8. \(5\frac{3}{4}\) and \(0\)
    Answer

    1. \(\frac{3}{4}\) unit

    3. \(\frac{1}{8}\) unit

    5. \(8.8\) units

    7. \(5\frac{8}{15}\) units

    Exercise \(\PageIndex{7}\) Discussion Board Topics

    1. Convert various examples in this section to equivalent expressions using text-based symbols.
    2. What is PEMDAS and what is it missing?
    3. Discuss the importance of proper grouping and give some examples.
    4. Experiment with the order of operations on a calculator and share your results.
    Answer

    1. Answers may vary

    3. Answers may vary


    This page titled 1.7: Order of Operations is shared under a not declared license and was authored, remixed, and/or curated by Anonymous.

    • Was this article helpful?