
Integer Calculator
Free integer calculator: add, subtract, multiply, and divide whole numbers, including negatives, with the sign rules shown step by step.
There was an error with your calculation.
Answer
-167
Integer calculator at a glance#
An integer calculator adds, subtracts, multiplies and divides whole numbers, including negatives, and applies the sign rules so the result keeps the correct positive or negative sign. The sign depends on the operation and on whether each number is positive or negative.
For adding and subtracting, picture a number line: adding a positive moves right, adding a negative moves left. Subtracting a negative is the same as adding its positive, so -4 minus (-11) equals 7. A few worked results: -5 + 3 = -2, 8 + (-3) = 5, and 12 + 17 = 29.
| Operation | Same Signs | Different Signs |
|---|---|---|
| Multiply or divide | Positive: -4 × -6 = 24 | Negative: -7 × 3 = -21 |
| Add | Keep the sign, add the values: -2 + -3 = -5 | Subtract the smaller value, keep the larger sign: -8 + 5 = -3 |
So negative times negative is positive (-4 × -6 = 24), and negative times positive is negative (6 × -5 = -30). Division follows the same sign rule: -20 ÷ -4 = 5, while -18 ÷ 3 = -6.
Enter your numbers and the operation in the calculator above for the exact result with each step shown. Watch the signs on negative numbers, since they decide whether the answer comes out positive or negative.
Integers and the number line#
An integer is a whole number with no fraction or decimal part, and it can be positive, negative or zero. An integer calculator adds and subtracts these numbers, keeping track of signs so the result comes out correct. Picture a number line: adding a positive moves you right, adding a negative moves you left.
Adding and subtracting integers#
When both numbers share a sign, add their values and keep that sign, so -2 + -3 = -5. When the signs differ, subtract the smaller value from the larger and keep the sign of the larger, so -8 + 5 = -3. Subtracting a negative is the same as adding its positive: -4 - (-11) = 7, and 10 - (-3) = 13.
Worked examples#
- 12 + 17 = 29 (two positives)
- 10 + (-3) = 7 (different signs, larger is positive)
- 20 - 8 = 12 (positive result)
- -5 - 3 = -8 (negative result)
- (-5) + 2 - (-3) + 1 = 1 (mixed signs)
The calculator above shows each step, which makes it useful for checking homework or seeing exactly where a sign flips.
Integer calculator FAQ#
What is an integer calculator?#
It is a tool for arithmetic on whole numbers, including negatives. It adds and subtracts integers and applies the sign rules so the result is correct, for example -5 - 3 = -8.
How does it handle positive and negative numbers?#
Same signs: add the values and keep the sign, so -2 + -3 = -5. Different signs: subtract the smaller value and keep the larger sign, so -8 + 5 = -3. Subtracting a negative becomes adding a positive.
What are negative integers?#
They are whole numbers below zero, used for things like debts or temperatures under freezing. Subtracting a larger number from a smaller one gives a negative result, such as 8 - 12 = -4.
Can it handle decimals or fractions?#
No. An integer calculator works only with whole numbers. For decimals or fractions you need a standard or scientific calculator.
What are consecutive integers?#
They are whole numbers that follow one another, each one larger than the last, such as 4, 5, 6. They come up in algebra problems that ask you to sum or compare a run of numbers.