Geometric Series Calculator

Add a geometric sequence, including the infinite sum when it converges.

The first term of the sequence.

The ratio between consecutive terms.

A whole number from 1 to 100000, or empty for the infinite sum.

Try

Result

You entereda1=2, r=3, n=5a_1 = 2,\ r = 3,\ n = 5

242\displaystyle 242

nth term

162\displaystyle 162

Formula

Sn=a1(1−rn)1−r\displaystyle S_n = \frac{a_1\left(1 - r^n\right)}{1 - r}
Show the work
  1. Geometric series

    A series is the sum of the first nn terms. Here the sequence is geometric, with first term a1=2a_1 = 2 and common ratio r=3r = 3, and the number of terms is n=5n = 5.

  2. Sum of a geometric series

    Multiplying the sum by rr and subtracting leaves only the first and last terms, which gives this formula. It needs r≠1r \ne 1.

    Using Sn=a1(1−rn)1−rS_n = \frac{a_1\left(1 - r^n\right)}{1 - r}

    S5=2(1−35)1−3=2(1−243)−2=242\begin{aligned} S_{5} &= \frac{2\left(1 - 3^{5}\right)}{1 - 3} \\ &= \frac{2\left(1 - 243\right)}{-2} \\ &= 242 \end{aligned}
  3. Result

    So the sum of the first 5 terms is S5=242S_{5} = 242.

Worked examples