math.wiki
Number › Arithmetic › Order of operations › Order of operations with negative numbers
Open on the map
Math 7 · 7.NS.A.3

Order of operations with negative numbers

One minus sign can mean “subtract” and another can mean “the opposite of”. When an expression has both, along with powers and brackets, which happens first?

Where you are 5 in Order of operations

When you reach for it

Reach for this whenever an expression mixes negative numbers with more than one operation: a calculation like -3 - 4(-5), a formula with a negative number put in for a letter, or a fraction whose top and bottom both have signs in them.

Nothing about the order of operations changes when negatives appear. Grouping still comes first, then powers, then multiplication and division from left to right, then addition and subtraction from left to right, exactly as in the lesson on powers. What changes is the reading. Two questions decide almost every expression with negatives in it:

  • Is this minus sign a subtraction, or does it mean “the opposite of”?
  • What exactly does this power apply to?

Once those are answered, each step is a calculation you already know: adding and subtracting signed numbers from Adding and subtracting integers, and the signs of products and quotients from Multiplying and dividing integers.

The procedure

One sign, two jobs

A minus sign written between two quantities is subtraction: in 7 - 3 it takes 3 away from 7. A minus sign written in front of a single quantity, with nothing before it, or just after another operation sign or an opening bracket, means the opposite of that quantity: in -3, 4 \cdot (-3) and 5 + (-2) it is attached to the 3 or the 2.

The two jobs are tied together. Subtracting a number is the same as adding its opposite,

a - b = a + (-b)

which is how subtracting integers works. And taking the opposite of a number is the same as multiplying it by -1,

-a = (-1) \cdot a

which is one of the sign rules for products. That second fact settles where “the opposite of” sits in the order: it is a multiplication, so it comes after powers and, like any multiplication, before addition and subtraction.

Where a power reaches

A power applies only to its base, the single thing written immediately to the left of the exponent. That thing is a number, a letter, or a whole bracket, and nothing more.

In (-3)^2 the base is the bracket, so the base is -3 and the square is (-3)(-3) = 9. In -3^2 the base is just 3: the minus sign is not part of it. The expression means the opposite of 3^2, so

-3^2 = -(3^2) = -9

This reading is a convention, and it is the one that keeps the rest of algebra consistent. In -x^2 + 5x the term -x^2 is read as -1 times x^2, the same way 3x^2 is 3 times x^2: a number multiplying a power. Powers come before multiplication, so the square is taken first and the opposite after. Reading -3^2 as 9 would make the first term of -x^2 + 5x mean something different from every other term.

-3^2
\text{opposite of } 9 = -9
3^2 = 9
3
2
(-3)^2
(-3)^2 = 9
\text{opposite of } 3 = -3
2
3
Figure 1The same three symbols in a different order of work. In -3^2 the square is taken first; in (-3)^2 the opposite is taken first.

Whether a power of a negative number comes out positive or negative is settled by the sign rules for products: an even number of negative factors gives a positive product, an odd number a negative one. Put in this lesson’s terms, that is the result the rest of the lesson leans on:

(-a)^n = \begin{cases} a^n & n \text{ even} \\ -a^n & n \text{ odd} \end{cases}

So for an odd exponent the bracket makes no difference to the value, (-5)^3 = -5^3 = -125, and for an even exponent it changes the sign of the answer, (-5)^4 = 625 but -5^4 = -625.

Minus signs on brackets, and grouping without brackets

A minus sign in front of a bracket takes the opposite of the bracket’s whole value. In -(4 - 9) the bracket comes first, 4 - 9 = -5, and its opposite is 5. Since the minus sign is multiplication by -1, the distributive property gives the same answer another way: -(4 - 9) = -4 + 9 = 5.

A fraction bar groups everything above it and everything below it, as though each were in its own bracket. Work out the top and the bottom completely, then divide.

Absolute value bars group what is between them: |2 - 7| is worked out inside first, giving |-5| = 5, before anything outside. Fraction bars and absolute value bars are both Grouping symbols, as firm as any bracket.

A full pass

Take 7 - 2(-3)^2. The bracket holds a single number, -3, so there is nothing to work out inside it; it is there to make -3 the base of the power.

\begin{aligned} 7 - 2(-3)^2 &= 7 - 2 \cdot 9 &&\text{power first} \\ &= 7 - 18 &&\text{then multiply} \\ &= -11 &&\text{then subtract} \end{aligned}

The minus sign after the 7 is subtraction, since it sits between 7 and 2(-3)^2. It waits until the end, because the term after it has to be found first. Drawn as a tree, the work starts at the bottom and climbs.

7 - 2(-3)^2
7 - 18 = -11
7
2 \times 9 = 18
2
(-3)^2 = 9
-3
2
Figure 2Each line of work uses the results directly below it, so the work starts at the bottom and the top line is the value of the whole expression.

Writing negatives so they read one way

Two operation signs are never written side by side. Write 5 - (-2), not 5 - -2, and 4 \cdot (-3), not 4 \cdot -3. When a negative number is put in place of a letter, it goes in brackets: x^2 at x = -3 is (-3)^2 = 9. Without the bracket it would read -3^2, which is -9, a different number.

Worked examples

Example 1

Where the power reaches

Evaluate (a) -5^2 \quad (b) (-5)^2 \quad (c) -2^3 \quad (d) (-2)^3 \quad (e) -(-4)^2

Solution

In each one, find the base of the power first: whatever stands immediately to the left of the exponent.

(a) The base is 5. Square it, then take the opposite: -5^2 = -25.

(b) The base is the bracket, -5: (-5)^2 = (-5)(-5) = 25. Two negative factors give a positive product.

(c) The base is 2: -2^3 = -(2 \cdot 2 \cdot 2) = -8.

(d) The base is -2: (-2)^3 = (-2)(-2)(-2) = 4 \cdot (-2) = -8. Three negative factors give a negative product, so (c) and (d) agree, as the result for odd exponents says they must.

(e) The base is the bracket, -4, so the square comes first: (-4)^2 = 16. The minus sign in front takes the opposite of that: -(-4)^2 = -16.

Example 2

Multiplication and division before subtraction

Evaluate (a) -3 - 4(-5) \quad (b) -8 - (-2)(-6) \quad (c) -24 \div 6 \cdot (-2)

Solution

(a) The first minus sign is in front of 3 with nothing before it, so it makes -3. The second sits between -3 and 4(-5), so it is subtraction, and it waits for the product:

\begin{aligned} -3 - 4(-5) &= -3 - (-20) \\ &= -3 + 20 = 17 \end{aligned}

Subtracting -20 is adding its opposite, 20.

(b) The product comes before the subtraction. Two negative factors give a positive product:

\begin{aligned} -8 - (-2)(-6) &= -8 - 12 \\ &= -20 \end{aligned}

(c) Division and multiplication have equal rank, so they are done from left to right:

\begin{aligned} -24 \div 6 \cdot (-2) &= -4 \cdot (-2) \\ &= 8 \end{aligned}

Left to right matters here. Multiplying first would give 6 \cdot (-2) = -12 and then -24 \div (-12) = 2, which is the value of a different expression, -24 \div (6 \cdot (-2)).

Example 3

Several powers in one line

Evaluate -2^4 + (-2)^3 - 3(-1)^5.

Solution

There are no brackets to work inside (each bracket holds a single number), so powers come first. Read each base carefully:

  • -2^4: the base is 2, so this is the opposite of 16, which is -16.
  • (-2)^3: the base is -2 and the exponent is odd, so this is -8.
  • (-1)^5: an odd number of factors -1, so this is -1.

Then the multiplication, then add and subtract from left to right:

\begin{aligned} -2^4 + (-2)^3 - 3(-1)^5 &= -16 + (-8) - 3(-1) \\ &= -16 + (-8) - (-3) \\ &= -24 + 3 \\ &= -21 \end{aligned}
Example 4

Brackets inside brackets, after a minus sign

Evaluate (a) -4 - [6 - (-3 - 5)^2 \div 8] \quad (b) -(7 - 12) - (-3)

Solution

(a) Work from the innermost bracket outwards. Inside the round bracket, -3 - 5 = -8. Inside the square bracket, the power comes before the division and the division before the subtraction:

\begin{aligned} -4 - [6 - (-3 - 5)^2 \div 8] &= -4 - [6 - (-8)^2 \div 8] \\ &= -4 - [6 - 64 \div 8] \\ &= -4 - [6 - 8] \\ &= -4 - (-2) \\ &= -2 \end{aligned}

The minus sign in front of the square bracket is subtraction, and it waits until the whole bracket has one value.

(b) The bracket first: 7 - 12 = -5. The minus sign in front of it takes the opposite, so -(7 - 12) = -(-5) = 5. Then 5 - (-3) = 5 + 3 = 8.

The distributive property reaches the same value without working the bracket first: -(7 - 12) = -7 + 12 = 5, because multiplying each term by -1 changes the sign of each.

Example 5

A fraction bar as grouping

Evaluate (a) \dfrac{(-6)^2 - 4 \cdot 3 \cdot (-2)}{-3 - 3} \quad (b) \dfrac{-2^2 + 10}{(-1)^3 - 2}

Solution

The bar groups the top and the bottom. Each is worked out completely before the division.

(a) Top: the power, then the product, then the subtraction. (-6)^2 = 36 and 4 \cdot 3 \cdot (-2) = -24, so the top is 36 - (-24) = 60. Bottom: -3 - 3 = -6. Then

\frac{60}{-6} = -10

A positive divided by a negative is negative.

(b) Top: -2^2 is the opposite of 4, so the top is -4 + 10 = 6. Bottom: (-1)^3 = -1, so the bottom is -1 - 2 = -3. Then

\frac{6}{-3} = -2
Example 6

Putting a negative number in for a letter

Evaluate (a) -x^2 + 5x when x = -4 \quad (b) 2x^3 - x when x = -1

Solution

Put the number in place of the letter, in brackets, and then follow the order of operations.

(a) The expression is -1 times x^2, plus 5 times x. With x = -4:

\begin{aligned} -(-4)^2 + 5(-4) &= -16 + (-20) \\ &= -36 \end{aligned}

The square of -4 is 16, and the minus sign in front of x^2 then makes it -16. The bracket around -4 is what keeps the square applied to the whole of -4, as x^2 requires.

(b) With x = -1:

\begin{aligned} 2(-1)^3 - (-1) &= 2(-1) - (-1) \\ &= -2 + 1 \\ &= -1 \end{aligned}

The second minus sign in the expression, in - x, is subtraction, and it subtracts the value of x; since that value is -1, the step is subtracting -1, which is adding 1.

Example 7

An average of temperatures below zero

The lowest temperatures on four nights were -4, -7, 2 and -3 degrees Celsius. Write one expression for their Mean, and evaluate it.

Solution

The mean is the sum of the four values divided by how many there are. The whole sum has to be divided, so it goes above a fraction bar:

\frac{-4 + (-7) + 2 + (-3)}{4} = \frac{-12}{4} = -3

The mean low was -3 degrees Celsius.

The bar is doing real work. Written on one line without it, as -4 + (-7) + 2 + (-3) \div 4, the division would come first and apply to the -3 alone, giving -4 - 7 + 2 - 0.75 = -9.75, which is not an average of anything. On one line the sum needs its own bracket: (-4 + (-7) + 2 + (-3)) \div 4.

Boundaries

The reading of -3^2 is a convention of written mathematics. It is the convention everywhere in algebra, for the reason given above, but software does not always follow it. Some spreadsheet programs give 9 for -3^2. When it matters, write the bracket: -(3^2) or (-3)^2 cannot be misread by anyone.

Two operation signs need a bracket between them. 4 \cdot -3 and 5 - -2 are not standard, because the reader cannot see at a glance which sign belongs to the number. Write 4 \cdot (-3) and 5 - (-2).

Division written next to a bracket can be read two ways. In -12 \div 3(-2), strict left to right gives -4 \cdot (-2) = 8, but some readers take 3(-2) as one product and get -12 \div (-6) = 2. Do not write a quotient that way; use a fraction bar or another bracket so only one reading exists.

A bottom that works out to 0 has no value. In \dfrac{6}{-3 + 3} the bottom is 0, and division by zero is not defined, whatever the signs elsewhere.

Left to right applies within a rank, not across ranks. Multiplication and division are done from left to right among themselves, and so are addition and subtraction, but a product is still done before a sum even if the sum comes first in the line. Once every subtraction is rewritten as adding the opposite, the additions may be done in any order, by the commutative and associative properties of addition; subtractions themselves cannot be reordered.

A minus sign up in the exponent is a different matter. In 2^{-3} the minus sign belongs to the exponent, not to the base, and a negative exponent has its own meaning. This lesson deals only with exponents that are counting numbers.

Where this goes next

Every expression in algebra with a negative coefficient is read with this lesson’s two questions. Combining like terms with negative coefficients treats -x^2 and -3x as -1 times x^2 and -3 times x, exactly as here, and distributing a minus sign across a bracket is the move used in Example 4.

Evaluating formulas at negative values is where the bracket around a substituted number earns its place: x^2 at x = -3 is 9, and leaving the bracket out turns it into -9. The sharpest case is the quadratic formula, which asks for -b and b^2; when b is itself negative, -b is positive and b^2 is still positive, and both follow from the same readings as Example 5(a), whose top is exactly a b^2 - 4ac.

Reading -a as (-1) \cdot a, so that (-a)^n is (-1)^n a^n, is a first case of the Laws of exponents, where a power of a product splits into a product of powers in general.

Exercises

Where the power reaches

Evaluate.

  1. -9^2
  2. (-9)^2
  3. -(-1)^4
  4. (-1)^7 - (-1)^8
  5. -3^3 - (-3)^3

Signs in the order of operations

Evaluate.

  1. -9 - 3(-4)
  2. -36 \div (-4) \cdot 3
  3. -36 \div (-4 \cdot 3)
  4. 5 - (-2)(-7) + (-10)
  5. -2(-5) - (-3)^2

Brackets, bars and absolute value

Evaluate.

  1. -(8 - 13) - (-2)^3
  2. -3[4 - (1 - 6)^2]
  3. \dfrac{-15 + 3^2}{-2 - 4}
  4. \dfrac{(-4)^2 - 2(-4)}{-4 + 1}
  5. -|2 - 7| + (-2)^2

Negative values in place of letters

  1. Evaluate x^2 - 4x when x = -3.
  2. Evaluate -x^2 - x when x = -5.
  3. Evaluate a^3 - 2ab when a = -2 and b = 3.
  4. Evaluate \dfrac{b^2 - 4ac}{2a} when a = -1, b = -4 and c = 5.

From words

  1. A lift in a mine stops 15 meters below ground level, at -15 meters. It goes down 6 meters four times, then up 20 meters. Write one expression for where it ends and evaluate it.
  2. Take the difference of -4 and 6, square it, and then take the opposite of the result. Write this as one expression and evaluate it.

Reasoning

  1. Explain why -a^2 is never positive and (-a)^2 is never negative, whatever number a is.
  2. Explain why (-a)^3 and -a^3 are equal for every number a, but (-a)^4 and -a^4 are equal only when a = 0.
  3. Explain why -2^2 and 0 - 2^2 have the same value, and use this to say why the power is worked out before the opposite is taken.
  4. Is -(a - b) equal to b - a for every pair of numbers a and b? Prove your answer.
Answers
  1. -81. The base is 9, so this is the opposite of 9^2 = 81.
  2. 81. The base is -9, and (-9)(-9) = 81.
  3. -1. The power first: (-1)^4 = 1, an even number of factors -1. Its opposite is -1.
  4. -2. (-1)^7 = -1 and (-1)^8 = 1, so the value is -1 - 1 = -2.
  5. 0. -3^3 = -27 and (-3)^3 = -27, since the exponent is odd. So the value is -27 - (-27), which is -27 + 27 = 0.
  6. 3. The product first: 3(-4) = -12. Then -9 - (-12) = -9 + 12 = 3.
  7. 27. Left to right: -36 \div (-4) = 9, then 9 \cdot 3 = 27.
  8. 3. The bracket first: -4 \cdot 3 = -12. Then -36 \div (-12) = 3. The bracket changes the order, and so the value, compared with exercise 7.
  9. -19. The product first: (-2)(-7) = 14. Then left to right, 5 - 14 = -9 and -9 + (-10) = -19.
  10. 1. The power first: (-3)^2 = 9. Then the product, -2(-5) = 10. Then 10 - 9 = 1.
  11. 13. 8 - 13 = -5, so -(8 - 13) = 5. (-2)^3 = -8. Then 5 - (-8) = 13.
  12. 63. Innermost first: 1 - 6 = -5, and (-5)^2 = 25. Then 4 - 25 = -21, and -3(-21) = 63.
  13. 1. Top: 3^2 = 9, so -15 + 9 = -6. Bottom: -2 - 4 = -6. Then \displaystyle \frac{-6}{-6} = 1.
  14. -8. Top: 16 - (-8) = 24. Bottom: -4 + 1 = -3. Then \displaystyle \frac{24}{-3} = -8.
  15. -1. The bars group: |2 - 7| = |-5| = 5, so the first term is -5. (-2)^2 = 4. Then -5 + 4 = -1.
  16. 21. The value is (-3)^2 - 4(-3), which is 9 - (-12), and that is 9 + 12 = 21.
  17. -20. The value is -(-5)^2 - (-5), which is -25 + 5 = -20. The square of -5 is 25, and the minus sign in front of x^2 makes it -25.
  18. 4. The value is (-2)^3 - 2(-2)(3), which is -8 - (-12), and that is -8 + 12 = 4.
  19. -18. Top: (-4)^2 - 4(-1)(5), which is 16 - (-20) = 36. Bottom: 2(-1) = -2. Then \displaystyle \frac{36}{-2} = -18.
  20. -15 + 4(-6) + 20 = -19, so the lift ends 19 meters below ground level. The product first: 4(-6) = -24, then -15 + (-24) + 20 = -19.
  21. -(-4 - 6)^2 = -100. The bracket first: -4 - 6 = -10. Then the power, (-10)^2 = 100, and last the opposite, -100. The bracket is needed so that the square applies to the whole difference.
  22. In -a^2 the power is taken first, and a^2 = a \cdot a is never negative: a product of two positive numbers or of two negative numbers is positive, and 0 \cdot 0 = 0. So -a^2 is the opposite of a number that is 0 or positive, which is 0 or negative. In (-a)^2 the base is -a, and (-a)^2 = (-a)(-a) is a number times itself, so by the same reasoning it is never negative. Both are 0 when a = 0.
  23. Each factor -a is (-1) \cdot a, so by the commutative and associative properties (-a)^3 = (-1)^3 a^3 = -a^3, whatever number a is. The odd exponent leaves one factor -1, so the bracket makes no difference. With four factors, (-a)^4 = (-1)^4 a^4 = a^4, while -a^4 is the opposite of a^4. A number equals its opposite only when it is 0, so the two agree only when a^4 = 0, that is when a = 0. For example, at a = 2 they are 16 and -16.
  24. In 0 - 2^2 the minus sign is subtraction, which comes after powers, so the value is 0 - 4 = -4. Subtracting from 0 gives the opposite, so “the opposite of 2^2” must also be -4 if the two are to agree. Reading -2^2 as (-2)^2 = 4 would make -2^2 and 0 - 2^2 differ, even though putting a 0 in front of a minus sign should change nothing. Taking the power first keeps them equal, and it matches reading -2^2 as (-1) \cdot 2^2, where the power comes before the multiplication.
  25. Yes. Taking the opposite is multiplying by -1, so by the distributive property -(a - b) = (-1)a - (-1)b, which is -a + b. By the commutative property of addition, -a + b = b + (-a), and that is b - a. For example, -(7 - 12) = 5 and 12 - 7 = 5.
kg1128 · updated 2026-10-07 · CC-BY-SA-4.0