Article
Sum of a Geometric Series: Formula for the First n Terms and Examples
The sum of the first n terms of a geometric sequence is Sₙ = a₁ · (1 − qⁿ) ÷ (1 − q) for a ratio q other than 1. In a geometric sequence each term comes from the previous one by multiplying by a constant ratio q. This article gives the formula, how it is derived, the case q = 1, a negative ratio, the infinite sum for |q| < 1 and four worked examples. You can check your own data in the geometric series calculator. For a₁ = 3, q = 2 and n = 8 the sum is 765.
Last updated:
Find the sum of a geometric series in the geometric series calculator. Find the sum of an arithmetic series in the arithmetic series calculator.
The formula for the sum of a geometric series
A geometric sequence has a constant ratio q, so the terms are a₁, a₁q, a₁q², a₁q³ and so on. The sum of the first n terms depends on the first term, the ratio and the number of terms.
Sₙ = a₁ · (1 − qⁿ) ÷ (1 − q) for q ≠ 1
Sₙ = a₁ · n for q = 1
example: a₁ = 3, q = 2, n = 8: Sₙ = 3 · (1 − 256) ÷ (1 − 2) = 765
| a₁ | r | n | Terms | Sum Sₙ |
|---|---|---|---|---|
| 2 | 3 | 4 | 2, 6, 18, 54 | 80 |
| 3 | 2 | 8 | 3, 6, 12, 24, … | 765 |
| 16 | 0.5 | 4 | 16, 8, 4, 2 | 30 |
| 4 | −2 | 5 | 4, −8, 16, −32, 64 | 44 |
| 1 | 2 | 8 | 1, 2, 4, 8, … | 255 |
| 5 | 1 | 6 | 5, 5, 5, 5, 5, 5 | 30 |
The formula a₁ · (qⁿ − 1) ÷ (q − 1) is equivalent, because the numerator and the denominator both change sign. It is more convenient when q is greater than 1.
Try it with an example
Example: a first term of 3, a ratio of 2 and 8 terms. All three values are already stored in the link to the calculator.
- First term a₁
- 3
- Ratio r
- 2
- Number of terms n
- 8
- Result
- Sₙ = 765, last term 384, q^n = 256
Open the calculator with these numbers
The calculator reads the values from the page address and shows the result right away. You can change them freely.
How the calculator works
The calculator finds the finite sum Sₙ with a₁ · (1 − qⁿ) ÷ (1 − q), and when the ratio equals 1 with a₁ · n. It also shows the last term, the value of qⁿ, the factors 1 − qⁿ and 1 − q and bars for the first eight terms. The number of terms must be a whole number of at least 1. The calculator returns the finite sum, not a single term and not the infinite sum. For very large values it shows a message that the result is too large.
Why the formula works
Write the sum Sₙ = a₁ + a₁q + … + a₁qⁿ⁻¹ and multiply it by q. You get q · Sₙ = a₁q + a₁q² + … + a₁qⁿ. When you subtract the two equations, almost all the terms cancel and what is left is Sₙ − q · Sₙ = a₁ − a₁qⁿ, which means Sₙ · (1 − q) = a₁ · (1 − qⁿ). Dividing by 1 − q gives the formula, as long as q ≠ 1.
For q = 1 all the terms equal a₁, so the sum is simply a₁ · n. For example, for a₁ = 5 and n = 6 it is 30. The formula with the ratio would miss this case, because the denominator 1 − q would be zero, which is why the calculator recognizes q = 1 separately.
A negative ratio and the infinite sum
When the ratio is negative, the terms alternate in sign, and the formula still applies. For a₁ = 4, q = -2 and n = 5 the terms are 4, −8, 16, −32, 64, and the sum is 4 · (1 − (-2)^5) ÷ (1 − (-2)) = 4 · 33 ÷ 3 = 44.
For |q| < 1 the terms shrink toward zero, and the sum of the infinite series exists and equals S = a₁ ÷ (1 − q). For a₁ = 16 and q = 0.5 it is 16 ÷ (1 − 0.5) = 32, and the sum of the first four terms, 30, is already close to that limit. For |q| ≥ 1 the infinite sum does not exist. The calculator finds only the finite sum.
Where geometric series are used
A geometric sequence describes quantities that change by a constant percentage, such as compound interest, population growth and decay. Annual payments that start at $4,000 and rise by 5% a year add up to $50,311.57 after 10 years, because a₁ = 4,000, q = 1.05 and n = 10. The last payment is $6,205.31.
The ratio between two consecutive terms can be found in the percentage change calculator, and the power qⁿ in the exponent calculator. Powers and roots are also the basis of the geometric mean calculator, which is described in Geometric Mean. A sequence with a constant difference instead of a ratio is an arithmetic sequence, and its sum is described in Sum of an Arithmetic Series. The natural log, useful when you look for n, can be found in the natural log calculator.
Four worked examples
You can repeat each example in the geometric series calculator.
1. The sum of eight terms with a₁ = 3 and q = 2
A ratio greater than 1.
- Find q^n: 2^8 = 256.
- Find 1 − q^n = −255 and 1 − q = −1.
- Compute 3 · −255 ÷ −1.
- The sum is 765 and the last term is 384.
2. The sum of four terms with a₁ = 2 and q = 3
Checking by addition.
- List the terms: 2, 6, 18, 54.
- Use the formula: 2 · (1 − 81) ÷ (1 − 3).
- The sum is 80.
- Adding 2 + 6 + 18 + 54 gives the same result.
3. The sum of four terms with a₁ = 16 and q = 0.5
A ratio below 1.
- List the terms: 16, 8, 4, 2.
- Find q^n = 0.5^4 = 0.0625.
- Compute 16 · (1 − 0.0625) ÷ (1 − 0.5).
- The sum is 30, and the infinite sum would be 32.
4. The sum of five terms with a₁ = 4 and q = -2
A negative ratio.
- List the terms: 4, −8, 16, −32, 64.
- Find q^n = (-2)^5 = −32.
- Compute 4 · (1 − (−32)) ÷ (1 − (-2)) = 4 · 33 ÷ 3.
- The sum is 44.
Common mistakes when summing a geometric series
- Using the formula when q = 1 — the denominator 1 − q is then zero, and the sum is a₁ · n.
- Raising the ratio to the power n − 1 instead of n — the sum formula contains qⁿ, and the power n − 1 belongs to the last term.
- Mixing up the sum and the last term — the last term is a₁ · qⁿ⁻¹, and the sum has a separate formula.
- Getting the sign wrong with a negative ratio — a negative ratio raised to an odd power is negative.
- Confusing the ratio with a difference — the ratio q comes from dividing consecutive terms, not from subtracting them.
- Using the infinite sum formula for |q| ≥ 1 — the formula a₁ ÷ (1 − q) works only for |q| < 1.
- Entering a non-integer number of terms — the number of terms must be a whole number of at least 1.
Frequently asked questions
What is the formula for the sum of a geometric series?
The sum of the first n terms is Sₙ = a₁ · (1 − qⁿ) ÷ (1 − q) for q ≠ 1. For a₁ = 3, q = 2 and n = 8 the result is 765.
How do you find the sum of the first n terms of a geometric sequence?
Find qⁿ, then a₁ · (1 − qⁿ) ÷ (1 − q). For a₁ = 2, q = 3 and n = 4 the sum is 80.
What is the sum of a geometric series when q = 1?
All the terms equal a₁, so the sum is a₁ · n. For a₁ = 5 and n = 6 it is 30.
How do you find the sum of an infinite geometric series?
When |q| < 1, the sum is a₁ ÷ (1 − q). For a₁ = 16 and q = 0.5 it is 32. For |q| ≥ 1 the sum does not exist.
How do you find the nth term of a geometric sequence?
Use aₙ = a₁ · qⁿ⁻¹. For a₁ = 3, q = 2 and n = 8 the eighth term is 384.
What is the sum of 2 + 6 + 18 + 54?
These are the first four terms of the sequence with a₁ = 2 and q = 3, and their sum is 80.
Can the ratio of a geometric sequence be negative?
Yes. The terms then alternate in sign, and the formula still applies. For a₁ = 4, q = -2 and n = 5 the sum is 44.
Does the geometric series calculator find the infinite sum?
No. The calculator finds the finite sum Sₙ for the number of terms you enter. For |q| < 1 find the infinite sum with a₁ ÷ (1 − q).
Find the sum of your own geometric series
Enter the first term, the ratio and the number of terms in the geometric series calculator and read the sum, the last term and the value of qⁿ.
Find the sum of a sequence with a constant difference in the arithmetic series calculator, and the power of the ratio in the exponent calculator.