Geometric Sequence Calculator

Find the nth term, the sum of n terms, and the infinite sum of a geometric sequence. Enter the first term and ratio, a ratio and a term, or two terms, with steps and a chart.

https://hexacalculator.com/calculators/mathematics/algebra/geometric-sequence-calculator

Mathematics

Algebra

Geometric Sequence Calculator

Find the nth term, the sum of n terms, and the infinite sum of a geometric sequence. Enter the first term and ratio, a ratio and a term, or two terms, with steps and a chart.

Geometric Sequence Calculator

Your sequence

You give the first term a1 and the common ratio r; the sequence is a1, a1r, a1r2, …

Show the terms table

List each term with its running partial sum.

Show the chart

Plot the first terms so growth, decay, or alternation is visible.

Sum of the first n terms Sₙ

The size of the ratio is 1 or more, so the terms do not shrink and there is no finite infinite sum. Only the sum of a set number of terms is defined.

This sequence grows: each term is larger than the last.

Terms table

The sequence term by term, with the running sum

n

Term an

Partial sum Sn

122
268
31826
45480
5162242

Chart

Loading calculator…

A geometric sequence is a series of numbers where each element is the previous element multiplied by a constant factor. This factor is called the common ratio. Starting with 2 and repeating this three times, we get 2, 6, 18, 54 etc., which is a sequence with common ratio 3.

This calculator will determine any term of a geometric progression as well as the sum of the first terms and the infinite sum when they exist. Enter either the common ratio and the first term, or the common ratio and any term, or simply two terms. Complete the remaining information to generate the graphical representation of the sequence.

What is a geometric sequence?

A geometric sequence, also known as a geometric progression, is a sequence of numbers where each element after the first is obtained by multiplying the preceding element by a constant called the common ratio and denoted with r. The common ratio must be non-zero.

We call the first term a1a_1 and the common factor rr. Then the sequence is a1,  a1r,  a1r2,  a1r3,a_1,\; a_1 r,\; a_1 r^2,\; a_1 r^3, \ldots. Since in each step we multiply by rr, the ratio between any element and the previous one is always the same. This constant ratio is what makes the sequence geometric, and it's a point to check first. If you divide any term by its predecessor, you should get the same number every time.

This is the multiplicative equivalent of an arithmetic sequence. In an arithmetic sequence a constant number is added at each step. Addition leads to steady linear change while multiplication can lead to either accelerating growth or gradual decay. This is typical for quantities that change by percentages.

The formula for the nth term.

It is also possible to determine far away terms without listing each individual term. With an explicit formula it is possible to directly calculate the term at position n.

an=a1rn1a_n = a_1 \cdot r^{\,n-1}

The exponent is n1n-1 and not nn, because the first term is already determined before we start multiplying. In the sequence 2, 6, 18, 54, if a1=2a_1 = 2 and r=3r = 3, then the fifth term is a5=234=281=162a_5 = 2 \cdot 3^{4} = 2 \cdot 81 = 162.

The same rule can be expressed recursively. One starts with the first term and multiplies each subsequent term by a constant factor, the ratio.

a1=2,an=an1ra_1 = 2, \qquad a_n = a_{n-1} \cdot r

The recursive form describes a step-by-step calculation while the explicit form is a shortcut to find far away terms with one calculation. This calculator uses an explicit formula so calculating the hundredth term is no more work than calculating the second term.

The sum of a geometric series.

The sum of the individual terms in a geometric sequence results in a geometric series. Because the sum of the first n terms has a simple closed form, there is no need to add them individually.

Sn=a11rn1r(r1)S_n = a_1 \cdot \frac{1 - r^{\,n}}{1 - r} \quad (r \neq 1)

The principle is very simple. If you form the product of the sum and a certain value and subtract this result from the original sum, almost all terms cancel out, leaving behind a certain value. This is the case for a sequence with five members consisting of 2, 6, 18, 54, and 162: S5=213513=22422=242S_5 = 2 \cdot \frac{1 - 3^5}{1 - 3} = 2 \cdot \frac{-242}{-2} = 242.

The only exception to this formula is for r=1r = 1. In that case the denominator becomes zero. Then all terms are equal to the first term, so the sum is Sn=na1S_n = n \cdot a_1. This special handling is taken care of by a calculation tool.

Infinite sums and convergence

It may seem obvious that adding an infinite number of numbers always leads to infinity, but a geometric series can sometimes converge to a finite sum. This is possible when each term goes to zero quickly enough, which happens if the absolute value of the common factor is small enough.

S=a11rwhen r<1S_\infty = \frac{a_1}{1 - r} \quad \text{when } |r| < 1

The condition r<1|r| < 1 means that rr is strictly between 1-1 and 11. If you are given a1=6a_1 = 6 and r=13r = \tfrac{1}{3}, the sum is S=611/3=62/3=9S_\infty = \frac{6}{1 - 1/3} = \frac{6}{2/3} = 9. Each successive term 6, 2, 2/3 etc. adds up to get closer to 9 but never exceeds it.

If the absolute value of the common factor is greater than 1, then each term either stays the same or increases, so the sum never stabilizes and there is no infinite sum. The calculator will tell you what state your series is in, and only shows an infinite sum if the series converges.

A typical example is Zeno's paradoxes. To cross a room one must first traverse half the distance, then half of what remains and so on, infinitely many times. These distances form a geometric series with common factor one-half, whose sum is equal to the total length of the room. For that reason it is possible in finite time to reach the opposite wall eventually.

Calculating a common factor of two terms

If you know two terms and their respective positions but not the common factor, it can be found by dividing the terms and taking the appropriate root of the quotient.

rqp=aqap    r=(aqap)1qpr^{\,q-p} = \frac{a_q}{a_p} \;\Longrightarrow\; r = \left(\frac{a_q}{a_p}\right)^{\frac{1}{q-p}}

Suppose the second term is 6 and the fourth term is 54. If r2=54/6=9r^{2} = 54/6 = 9, then r=3r = 3. Since the difference of positions is even and the ratio of the two terms is positive, a negative root can also be used, producing r=3r = -3 as another sequence that passes through these two terms. The calculator will indicate whether such a second solution exists. If the difference of positions is even but the signs of the two terms are different, then there is no real common factor at all. This is because you cannot turn a positive number into a negative one by raising it to an even power.

Types of geometric series.

The properties of an entire sequence are determined solely by the constant ratio. If you see the value of r, then before calculating each individual term, you can get a rough idea of what the situation is like.

Common ratio

Behaviour

Example

r>1r > 1

Grows without bound

2, 6, 18, 54, ...

0<r<10 < r < 1

Decays toward zero

16, 8, 4, 2, ...

r=1r = 1

Constant

5, 5, 5, 5, ...

1<r<0-1 < r < 0

Alternates sign, shrinking

9, -3, 1, -1/3, ...

r<1r < -1

Alternates sign, growing

1, -2, 4, -8, ...

Only two types, the diminishing one and the shrinking alternating one, have an absolute value of constant ratio smaller than one, thus having an infinite sum. In all other cases meaningful numerical values keep accumulating forever.

Applications of geometric series:

Any quantity that changes by a constant factor is in geometric relationship. The compound interest principle describes how capital grows at a fixed rate, and multiplies by the same factor each period of time. Populations doubling from generation to generation, rumors tripling their reach every day, or light beams losing a certain percentage of intensity with each glass pane they pass through - all follow the same rules.

Decay processes are also often observed. Radioactive substances lose a constant proportion of their mass at regular time intervals, a bouncing ball reaches a certain percentage of its previous height on impact, and drugs are excreted from the body in a constant ratio hourly. In all these cases, the value of this factor is known, and one wants to determine the subsequent terms or the total amount - this is exactly what this tool calculates.

Hints for using the calculation tool:

Please enter the position n as an integer. Each term is at position 1, 2, 3 etc. In the constant ratio and terms fields you can directly type in fractions like 1/2 or -3/4 since they will be interpreted as numbers. The result will be shown as a decimal so a constant ratio of one third would show up as 0.3333.

If only two known terms are given, use the "Two Terms" mode to ask the calculator to find the common ratio and first term. To check your answer, look at the table of terms below. Each row is found by multiplying the previous row by the common ratio, and the partial sums column should add up to the total value entered.

Frequently asked questions

What is a geometric sequence?

A geometric sequence is a series of numbers where each term after the first is found by multiplying the previous one by a fixed number called the common ratio. For example, 3, 6, 12, 24 is a geometric sequence with common ratio 2 since each term is twice the previous term.

What is the formula for the nth term of a geometric sequence?

The nth term is calculated as a_n = a_1 multiplied by r to the power of (n minus 1). Here a_1 is the first term and r is the constant ratio. The exponent is n - 1 because we haven't multiplied the first term yet. In the example 2, 6, 18, 54, the fifth term is the result of 2 multiplied by 3 to the fourth power, which gives 162.

How do you find the sum of a geometric series?

For the first n terms use this formula: S_n = a_1 * (1 - r^n) / (1 - r). This formula is valid as long as the common factor is not 1. If the common factor is 1, all of the terms are equal and the sum is just the product of n and the first term.

When does a sum for an infinite geometric series exist?

A sum only exists if the common factor is strictly between −1 and 1, in which case the individual terms converge towards zero. In this case the infinite sum equals the first term divided by (1 - r). If the absolute value of the common factor is greater than or equal to one, then the individual terms do not get smaller, and so the series has no finite sum.

How do you find the common factor of two terms?

You divide the two known terms and take the root whose exponent is determined by the difference of their positions. The value of r to the power (q - p) is equal to the ratio a_q over a_p. If the two terms are adjacent, then the common factor is the result of dividing the second term by the first.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Khan Academy: Geometric sequences and series

    Lessons and practice on geometric sequences, the n-th term, and summing geometric series.

  2. NIST Special Publication 811: Guide for the Use of the International System of Units

    The US national standard for SI units, unit names and symbols, and conversion factors.