Geometric Series Sum Calculator

Enter the first term a₁, the common ratio q, and the term count n. The calculator computes the finite sum Sₙ = a₁(1 − qⁿ)/(1 − q); when q = 1 the result is a₁ · n. For 2, 3 and 4 the sum is 80. For 5, 1 and 6 the sum is 30. This is not the infinite sum a₁/(1 − q), not an arithmetic series sum, and not the n-th term alone.

Input

Result

Enter a₁, q and n to compute the sum Sₙ.

A single term aₙ lives on the geometric sequence term page. For a constant difference r open the arithmetic series sum.

How it works

How a₁, q and n become Sₙ
a₁2
q3
n4
qⁿ81
Sₙ80

The calculator uses the numbers you enter: the first term a₁, the common ratio q, and the term count n. The mathematical model is the finite geometric series sum: for q ≠ 1, Sₙ = a₁(1 − qⁿ)/(1 − q); when |q − 1| < 10⁻¹² it uses Sₙ = a₁ · n. For a₁ = 2, q = 3 and n = 4 the sum is 80, because 2(1 − 81)/(1 − 3) = 80. With a₁ = 5, q = 1 and n = 6 the sum is 30. With a₁ = 4, q = −2 and n = 5 the sum is 44.

The term count n must be a whole number of at least 1 (parseTermCount). Entering 4.5 is rejected — unlike the nth-term page, there is no floor here. Field IDs stay a, b and c. The result is shown without extra rounding, not forced to six decimal places.

The ratio q may be negative: term signs alternate, and the closed sum formula still applies. When |q| > 1 the partial sum grows quickly with n.

The sibling geometric-term page returns one aₙ = a₁ · qⁿ⁻¹. The arithmetic series sum adds a constant difference r instead of multiplying by q. This page computes only the finite sum Sₙ of the first n terms.

Check 2, 3 and 4 → 80 first. Then 5, 1 and 6 → 30 and 1, 2 and 8 → 255. The panel also shows qⁿ, the last term aₙ, the factors (1 − qⁿ) and (1 − q), and term bars.

Formula

For a geometric sequence with first term a₁ and common ratio q:

Sₙ = a₁(1 − qn)/(1 − q) when q ≠ 1; when |q − 1| < 10⁻¹², Sₙ = a₁ · n.

Mathematical model: finite geometric series sum (finite geometric progression sum, common ratio q). Identity: a₁(qⁿ − 1)/(q − 1). This is not a single term aₙ and not an arithmetic series sum.

Theory, ratio q, and the Sₙ formula

Definition

The finite sum of a geometric sequence is Sₙ = a₁ + a₂ + … + aₙ, where each next term multiplies the previous one by a constant common ratio q. With a₁ given and aₖ₊₁ = q · aₖ, the terms are aₖ = a₁ · qᵏ⁻¹. Their sum has the closed form Sₙ = a₁(1 − qⁿ)/(1 − q) for q ≠ 1. The algebraically identical form Sₙ = a₁(qⁿ − 1)/(q − 1) differs only by a sign in the numerator and denominator.

This calculator proceeds exactly as follows: when |q − 1| < 10⁻¹² it sets q = 1 and computes Sₙ = a₁ · n; otherwise Sₙ = a₁(1 − q^(n))/(1 − q). The term count n comes from parseTermCount: a finite whole number ≥ 1. That is not n = max(1, floor(n)) from the nth-term page.

An infinite geometric series is a separate topic: for |q| < 1 the limit is S = a₁/(1 − q). Here n is finite and always an integer. The calculator does not solve for q from a sum, solve for n, or return a single term aₙ.

Historical and conceptual context

Sums of geometric progressions appear in ancient computational texts — doubling, halving, proportional “percent” ideas. Zeno’s paradox (Achilles and the tortoise) connects to an infinite geometric series; secondary school usually starts with the finite sum Sₙ before the limit. Euclid’s Elements develops proportion theory; modern algebra writes the same idea as a closed formula with the power qⁿ.

Applications include the present value of an annuity with a fixed discount factor, compound-interest payment streams, population growth with a constant factor, signal filtering, and power series. In discrete finance the factor (1+i) plays the role of q. The name “geometric” ties to the geometric mean of positive terms, but this page’s result is a sum, not a mean.

Distinguish three neighbors: the nth term aₙ (one term), the arithmetic series sum (constant difference r), and the geometric series sum (constant ratio q). This page belongs to the third world and does not replace either of the other models.

In the school curriculum, the sum Sₙ appears after the definition of a geometric sequence and before the infinite-series limit. Students usually list a few terms first, then learn the closed formula, and only later meet the |q| < 1 condition for convergence. This calculator covers the middle stage: finite n and a ready Sₙ.

Formal properties

Domain: finite real a₁ and q; integer n ≥ 1. The result Sₙ must be a finite floating-point number. With q = 1 every term equals a₁ and Sₙ = n·a₁. With q = −1 terms alternate ±a₁ and the sum depends on the parity of n. When |q| > 1 the magnitude of the sum grows quickly; when 0 < |q| < 1 later terms shrink and the sum approaches a₁/(1 − q), but the calculator still evaluates finite n, not the limit.

Identity: a₁(1 − qⁿ)/(1 − q) = a₁(qⁿ − 1)/(q − 1) for q ≠ 1. Scaling: the sum of (c·aₖ) is c·Sₙ. With a₁ = 0 the sum is zero for finite inputs.

The last term aₙ = a₁·qⁿ⁻¹ appears in the panel as a check; it does not replace Sₙ. Bars illustrate |aₖ| for the first min(n, 8) terms.

Full derivation

Step 1. Write S = a₁ + a₁q + a₁q² + … + a₁qⁿ⁻¹.

Step 2. Multiply by q: qS = a₁q + a₁q² + … + a₁qⁿ.

Step 3. Subtract: S − qS = a₁ − a₁qⁿ, so S(1 − q) = a₁(1 − qⁿ).

Step 4. For q ≠ 1: S = a₁(1 − qⁿ)/(1 − q). For q = 1 return to S = n·a₁.

Step 5. Example 2, 3, 4: qⁿ = 81, S = 2(1 − 81)/(1 − 3) = 2(−80)/(−2) = 80. Example 5, 1, 6: S = 5·6 = 30. Example 4, −2, 5: qⁿ = −32, S = 4(1 − (−32))/(1 − (−2)) = 4·33/3 = 44.

Special cases

2, 3, 4 → 80. 5, 1, 6 → 30. 4, −2, 5 → 44. 1, 2, 8 → 255. 3, 3, 3 → 39. 16, 0.5, 4 → 30. 7, 2, 1 → 7 (single term). Entering n = 4.5 fails validation — the term count must be a whole number.

Very large |q| and n may yield Infinity in floating-point arithmetic — the calculator reports an out-of-range error.

Numerical notes

Computation: q^(n) and division by (1 − q) in the browser’s floating-point arithmetic, with a separate branch when |q − 1| < 10⁻¹². For ordinary school examples the displayed value matches the decimal intent; extreme powers meet floating-point rounding. This is an educational tool, not a CAS.

The calculator accepts a comma or a period as the decimal separator. Formatting follows the page language, without a forced six-decimal trim.

Bars show the first min(n, 8) terms; when n > 8 the full Sₙ still appears in the panel.

Related notions and sources

Related: geometric sequence term, arithmetic series sum, compound interest, geometric mean, infinite series for |q| < 1. Sources: Wikipedia — Geometric series; MathWorld — Geometric Series; school algebra Sₙ = a₁(1−qⁿ)/(1−q). Educational tool.

How to use

  1. Enter the first term a₁, for example 2.
  2. Provide the common ratio q, for example 3.
  3. Set the term count n as a whole number ≥ 1, for example 4, and click Calculate. The sum is 80.
  4. Check the panel: qⁿ, aₙ, (1 − qⁿ), (1 − q), and the term bars.
  5. When q = 1 the calculator uses Sₙ = a₁ · n and does not divide by zero.
  6. For one term aₙ open the geometric sequence term page; for a constant difference r open the arithmetic series sum.

Symbol glossary

With a₁ = 2, q = 3 and n = 4, Sₙ = 80 because 2(1 − 81)/(1 − 3) = 80.

a₁
First term. Field suma-ciagu-geom-a.
q
Common ratio. Field b. May be negative.
n
Term count, whole number ≥ 1. Field c.
Sₙ
Sum a₁+…+aₙ. Primary panel result.
qⁿ
Power in the formula. With n = 4 and q = 3 it is 81.

Examples

Example 1

  • a₁ = 2
  • q = 3
  • n = 4

80

What sum at a₁=2, q=3, n=4? 80.

Example 2

  • a₁ = 5
  • q = 1
  • n = 6

30

What sum at q=1, a₁=5, n=6? 30.

Example 3

  • a₁ = 4
  • q = −2
  • n = 5

44

What sum at q=−2, a₁=4, n=5? 44.

Example 4

  • a₁ = 1
  • q = 2
  • n = 8

255

What is 1+2+4+…+128? 255.

Example 5

  • a₁ = 3
  • q = 3
  • n = 3

39

What is 3+9+27? 39.

Example 6

  • a₁ = 16
  • q = 0.5
  • n = 4

30

What is 16+8+4+2? 30.

Example 7

  • a₁ = 7
  • q = 2
  • n = 1

7

What at n=1 and a₁=7? 7.

Related calculators

FAQ

What does this calculator compute?

The finite sum Sₙ of a geometric sequence. For a₁ = 2, q = 3 and n = 4 the sum is 80. It does not compute a single term aₙ or an arithmetic series sum.

What is the formula?

For q ≠ 1: Sₙ = a₁(1 − qⁿ)/(1 − q), equivalently a₁(qⁿ − 1)/(q − 1). When |q − 1| < 10⁻¹² the calculator uses Sₙ = a₁ · n.

Why is there no division when q = 1?

Because the denominator 1 − q would be zero. The |q − 1| < 10⁻¹² branch sets q = 1 and computes n · a₁. Example: 5, 1, 6 → 30.

Can n be 4.5?

No. The term count must be a whole number of at least 1. Unlike the nth-term page, there is no floor here.

Does a negative ratio q work?

Yes. Term signs alternate. Example: a₁ = 4, q = −2, n = 5 gives 44.

How is this different from the geometric nth term?

That page returns one aₙ = a₁ · qⁿ⁻¹. Here the result is the sum of the first n terms Sₙ.

How is this different from an arithmetic series sum?

Here each step multiplies by q. In an arithmetic series each step adds a constant difference r.

Does the result always use six decimal places?

No. The calculator shows the raw value after locale formatting — no artificial trim.

Do the currency and unit settings in the page header affect the result?

No. The result depends only on a₁, q and n. The currency and unit settings in the page header do not affect this result.

What else does the panel show besides Sₙ?

a₁, q, n, qⁿ, the last term aₙ, the factors (1 − qⁿ) and (1 − q) when q ≠ 1, and term bars.

Does it compute an infinite series?

No. n is finite. The limit a₁/(1 − q) for |q| < 1 is a separate topic.

What does this model not compute?

It does not solve for q or n from a sum, return a single aₙ, or replace an arithmetic series sum.

How do I calculate the sum of a geometric series?

For q ≠ 1 use Sₙ = a₁(1 − qⁿ)/(1 − q). With a₁ = 2, q = 3 and n = 4: 2(1 − 81)/(1 − 3) = 80. When q = 1 the sum is a₁ · n.

What is the sum for a₁ = 1, q = 2 and n = 8?

1+2+4+…+128 = 255, because Sₙ = 1(1 − 2⁸)/(1 − 2) = 255. That is the fourth example on this page.

Is this an infinite geometric series sum?

No. n is finite. The limit a₁/(1 − q) when |q| < 1 is not computed here.

Is this an arithmetic series sum?

No. Here each step multiplies by q. A sum with a fixed step d lives on a separate page.

What if q = 1?

The formula with denominator 1 − q fails. The calculator then uses Sₙ = a₁ · n. Example: 5, 1, 6 → 30.

With a₁ = 2, q = 3 and n = 4, Sₙ = 80. For one term open the geometric sequence term.

Knowledge sources

The finite geometric series sum definition and the Sₙ formula below come from recognized sources.

Page updated November 3, 2026.