Integer Calculator
Add, subtract, multiply and divide positive and negative whole numbers, with the sign rule explained.
Result
−3
- Quotient and remainder
- −7 ÷ 2 = −3 remainder −1
- Divides evenly?
- No, there is a remainder
- Equation
- −7 ÷ 2 = −3
- Sign rule
- Two numbers with different signs give a negative answer
−7 ÷ 2 = −3.
Calculation breakdown
| Step | Formula | Result |
|---|---|---|
| Result | −7 ÷ 2 | -3 |
How it works
Type two integers and choose an operation.
Worked example
−7 ÷ 2:
- Different signs, so the quotient is negative
- 2 goes into 7 three times: quotient −3
- Remainder: −7 − 2 × (−3) = −1
Sources
Frequently asked questions
What is an integer?
An integer is a whole number that can be positive, negative or zero, like −12, 0 and 47. Fractions and decimals are not integers.
What are the rules for multiplying and dividing integers?
If both numbers have the same sign, the answer is positive. If the signs are different, the answer is negative. So (−6) × (−7) = 42, and (−6) × 7 = −42.
How do you add and subtract negative integers?
Adding a negative number is the same as subtracting its size, so 5 + (−3) = 2. Subtracting a negative number is the same as adding, so 5 − (−3) = 8.
How does division with a remainder work with negative numbers?
The quotient is rounded toward zero and the remainder keeps the sign of the first number. −7 ÷ 2 gives a quotient of −3 and a remainder of −1, because 2 × (−3) + (−1) = −7.
Can I use very large integers?
Yes, up to 40 digits. The calculator uses exact whole-number arithmetic, so long results do not lose digits.