Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Geometric Sequence Calculator






What is a Geometric Sequence?

A geometric sequence (also called a geometric progression, GP) is a sequence where each term is obtained by multiplying the previous term by a constant. The constant is called the common ratio, denoted rr.

a1,    a1r,    a1r2,    a1r3,    a_1, \;\; a_1 r, \;\; a_1 r^2, \;\; a_1 r^3, \;\; \ldots


Examples.

a1=2a_1 = 2, r=3r = 3: gives 2,6,18,54,162,486,2, 6, 18, 54, 162, 486, \ldots — exponential growth.
a1=100a_1 = 100, r=1/2r = 1/2: gives 100,50,25,12.5,6.25,3.125,100, 50, 25, 12.5, 6.25, 3.125, \ldots — exponential decay.
a1=1a_1 = 1, r=2r = 2: gives 1,2,4,8,16,32,1, 2, 4, 8, 16, 32, \ldots — powers of 2.
a1=1a_1 = 1, r=1r = -1: gives 1,1,1,1,1, -1, 1, -1, \ldots — alternating signs.
a1=5a_1 = 5, r=0r = 0: gives 5,0,0,0,5, 0, 0, 0, \ldots — degenerate after the first term.

Three key formulas.

• The nn-th term: an=a1rn1a_n = a_1 r^{n - 1}.
• Sum of first nn terms: Sn=a1rn1r1S_n = a_1 \dfrac{r^n - 1}{r - 1} for r1r \neq 1; Sn=na1S_n = n a_1 for r=1r = 1.
• Infinite sum: S=a11rS_\infty = \dfrac{a_1}{1 - r} when r<1|r| < 1; diverges otherwise.

Parametric nature. Like arithmetic sequences, geometric sequences depend on two parameters: a1a_1 and rr. The explorer lets you set both and explore the resulting sequence and sums.

For deeper coverage see geometric sequence, geometric series, and exponential function.

The n-th Term Formula

Derivation. Starting from a1a_1, multiply by rr once to get a1ra_1 r, twice to get a1r2a_1 r^2. After n1n - 1 multiplications, the nn-th term is

an=a1rn1a_n = a_1 r^{n - 1}


Inverting the formula. Given ana_n, a1a_1, and rr, solve for nn using logarithms:

n=ln(an/a1)lnr+1n = \frac{\ln(a_n / a_1)}{\ln r} + 1


This works only when r>0r > 0, r1r \neq 1, a10a_1 \neq 0, and an/a1>0a_n / a_1 > 0. Negative rr requires complex logarithms; r=1r = 1 makes every term equal to a1a_1 and nn is undetermined.

Examples.

• Sequence 3,6,12,24,3, 6, 12, 24, \ldots: a1=3a_1 = 3, r=2r = 2. The 10th term: a10=329=3512=1536a_{10} = 3 \cdot 2^9 = 3 \cdot 512 = 1536.
• Sequence 1000,500,250,1000, 500, 250, \ldots: a1=1000a_1 = 1000, r=1/2r = 1/2. The 10th term: a10=1000(1/2)9=1000/5121.95a_{10} = 1000 \cdot (1/2)^9 = 1000/512 \approx 1.95.
• Membership test: is 162 in the sequence 2,6,18,54,2, 6, 18, 54, \ldots (with r=3r = 3)? Solve 162=23n1    81=3n1    n1=4    n=5162 = 2 \cdot 3^{n-1} \implies 81 = 3^{n-1} \implies n - 1 = 4 \implies n = 5. Yes — 162=a5162 = a_5.

Two-parameter recovery. Given two terms ama_m and ana_n with m<nm < n: rnm=an/amr^{n - m} = a_n / a_m, so r=(an/am)1/(nm)r = (a_n / a_m)^{1/(n - m)}. Then a1=am/rm1a_1 = a_m / r^{m - 1}.

Sign of $r$. Negative rr produces alternating-sign sequences: a1=1,r=2a_1 = 1, r = -2 gives 1,2,4,8,16,32,1, -2, 4, -8, 16, -32, \ldots. The closed form still applies; signs alternate based on parity of n1n - 1.

The Finite Sum Formula

Finite geometric sum. The sum of the first nn terms of a geometric sequence is

Sn=a1+a1r+a1r2++a1rn1=a1rn1r1(r1)S_n = a_1 + a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1} = a_1 \frac{r^n - 1}{r - 1} \quad (r \neq 1)


For r=1r = 1, every term equals a1a_1, and Sn=na1S_n = n a_1.

Derivation. Write the sum:

Sn=a1+a1r+a1r2++a1rn1S_n = a_1 + a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1}


Multiply both sides by rr:

rSn=a1r+a1r2++a1rn1+a1rnr S_n = a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1} + a_1 r^n


Subtract:

SnrSn=a1a1rn    Sn(1r)=a1(1rn)    Sn=a11rn1r=a1rn1r1S_n - r S_n = a_1 - a_1 r^n \implies S_n (1 - r) = a_1 (1 - r^n) \implies S_n = a_1 \frac{1 - r^n}{1 - r} = a_1 \frac{r^n - 1}{r - 1}


Examples.

a1=2a_1 = 2, r=3r = 3, n=5n = 5: S5=2(351)/(31)=2242/2=242S_5 = 2 \cdot (3^5 - 1)/(3 - 1) = 2 \cdot 242/2 = 242. Verify: 2+6+18+54+162=2422 + 6 + 18 + 54 + 162 = 242. ✓
a1=1a_1 = 1, r=1/2r = 1/2, n=10n = 10: S10=(1/2101)/(1/21)=(1/10241)/(1/2)=(1023/1024)2=2046/10242.0S_{10} = (1/2^{10} - 1)/(1/2 - 1) = (1/1024 - 1)/(-1/2) = (1023/1024) \cdot 2 = 2046/1024 \approx 2.0.

Solving for $n$. Given SnS_n, a1a_1, and rr, the formula is invertible:

rn=Sn(r1)a1+1    n=ln(Sn(r1)a1+1)lnrr^n = \frac{S_n (r - 1)}{a_1} + 1 \implies n = \frac{\ln\left(\dfrac{S_n (r - 1)}{a_1} + 1\right)}{\ln r}


This requires r>0,r1r > 0, r \neq 1, and the argument of the logarithm to be positive.

Solving for $r$. Given SnS_n, a1a_1, and nn, the equation Sn=a1(rn1)/(r1)S_n = a_1(r^n - 1)/(r - 1) is transcendental in rr — no closed-form solution in general. The solver flags this as unsupported.

The Infinite Sum and Convergence

Infinite geometric series. What happens as nn \to \infty?

S=a1+a1r+a1r2+=limna1rn1r1S_\infty = a_1 + a_1 r + a_1 r^2 + \cdots = \lim_{n \to \infty} a_1 \frac{r^n - 1}{r - 1}


Convergence condition. The series converges if and only if r<1|r| < 1. When it converges:

S=a11rS_\infty = \frac{a_1}{1 - r}


Why $|r| < 1$. As nn \to \infty, rn0r^n \to 0 when r<1|r| < 1, giving the formula. When r1|r| \geq 1, rnr^n does not converge (it grows, oscillates, or stays bounded but doesn't approach zero), and the series diverges.

Classic examples.

Zeno's paradox. 1+1/2+1/4+1/8+=111/2=21 + 1/2 + 1/4 + 1/8 + \cdots = \dfrac{1}{1 - 1/2} = 2. The pieces sum to a finite total despite there being infinitely many.
Repeating decimals. 0.3=0.333=0.310.1=130.\overline{3} = 0.333\ldots = \dfrac{0.3}{1 - 0.1} = \dfrac{1}{3}. Every repeating decimal is a geometric series.
Convergent but slowly. a1=1,r=0.99a_1 = 1, r = 0.99: S=100S_\infty = 100. The sequence approaches zero so slowly that it takes thousands of terms to get close.

Diverging cases.

r=1r = 1: Sn=na1S_n = n a_1 \to \infty (unless a1=0a_1 = 0).
r=1r = -1: SnS_n oscillates between 00 and a1a_1, never converging.
r>1|r| > 1: Sn|S_n| grows without bound.

The geometric series test. The convergence behavior of rn\sum r^n is used as a benchmark for testing other series: comparison test, ratio test, root test all reference geometric series.

Power series. The geometric series is the simplest power series. rn=1/(1r)\sum r^n = 1/(1 - r) for r<1|r| < 1 extends to functions: 1/(1x)=1+x+x2+x3+1/(1 - x) = 1 + x + x^2 + x^3 + \cdots for x<1|x| < 1. The cornerstone of formal power series and generating functions.

Using the Solver — Three Modes

The geometric-sequence explorer includes a solver mode with three sub-modes:

Find term ($a_n$) — uses an=a1rn1a_n = a_1 r^{n - 1}. Fill any three of {a1,r,n,an}\{a_1, r, n, a_n\} and the solver computes the fourth.
Sum $S_n$ — uses Sn=a1(rn1)/(r1)S_n = a_1 (r^n - 1)/(r - 1) for r1r \neq 1. Fill any three of {a1,r,n,Sn}\{a_1, r, n, S_n\} and the solver computes the fourth (except solving for rr, which is transcendental and not supported).
Infinite sum $S_\infty$ — uses S=a1/(1r)S_\infty = a_1/(1 - r) for r<1|r| < 1. Fill any two of {a1,r,S}\{a_1, r, S_\infty\} and the solver computes the third, flagging cases where r1|r| \geq 1 as divergent.

Solving for $a_n$. Direct: an=a1rn1a_n = a_1 r^{n - 1}.

Solving for $a_1$. Rearrange: a1=an/rn1a_1 = a_n/r^{n - 1} (term sub-mode), a1=Sn(r1)/(rn1)a_1 = S_n(r - 1)/(r^n - 1) (sum sub-mode), or a1=S(1r)a_1 = S_\infty(1 - r) (infinite sum).

Solving for $r$. (n1)(n - 1)-th root: r=(an/a1)1/(n1)r = (a_n/a_1)^{1/(n - 1)} (term sub-mode). For infinite sum: r=1a1/Sr = 1 - a_1/S_\infty (with a convergence check). For finite sum: transcendental — not supported.

Solving for $n$. Logarithm: n=ln(an/a1)/lnr+1n = \ln(a_n/a_1)/\ln r + 1 (term sub-mode); n=ln(Sn(r1)/a1+1)/lnrn = \ln(S_n(r - 1)/a_1 + 1)/\ln r (sum sub-mode). Both require r>0r > 0, r1r \neq 1.

Edge cases the solver handles.

r=1r = 1: term-sub-mode has every term equal; sum sub-mode reduces to Sn=na1S_n = n a_1.
r0r \leq 0 in solve-for-nn: real logarithm doesn't exist, the solver flags this.
r1|r| \geq 1 in infinite sum: divergence flagged.
a1=0a_1 = 0: most equations become degenerate; flagged.

Practical use. Solve word problems: "An investment of \1000growsby51000 grows by 5% per year. After how many years does it reach \2000?" → solve for nn given a1=1000a_1 = 1000, r=1.05r = 1.05, an=2000a_n = 2000.

Common Applications

Geometric sequences model exponential growth and decay across science, finance, and computing.

Compound interest. \1000at51000 at 5% annual interest, compounded yearly: balance follows the geometric sequence 1000, 1050, 1102.50, \ldotswith with r = 1.05$.
Population growth. Bacterial population doubles every hour: r=2r = 2. After nn hours, population is a12n1a_1 \cdot 2^{n - 1} relative to the starting count.
Radioactive decay. Mass remaining after each half-life follows r=1/2r = 1/2. After nn half-lives, a1/2na_1 / 2^n mass remains.
Mortgage payments. Outstanding balance after each payment follows a geometric-related sequence (with adjustments for the principal payment). The total payment formula is the geometric sum.
Algorithm analysis. Binary search splits the search space by half each step — a geometric sequence with r=1/2r = 1/2. Total steps: log2n\log_2 n.
Fractals and self-similarity. The Koch snowflake's perimeter at each iteration multiplies by 4/34/3: a geometric sequence with r=4/3r = 4/3 that grows without bound.
Repeating decimals as fractions. 0.abc=abc/9990.\overline{abc} = abc/999, derived from the geometric-series formula.
Pyramid schemes. Each level multiplies participants by some ratio rr. Total participants grow exponentially until the scheme exceeds the population.
Music tuning. Equal-temperament tuning divides the octave into 12 equal ratios, each 2121.0595\sqrt[12]{2} \approx 1.0595. Frequencies follow a geometric sequence.
Light absorption. Light passing through a medium of uniform absorption loses a fixed fraction per unit length — Beer's law, an exponential decay (geometric in the discrete approximation).

Common Mistakes

Off-by-one in the $n$-th term formula. an=a1rn1a_n = a_1 r^{n - 1}, not a1rna_1 r^n. The 1st term is a1a_1 (zero multiplications), the 2nd is a1ra_1 r (one multiplication).

Wrong sum formula. Sn=a1(rn1)/(r1)S_n = a_1 (r^n - 1)/(r - 1) or equivalently a1(1rn)/(1r)a_1 (1 - r^n)/(1 - r). Both are correct; common errors include using nn as an exponent on r1r - 1 or forgetting to divide by r1r - 1.

Treating $r = 1$ with the general formula. When r=1r = 1, the formula has 0/00/0 — undefined. The correct value is Sn=na1S_n = n a_1. Always check r=1r = 1 as a special case.

Forgetting the convergence condition for $S_\infty$. The infinite sum exists only when r<1|r| < 1. Applying a1/(1r)a_1/(1 - r) when r1|r| \geq 1 gives a meaningless number. The classic error: writing 1+2+4+8+=1/(12)=11 + 2 + 4 + 8 + \cdots = 1/(1 - 2) = -1. The series diverges; the formula doesn't apply.

Confusing arithmetic and geometric. Arithmetic adds; geometric multiplies. "Increases by 10% per year" is geometric (r=1.1r = 1.1); "increases by \10peryear"isarithmetic(10 per year" is arithmetic (d = 10$).

Negative $r$ and parity. With r<0r < 0, terms alternate in sign. a1=1,r=2a_1 = 1, r = -2 gives 1,2,4,8,161, -2, 4, -8, 16. The sum formula still works but the result oscillates as nn grows.

Logarithm restrictions in solve-for-$n$. n=ln(an/a1)/lnr+1n = \ln(a_n/a_1)/\ln r + 1 requires positive arguments. Negative or zero rr, or ana_n and a1a_1 with opposite signs, makes the formula fail. The solver flags these.

Floating-point errors with non-integer ratios. r=1/3r = 1/3 is exact in mathematics but approximate in floating-point. Computing a100a_{100} with r=1/3r = 1/3 accumulates rounding error. Use symbolic computation or rational arithmetic for exact results.

Conflating geometric series with arithmetic series for ratio. "Common ratio" is for geometric; "common difference" is for arithmetic. The terms are not interchangeable.

Related Sequences and Concepts

Arithmetic Sequence — adds a constant: an=a1+(n1)da_n = a_1 + (n - 1) d. Geometric's linear counterpart.

Geometric Series — the sum of a geometric sequence. Both finite and infinite versions are central.

Exponential Function — the continuous analog. f(x)=a1rxf(x) = a_1 r^x. Geometric sequences are exponentials sampled at integer points.

Power Series — the generalization to varying coefficients: cnxn\sum c_n x^n. The geometric series rn=1/(1r)\sum r^n = 1/(1 - r) is the simplest non-trivial power series.

Convergence — the criterion for infinite-series sums. r<1|r| < 1 for geometric is the prototype.

Ratio Test — convergence test for series, comparing consecutive terms' ratio to a geometric series benchmark.

Compound Interest — the canonical finance application. Future value follows a geometric sequence with r=1+ir = 1 + i where ii is the per-period rate.

Exponential Growth and Decay — the natural-science applications. Bacterial growth, radioactive decay, drug elimination — all modeled as geometric sequences (discrete) or exponentials (continuous).

Logarithm — the inverse of exponential. Solving for nn in a geometric sequence uses logarithms.

Common Ratio — the parameter rr. Determines whether the sequence grows, decays, oscillates, or stays constant.

Geometric Mean — the average. For a geometric sequence, the geometric mean of any two terms equals the term between them: an=an1an+1a_{n} = \sqrt{a_{n-1} \cdot a_{n+1}} for any n2n \geq 2.

Repeating Decimal — every repeating decimal is a geometric series, converting to a rational number via the infinite-sum formula.

Geometric Progression — alternate name for geometric sequence. Used interchangeably.

Linear Recurrence (homogeneous) — the general class. Geometric sequences are first-order linear recurrences an=ran1a_n = r \cdot a_{n-1}.

Half-Life — the time for a quantity to halve. A geometric sequence with r=1/2r = 1/2 measured at half-life intervals.

Doubling Time — the time for a quantity to double. A geometric sequence with r=2r = 2 at doubling-time intervals.

Beer's Law — light absorption following exponential (geometric in discrete steps) decay through a medium.

Self-Similarity and Fractals — geometric scaling underlies fractal structures; iteration counts follow geometric sequences.