Geometric Sum Calculator

Sum of n terms, infinite sums and first-to-last-term sums of a geometric sequence.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter the geometric sequence

Enter your values below to get started.

Examples:
What do you want to find?
Fractions work: 1/2, -3/4.
r = a₂ ÷ a₁, for example 0.5 or -2.
Reset restores the default values.

Tips for this calculator

Find r by dividing any term by the term before it: 12 ÷ 6 = 2.

Type fractions as 1/3; the answer stays an exact fraction.

Pick Infinite sum for a series that never ends; it needs |r| < 1.

Pick First and last term when you know the end of the list but not n.

A geometric sum calculator adds the terms of a geometric sequence, where each term equals the previous term times a fixed common ratio r. Enter the first term a, the ratio r and the number of terms n to get the finite sum Sₙ as an exact fraction and a decimal, switch to the infinite sum a/(1 − r) when |r| < 1, or enter the first and last term instead of n.

What is a Geometric Sum?

A geometric sum is the total of the terms of a geometric sequence, a list in which every term equals the term before it multiplied by the same common ratio r. The sequence 3, 6, 12, 24, 48 has first term a = 3 and ratio r = 2, and its geometric sum is 3 + 6 + 12 + 24 + 48 = 93.

Sn=a+ar+ar2+⋯+arn−1=∑k=1na rk−1S_n = a + ar + ar^2 + \cdots + ar^{n-1} = \sum_{k=1}^{n} a\,r^{k-1}

A sum of finitely many terms is a finite geometric sum (the sum of a geometric progression). A sum that never stops is an infinite geometric series, and that series has a finite value only when −1 < r < 1.

InteractiveChange a, r and n and watch the geometric sum grow

How Does the Geometric Sum Calculator Work?

The geometric sum calculator applies the closed-form formula Sₙ = a(1 − rⁿ)/(1 − r), so the sum of 1,000,000 terms takes the same time as the sum of 5 terms. The formula comes from the shift-and-subtract trick: write S, write rS one place to the right, and subtract. Every term except the first and the last cancels.

InteractiveShift and subtract: S − rS cancels the middle terms
  1. Read a, r and n

    Fractions and negatives are parsed exactly, so a = 1 and r = 1/2 keep the answer as a fraction.

  2. Handle r = 1

    With r = 1 every term equals a, and the calculator returns Sₙ = n·a.

  3. Apply the formula

    For r ≠ 1 the calculator evaluates a(1 − rⁿ)/(1 − r), or a/(1 − r) for the infinite sum.

  4. Build the table

    The calculator lists up to 200 terms aₖ with their partial sums Sₖ and graphs the first 40.

Geometric Sum Formula

The geometric sum formula is Sₙ = a(1 − rⁿ)/(1 − r) for r ≠ 1, and Sₙ = n·a for r = 1. There are 4 formulas in total, one for each piece of information you start with.

Sum of the First n Terms

Sn=a 1−rn1−r=a rn−1r−1,r≠1S_n = a\,\frac{1 - r^{n}}{1 - r} = a\,\frac{r^{n} - 1}{r - 1}, \qquad r \neq 1

Both versions give the same value; the second form keeps the numbers positive when r > 1.

Infinite Geometric Series Formula

S∞=a1−r,∣r∣<1S_{\infty} = \frac{a}{1 - r}, \qquad |r| < 1

Sum from the First and Last Term

Sn=a−l r1−r,l=a rn−1S_n = \frac{a - l\,r}{1 - r}, \qquad l = a\,r^{n-1}

nth Term of a Geometric Sequence

an=a r n−1a_n = a\,r^{\,n-1}
InteractiveFormula playground: plug in a, r and n

Types of Geometric Series

There are 4 types of geometric series, set by the common ratio r: convergent (|r| < 1), alternating (r < 0), constant (r = 1) and divergent (|r| ≥ 1). A series can belong to 2 types at once: r = −1/2 gives a convergent alternating series.

InteractivePick a ratio: converge, grow or oscillate?

Convergent geometric series

−1 < r < 1. Terms shrink toward 0 and the infinite sum equals a/(1 − r). Example: 1 + 1/2 + 1/4 + … = 2.

Alternating geometric series

r < 0. Signs switch every term: 1 − 1/2 + 1/4 − … = 2/3.

Constant series

r = 1. Every term equals a, so Sₙ = n·a and the infinite series diverges.

Divergent geometric series

|r| ≥ 1 with r ≠ 1. Terms do not shrink: 1 + 2 + 4 + … grows without bound, and 1 − 1 + 1 − … (Grandi's series) never settles.

How to Calculate a Geometric Sum by Hand

To calculate a geometric sum by hand, find a and r, raise r to the power n, and substitute into Sₙ = a(1 − rⁿ)/(1 − r). The process takes 5 steps. Here is the sum 3 + 6 + 12 + 24 + 48.

  1. First term: a = 3.
  2. Common ratio: r = 6 ÷ 3 = 2.
  3. Number of terms: n = 5.
  4. Power: rⁿ = 2⁵ = 32.
  5. Sum: S₅ = 3(1 − 32)/(1 − 2) = 3(−31)/(−1) = 93.
InteractiveStep through a geometric sum by hand

    When Does an Infinite Geometric Series Converge?

    An infinite geometric series converges when the absolute value of the common ratio is less than 1 (|r| < 1), and its sum is a/(1 − r). For |r| ≥ 1 the series diverges, since the terms do not approach 0.

    ∑k=1∞a rk−1=lim⁡n→∞a 1−rn1−r=a1−rwhen rn→0\sum_{k=1}^{\infty} a\,r^{k-1} = \lim_{n\to\infty} a\,\frac{1 - r^{n}}{1 - r} = \frac{a}{1 - r} \quad \text{when } r^{n} \to 0

    The Greek philosopher Zeno of Elea (about 490–430 BC) posed the dichotomy paradox: to walk 1 meter (3.28 ft), first walk 1/2, then 1/4, then 1/8. The geometric series 1/2 + 1/4 + 1/8 + … resolves the paradox: infinitely many pieces add up to exactly 1. After k pieces the gap left is rᵏ, so 10 pieces leave 1/1,024 ≈ 0.098% of the distance.

    InteractiveLay the terms end to end: the gap shrinks to 0

    Common Mistakes with Geometric Sums

    • Using rⁿ⁻¹ in the sum formula: the sum uses rⁿ; only the nth term uses rⁿ⁻¹.
    • Dividing the wrong way for r: r = a₂ ÷ a₁, not a₁ ÷ a₂. For 8, 4, 2 the ratio is 1/2, not 2.
    • Dropping the sign of r: 2, −6, 18 has r = −3; write (−3)ⁿ in brackets.
    • Applying a/(1 − r) when |r| ≥ 1: 1 + 2 + 4 + … does not equal 1/(1 − 2) = −1 in ordinary arithmetic; the series diverges.
    • Counting terms wrong: 2, 6, …, 162 has 5 terms, not 4; solve l = a·rⁿ⁻¹ for n.
    InteractiveTrue or false: geometric sums
    1. The sum of 1 + 1/2 + 1/4 + 1/8 + … equals 2.

    2. The infinite series 1 + 2 + 4 + 8 + … equals −1.

    3. The common ratio of 8, 4, 2, 1 is 2.

    4. When r = 1, the sum of n terms is n·a.

    5. A geometric series with r = −1/2 converges.

    Score: 0 / 5

    How to Use the Geometric Sum Calculator

    Choose a mode, enter a and r, add n or the last term, and press Calculate. The result card shows Sₙ as a fraction and a decimal, the last term, the step-by-step working, a term table and a graph of the partial sums.

    InteractiveLoad a ready-made geometric sum

    Each button fills the calculator and runs it.

    1. Pick the mode

      Sum of n terms, Infinite sum, or First and last term.

    2. Enter a and r

      Type decimals, negatives or fractions: -3, 0.2, 2/3.

    3. Enter n or l

      n can be any whole number from 1 to 1,000,000; l must be a term of the sequence.

    4. Read the result

      Open the Table and Graph tabs to check each term and the running total.

    Real-Life Applications of Geometric Sums

    Geometric sums model any quantity that changes by the same percentage each step. There are 5 common applications:

    • Savings and annuities: equal yearly deposits at interest rate i grow to P((1 + i)ⁿ − 1)/i, a geometric sum with r = 1 + i.
    • Loan payments: the monthly payment formula for a mortgage comes from a geometric sum of discounted payments.
    • Bouncing balls: a ball dropped from h meters that rebounds to fraction r travels h + 2hr/(1 − r) in total.
    • Medicine: repeated doses D with fraction f remaining build up to a steady-state peak D/(1 − f).
    • Computing: a binary number with n ones equals 2ⁿ − 1, the sum 1 + 2 + 4 + … + 2ⁿ⁻¹.
    InteractiveGeometric sums in real life: pick a scenario

    Geometric Sum Examples

    Common geometric sums with their inputs and exact results.

    Geometric Sum Examples
    Seriesa, r, nSumCalculator
    3+6+12+24+483 + 6 + 12 + 24 + 48a = 3, r = 2, n = 593
    1+12+⋯+15121 + \tfrac12 + \cdots + \tfrac{1}{512}a = 1, r = 1/2, n = 101023/512 ≈ 1.998
    2−6+18−⋯2 - 6 + 18 - \cdotsa = 2, r = −3, n = 6−364
    2+6+⋯+1622 + 6 + \cdots + 162a = 2, r = 3, l = 162242
    5+53+59+⋯5 + \tfrac53 + \tfrac59 + \cdotsa = 5, r = 1/3, n = ∞15/2 = 7.5
    0.9+0.09+0.009+⋯0.9 + 0.09 + 0.009 + \cdotsa = 0.9, r = 0.1, n = ∞1
    1+2+4+⋯+2631 + 2 + 4 + \cdots + 2^{63}a = 1, r = 2, n = 6418,446,744,073,709,551,615

    Popular Geometric Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Find the sum of the first 6 terms of 4, 12, 36, …

      \sum_{k=1}^{6} 4\cdot 3^{k-1}
      Show answerS_6 = 1456
    2. Find the infinite sum 12 + 3 + 3/4 + …

      12 + 3 + \tfrac34 + \cdots
      Show answerS_{\infty} = 16
    3. Add the first 5 terms of 81, 27, 9, …

      81 + 27 + 9 + 3 + 1
      Show answerS_5 = 121
    4. Add 5 + 10 + 20 + … + 320.

      5 + 10 + \cdots + 320
      Show answern = 7,\ S_7 = 635
    5. Find the sum of the alternating series 1 − 1/2 + 1/4 − 1/8 + …

      \sum_{k=0}^{\infty} \left(-\tfrac12\right)^{k}
      Show answerS_{\infty} = \tfrac23
    6. A $1,000 deposit grows 10% a year. Add the 4 yearly values 1000, 1100, 1210, 1331.

      \sum_{k=1}^{4} 1000(1.1)^{k-1}
      Show answerS_4 = 4641

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a geometric sum calculator?

    A geometric sum calculator is an online tool that adds the terms of a geometric sequence from the first term a, the common ratio r and the number of terms n. It returns the finite sum Sₙ, the infinite sum a/(1 − r) when |r| < 1, and the step-by-step working.

    What is the formula for the sum of a geometric series?

    The sum of the first n terms is Sₙ = a(1 − rⁿ)/(1 − r) for r ≠ 1. The infinite sum is S∞ = a/(1 − r) for |r| < 1.

    How do you find the common ratio r?

    Divide any term by the term before it. For 5, 15, 45 the common ratio is 15 ÷ 5 = 3.

    Can a geometric series have a negative ratio?

    Yes, a geometric series can have a negative ratio. The signs then alternate: with a = 1 and r = −2 the series is 1 − 2 + 4 − 8 + …

    Does every infinite geometric series have a sum?

    No, only an infinite geometric series with |r| < 1 has a finite sum. With |r| ≥ 1 the terms do not shrink to 0 and the series diverges.

    What is the sum of 1 + 1/2 + 1/4 + 1/8 + …?

    The sum of 1 + 1/2 + 1/4 + 1/8 + … is 2. The first term is 1 and the ratio is 1/2, so S∞ = 1/(1 − 1/2) = 2.

    Is 0.999… equal to 1?

    Yes, 0.999… equals exactly 1. The decimal is the geometric series 0.9 + 0.09 + 0.009 + … with a = 0.9 and r = 0.1, so the sum is 0.9/(1 − 0.1) = 1.

    What happens when r = 1?

    When r = 1, every term equals the first term a, so the sum of n terms is n·a and the infinite series diverges.

    How many grains of wheat are on the chessboard?

    There are 18,446,744,073,709,551,615 grains of wheat on the chessboard in the wheat and chessboard problem. Doubling from 1 grain over 64 squares gives the geometric sum 2⁶⁴ − 1.

    What is the difference between a geometric and an arithmetic sum?

    A geometric sum multiplies by a constant ratio r between terms, while an arithmetic sum adds a constant difference d. The geometric sum is a(1 − rⁿ)/(1 − r); the arithmetic sum is n(a₁ + aₙ)/2.

    Conclusion

    A geometric sum adds terms that grow or shrink by a fixed ratio r, and the geometric sum calculator returns that total from a, r and n, from a and the last term, or as an infinite sum when |r| < 1. Check |r| first: below 1 the infinite series has a finite value a/(1 − r); at 1 or above only finite sums exist.

    Not sure which formula fits your problem? Answer the questions below.

    InteractiveWhich geometric sum formula do you need?