Skip to content

Geometric Sequence Calculator

nth term, sum of n terms, infinite sum, common ratio from two terms and the position of a value, exactly.

Your details

First index

Most English textbooks start at a₁, so aₙ = a₁·rⁿ⁻¹. French lycée courses often start at u₀, so uₙ = u₀·qⁿ.

a₁ (or a₀ when the sequence starts at 0).

Each term is the previous one multiplied by r. Use 0.5 for halving, −2 for alternating signs.

The term to compute; the sum adds every term from the first one up to this one.

Results update as you type

nth term

a₁₀ = 1,536

Explicit formula
aₙ = a₁ × rⁿ⁻¹ = 3 × 2ⁿ⁻¹
Sum of the terms up to n
3,069
Number of terms added
10
Sum to infinity
diverges (|r| ≥ 1)
Behaviour
Increasing

Step-by-step solution
  1. Explicit formula: aₙ = a₁ × rⁿ⁻¹ = 3 × 2ⁿ⁻¹
  2. a₁₀ = 3 × 2⁹ = 1,536
  3. Sum of N terms: S = first × (1 − rᴺ) ÷ (1 − r) (or N × first when r = 1)
  4. S = 3,069

First terms and running sums

A geometric sequence (or geometric progression) is a list of numbers in which each term is the previous one multiplied by a fixed number, the common ratio rr: 3, 6, 12, 24… has r=2r = 2; 80, 40, 20, 10… has r=12r = \tfrac12; 1, −3, 9, −27… has r=−3r = -3. Money growing at a fixed interest rate, a population that increases by the same percentage every year, a ball that bounces back to 60% of its previous height, or a car that loses 15% of its value annually all follow geometric sequences.

This geometric sequence calculator answers the usual questions in one place. From the first term and the common ratio, it gives the nth term, the sum of the first n terms and, when ∣r∣<1|r| < 1, the sum to infinity. From any two terms, it finds the common ratio and the first term. And it tells you whether a value belongs to the sequence and at which position.

Results are exact whenever that is practical: fractional ratios such as 23\tfrac23 stay fractions, decimals stay decimals, and very large or very small terms (think 210002^{1000}) switch to scientific notation rather than overflowing. You can count from index 1 (a1a_1, as in most English textbooks) or from index 0 (u0u_0, as in French and Moroccan courses). A table lists the first terms with running sums, and the steps show every substitution.

How to use this calculator

  1. Choose what you know: the first term and the ratio, two terms, or a value whose position you want.
  2. Choose whether the sequence starts at index 1 or 0.
  3. Enter the values and the index nn of the term you need. The sum adds every term from the first one up to ana_n.
  4. Read the term, the sums, the explicit formula and the behaviour (increasing, decreasing, alternating); open the steps and the table for details.

The formula

With first term a1a_1 and common ratio rr:

an=a1 r n−1an+1=r ana_n = a_1 \, r^{\,n-1} \qquad\qquad a_{n+1} = r \, a_n

The sum of the first nn terms (r≠1r \neq 1) is

Sn=a1+a1r+⋯+a1r n−1=a1 1−r n1−rS_n = a_1 + a_1 r + \dots + a_1 r^{\,n-1} = a_1 \, \frac{1 - r^{\,n}}{1 - r}

and Sn=n a1S_n = n\,a_1 when r=1r = 1. If ∣r∣<1|r| < 1, the terms shrink towards 0 and the infinite series converges:

S∞=∑k=1∞a1r k−1=a11−rS_\infty = \sum_{k=1}^{\infty} a_1 r^{\,k-1} = \frac{a_1}{1 - r}

If ∣r∣≥1|r| \ge 1 (and a1≠0a_1 \neq 0), the infinite sum does not exist.

From two terms apa_p and ama_m: r m−p=amapr^{\,m-p} = \dfrac{a_m}{a_p}, so r=(amap)1/(m−p)r = \left(\dfrac{a_m}{a_p}\right)^{1/(m-p)}. When m−pm - p is even, −r-r works too. Then a1=ap/r p−1a_1 = a_p / r^{\,p-1}.

Starting at index 0: un=u0 q nu_n = u_0\,q^{\,n} and u0+⋯+un=u0 1−q n+11−qu_0 + \dots + u_n = u_0\,\dfrac{1 - q^{\,n+1}}{1 - q}, because there are n+1n + 1 terms.

Worked example

nth term and sum. For 3, 6, 12, … (a1=3a_1 = 3, r=2r = 2): $a_{10} = 3 \times 2^9 = $ 1536, and $S_{10} = 3 \times \dfrac{1 - 2^{10}}{1 - 2} = $ 3069.

From two terms. If a2=6a_2 = 6 and a5=162a_5 = 162, then r3=162/6=27r^3 = 162/6 = 27, so r=3r = 3 and a1=6/3=2a_1 = 6 / 3 = 2.

Is 384 a term? 3×2n−1=3843 \times 2^{n-1} = 384 gives 2n−1=128=272^{n-1} = 128 = 2^7, so 384 is a8a_{8}.

Infinite sum. 8+4+2+1+…8 + 4 + 2 + 1 + \dots (r=0.5r = 0.5) adds up to 8/(1−0.5)=168 / (1 - 0.5) = 16, and 12+14+18+⋯=1\tfrac12 + \tfrac14 + \tfrac18 + \dots = 1.

Depreciation. A car bought for 20,000 that loses 15% a year is worth 20000×0.855=8874.1062520000 \times 0.85^5 = 8874.10625 after 5 years: the 6th term of a sequence with r=0.85r = 0.85.

The chessboard. One grain on the first square, doubling on each of the 64 squares: $1 + 2 + \dots + 2^{63} = 2^{64} - 1 = $ 18,446,744,073,709,551,615 grains.

Geometric or arithmetic?

In an arithmetic sequence you add the same number each time; in a geometric sequence you multiply by the same number. To test a list, divide each term by the previous one: if the quotients are all equal, the sequence is geometric and that quotient is rr. Equivalently, each term is the geometric mean of its neighbours: an2=an−1 an+1a_n^2 = a_{n-1}\,a_{n+1}.

A ratio of 1+p1 + p means growth of pp per step, which is why compound interest, exponential growth and radioactive decay are geometric. Taking logarithms turns a geometric sequence into an arithmetic one: log⁡an=log⁡a1+(n−1)log⁡r\log a_n = \log a_1 + (n-1)\log r. That is also how the calculator finds the position nn of a value, with the logarithm of L/a1L / a_1 divided by log⁡r\log r, then an exact check.

When does the infinite sum exist?

The partial sums SnS_n approach a finite limit only when the terms shrink to 0, that is when −1<r<1-1 < r < 1. With r=0.5r = 0.5 each new term halves the remaining gap to the limit, so 1+12+14+…1 + \tfrac12 + \tfrac14 + \dots gets as close to 2 as you like without passing it. With r=1r = 1 the sum grows without bound, and with r=−1r = -1 it oscillates between a1a_1 and 0 forever: neither has a sum to infinity. Repeating decimals are a classic use: 0.333…=310+3100+⋯=3/101−1/10=130.333\ldots = \tfrac{3}{10} + \tfrac{3}{100} + \dots = \dfrac{3/10}{1 - 1/10} = \tfrac13.

Frequently asked questions

How do you find the nth term of a geometric sequence?

Multiply the first term by the common ratio raised to the power n − 1: aₙ = a₁ × rⁿ⁻¹. For 3, 6, 12…, the 10th term is 3 × 2⁹ = 1,536.

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

Sₙ = a₁(1 − rⁿ)/(1 − r) for r ≠ 1, and Sₙ = n × a₁ when r = 1. For 3, 6, 12… the first 10 terms add up to 3 × (2¹⁰ − 1) = 3,069.

How do I find the common ratio from two terms?

Divide the later term by the earlier one and take the root matching the gap between their positions: r = (aₘ/aₚ)^(1/(m − p)). With a₂ = 6 and a₅ = 162, r³ = 27, so r = 3. If the gap is even, −r is also a valid answer.

When does a geometric series have a sum to infinity?

Only when the absolute value of the ratio is less than 1. The sum is then a₁/(1 − r): 8 + 4 + 2 + … = 16. With |r| ≥ 1 the terms do not shrink and the series diverges.

Can the common ratio be negative or a fraction?

Yes. A negative ratio makes the signs alternate (1, −3, 9, −27…), and a ratio between 0 and 1 makes the terms shrink. Fractions such as 2/3 are handled exactly.

Why do French courses write uₙ = u₀ × qⁿ?

They usually number terms from 0 and call the ratio q. After n steps from u₀ you have multiplied by q exactly n times. If the sequence starts at u₁, the formula is uₙ = u₁ × qⁿ⁻¹. Choose the matching option above.

Sources

Last updated:

More Math calculators

People also use