Chapter 7 Beginner 19 min read Updated 2026-11-28

Negative Numbers and Order of Operations

Practice Questions →

In This Chapter

What Is It?

What Are Negative Numbers and the Order of Operations?

A negative number is a number less than zero. We write it with a minus sign in front, so −5 is read as "negative five" or "minus five". Numbers greater than zero, like 3 or 12.5, are called positive numbers. Zero itself is neither positive nor negative: it is the dividing line between the two.

The easiest way to picture negative numbers is a number line, a straight line with zero in the middle. Positive numbers stretch away to the right and negative numbers stretch away to the left. A thermometer is a number line standing up: above zero is warm, below zero is freezing, and −10 °C is colder than −2 °C because it sits further below zero.

The order of operations is a set of rules that tells everyone which part of a calculation to do first. Without it, 2 + 3 × 4 could mean 20 (add first) or 14 (multiply first). Mathematicians agreed long ago that multiplication comes before addition, so the answer is 14, and every scientific calculator, spreadsheet and programming language follows the same rule.

In the UK and many other countries the order is remembered as BIDMAS (or BODMAS). In the US and Canada students learn PEMDAS. They are different words for exactly the same rules: brackets (parentheses) first, then powers, then multiplication and division, then addition and subtraction.

This chapter puts the two ideas together. Once you can handle negative signs confidently and you know the order in which to work, every calculation, from a temperature change to a long expression with brackets and powers, comes out right the first time.

Why Does It Matter?

Why Does It Matter?

Negative numbers and the order of operations are not just school exercises. They are hidden inside everyday life, and they are the foundation of algebra, which you meet in the next chapter.

Weather and Temperature

Winter weather reports in Canada, the northern US, the UK and much of Europe regularly mention temperatures below zero. If the temperature is −6 °C at dawn and rises by 9 degrees by lunchtime, you need negative numbers to know it is now 3 °C. A home freezer is usually set to about −18 °C, well below the 0 °C at which water freezes.

Money and Bank Balances

If you have $20 in a bank account and spend $35, your balance becomes −$15. Banks call this being overdrawn: you owe the bank money. Business accounts show losses as negative numbers too, so a shop that "made −£200" this week lost £200.

Sport

Golf scores are measured against "par", the expected number of shots. A score of −3 means three shots under par, which is good. Football (soccer) league tables show goal difference, goals scored minus goals conceded, so a team that scored 10 and let in 14 has a goal difference of −4.

Heights, Depths and Buildings

Geographers measure height from sea level. Land that lies below sea level, such as the shores of the Dead Sea, has a negative height. A diver 25 metres down is at −25 m, and in many lifts (elevators) the basement car park is floor −1 or −2.

Calculators, Spreadsheets and Code

When you type =10+2*3 into a spreadsheet, it answers 16, not 36, because it follows the order of operations. Programmers rely on the same rules in every line of code. If you do not know the rules, you will type formulas that give wrong answers without any warning.

Science and Space

Scientists use negative numbers for temperatures far below freezing, for electric charge (an electron has a negative charge), and for direction: if up is positive, a falling ball has a negative velocity. Engineers combine many quantities in one formula, and the order of operations makes sure everyone reading the formula gets the same result.

Detailed Explanation

Negative Numbers and BIDMAS Explained Step by Step

1. The Number Line: Picturing Negative Numbers

Imagine standing on a long path with a marker labelled 0. Every step to the right adds 1: 1, 2, 3 and so on. Every step to the left takes away 1: −1, −2, −3 and so on. That path is the number line, and it is the single most useful picture in this chapter.

The further right a number is, the bigger it is. The further left, the smaller it is. That is why −2 is bigger than −7: −2 is only two steps left of zero, while −7 is seven steps left. Think of temperature: −2 °C is a chilly morning, −7 °C is much colder.

We compare numbers using the symbols < (less than) and > (greater than). The symbol always points at the smaller number, like a crocodile mouth opening towards the bigger one.

ComparisonTrue or false?Why
−3 < 1TrueEvery negative number is less than every positive number.
−8 > −3False−8 is further left, so −8 < −3.
−0.5 > −1True−0.5 is halfway between −1 and 0, so it is to the right of −1.
0 > −100TrueZero is to the right of every negative number.

The distance of a number from zero, ignoring the sign, is called its size or absolute value. −7 has a bigger size than −2, but it is the smaller number. Mixing up "bigger size" and "bigger number" is the most common trap with negatives.

Negative numbers that are whole, together with zero and the positive whole numbers, are called integers: ..., −3, −2, −1, 0, 1, 2, 3, .... Decimals and fractions can be negative too, such as −2.5 or −¾.

2. Adding and Subtracting with Negative Numbers

Picture yourself on the number line facing right, towards the positive numbers. Adding means walking forwards; subtracting means walking backwards. The number you add or subtract tells you how many steps.

  • −3 + 5: start at −3, walk 5 steps right, land on 2. So −3 + 5 = 2.
  • 4 − 9: start at 4, walk 9 steps left, land on −5. So 4 − 9 = −5.
  • −6 − 2: start at −6, walk 2 more steps left, land on −8. So −6 − 2 = −8.

Now the tricky part: what happens when the number you add or subtract is itself negative? A negative number flips the direction you walk.

  • Adding a negative is the same as subtracting: 7 + (−3) = 7 − 3 = 4.
  • Subtracting a negative is the same as adding: 7 − (−3) = 7 + 3 = 10.

Here is a picture that makes the second rule feel natural. Imagine your bank account has a debt of $3 written on it, recorded as −3. If the bank removes (subtracts) that debt, you are $3 better off. Taking away a negative makes things more positive.

A quick way to remember: when two signs sit next to each other, replace them with one sign.

Signs next to each otherReplace withExample
+ (++5 + (+2) = 5 + 2 = 7
+ (−−5 + (−2) = 5 − 2 = 3
− (+−5 − (+2) = 5 − 2 = 3
− (−+5 − (−2) = 5 + 2 = 7

Same signs together give +, different signs together give −. Notice that this rule is about two signs touching. It does not mean "two negative numbers added make a positive": −3 + (−5) is −8, because you start at −3 and walk 5 more steps left.

3. Multiplying and Dividing Negative Numbers

Imagine a pattern. Each line below multiplies by −2, and the first number goes down by 1 each time:

CalculationAnswer
3 × (−2)−6
2 × (−2)−4
1 × (−2)−2
0 × (−2)0
(−1) × (−2)2
(−2) × (−2)4

The answers go up by 2 on every line, so after 0 they must carry on to 2 and then 4. That is why a negative times a negative is positive. It is not a random rule; it is the only answer that keeps the pattern working.

Division follows exactly the same sign rules, because division is just multiplication undone. Since (−3) × 4 = −12, it follows that −12 ÷ 4 = −3 and −12 ÷ (−3) = 4.

SignsResultMultiplyingDividing
positive and positivepositive6 × 3 = 1818 ÷ 3 = 6
positive and negativenegative6 × (−3) = −1818 ÷ (−3) = −6
negative and positivenegative(−6) × 3 = −18(−18) ÷ 3 = −6
negative and negativepositive(−6) × (−3) = 18(−18) ÷ (−3) = 6

Work it in two separate steps: first decide the sign, then do the calculation with the sizes. For (−7) × 8, the signs differ so the answer is negative, and 7 × 8 = 56, giving −56.

When you multiply several numbers, count the negative signs. An even number of negatives gives a positive answer; an odd number gives a negative answer. For example (−1) × (−2) × (−3) has three negatives, so the answer is −6.

4. Powers of Negative Numbers

A power (also called an index or exponent) tells you how many times to multiply a number by itself. 4² means 4 × 4 = 16, and 2³ means 2 × 2 × 2 = 8.

When the number being raised to a power is negative, put it in brackets and count the negatives:

  • (−3)² = (−3) × (−3) = 9 (two negatives, positive answer).
  • (−3)³ = (−3) × (−3) × (−3) = −27 (three negatives, negative answer).
  • (−1)100 = 1 and (−1)101 = −1.

Even powers of a negative number are positive; odd powers are negative.

Brackets matter here. −3² without brackets means "the negative of 3²", which is −(3 × 3) = −9. The power belongs only to the 3, not to the minus sign. So (−3)² = 9 but −3² = −9. Many calculators show this difference too, so always use brackets when you mean to square a negative number.

5. Why We Need an Order of Operations

Imagine two friends each working out 8 + 4 × 3. One adds first: 12 × 3 = 36. The other multiplies first: 8 + 12 = 20. They cannot both be right. If a bank, a doctor's dose chart or a bridge design could be read two ways, the results could be dangerous.

So everyone agrees on one order. The answer to 8 + 4 × 3 is 20, because multiplication is done before addition. One way to see why this order makes sense: 4 × 3 is really a short way of writing 3 + 3 + 3 + 3, so it is a single "chunk" that should be worked out before it is added to anything.

6. BIDMAS, BODMAS and PEMDAS

The order is remembered with a word made from the first letters of each step:

StepBIDMAS (UK)BODMASPEMDAS (US)Examples
1BracketsBracketsParentheses( ), [ ]
2IndicesOrdersExponentsx², √
3Division and MultiplicationDivision and MultiplicationMultiplication and Division×, ÷
4Addition and SubtractionAddition and SubtractionAddition and Subtraction+, −

The most important detail is hidden in the word: division and multiplication are on the same level, and so are addition and subtraction. Within the same level you work from left to right, exactly like reading a sentence. BIDMAS does not mean "always divide before multiplying", and PEMDAS does not mean "always multiply before dividing".

  • 20 ÷ 5 × 2: work left to right, 20 ÷ 5 = 4, then 4 × 2 = 8 (not 20 ÷ 10 = 2).
  • 10 − 4 + 3: work left to right, 10 − 4 = 6, then 6 + 3 = 9 (not 10 − 7 = 3).

A helpful habit is to rewrite the calculation after each step, so you only ever do one operation at a time. For 6 + 18 ÷ 3²:

  1. Indices: 3² = 9, so 6 + 18 ÷ 9.
  2. Division: 18 ÷ 9 = 2, so 6 + 2.
  3. Addition: 6 + 2 = 8.

7. Brackets Inside Brackets and Fraction Bars

Sometimes brackets sit inside other brackets, like boxes inside boxes. Open the innermost box first and work outwards. Square brackets [ ] are often used for the outer layer to make it easier to read.

2 × [10 − (3 + 4)] = 2 × [10 − 7] = 2 × 3 = 6.

Inside any bracket, BIDMAS still applies. In (5 + 2 × 3)², do the multiplication inside first: 5 + 6 = 11, then square it to get 121.

A fraction bar (the line in a fraction) acts like a pair of brackets around the top and another around the bottom. Work out the whole top (numerator) and the whole bottom (denominator) separately, then divide.

For (12 + 8) / (7 − 3), the top is 20 and the bottom is 4, so the answer is 20 ÷ 4 = 5. Typing 12 + 8 ÷ 7 − 3 into a calculator would give a completely different answer, about 10.14, because the calculator would divide 8 by 7 first.

8. Putting It Together: Negatives with BIDMAS

Now combine both skills. Follow BIDMAS for the order, and use the sign rules whenever a step involves a negative number. Write each line out in full; most mistakes happen when two steps are done in your head at once.

Example: work out 4 − 3 × (−2)².

  1. Brackets and indices: (−2)² = 4, so the calculation becomes 4 − 3 × 4.
  2. Multiplication: 3 × 4 = 12, so it becomes 4 − 12.
  3. Subtraction: 4 − 12 = −8.

Example: work out −10 ÷ (−5) + 6 × (−1).

  1. Division: −10 ÷ (−5) = 2 (same signs, positive).
  2. Multiplication: 6 × (−1) = −6 (different signs, negative).
  3. Now 2 + (−6) = 2 − 6 = −4.

A minus sign at the very start of a calculation, such as −10 in the last example, simply means the first number is negative. It is not a subtraction waiting to be done.

9. Checking with a Calculator

Scientific calculators follow BIDMAS automatically, so they are a good way to check your working. Two tips make them reliable:

  • Use the negative key, usually marked (−), to enter a negative number. The subtraction key − is for taking away. On many calculators, typing a subtraction sign at the start also works, but the (−) key is safer.
  • Type brackets whenever you square a negative number, and around the top and bottom of a fraction. Typing −3 x² gives −9, while (−3) x² gives 9.

Some very basic calculators, like those built into old phones, work strictly from left to right and ignore BIDMAS. Test yours: type 2 + 3 × 4. If it shows 14, it follows BIDMAS. If it shows 20, it does not, and you should use it one step at a time.

Finally, always ask whether your answer is sensible. If the temperature was −5 °C and it got warmer, the new temperature must be more than −5. A quick estimate like this catches most sign errors.

Worked Examples

Ordering Temperatures

The midnight temperatures in five cities were −5 °C, 3 °C, −12 °C, 0 °C and −1 °C. Write them in order from coldest to warmest.

  1. Picture a thermometer (a vertical number line). The coldest temperature is the one furthest below zero.

  2. Among the negatives, −12 is furthest from zero, then −5, then −1.

  3. Next comes 0, and the only positive value, 3, is the warmest.

Answer

−12 °C, −5 °C, −1 °C, 0 °C, 3 °C

For negative numbers, a bigger size means a smaller (colder) value. −12 has the biggest size, so it is the coldest.

Adding and Subtracting Negatives

Work out −7 + 12 − (−4).

  1. Work from left to right. Start at −7 and move 12 steps right: −7 + 12 = 5.

  2. Now 5 − (−4). The two signs − ( − sit together, and the same signs give +, so this is 5 + 4.

  3. 5 + 4 = 9.

Answer

9

Subtracting −4 is the same as adding 4. Think of it as removing a debt of 4: you end up 4 better off.

Multiplying and Dividing Negatives

Work out (−6) × (−4) ÷ (−3).

  1. Multiplication and division are on the same level, so work left to right.

  2. (−6) × (−4): same signs give a positive, and 6 × 4 = 24. So we have 24 ÷ (−3).

  3. 24 ÷ (−3): different signs give a negative, and 24 ÷ 3 = 8.

Answer

−8

Quick check by counting signs: there are three negatives (an odd number), so the final answer must be negative.

Using BIDMAS with No Brackets

Work out 18 − 4 × 3 + 2.

  1. There are no brackets or powers. Multiplication comes next: 4 × 3 = 12. The calculation is now 18 − 12 + 2.

  2. Subtraction and addition are on the same level, so work left to right: 18 − 12 = 6.

  3. 6 + 2 = 8.

Answer

8

A common wrong answer is 4, which comes from adding 12 + 2 first. Addition does not come before subtraction; they share a level and go left to right.

Brackets, Powers and Division Together

Work out 5 + 2 × (9 − 3)² ÷ 4.

  1. Brackets: 9 − 3 = 6. Now 5 + 2 × 6² ÷ 4.

  2. Indices: 6² = 36. Now 5 + 2 × 36 ÷ 4.

  3. Multiplication and division, left to right: 2 × 36 = 72, then 72 ÷ 4 = 18. Now 5 + 18.

  4. Addition: 5 + 18 = 23.

Answer

23

Rewriting the whole line after every step keeps the calculation tidy and makes it easy to spot a slip.

A Temperature Word Problem

At 6 am the temperature in Calgary was −8 °C. By noon it had risen by 13 °C. By midnight it had fallen by 9 °C from the noon temperature. What was the temperature at midnight?

  1. A rise means add and a fall means subtract.

  2. Noon: −8 + 13 = 5 °C.

  3. Midnight: 5 − 9 = −4 °C.

Answer

−4 °C

Sense check: the temperature rose by 13 and fell by 9, an overall rise of 4 degrees. −8 + 4 = −4, which matches.

Negative Powers and Products

Work out −3² + (−2)³ − 4 × (−5).

  1. Indices first. −3² means −(3 × 3) = −9, because the power belongs only to the 3. (−2)³ = (−2) × (−2) × (−2) = −8.

  2. The calculation is now −9 + (−8) − 4 × (−5).

  3. Multiplication: 4 × (−5) = −20. Now −9 + (−8) − (−20).

  4. Replace touching signs: −9 − 8 + 20.

  5. Left to right: −9 − 8 = −17, then −17 + 20 = 3.

Answer

3

The two traps here are −3² (which is −9, not 9) and − (−20), which becomes + 20.

A Fraction Bar with Negatives

Work out (24 − 3 × (−2)) ÷ (−4 − 1), where the whole of the first bracket is divided by the whole of the second.

  1. Treat the top and bottom separately, as if each were inside its own brackets.

  2. Top: 3 × (−2) = −6, so 24 − (−6) = 24 + 6 = 30.

  3. Bottom: −4 − 1 = −5.

  4. Divide: 30 ÷ (−5) = −6 (different signs, negative).

Answer

−6

On a calculator, type (24 − 3 × (−2)) ÷ (−4 − 1) with all the brackets. Leaving out the brackets would make the calculator divide too early.

Common Mistakes

Thinking a bigger-looking negative is bigger

Wrong−8 > −3 because 8 is bigger than 3
Right−8 < −3 because −8 is further left on the number line

Students compare the digits and forget the sign. Picture a thermometer: −8 °C is colder than −3 °C, so it is the smaller number. For negatives, the bigger the size, the smaller the value.

Ignoring the double minus

Wrong5 − (−3) = 2
Right5 − (−3) = 5 + 3 = 8

The student sees a subtraction and subtracts 3, ignoring the second minus. When two minus signs touch, they become a plus. Removing a debt of 3 leaves you 3 better off.

Using "two negatives make a positive" for addition

Wrong−3 + (−5) = 8
Right−3 + (−5) = −3 − 5 = −8

The phrase "two negatives make a positive" is true for multiplying and dividing, not for adding. Adding two negative numbers takes you further left on the number line, so the answer is more negative.

Squaring the minus sign when there are no brackets

Wrong−4² = 16
Right−4² = −(4 × 4) = −16, but (−4)² = 16

Indices come before the minus sign is applied, so the power belongs only to the 4. Only brackets make the minus sign part of the number being squared. Always write (−4)² when you mean negative four squared.

Always multiplying before dividing

Wrong12 ÷ 3 × 2 = 12 ÷ 6 = 2
Right12 ÷ 3 × 2 = 4 × 2 = 8

BIDMAS lists D before M and PEMDAS lists M before D, which makes students think one always comes first. They are on the same level, so you work from left to right. The same applies to addition and subtraction.

Adding before subtracting

Wrong10 − 3 + 2 = 10 − 5 = 5
Right10 − 3 + 2 = 7 + 2 = 9

Because A comes before S in the word BIDMAS, some students add first. Addition and subtraction share a level, so go left to right. Another way to see it: the minus belongs to the 3 only, so the sum is 10, take 3, add 2.

Summary

  • Negative numbers are less than zero and sit to the left of zero on the number line.
  • On the number line, the further right a number is the bigger it is, so −2 is greater than −7.
  • Adding a negative number is the same as subtracting, and subtracting a negative number is the same as adding.
  • When two signs touch, same signs become + and different signs become −.
  • When multiplying or dividing, same signs give a positive answer and different signs give a negative answer.
  • An even number of negative factors gives a positive product; an odd number gives a negative product.
  • (−3)² = 9 but −3² = −9, because without brackets the power applies only to the 3.
  • BIDMAS, BODMAS and PEMDAS all mean the same order: brackets, powers, multiplication and division, then addition and subtraction.
  • Multiplication and division share a level, as do addition and subtraction, so within each level you work from left to right.
  • A fraction bar works like brackets around the top and the bottom, so work each one out fully before dividing.

Ready to Practice?

Test your understanding with 40 practice questions on this topic, each with a hint and a full solution.

Go to Practice Questions
Learn it live

Want a teacher to take you further than Negative Numbers and Order of Operations?

Notes explain the idea. A live teacher checks how you think, spots the exact step that slips, and moves at your pace, in a small group or 1-on-1, at a time that suits your time zone.

Keep exploring Modern Age Coders

More chapters

Learn more

From the blog

Start here