Geometric sequence nth term calculator

Enter the first term a₁, the common ratio q, and the index n. The result is aₙ = a₁ · qⁿ⁻¹. For a₁ = 2, q = 3 and n = 4 the value is 54. For a₁ = 1, q = 2 and n = 5 the value is 16. The index n is taken as max(1, floor(n)). This page does not compute the sum Sₙ or an arithmetic-sequence term.

Input data

Result

Enter a₁, q and n to compute the nth term.

The arithmetic term (constant difference r) lives on the arithmetic sequence term page. For Sₙ open the geometric series sum.

How it works

How a₁, q and n become aₙ
a₁2
q3
n4
qⁿ⁻¹27
aₙ54

The calculator uses the numbers you enter: the first term a₁, the common ratio q, and the index n. The mathematical model is the classical nth term of a geometric sequence: aₙ = a₁ · qⁿ⁻¹. For a₁ = 2, q = 3 and n = 4 you get 2 · 3³ = 2 · 27 = 54. With a₁ = 1, q = 2 and n = 5 the term is 16. With a₁ = 5, q = 0.5 and n = 3 the term is 1.25, because 5 · 0.5² = 5 · 0.25.

The index is reduced by n = max(1, floor(n)). Entering 4.9 counts as n = 4; entering 0 or 0.4 becomes n = 1 and returns a₁. Field IDs stay a, b and c. The result is shown without extra rounding — not forced to six decimal places.

The ratio q may be negative: then term signs alternate. Example a₁ = 3, q = −2, n = 4 gives −24. With q = 1 the sequence is constant. With q = 0 and n > 1, aₙ is 0.

The sibling arithmetic-term page adds a constant difference r: aₙ = a₁ + (n−1)·r. The geometric series sum adds terms into Sₙ and does not replace a single aₙ. This page computes only the selected term.

Check 2, 3 and 4 → 54 first. Then 1, 2 and 5 → 16 and 5, 0.5 and 3 → 1.25. The panel also shows qⁿ⁻¹, the previous and next terms, and bars for the first few terms.

Formula

For a geometric sequence with first term a₁ and common ratio q:

aₙ = a₁ · qn−1, where n = max(1, floor(n)).

Mathematical model: nth term of a geometric sequence (geometric progression, common ratio q). This is not the sum Sₙ and not an arithmetic term with difference r.

Theory, common ratio q and aₙ

Definition

A geometric sequence (geometric progression) is a number sequence (aₙ) in which the ratio of each term to the previous one is constant whenever the previous term is nonzero. That constant is the common ratio, usually written q (many US textbooks use r). Recursive form: given a₁, aₖ₊₁ = q · aₖ for k ≥ 1. Closed form of the nth term: aₙ = a₁ · qⁿ⁻¹ for n = 1, 2, 3, …

When n = 1, q⁰ = 1, so a₁ returns unchanged. The next values are a₂ = a₁ · q and a₃ = a₁ · q². This calculator implements the closed form aₙ = a₁ · qⁿ⁻¹ with the index reduced by n = max(1, floor(n)).

A geometric sequence is multiplicative: each step multiplies by the same factor. That distinguishes it from an arithmetic sequence, where each step adds a constant difference r. In exponential form, aₙ = a₁ · e^{(n−1)·ln q} for q > 0 — that identity links the progression to the exponential function, but this calculator evaluates qⁿ⁻¹ directly, without a logarithm.

If you know two terms aᵢ and aⱼ (i < j, aᵢ ≠ 0), the ratio satisfies q^{j−i} = aⱼ/aᵢ. This page does not solve for q or n — it takes a₁, q and n as inputs and returns aₙ.

Historical and conceptual context

Geometric progressions appear in ancient computational texts (doubling, halving, proportional “percent” ideas). Euclid’s Elements develops proportion theory that later algebra writes as powers of a ratio. In secondary school, geometric sequences sit beside arithmetic ones and before geometric series.

Applications include compound interest (capital after n periods at a fixed rate), population growth with a constant factor, discrete radioactive decay models, cell division, and power series with |q| < 1. The infinite sum S = a₁/(1−q) for |q| < 1 belongs with series sums — here we compute one term.

The name “geometric” ties to the geometric mean: positive terms satisfy aₖ = √(aₖ₋₁ · aₖ₊₁). That identity is not a separate model on this page, but it explains the historical name. In discrete finance the factor (1+i) plays the role of q; in biology q = 2 describes ideal generation doubling.

Distinguish a finite sequence (the list a₁, …, aₙ) from a series (a sum of terms). This calculator belongs to the first world: it points to position n. The finite sum Sₙ = a₁(1−qⁿ)/(1−q) for q ≠ 1 lives on the separate sum calculator.

Formal properties

Domain of this calculator: finite real a₁ and q; finite input n; n_eff = max(1, ⌊n⌋). The result aₙ = a₁ · q^(n_eff−1) must be a finite floating-point number. With q < 0 and a non-integer exponent, general mathematics may enter the complex plane — here the exponent n_eff−1 is always a nonnegative integer, so the result stays real.

With q = 1, aₙ = a₁ for every n. With q = −1, terms alternate ±a₁. When |q| > 1, |aₙ| grows exponentially in n; when 0 < |q| < 1, the magnitude shrinks toward zero. With q = 0 and n_eff > 1, aₙ = 0 for finite a₁.

Ratio identity: if aₖ ≠ 0, then aₖ₊₁/aₖ = q. Scaling: (c·aₙ) keeps the same q. Reciprocals (when aₙ ≠ 0) have common ratio 1/q. The product of the first n positive terms is a₁ⁿ · q^{0+1+…+(n−1)} = a₁ⁿ · q^{n(n−1)/2} — that is a combinatorial aside, not this page’s output.

Monotonicity for a₁ > 0 and q > 1: increasing; for 0 < q < 1: decreasing toward zero. For a₁ < 0, signs and monotonicity flip with a₁. Oscillation appears when q < 0.

Full derivation

Step 1. Take a₁ and q. From the recurrence, a₂ = q·a₁, a₃ = q·a₂ = q²·a₁, a₄ = q³·a₁. By induction, aₙ = qⁿ⁻¹ · a₁.

Step 2. On this page read fields a₁, q, n. Set n_eff = max(1, floor(n)).

Step 3. Compute p = q^(n_eff−1), then aₙ = a₁ · p.

Step 4. Example 2, 3, 4: p = 3³ = 27, a₄ = 2·27 = 54. Example 1, 2, 5: p = 2⁴ = 16, a₅ = 16. Example 5, 0.5, 3: p = 0.25, a₃ = 1.25.

The panel also shows aₙ₋₁ (when n_eff > 1) and aₙ₊₁ = aₙ · q, so the multiplicative step is visible both ways.

Special cases

2, 3, 4 → 54. 1, 2, 5 → 16. 5, 0.5, 3 → 1.25. 3, −2, 4 → −24. 10, 1, 7 → 10 (constant). 8, 0, 3 → 0. 2, 3, 4.9 → 54 (floor). 2, 3, 0 → a₁ = 2 (n → 1).

Very large |q| and n may yield Infinity in floating-point arithmetic — the calculator reports an out-of-range error instead of a silent infinity in the primary field.

Numerical notes

Computation: q^(n_eff−1) · a₁ in the browser’s floating-point arithmetic. For ordinary school examples the displayed value matches the decimal intent; extreme powers meet floating-point rounding. This is an educational tool, not a CAS.

The calculator accepts a comma or a period as the decimal separator. Formatting follows the page language, without a forced six-decimal trim — with no extra rounding.

Bars illustrate |aₖ| for the first min(n, 8) terms; when n > 8 the full aₙ still appears in the panel.

Related notions and sources

Related: arithmetic sequence term, geometric series sum, compound interest, geometric mean of two numbers, power aⁿ. An infinite geometric series needs |q| < 1 — a separate topic.

Sources: Wikipedia — Geometric progression; MathWorld — Geometric Progression; standard school algebra aₙ = a₁·qⁿ⁻¹. Educational tool.

How to use

  1. Enter the first term a₁, for example 2.
  2. Enter the common ratio q, for example 3.
  3. Enter the index n, for example 4, and click Calculate. The term is 54.
  4. Check the panel: qⁿ⁻¹, aₙ₋₁, aₙ₊₁ and bars for the first terms.
  5. n = max(1, floor(n)). Entering 4.9 counts as n = 4.
  6. Open the series sum on the geometric sum page; the additive-difference term lives on the arithmetic page.

Symbol glossary

With a₁ = 2, q = 3 and n = 4 you get aₙ = 54, because 2 · 3³ = 54.

a₁
First term. Field n-ty-wyraz-geom-a.
q
Common ratio. Field b. May be negative.
n
Term index after max(1, floor(n)). Field c.
aₙ
nth term: a₁ · qⁿ⁻¹. Primary panel result.
qⁿ⁻¹
Power factor. For n = 4 and q = 3 it equals 27.

Examples

Example 1

  • a₁ = 2
  • q = 3
  • n = 4

54

What is a₄ with a₁ = 2 and q = 3? 54.

Example 2

  • a₁ = 1
  • q = 2
  • n = 5

16

What is a₅ with a₁ = 1 and q = 2? 16.

Example 3

  • a₁ = 5
  • q = 0.5
  • n = 3

1.25

What is a₃ with a₁ = 5 and q = 0.5? 1.25.

Example 4

  • a₁ = 3
  • q = −2
  • n = 4

−24

What is a₄ with a₁ = 3 and q = −2? −24.

Example 5

  • a₁ = 10
  • q = 1
  • n = 7

10

What is a₇ with a₁ = 10 and q = 1? 10.

Example 6

  • a₁ = 8
  • q = 0
  • n = 3

0

What is a₃ with a₁ = 8 and q = 0? 0.

Example 7

  • a₁ = 2
  • q = 3
  • n = 4.9

54

What is aₙ with n = 4.9, a₁ = 2, q = 3? 54.

Related calculators

Common questions

What does this calculator compute?

The nth term of a geometric sequence aₙ = a₁ · qⁿ⁻¹. For a₁ = 2, q = 3 and n = 4 the term is 54. It does not compute the sum Sₙ or an arithmetic term.

What is the formula?

aₙ = a₁ · qⁿ⁻¹ with n = max(1, floor(n)). The exponent is n−1, so n = 1 returns a₁.

What does floor do to n?

n_eff = max(1, the integer part of n). Entering 4.9 counts as 4. Entering 0 becomes 1 and returns a₁.

Does a negative ratio q work?

Yes. Term signs alternate. Example: a₁ = 3, q = −2, n = 4 gives −24.

How is this different from an arithmetic term?

Here each step multiplies by q. In an arithmetic sequence each step adds a constant difference r.

Where is the geometric series sum?

On the geometric series sum page. Here the result is one term aₙ, not Sₙ.

Does the result always use six decimal places?

No. The calculator shows the raw value after locale formatting. 1.25 stays 1.25 — no artificial trim.

What about q = 1 or q = 0?

With q = 1 every term equals a₁. With q = 0 and n > 1, aₙ is 0.

Do the currency and unit settings in the page header affect the result?

No. The result depends only on a₁, q and n. The currency and unit settings in the page header do not affect this result.

How do I see the multiplicative step?

The panel shows aₙ₋₁ and aₙ₊₁ = aₙ · q. Bars illustrate the first terms of the sequence.

Must n be an integer on input?

The input may have a fractional part, but the calculator rounds n down and applies a lower bound of 1. School indexes are natural numbers.

What does this model not compute?

It does not compute a finite or infinite sum, solve for q from two terms, or run exponential equations beyond aₙ.

How do I calculate the nth term of a geometric sequence?

Use aₙ = a₁ · qⁿ⁻¹. For a₁ = 2, q = 3 and n = 4: 2 · 3³ = 54. The index n must be a positive integer (here: floor with a lower limit of 1).

What is a₅ with a₁ = 2 and q = 3?

162. Computation: 2 · 3⁴ = 2 · 81 = 162. That is a classic school example of the fifth term.

What is a₄ with a₁ = 2 and q = 3?

54. Computation: 2 · 3³ = 54. That is Example 1 on this page.

Does the calculator compute the sum Sₙ?

No. Here only one term aₙ. The sum of the first n terms belongs on the geometric-sequence sum page.

How does the ratio q differ from the difference r?

In a geometric sequence each step multiplies by a fixed q. In an arithmetic sequence each step adds a fixed difference r — that is a separate card.

For a₁ = 2, q = 3 and n = 4, aₙ = 54. Sum the terms on the geometric series sum page.

Knowledge sources

The geometric-sequence definition and aₙ formula below come from recognized references.

Page Updated November 2, 2026.