Integer Calculator (Negative Numbers with Sign Rules)

Add, subtract, multiply or divide positive and negative whole numbers, with the sign rule used and each step explained.

A whole number, positive, negative or 0.

Results

−9 + 4
−5
Sign rule used
Different signs: subtract the sizes and take the sign of the number with the larger size.
Steps
The signs are different, so subtract the smaller size from the larger: 9 − 4 = 5. −9 has the larger size, so the answer is negative: −5.

How it’s calculated

Integers are the whole numbers and their opposites: …, −3, −2, −1, 0, 1, 2, 3, …. The size of an integer (its absolute value) is its distance from 0, so −9 and 9 both have size 9. Four sign rules cover every calculation:

a − b = a + (−b) (+)(+) = + (−)(−) = + (+)(−) = − (−)(+) = −

Example: −9 + 4. The signs are different, so subtract the sizes: 9 − 4 = 5. The −9 has the larger size, so the answer is negative: −9 + 4 = −5. When a division does not come out exactly, such as −7 ÷ 2, the answer is not an integer and is shown as a decimal (−3.5) and a fraction (−7/2).

Frequently asked questions

What is a minus times a minus?

A plus. Multiplying two negative numbers gives a positive answer: −3 × (−4) = 12. The same is true for dividing: −12 ÷ (−4) = 3.

Why is subtracting a negative the same as adding?

Subtracting means adding the opposite, and the opposite of −3 is 3. So 5 − (−3) = 5 + 3 = 8. On a number line, taking away a debt moves you up.

Is −9 + 4 the same as 4 − 9?

Yes. Addition can be done in any order, so −9 + 4 = 4 + (−9) = 4 − 9 = −5.

Is 0 positive or negative?

Neither. Zero has no sign, so any product with 0 is just 0.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator