Same signs
Add the absolute values and keep the sign: (−8) + (−13) = −21; 8 + 13 = 21.
Add positive and negative integers exactly, or sum every integer from a to b.
Enter your values below to get started.
Same signs: add the absolute values and keep the sign. Different signs: subtract and keep the sign of the larger absolute value.
The sum of the integers from a to b is n(a + b)/2, where n = b − a + 1.
The integers from −n to n always add up to 0.
Huge integers stay exact: the calculator uses arbitrary-precision BigInt arithmetic.
An integer sum calculator adds whole numbers that can be positive, negative or zero, so 12 + (−7) + 30 + (−15) + (−4) + 9 = 25. Paste a list of up to 100,000 integers of any length, or enter a range a to b to get the sum of all, even or odd integers between them, with every step, a running-sum table and a number line.
An integer sum is the result of adding 2 or more integers, the whole numbers …, −3, −2, −1, 0, 1, 2, 3, …. The sum of 5, −8, 3, −2 and 6 is 4.
The symbol ℤ comes from the German word Zahlen (numbers). Indian mathematician Brahmagupta wrote the first known rules for adding negative numbers, which he called debts, in the Brāhmasphuṭasiddhānta in 628 AD. An integer sum is always an integer: adding integers never produces a fraction or a decimal.
On a number line, adding a positive integer moves right and adding a negative integer moves left, so the sum is the final position after all the moves, starting at 0.
The integer sum calculator reads every integer in your list, adds the positive integers and the negative integers in 2 separate totals, then combines the 2 totals. The arithmetic uses arbitrary-precision integers (JavaScript BigInt), so a sum such as 99,999,999,999,999,999,999 + 1 = 100,000,000,000,000,000,000 keeps all 21 digits.
Commas, spaces, new lines and brackets separate the integers; −, – and - all mean minus.
12 + 30 + 9 = 51.
(−7) + (−15) + (−4) = −26.
51 + (−26) = 25. The table lists the running sum after each integer.
The sum of all integers from a to b is S = n(a + b)/2, where n = b − a + 1 is the number of integers. The formula pairs the first and last integers, the second and second-to-last, and so on: every pair adds up to a + b.
Carl Friedrich Gauss is said to have found 1 + 2 + … + 100 = 5,050 this way as a schoolboy in Braunschweig in the 1780s.
There are 4 rules for adding integers: same signs, different signs, opposites and zero. The rules decide whether you add or subtract the absolute values and which sign the answer takes.
Add the absolute values and keep the sign: (−8) + (−13) = −21; 8 + 13 = 21.
Subtract the smaller absolute value from the larger and keep the sign of the larger: 6 + (−4) = 2; (−9) + 4 = −5.
An integer plus its opposite is 0: 17 + (−17) = 0.
Adding 0 changes nothing: (−5) + 0 = −5.
To calculate an integer sum by hand, add all the positive integers, add all the negative integers, then combine the 2 totals with the different-signs rule. Here is −15 + 22 + (−9) + 4:
Integer addition has 5 properties: closure, commutativity, associativity, an identity element (0) and an additive inverse for every integer. Together these properties make the integers an abelian group under addition, named after Norwegian mathematician Niels Henrik Abel.
The commutative and associative properties are what allow the calculator to total the positives and negatives apart and still return the same sum as adding left to right.
Pick Sum of a list or Sum of integers from a to b, enter the integers or the 2 endpoints and press Calculate. The result card gives the sum, the totals of positives and negatives (list) or the count and endpoints (range); the tabs show the steps, a number line or running-sum chart and a table.
Sum of a list for any integers; Sum of integers from a to b for consecutive integers.
Paste a list such as 12, -7, 30, or set a = −10 and b = 15.
Range only: all integers, even integers or odd integers.
Steps show the grouping or the formula; the table lists every running total.
Integer sums track any quantity that goes up and down in whole steps. There are 5 common uses:
Lists and ranges with their sums.
| Integers | Count | Sum | Calculator |
|---|---|---|---|
| 12, −7, 30, −15, −4, 9 | 6 | 25 | |
| −8, −13, −21 | 3 | −42 | |
| 1 to 100 | 100 | 5,050 | |
| −10 to 15 | 26 | 65 | |
| Even integers 1 to 100 | 50 | 2,550 | |
| Odd integers 1 to 100 | 50 | 2,500 | |
| −50 to 50 | 101 | 0 |
Try each one, then reveal the answer or solve it in the calculator.
Find −15 + 22 + (−9) + 4.
Find the sum of all integers from 1 to 200.
Find the sum of all integers from −20 to −1.
Find the sum of the even integers from 2 to 50.
Find the sum of the odd integers from 1 to 99.
Daily temperature changes are −3, 5, 4, −2, −9, −6 and 3 °C. What is the net change?
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
An integer sum calculator is an online tool that adds positive and negative whole numbers exactly. This calculator adds a list of up to 100,000 integers of any size, or sums all, even or odd integers from a to b.
Add the positive integers, add the negative integers, then subtract the smaller absolute value from the larger and keep the sign of the larger. 12 + (−7) + 30 + (−15) + (−4) + 9 = 51 − 26 = 25.
The sum of all integers from 1 to 100 is 5,050: 100 × 101 / 2.
The sum of the integers from a to b is (b − a + 1)(a + b)/2. From −10 to 15: 26 × 5 / 2 = 65.
Yes, the sum of 2 negative integers is always negative: (−8) + (−13) = −21.
Yes, a sum of integers is zero when the positives and negatives cancel, such as 17 + (−17) or every integer from −50 to 50.
The sum of the even integers from 1 to 100 is 2,550: 50 terms from 2 to 100, 50 × 102 / 2.
Yes, the calculator uses arbitrary-precision BigInt arithmetic, so integers with hundreds of digits add exactly with no rounding.
The formula 1 + 2 + … + n = n(n + 1)/2 was known to ancient Greek and Indian mathematicians; the popular story credits Carl Friedrich Gauss, who is said to have used it at age 8 to add 1 to 100.
An integer sum adds positive and negative whole numbers, and the integer sum calculator returns that sum exactly for lists of any length or for every integer between a and b. Use the same-signs and different-signs rules for short sums, and the formula n(a + b)/2 for consecutive integers.
Not sure which mode to use? Answer 2 questions below.