---
slug: geometric-sequence-calculator
title: "Geometric Sequence Calculator"
category: math
updated: 2026-11-19
canonical: https://calcseed.com/c/math/geometric-sequence-calculator/
html: /c/math/geometric-sequence-calculator/
---

# Geometric Sequence Calculator

Find the nth term and sum of a geometric sequence from its first term, common ratio and term count. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (2, 3, 5), the nth term is **162**. At these inputs: sum of terms = **242**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| First term | 2 |  |
| Common ratio | 3 |  |
| Number of terms | 5 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| nth term | 162 |  |
| Sum of terms | 242 |  |

## Formula

```text
a_n_ = a1 × r^n−1    S_n_ = a1(1 − r^n) ÷ (1 − r)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| First term | number |  | 2 |
| Common ratio | number |  | 3 |
| Number of terms | number |  | 5 |

## Outputs

| Result | Format |
| --- | --- |
| nth term | primary |
| nth term | number |
| Sum of terms | number |

## How it works

### What this calculator does

Enter the first term, the common ratio and how many terms you want, and the calculator returns the nth term and the sum of the sequence. At the defaults — first term 2, ratio 3, five terms — the sequence is 2, 6, 18, 54, 162: the fifth term is 162 and the five terms add up to 242. Change any input and both outputs update instantly.

### The two formulas

A geometric sequence multiplies by the same fixed number at every step. That multiplier is the common ratio r, and the first term a1 seeds the whole sequence. The nth term needs the ratio raised to a power, and the sum compresses n additions into one fraction.

The exponent is n − 1 rather than n because the first term involves no multiplication at all: term 1 is a1 itself, term 2 applies r once, term 3 applies r twice, and so on. The sum formula comes from a multiplication trick — multiply the whole sum by r, subtract, and nearly every term cancels — leaving the compact fraction that replaces adding term by term.

#### Worked example: the default inputs

With a1 = 2, r = 3 and n = 5, the fifth term is a5 = 2 × 3&#8308; = 2 × 81 = 162. Writing out all five terms confirms it: 2, 6, 18, 54, 162. The sum formula gives S5 = 2 × (1 − 3&#8309;) ÷ (1 − 3) = 2 × (−242) ÷ (−2) = 242. Adding the terms by hand — 2 + 6 + 18 + 54 + 162 — lands on the same 242, with the two negatives in the fraction cancelling on the way.

### Sequences you can check by hand

| a1 | r | n | nth term | Sum |
| --- | --- | --- | --- | --- |
| 2 | 3 | 5 | 162 | 242 |
| 1 | 2 | 10 | 512 | 1,023 |
| 100 | 0.5 | 4 | 12.5 | 187.5 |
| 1 | 2 | 30 | 536,870,912 | 1,073,741,823 |

The last row is the famous doubling puzzle: one penny doubled every day for 30 days reaches 2²&#8319; = 536,870,912 pennies on day 30, and the pile totals 1,073,741,823 cents — about $10,737,418. The second row shows the same shape: ten doublings of $1 make the tenth term 512 dollars and the running total 1,023 dollars. Geometric intuition fails badly at these scales, which is exactly what the formula is for.

### What each input does

- Doubling the first term doubles every term and the sum: a1 = 4, r = 3, n = 5 gives a5 = 324 and S5 = 484
- Multiplying the ratio by 2 multiplies the nth term by 2^(n−1): r = 6 turns a5 into 2 × 6&#8308; = 2,592
- Adding one more term multiplies the nth term by r and adds the new term to the sum: n = 6 gives a6 = 486 and S6 = 728
- A ratio of exactly 1 makes a constant sequence, and the sum is simply a1 × n
- A negative ratio alternates signs: a1 = 2, r = −2, n = 5 gives 2, −4, 8, −16, 32

### Growth, decay and alternating behavior

A ratio above 1 grows without bound, a ratio between 0 and 1 decays toward zero, and a negative ratio swings signs each term. The decay row in the table shows a $100 value losing half its size each period: 100, 50, 25, 12.5, summing to 187.5 after four terms. Because the terms shrink, an infinite sum actually converges when |r| < 1, to a1 ÷ (1 − r). The decay example converges to 100 ÷ 0.5 = 200; the four listed terms have already banked 187.5 of it, leaving 12.5 for all the rest.

Alternating sequences are common in homework because they test sign discipline. With a1 = 2 and r = −2, the fifth term is 2 × (−2)&#8308; = 32 — an even power erases the sign. The sum formula handles negatives without modification, but the denominator (1 − r) becomes 3 rather than −3, so keep the parentheses intact when you substitute.

#### Geometric versus arithmetic sequences

An arithmetic sequence adds a fixed difference; a geometric one multiplies by a fixed ratio. Starting at 2, the arithmetic sequence with difference 3 runs 2, 5, 8, 11, 14, while the geometric sequence with ratio 3 runs 2, 6, 18, 54, 162. The gap explodes with length: by term 10 the arithmetic version reaches only 2 + 9 × 3 = 29, while the geometric version hits 2 × 3&#8313; = 39,366. Exam questions love this contrast, so read whether the sequence adds or multiplies before choosing a formula.

### Real-world uses in 2026

Compound interest is a geometric sequence in disguise. A $2,000 balance earning 5 percent a year runs 2,000; 2,100; 2,205; 2,315.25; 2,431.01 — each year multiplies by r = 1.05, and the fifth-year balance is 2,000 × 1.05&#8308; ≈ $2,431.01. Depreciation runs the same pattern downward: a $10,000 asset losing 20 percent a year is worth 10,000 × 0.8³ = $5,120 after three years, because the fourth yearly value is the fourth term of a sequence with ratio 0.8.

The pattern also shows up in doubling-time estimates, viral growth curves and algorithm analysis, where a process that branches into r children per step fills level n with a1 × r^(n−1) nodes. In each case the calculator answers the two practical questions: how big is step n, and how much has accumulated by then.

### Common mistakes

- Using r^n instead of r^(n−1) for the nth term; with the defaults that gives 2 × 3&#8309; = 486, which is actually the sixth term
- Adding the ratio like an arithmetic sequence: with difference 3 the terms would be 2, 5, 8, 11, 14, not 2, 6, 18, 54, 162
- Dropping a negative sign in the sum formula: (1 − 243) ÷ (1 − 3) is (−242) ÷ (−2), and both negatives cancel
- Applying the sum formula when r = 1; it divides by zero, so use S = a1 × n instead
- Miscounting terms: n = 5 means five terms starting at a1, not five multiplications after a1

A fast sanity check saves most of these errors. When r &ge; 2, the sum should sit between the last term and roughly double it, because the earlier terms form a geometric pile just under the last one. At the defaults, 242 sits between 162 and 324, so the answer passes; a sum smaller than the last term means a sign or exponent slipped somewhere.

## FAQ

### How do I find the 5th term of 2, 6, 18, 54, …?

The ratio is 6 ÷ 2 = 3, so a5 = 2 × 3&#8308; = 2 × 81 = 162. The exponent is 4 because the first term uses no multiplication.

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

S = a1 × (1 − r^n) ÷ (1 − r). At the defaults it gives 2 × (1 − 243) ÷ (1 − 3) = 242, matching 2 + 6 + 18 + 54 + 162.

### Why is the exponent n − 1?

The first term is a1 itself, with no multiplications applied. Each later term adds one more multiplication, so term n applies the ratio n − 1 times.

### What happens when the ratio is 1?

Every term equals the first term, so the sum is a1 × n. The main sum formula divides by 1 − r = 0 there, which is why the constant-sequence case needs its own rule.

### What is the sum of 1, 2, 4, 8, …, 512?

That is ten terms with a1 = 1 and r = 2, so the sum is 1 × (1 − 2&#8310;&#8320;) ÷ (1 − 2) = 1,023, one less than the next term, 1,024.

### How do negative ratios work?

The terms alternate in sign while their sizes multiply by |r|. With a1 = 2 and r = −2 the sequence runs 2, −4, 8, −16, 32, and even-numbered terms stay positive.

### When does an infinite geometric series converge?

When |r| < 1, the infinite sum is a1 ÷ (1 − r). The sequence 100, 50, 25, 12.5 with r = 0.5 converges to 100 ÷ 0.5 = 200.

### How is this different from an arithmetic sequence?

Arithmetic adds a fixed difference; geometric multiplies by a fixed ratio. Starting at 2, ten terms with difference 3 reach only 29, while ten terms with ratio 3 reach 39,366.

### How do I model 5 percent compound interest?

Use r = 1.05 and set a1 to the starting balance. A $2,000 deposit has a fifth-year balance of 2,000 × 1.05&#8308; ≈ $2,431.01, the fifth term of the sequence.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-19.
- Geometric sequence: a_n = a1 r^(n-1); sum S_n = a1(1 - r^n)/(1 - r).
