Geometric Sequence Calculator

Enter the first term, common ratio, and which term number you want to find the nth term and the sum of the first n terms.

nth term
486
Sum of first n terms
728
Terms (first 6, then the last)
—
Infinite sum
—

Approximate results show up to 12 significant digits. Decimal fields use a dot, up to 12 digits on each side, an exponent from −24 to 24 and absolute values up to 10¹². Rational intermediate numerators and denominators are limited to 512 bits. Integer and scientific-notation exceptions are specified below. aₙ = a₁rⁿ⁻¹; Sₙ = Σa₁rᵏ; n ∈ ℤ ∩ [1,10000].

How geometric sequences work

A geometric sequence is a list of numbers where each term is found by multiplying the one before it by a fixed value, the common ratio (r). The nth term is found as aₙ = a₁ × r^(n−1), where a₁ is the first term.

The sum of the first n terms is Sₙ = a₁ × (1 − rⁿ) / (1 − r) for any ratio other than 1 (if r = 1, every term is identical and the sum is simply a₁ × n).

Frequently asked questions

What's an example of a geometric sequence?

2, 6, 18, 54, ... is geometric with a common ratio of 3 — each term is 3 times the one before it.

What happens if the ratio is a fraction between 0 and 1?

The sequence shrinks toward zero — each term is smaller than the one before, like 100, 50, 25, 12.5, ... with a ratio of 0.5.

What if the common ratio is negative?

The sequence alternates between positive and negative values — for example, with a₁=1 and r=−2, the sequence is 1, −2, 4, −8, 16, ...

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
First term (a₁) = 100
Common ratio (r) = 0.5
Term number (n) = 10
nth term: 0.1953125
Sum of first n terms: 199.8046875
Terms (first 6, then the last): 100, 50, 25, 12.5, 6.25, 3.125, …, 0.1953125
Infinite sum: 200
2
First term (a₁) = -4
Common ratio (r) = 0
Term number (n) = 3
nth term: 0
Sum of first n terms: -4
Terms (first 6, then the last): -4, 0, 0
Infinite sum: -4
3
First term (a₁) = 0
Common ratio (r) = 7
Term number (n) = 5
nth term: 0
Sum of first n terms: 0
Terms (first 6, then the last): 0, 0, 0, 0, 0
Infinite sum: 0

How we test our calculators →

Also try:

Back to category →