A sum of series calculator adds up the terms of the most common series: arithmetic series, finite and infinite geometric series, the sums of the first n integers, squares and cubes, and the harmonic series. Choose the kind, enter the first term, the difference or ratio and the number of terms, and you get the sum, the last term and the formula that was used. It works in your browser, and it uses exact whole numbers where that is possible.
How to use the sum of series calculator
- Choose the kind of series.
- Enter the first term and the common difference or ratio, and the number of terms.
- For an infinite geometric series, leave the number of terms blank.
- Press Calculate.
Arithmetic series
The Wikipedia article on arithmetic progressions says that the constant difference between neighboring terms is called the common difference, and that the n-th term is a₁ + (n − 1)d.[1] The sum of the first n terms is n(a₁ + aₙ) ÷ 2, which is n times the average of the first and the last term, or equivalently (n ÷ 2)[2a₁ + (n − 1)d].[1] The page's example is 2 + 5 + 8 + 11 + 14 = 5 × (2 + 14) ÷ 2 = 40. Enter a first term of 2, a difference of 3 and 5 terms, and the calculator gives 40 and the last term, 14. The page also tells the story that Gauss, for n = 100, paired the terms into pairs that add up to 101.[1] With a first term of 1, a difference of 1 and 100 terms, the sum is 100 × 101 ÷ 2 = 5,050.
Geometric series
The article on geometric series gives the sum of a finite series with first term a and ratio r (for r not equal to 1) as a(1 − r^(n+1)) ÷ (1 − r) when it runs from the 0-th term to the n-th term.[2] In this calculator n counts the terms, so the sum of n terms is a(1 − rⁿ) ÷ (1 − r). If r = 1, every term equals a and the sum is na. For a = 1, r = 2 and 10 terms, the sum is 1,023. The page says that for |r| < 1 the partial sums converge to the limit a ÷ (1 − r), and that for |r| > 1 they diverge.[2] Leave the number of terms blank, and the calculator gives this sum: for a = 1 and r = 0.25, it is 4/3, the value that Archimedes found for the area of a parabolic segment as 1 + 1/4 + 1/16 + ⋯ = 4/3.[2] If the ratio is not between −1 and 1, the calculator says that the series has no sum.
Sums of the first n integers, squares and cubes
The article on Faulhaber's formula gives the sums of powers of the first n whole numbers. The sum of the first n integers is n(n + 1) ÷ 2, the sum of the squares is n(n + 1)(2n + 1) ÷ 6, and the sum of the cubes is [n(n + 1) ÷ 2]², which the page calls Nicomachus's theorem.[4] It credits the formula for the squares to Archimedes' work on spirals.[4] For n = 100, the three sums are 5,050, 338,350 and 25,502,500. The calculator uses exact whole-number arithmetic, so the sums are correct to the last digit even for n up to a billion. Note that the sum of the cubes is the square of the sum of the integers.
The harmonic series
The harmonic number Hₙ is the sum 1 + 1/2 + 1/3 + ⋯ + 1/n. The article on the harmonic series says that it grows roughly like ln n + γ, where γ ≈ 0.5772 is the Euler–Mascheroni constant, and more precisely Hₙ = ln n + γ + 1/(2n) − εₙ with 0 ≤ εₙ ≤ 1/(8n²).[3] The series is divergent, since its partial sums grow beyond any finite limit, a fact that was first proven by Nicole Oresme around 1350.[3] The page lists H₁₀ = 7381/2520, about 2.92897. Enter 10 and the calculator gives the exact fraction and the decimal, along with the approximation ln n + γ + 1/(2n) = 2.9298, which is within the stated error bound of 0.00125. It takes about 12,367 terms for the sum to pass 10.
Choosing the right kind of series
Look at how the terms change. If each term is the previous term plus a fixed number, the series is arithmetic. If each term is the previous term times a fixed number, it is geometric. If the terms are 1, 2, 3 and so on, or their squares or cubes, use the sums of powers. If the terms are the reciprocals 1, 1/2, 1/3, it is the harmonic series. For other series, such as the sum of 1/n², there is no simple closed form in this calculator.
Uses of series sums
Arithmetic sums add up regular savings, stacked objects and seating rows. Geometric sums give the value of regular deposits with interest, and the total distance of a bouncing ball. Sums of squares and cubes arise in statistics, in physics and in the study of algorithms. Harmonic numbers appear in the analysis of sorting and of collecting a full set of items. The calculator gives you the sum and the formula, so you can check your own working.
Common mistakes
- Counting terms wrongly. The terms from 5 to 14 in steps of 3 number 4, not 3.
- Using the infinite sum for a ratio of 1 or more. It has no limit.
- Mixing up the first term and the common difference. They are two different boxes.
- Forgetting that the harmonic series diverges. It grows slowly, but without bound.
What next
Use this often? Add Sum of Serie to your Home screen.
Frequently asked questions
What is a sum of series calculator?
A tool that adds up the terms of an arithmetic, geometric or harmonic series, or the first n integers, squares and cubes, using the closed formulas.
What is the sum of an arithmetic series?
n(a₁ + aₙ) ÷ 2. For 2 + 5 + 8 + 11 + 14 it is 5 × 16 ÷ 2 = 40.
When does an infinite geometric series have a sum?
When the ratio r is between −1 and 1. The sum is a ÷ (1 − r), so 1 + 1/4 + 1/16 + … = 4/3.
What is the sum of the first 100 whole numbers?
5,050, from 100 × 101 ÷ 2. Gauss is said to have found it by pairing the terms.
Does the harmonic series converge?
No. It diverges, but slowly. The sum of the first n terms is about ln n + 0.5772.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.