Home Calculators Categories Category: Math, Statistics & Education

Geometric Series Sum Calculator

This geometric series sum calculator adds a fixed number of terms of a geometric progression, or checks whether an infinite geometric series converges and gives its sum when it does. Enter the first term, the common ratio, and (for a finite sum) the number of terms, and you get the result, the formula with your numbers substituted, and a chart of the running total.

Input
Finite adds the specified terms. Infinite checks whether the partial sums converge.
Start with the first number you add, from −100,000 to 100,000.

The first number you add.

Multiply by this number to get the next term. A negative ratio alternates signs.

The same multiplier from one term to the next.

Count all the terms you want to add, including the first. Enter 1 to 250.

Include the first term.

Load a four-term sum or an alternating infinite series.
Visual
Partial sums by number of terms
Output
Finite sum
5.625
Substituted formula

3 × (1 − 0.5^4) ÷ (1 − 0.5)

What the calculator does

The calculator sums real, unitless geometric series with a fixed common ratio. It works forward from three inputs: the first term, the ratio, and the number of terms. It does not parse arbitrary series or sigma expressions, and it does not solve backward for a missing ratio or term count. The sections below show how to turn a series from a textbook or homework problem into those inputs.

Control What to enter Default
Series type Finite adds a set number of terms. Infinite checks convergence and reports the sum if one exists. Finite
First term, aa The first addend. Any value from −100,000 to 100,000. 3
Common ratio, rr The multiplier between consecutive terms. Any value from −10 to 10. 0.5
Number of terms, nn Whole numbers from 1 to 250, counting the first term. Hidden and ignored for Infinite. 4

The Examples selector offers Four halving terms and Alternating infinite series. Choosing Custom leaves the current inputs in place. Four halving terms sets a=3a=3, r=0.5r=0.5, n=4n=4 and gives 5.625. These are also the values Reset restores. Alternating infinite series sets Infinite with a=3a=3 and r=−0.5r=-0.5, giving 2 with the status Converges.

Entering values

Each numeric control has a typed field and a slider. Use the typed field for precise values or numbers beyond the slider's initial span. The first term and ratio accept signed decimals and scientific notation, such as -2.5 or 1e-3. Enter fractions in decimal form: type 0.5 for one half. Zero is allowed in either field, but any nonzero first term or ratio must have a magnitude of at least 10−30010^{-300}. Each entry is limited to 128 characters, and an empty field is invalid.

If an input is invalid, the field shows a message, the main output shows an em dash, and the chart is cleared.

Geometric series sum formula

A geometric series is the sum of terms in which each term is the previous one multiplied by the same number. With first term aa and common ratio rr:

a1=a,ak+1=r ak,ak=a rk−1.a_1 = a, \qquad a_{k+1} = r\,a_k, \qquad a_k = a\,r^{k-1}.

The partial sum SnS_n adds the first nn terms, and by convention S0=0S_0 = 0:

Sn=a+ar+ar2+⋯+arn−1.S_n = a + ar + ar^2 + \cdots + ar^{n-1}.

Finite geometric series formula

The same expression is often called the geometric progression sum formula. For r≠1r \ne 1:

Sn=a (1−rn)1−r.S_n = \frac{a\,(1-r^n)}{1-r}.

For r=1r = 1 every term equals aa, so:

Sn=na.S_n = na.

The derivation takes two lines. Multiply SnS_n by rr to get rSn=ar+ar2+⋯+arnrS_n = ar + ar^2 + \cdots + ar^n. Subtracting this from SnS_n cancels every term except the first and last, leaving (1−r)Sn=a(1−rn)(1-r)S_n = a(1-r^n). Dividing by 1−r1-r gives the formula above, which is valid whenever r≠1r \ne 1.

A finite sum exists for every ratio the calculator accepts. Some special cases are useful to recognize:

  • With n=1n=1, the sum is just aa.
  • With r=0r=0, the sum is aa for every positive term count, since all later terms are zero.
  • With r=−1r=-1, the terms alternate between aa and −a-a. The sum is aa for odd nn and 00 for even nn.

Infinite geometric series sum formula

An infinite geometric series is defined as the limit of its partial sums, S∞=lim⁡n→∞SnS_\infty = \lim_{n\to\infty} S_n. Look at what happens to rnr^n in the finite formula as nn grows:

  • If ∣r∣<1|r| < 1, then rn→0r^n \to 0, and the sum settles at
    S∞=a1−r.S_\infty = \frac{a}{1-r}.
  • If ∣r∣≥1|r| \ge 1 and a≠0a \ne 0, the terms ark−1ar^{k-1} do not approach zero, so the partial sums never settle and the series diverges.
  • If a=0a = 0, every term is zero and the series converges to 00 for every ratio.

Use a/(1−r)a/(1-r) when ∣r∣<1|r|<1. Handle a=0a=0 directly as a sum of 00, including at r=1r=1, where the quotient is undefined. For a nonzero first term and r=2r=2, the quotient gives −a-a even though the partial sums grow without bound in magnitude.

Two boundary cases are worth knowing. At r=1r=1 the partial sums are Sn=naS_n = na, which grow without limit. At r=−1r=-1 they alternate between aa and 00 forever. Neither settles, so both diverge for nonzero aa.

How to check convergence

The geometric series convergence test is a single comparison of ∣r∣|r| with 1.

Condition Result Sum
a=0a = 0 Converges 00
a≠0a \ne 0 and ∣r∣<1\lvert r\rvert < 1 Converges a/(1−r)a/(1-r)
a≠0a \ne 0 and ∣r∣≥1\lvert r\rvert \ge 1 Diverges No finite sum

In Infinite mode, the Convergence card shows Converges or Diverges. For a divergent series the main output shows No finite sum, and the advisory The partial sums do not settle explains that the terms do not approach zero. It also suggests switching to Finite if you want the sum of a fixed number of terms. Divergence is a valid answer, not an input error.

When −1<r<0-1 < r < 0 and a≠0a \ne 0, the partial sums alternate above and below the limit. With a=3a=3 and r=−0.5r=-0.5, the partial sums are 33, 1.51.5, 2.252.25, 1.8751.875, and so on, closing in on 22 from both sides.

Worked examples

A finite sum

Add the first five terms of 1,2,4,8,16,…1, 2, 4, 8, 16, \dots. Here a=1a=1, r=2r=2, n=5n=5:

S5=1 (1−25)1−2=−31−1=31.S_5 = \frac{1\,(1-2^5)}{1-2} = \frac{-31}{-1} = 31.

Adding the terms directly confirms it: 1+2+4+8+16=311+2+4+8+16 = 31.

The default example

With a=3a=3, r=0.5r=0.5, n=4n=4, the terms are 3, 1.5, 0.75, 0.3753,\ 1.5,\ 0.75,\ 0.375. The formula gives:

S4=3 (1−0.54)1−0.5=3×0.93750.5=5.625.S_4 = \frac{3\,(1-0.5^4)}{1-0.5} = \frac{3 \times 0.9375}{0.5} = 5.625.

An infinite sum

For 10+2+0.4+0.08+⋯10 + 2 + 0.4 + 0.08 + \cdots, the first term is a=10a=10 and the ratio is r=2/10=0.2r = 2/10 = 0.2. Since ∣0.2∣<1|0.2| < 1, the series converges:

S∞=101−0.2=12.5.S_\infty = \frac{10}{1-0.2} = 12.5.

A divergent series

For 2+3+4.5+⋯2 + 3 + 4.5 + \cdots, the ratio is r=1.5r = 1.5, and ∣r∣≥1|r| \ge 1. The calculator reports Diverges and No finite sum. To add a limited number of these terms, switch to Finite.

Translating your series into calculator inputs

Finding the ratio. If you know two consecutive terms and the earlier one is nonzero, divide the later by the earlier. For terms 1212 and 1818, r=18/12=1.5r = 18/12 = 1.5. The calculator does not do this step for you, so work it out and type the decimal in.

Finding the first term. Use the value of the first addend you want to include. If a sum starts at index k=2k=2 rather than k=1k=1, the first term is the value of the summand at k=2k=2.

Counting terms from index bounds. A finite sum with inclusive integer bounds LL and UU, where U≥LU \ge L, has U−L+1U - L + 1 terms. For example, ∑k=263(12)k\sum_{k=2}^{6} 3\left(\tfrac12\right)^k has 6−2+1=56-2+1 = 5 terms. The first term is 3(12)2=0.753\left(\tfrac12\right)^2 = 0.75 and the ratio is 0.50.5, so enter a=0.75a=0.75, r=0.5r=0.5, n=5n=5:

S5=0.75 (1−0.55)1−0.5=1.453125.S_5 = \frac{0.75\,(1-0.5^5)}{1-0.5} = 1.453125.

Starting an indexed series at k=0k=0 or k=1k=1 does not change the method. Evaluate the summand at the starting index to get aa, and count the terms with U−L+1U-L+1.

Reading the results

Main result. The output is labeled Finite sum or Infinite sum. Only Infinite mode shows the Convergence card.

Substituted formula. This card shows your values plugged into the sum formula. For the defaults it reads 3 × (1 − 0.5^4) ÷ (1 − 0.5). In Finite mode with r=1r=1 it shows the first term multiplied by the number of terms. For an infinite series with a=0a=0 it displays Every term is zero. For a divergent series it shows the convergence condition that failed. The card is a numeric substitution or a short explanation. The derivations above are what show why the formula works.

Precision and display. Results show up to 15 significant digits. A leading ≈ means the displayed number was rounded relative to the number the engine computed. Rounded nonzero magnitudes below 10−410^{-4} or at least 10910^{9} appear in scientific notation. The engine uses floating-point arithmetic, so a displayed value without ≈ can still carry floating-point rounding, and extremely small computed values can round to zero.

Behavior near r=±1r=\pm1. The calculator checks the entered decimal bounds and whole-number condition before converting values to floating point. Near r=±1r=\pm1 it keeps the decimal distance of ∣r∣|r| from 1 for the convergence decision and for stable evaluation. As a precision check, Infinite with a=3a=3 and r=0.9999999999999999r=0.9999999999999999 converges and displays 3e16, matching 3/(1−r)=3/10−163/(1-r) = 3/10^{-16}. The finite engine uses a numerically stable evaluation of the same sum, including grouping pairs of terms when the ratio is negative.

The partial sum chart

The chart plots the partial sum against the number of terms, starting at S0=0S_0 = 0.

  • Finite plots through SnS_n.
  • Infinite previews through S12S_{12}, including for divergent series.
  • For a convergent infinite series, a dashed horizontal line marks S∞S_\infty.

When ∣r∣|r| is close to 1, the 12-term preview can still be far from the limit. For ∣r∣<1|r|<1, the gap after nn terms is ∣a rn1−r∣\left|\dfrac{a\,r^n}{1-r}\right|. For an all-zero series the gap is zero at every supported ratio. With a nonzero first term and r=0.9r=0.9, for example, S12S_{12} reaches only about 72% of the limit, because 0.912≈0.280.9^{12} \approx 0.28.

The Inspect a partial sum slider selects points from S1S_1 through the last plotted sum. It starts at the last point when the chart is redrawn and can be moved with the keyboard arrow keys. Its readout shows the selected term count and the running total at that point.

Other tools

  • Copy copies a summary of your inputs, the result, the convergence status (when applicable), and the substitution or explanation.
  • Print opens your browser's print dialog, where you can also save the page as a PDF.
  • Reset restores the initial four-term calculation and chart.
  • Inline input tips and a Help panel are available in the calculator.

Verifying a result by hand

  1. Check the ratio by dividing a term by its preceding term when that preceding term is nonzero. For pairs that start with zero, check that multiplying by the ratio gives the next term.
  2. For a finite sum, compute rnr^n and substitute into a(1−rn)/(1−r)a(1-r^n)/(1-r), or use nana if r=1r=1.
  3. For an infinite sum, handle a=0a=0 first. Otherwise check ∣r∣<1|r|<1 before computing a/(1−r)a/(1-r).
  4. Check against the chart. A finite sum should match the last plotted point. In Infinite mode, compare a plotted point with the partial sum for the same term count. The dashed line, when shown, marks the limit separately.

Frequently asked questions

What is the sum of a geometric series? For a finite series with first term aa, ratio r≠1r \ne 1, and nn terms, the sum is a(1−rn)/(1−r)a(1-r^n)/(1-r). If r=1r=1, it is nana.

When does an infinite geometric series have a sum? If a=0a=0, the sum is 00 for every supported ratio. If a≠0a\ne0, the sum exists exactly when ∣r∣<1|r|<1 and equals a/(1−r)a/(1-r).

Can the ratio be negative? Yes. With a nonzero first term, a negative ratio makes the terms alternate in sign. If −1<r<0-1<r<0, the infinite series converges and its partial sums alternate around the limit. If the first term is zero, every partial sum is zero.

What if my ratio is a fraction such as 1/3? Enter it in decimal form. Because 1/31/3 has no exact finite decimal, type a long decimal such as 0.3333333333 and expect a very small difference from the exact fraction.

Does the number of terms matter for an infinite series? No. The term count is hidden and ignored in Infinite mode, since the infinite sum is the limit of the partial sums.

Can the calculator find the ratio or the number of terms for me? No. It calculates forward from the first term, ratio, and term count. Find the ratio from consecutive terms and the term count from the index bounds, as shown above, then enter them.

Why does one result start with ≈? The ≈ means the displayed number was rounded to 15 significant digits relative to the computed value.

Is a geometric progression sum the same as a geometric series sum? Yes. A geometric progression is the list of terms, and a geometric series is their sum. The same formulas apply.

Reference

OpenStax, Calculus Volume 2, Infinite Series

Calculation Methodology Documented

Read the formula definitions, supported input ranges, and limitations before using this estimate.

Review Methodology
Debjeet Bhowmick
Author Debjeet Bhowmick AWS Certified Solutions Architect • Cloud & DevOps Consultant

AWS Certified Solutions Architect Professional and Senior Cloud & DevOps Consultant with over 14 years of hands-on expertise architecting resilient cloud infrastructure across AWS, GCP, and Azure. Specializes in infrastructure as code, continuous delivery automation, and telemetry across Terraform, Ansible, Docker, Kubernetes, ELK, Python, and SQL. Creator of OrangeCalc, delivering client-side high-precision computational tools.