Integer Calculator
An integer is a whole number that can be positive, negative or zero: …, −3, −2, −1, 0, 1, 2, 3, … This calculator adds, subtracts, multiplies and divides integers and compares two of them, showing every step — including the sign rule that decides each answer. Pick a mode, set the numbers with the buttons (the +/− button flips a number’s sign), and the working appears as you go. For the ideas behind the buttons, read the sign rules below; or ask the question in your own words on the Arithly home page — hints first, then the whiteboard. Free, no sign-up.
Same signs: add the sizes and keep the sign. Different signs: subtract the sizes and take the sign of the bigger size.
Subtracting a negative turns into adding the positive: −4 − (−9) becomes −4 + 9.
Same signs multiply to a positive; different signs multiply to a negative. Decide the sign first, then multiply the sizes.
Division uses the same sign rule as multiplication. If the division is not exact, the answer is an exact fraction — and dividing by zero has no answer at all.
On the number line, further right means greater — so on the negative side, the number closer to zero is the greater one.
The result appears here as you change the numbers.
The sign rules
Every integer answer is decided by two things: the sign (whether the number is positive, negative or zero) and the size (how far the number is from zero — its distance on the number line). The rules:
- Adding, same signs: add the sizes and keep the sign — −5 + −3 = −8.
- Adding, different signs: subtract the smaller size from the larger, and take the sign of the larger size — −8 + 5 = −3, because 8 is the bigger size and it belongs to the negative number.
- Subtracting: subtracting a negative is the same as adding its positive — −4 − (−9) = −4 + 9 = 5. Subtracting a positive from a negative moves further from zero: −5 − 3 = −8.
- Multiplying and dividing: same signs give a positive answer (−6 × −7 = 42); different signs give a negative answer (−6 × 7 = −42). Decide the sign first, then work with the sizes.
- Comparing: numbers further right on the number line are greater. On the negative side that flips the sizes: −3 is greater than −7, because −3 sits closer to zero.
How the calculator works
- Button-first. Steppers change each number by 1, and the flip button changes its sign — typing is optional. Whole numbers up to 9,999,999 are accepted; decimals and fractions are turned away, because they are not integers.
- Sign first, sizes second. Every mode applies the sign rule for the operation, then does the arithmetic on the sizes — exactly the steps printed under the result.
- Exact division. If a division does not come out whole, the answer is the exact fraction (−7 ÷ 2 = −7/2), never a rounded decimal. Dividing by zero is refused outright: it has no answer, so the calculator says so instead of guessing.
- The same engine. The calculator and the Solve box share one verified solver: every answer here is checked by the inverse operation (an addition is re-checked by subtracting, a division by multiplying) before it is shown.
Every answer can be checked in words: the Solve box solves the same questions with hints and a whiteboard, and the five worked examples below are its own output, word for word.
Think first
Arithly gives hints before the answer. For the first worked example below, the hints are:
- Keep each sign with its number — the sign is part of the number.
- Same signs: add the sizes and keep the sign. Different signs: subtract the sizes and take the sign of the bigger size.
- The answer is -3.
Worked examples
-8 + 5
- Work one operation at a time, keeping every sign with its number.
- The signs are DIFFERENT: subtract the smaller size from the larger size, 8 − 5 = 3.
- The larger size belongs to −8, so the answer takes its sign: −8 + 5 = −3.
- Answer: -3.
Answer: -3
Try it in the calculator above: mode Add, first integer -8, second integer 5 — the same answer, worked the same way.
-4 - -9
- Work one operation at a time, keeping every sign with its number.
- Subtracting a negative is the same as ADDING its positive: −4 − (−9) becomes −4 + 9.
- The signs are DIFFERENT: subtract the smaller size from the larger size, 9 − 4 = 5.
- The larger size belongs to 9, so the answer takes its sign: −4 + 9 = 5.
- −4 − −9 = 5.
- Answer: 5.
Answer: 5
That one is mode Subtract: first integer -4, second integer -9 (use the flip button to make the second number negative).
-6 x -7
- Work one operation at a time, keeping every sign with its number.
- Sign rule for multiplying: the signs are the SAME, so the answer is POSITIVE — a negative times a negative gives a positive.
- Multiply the sizes: 6 × 7 = 42, then give it the sign from the rule: −6 × −7 = 42.
- Answer: 42.
Answer: 42
Mode Multiply with -6 and -7: two negatives, one positive answer.
-36 / -9
- Work one operation at a time, keeping every sign with its number.
- Sign rule for dividing (the same as for multiplying): the signs are the SAME, so the answer is POSITIVE.
- Divide the sizes: 36 ÷ 9 = 4, then give it the sign from the rule: −36 ÷ −9 = 4.
- Answer: 4.
Answer: 4
Mode Divide with -36 and -9.
Which is greater, -3 or -7?
- On the number line, numbers further to the RIGHT are greater; numbers further to the LEFT are smaller.
- −7 sits further left than −3 — on the negative side, the number further from zero is the smaller one, so −3 is the greater number.
- Answer: -3.
Answer: -3
And that one is mode Compare: -3 against -7.
Ask it in words
Every shape below is one the Arithly Solve box answers today, with the same hints, steps and checking as the examples above:
- In symbols or in words — “-8 + 5”, “Add negative 5 and negative 3”, “negative twelve divided by negative four”, “What is the product of -3, -2 and -5?”, “Find the value of -15 / 5”, chains like “-3 + 5 - 7”.
- Comparing — “Which is greater, -3 or -7?”, “Is -5 greater than -3?”, the largest, smallest or closest to zero in a list, and “True or false: -4 > -1”.
- Opposites and classes — “What is the opposite of -7?”, “What is the additive inverse of 5?”, “Is 2.5 an integer?”, “Which of these are integers: -3, 2.5, 0, 7?”
- Real-life frames — temperatures that rise and fall (“The temperature was -6 degrees. It rose by 11 degrees”), divers and submarines below sea level, bank balances with deposits and withdrawals, lifts moving between floors, and the distance between two points on the number line.
- The ideas themselves — “What is an integer?”, the rules for adding, subtracting, multiplying and dividing integers, why a negative times a negative is positive, and the smallest positive and largest negative integers.
Honest notes: dividing by zero is never answered — it has no answer. A chain of operations is worked when every division in it comes out exact; a single division may answer as a fraction. The dress “-9 squared” is not answered, because it is genuinely ambiguous (−(92) or (−9)2) — ask “What is the square of -9?” instead. Ordering a list of integers lives with the number-line questions in the Solve box.
Practice
Each question opens in the Arithly solver — try it yourself first, then compare:
- The temperature was -6 degrees. It rose by 11 degrees. What is the temperature now? Try it in the solver →
- Divide -45 by 9 Try it in the solver →
- Which is smaller: -8 or -2? Try it in the solver →
Related topics
Absolute value
The size of an integer — its distance from zero — which is what every sign rule above works with.
Binomial Distribution Calculator
Count successes in repeated trials: exact and cumulative probabilities, mean and standard deviation.
Probability Calculator
One event, complements, two events and repeated trials — exact fractions with steps.
HCF and LCM
Highest common factors and lowest common multiples of positive whole numbers, worked in full.
More topics: all maths topics · Next topic: Solving Exponential Equations
Arithly — free maths help, hints first. About · Privacy · Licence (CC BY-NC 4.0)