Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.5: Order of Operations

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

For convenience, we repeat the “Rules Guiding Order of Operations” first introduced in Section 1.5.

Rules Guiding Order of Operations

When evaluating expressions, proceed in the following order.

  1. Evaluate expressions contained in grouping symbols first. If grouping symbols are nested, evaluate the expression in the innermost pair of grouping symbols first.
  2. Evaluate all exponents that appear in the expression.
  3. Perform all multiplications and divisions in the order that they appear in the expression, moving left to right.
  4. Perform all additions and subtractions in the order that they appear in the expression, moving left to right.

Let’s look at a number of examples that require the use of these rules.

Example 1

Simplify: (a) (−3)2 and (b) −32

Solution

Recall that for any integer a, we have (−1)a = −a. Because negating is equivalent to multiplying by −1, the “Rules Guiding Order of Operations” require that we address grouping symbols and exponents before negation.

a) Because of the grouping symbols, we negate first, then square. That is,

(3)2=(3)(3)=9.

b) There are no grouping symbols in this example. Thus, we must square first, then negate. That is,

32=(33)=9.

Exercise

Simplify: −22.

Answer

−4

Example 2

Simplify: −2 − 3(5 − 7).

Solution

Grouping symbols first, then multiplication, then subtraction.

23(57)=23(2)  Perform subtraction within parentheses.=22(6)  Multiply: 3(2)=6.=2+6  Add the opposite.=4

Exercise

Simplify: −3 − 2(6 − 8).

Answer

1

Example 3

Simplify: −2(2 − 4)2 − 3(3 − 5)3.

Solution

Grouping symbols first, then multiplication, and subtraction, in that order.

\[ \begin{aligned} -2(2-4)^2 -3(3-5)^3 = -2(-2)^2 -3(-2)^3 ~ & \textcolor{red}{ \text{ Perform subtraction within parentheses first.} \\ =2 (4) -3(-8) ~ & \textcolor{red}{ \text{ Exponents are next.}} \\ =-8-(-24) ~ & \textcolor{red}{ \text{ Multiplications are next.}} \\ =-8+24 ~ & \textcolor{red}{ \text{ Add the opposite.}} \\ =16 \end{aligned}\nonumber \]

Exercise

Simplify: −2(5 − 6)3 − 3(5 − 7)2

Answer

-10

Example 4

Simplify: −24 ÷ 8(−3).

Solution

Division has no preference over multiplication, or vice versa. Divisions and multiplications must be performed in the order that they occur, moving left to right.

24÷8(3)=3(3)  Division first: 24÷8=3.=9

Note that if you multiply first, which would be incorrect, you would get a completely different answer.

Exercise

Simplify: −48 ÷ 6(−2).

Answer

16

Example 5

Simplify: (−2)(−3)(−2)3.

Solution

Exponents first, then multiplication in the order that it occurs, moving left to right.

(2)(3)(2)3=(2)(3)(8)  Exponent first: (2)3=8.=6(8)  Multiply from left to right: (2)(3)=6.=48

You try it!

Simplify: (−4)(−2)2(−1)3.

Answer

16

Evaluating Fractions

If a fraction bar is present, evaluate the numerator and denominator separately according to the “Rules Guiding Order of Operations,” then perform the division in the final step.

Example 6

Simplify:

55(24)3223(5)

Solution

Evaluate numerator and denominator separately, then divide.

55(24)3223(5)=55(2)322(15)  Numerator: parentheses first. Denominator: multiply 3(5)=15.=55(8)22+15  Numerator: exponent (2)3=8. Denominator: add the opposite.=5(40)7 Numerator: multiply 5(8)=40. Denominator: add 22+15=7.=5+407  Numerator: add the opposite.=357  Numerator: 5+40=35.=5  Divide: 35/7=5.

Exercise

Simplify:

62(6)2(2)2

Answer

-3

Absolute Value

Absolute value calculates the magnitude of the vector associated with an integer, which is equal to the distance between the number and the origin (zero) on the number line. Thus, for example, |4| = 4 and | − 5| = 5.

But absolute value bars also act as grouping symbols, and according to the “Rules Guiding Order of Operations,” you should evaluate the expression inside a pair of grouping symbols first.

Example 7

Simplify: (a) −(−3) and (b) −| − 3|.

Solution

There is a huge difference between simple grouping symbols and absolute value.

a) This is a case of −(−a) = a. Thus, −(−3) = 3.

b) This case is much different. The absolute value of −3 is 3, and then the negative of that is −3. In symbols,

−| − 3| = −3

Exercise

Simplify: −|−8|.

Answer

−8

Example 8

Simplify: −3 − 2|5 − 7|.

Solution

Evaluate the expression inside the absolute value bars first. Then multiply, then subtract.

32|57|=32|2| 

Exercise

Simplify: −2 − 4|6 − 8|.

Answer

−10

Exercises

In Exercises 1-40, compute the exact value of the given expression.

1. 7142

2. 2164

3. 7189

4. 677

5. −54

6. −33

7. 9 − 1(−7)

8. 85 − 8(9)

9. −63

10. −35

11. 3 + 9(4)

12. 6 + 7(−1)

13. 10 − 72 ÷ 6 · 3+8

14. 8 − 120 ÷ 5 · 6+7

15. 6+142

16. 16+82

17. −34

18. −22

19. 3 − 24 ÷ 4 · 3+4

20. 4 − 40 ÷ 5 · 4+9

21. 64 ÷ 4 · 4

22. 18 ÷ 6 · 1

23. −2 − 3(−5)

24. 64 − 7(7)

25. 15 ÷ 1 · 3

26. 30 ÷ 3 · 5

27. 8 + 12 ÷ 6 · 1 − 5

28. 9 + 16 ÷ 2 · 4 − 9

29. 32 ÷ 4 · 4

30. 72 ÷ 4 · 6

31. 11+1616

32. 4+204

33. −52

34. −43

35. 10 + 12(−5)

36. 4 + 12(4)

37. 2+6 ÷ 1 · 6 − 1

38. 1 + 12 ÷ 2 · 2 − 6

39. 40 ÷ 5 · 4

40. 30 ÷ 6 · 5


In Exercises 41-80, simplify the given expression.

41. −11 + | − 1 − (−6)2|

42. 13 + | − 21 − (−4)2|

43. |0(−4)| − 4(−4)

44. |10(−3)| − 3(−1)

45. (2 + 3 · 4) − 8

46. (11 + 5 · 2) − 10

47. (8 − 1 · 12) + 4

48. (9 − 6 · 1) + 3

49. (6 + 10 · 4) − 6

50. (8 + 7 · 6) − 12

51. 10 + (6 − 4)3 − 3

52. 5 + (12 − 7)2 − 6

53. (6 − 8)2 − (4 − 7)3

54. (3 − 8)2 − (4 − 9)3

55. |0(−10)| + 4(−4)

56. |12(−5)| + 7(−5)

57. |8(−1)| − 8(−7)

58. |6(−11)| − 7(−1)

59. 3 + (3 − 8)2 − 7

60. 9 + (8 − 3)3 − 6

61. (4 − 2)2 − (7 − 2)3

62. (1 − 4)2 − (3 − 6)3

63. 8 −|− 25 − (−4)2|

64. 20 −|− 22 − 42|

65. −4 − |30 − (−5)2|

66. −8 −|− 11 − (−6)2|

67. (8 − 7)2 − (2 − 6)3

68. (2 − 7)2 − (4 − 7)3

69. 4 − (3 − 6)3 + 4

70. 6 − (7 − 8)3 + 2

71. −3 + | − 22 − 52|

72. 12 + |23 − (−6)2|

73. (3 − 4 · 1) + 6

74. (12 − 1 · 6) + 4

75. 1 − (1 − 5)2 + 11

76. 9 − (3 − 1)3 + 10

77. (2 − 6)2 − (8 − 6)3

78. (2 − 7)2 − (2 − 4)3

79. |9(−3)| + 12(−2)

80. |0(−3)| + 9(−7)


In Exercises 81-104, simplify the given expression.

81. 4(10)59

82. 46(8)4

83. 102422610

84. 3292275

85. 32+62518

86. 102+42165

87. 84713

88. 13184

89. 22+621144

90. 72+321081

91. 1252915

92. 52722212

93. 4282632

94. 7262635

95. 102+221027

96. 22+1021027

97. 16(2)191

98. 82015(17

99. 15(15)13(17)

100. 7(9)11

101. 45(19)3

102. 107(11)3

103. 69(4)2

104. 621011

Answers

1. 14

3. −5

5. −625

7. 16

9. −216

11. 39

13. −18

15. 13

17. −81

19. −11

21. 64

23. 13

25. 45

27. 5

29. 32

31. −10

33. −25

35. −50

37. 37

39. 32

41. 26

43. 16

45. 6

47. 0

49. 40

51. 15

53. 31

55. −16

57. 64

59. 21

61. −121

63. −33

65. −9

67. 65

69. 35

71. 44

73. 5

75. −4

77. 8

79. 3

81. 5

83. 42

85. −15

87. 2

89. −8

91. −6

93. −3

95. −8

97. 1

99. 1

101. 13

103. −25


This page titled 2.5: Order of Operations is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by David Arnold.

  • Was this article helpful?

Support Center

How can we help?