MathorynMathematical Formula Database

Sequences & Series

Sum of a Finite Geometric Series

This formula sums the first nn terms of a geometric sequence. For r=1r=1 the sum is simply n a1n\,a_1. It is used for loan and annuity calculations and for totals of repeated percentage growth.

Sn=a1 1−r n1−r,r≠1S_n=a_1\,\frac{1-r^{\,n}}{1-r},\quad r\neq1
LaTeXS_n=a_1\,\frac{1-r^{\,n}}{1-r},\quad r\neq1

Variables

SnS_n
sum of n terms
a1a_1
first term
rr
common ratio (≠ 1)

Example

Sum 2+6+18+54+1622+6+18+54+162.

  1. a1=2, r=3, n=5a_1=2,\ r=3,\ n=5.
  2. 2⋅1−2431−3=2⋅1212\cdot\frac{1-243}{1-3}=2\cdot121.

Answer: 242242.

Related formulas