Starlight Tools

Arithmetic or Geometric Sequence Calculator — Nth Term & Sum

An arithmetic sequence adds a fixed difference; a geometric sequence multiplies by a fixed ratio. Solve for terms, parameters, positions, and sums with exact fractions: 3, 7, 11… is arithmetic; 2, 6, 18… is geometric.

Choose a solve mode, then inspect exact answers, decimal approximations, worked substitutions, a cumulative terms table, and an optional graph. Calculations stay in your browser.

Set up the sequence

Sequence type

Enter integers, decimals, or fractions such as -3/4. Positions use one-based indexing and must be whole numbers from 1 to 100,000.

aₙ = a₁ + (n − 1)da₁ = 3, d = 4, n = 10
Try an example

Sequence result

Nth term
a₁₀ = 39
Arithmetic sequence with common difference 4.
Solved parametersa₁ = 3, d = 4, n = 10
Finite sumS₁₀ = 210
Explicit ruleaₙ = 3 + (n − 1) · 4
Terms and cumulative sums
1–10 of 10
Index kTerm akCumulative sum Sk
Sequence visualization

Step-by-step calculation

Sequence formulas and symbols

Indexing starts at 1: a1 is the first term, an is the term at position n, d is the common difference, r is the common ratio, and Sn is the sum of the first n terms.

Arithmetic term rules

Text: aₙ = a₁ + (n − 1)d
Text: aₙ = aₙ₋₁ + d

Explicit gives any term directly; recursive adds d to the previous term.

Arithmetic finite sum

Sₙ = n(a₁ + aₙ) / 2

Sₙ = n[2a₁ + (n − 1)d] / 2

These equivalent forms use the average of the endpoints or substitute the explicit nth term.

Geometric term rules

aₙ = a₁rn−1

aₙ = r · aₙ₋₁

Explicit uses a power of r; recursive multiplies the previous term by r.

Geometric sums

Sₙ = a₁(1 − rn) / (1 − r)

S∞ = a₁ / (1 − r), |r| < 1

For r = 1, use Sn = na1. An infinite sum exists only when |r| < 1.

How to identify the sequence type

Find a difference

From adjacent terms, d = ak+1ak. From indexed terms, d = (anam)/(nm), then a1 = am − (m − 1)d.

Find a ratio

For adjacent terms with a nonzero preceding term, r = ak+1/ak. Constant ratios identify geometric sequences; division by zero is undefined.

Negative and special values

A negative difference can decrease. A negative ratio alternates signs. Ratio 0 makes every term after the first zero; ratio 1 makes a constant sequence.

Sequence versus series

A sequence is an ordered list of terms. A series is their sum. A pasted list may be arithmetic, geometric, both when constant, or neither.

Worked examples

Arithmetic: a1 = 3, d = 4, n = 6

  1. Terms: 3, 7, 11, 15, 19, 23.
  2. Nth term: a₆ = 3 + (6 − 1)·4 = 23.
  3. Finite sum: S₆ = 6(3 + 23)/2 = 78.

Answer: a6 = 23 and S6 = 78.

Geometric fraction: a1 = 8, r = 1/2, n = 5

  1. Terms: 8, 4, 2, 1, 1/2.
  2. Nth term: a₅ = 8(1/2)⁴ = 1/2.
  3. Finite sum: S₅ = 8[1 − (1/2)⁵]/(1 − 1/2) = 31/2 = 15.5.
  4. Because |1/2| < 1, S∞ = 8/(1 − 1/2) = 16.

Answer: a5 = 1/2, S5 = 31/2, and S = 16.

Arithmetic from two indexed terms: a3 = 10 and a7 = 26

d = (26 − 10)/(7 − 3) = 4, then a₁ = 10 − (3 − 1)·4 = 2. Therefore aₙ = 2 + (n − 1)·4.

Math review, privacy, and limits

Method reviewed: formulas and edge cases were checked against OpenStax Algebra and Trigonometry, Key Equations. No individual credentialed reviewer is attributed because one is not currently available.

Exact integer and fractional arithmetic is retained whenever practical. Irrational roots and logarithmic position solutions use decimal approximations. Inputs are processed locally, n is limited to 100,000, and the display is capped at 50 terms. Extremely large exact powers and non-finite decimal results are rejected clearly.

Representative verification cases, checked 31 August 2026
CaseInputExpectedStatus
Positive arithmetica₁=3, d=4, n=10a₁₀=39, S₁₀=210Pass
Negative differencea₁=20, d=−3, n=8a₈=−1, S₈=76Pass
Zero ratioa₁=5, r=0, n=4a₄=0, S₄=5Pass
Fractional ratioa₁=8, r=1/2, n=5a₅=1/2, S₅=31/2Pass
Ratio 1a₁=7, r=1, n=6a₆=7, S₆=42Pass
Convergent infinitea₁=8, r=1/2S∞=16Pass
Overflow guarda₁=10¹⁰⁰, r=10¹⁰⁰, n=100000Clear size errorPass

Sequence calculator FAQs

What is the difference between an arithmetic and geometric sequence?

An arithmetic sequence adds the same difference each time. A geometric sequence multiplies by the same ratio each time.

How do I find the common difference?

Subtract an adjacent term from the next term: d = aₖ₊₁ − aₖ. From two indexed terms, use d = (aₙ − aₘ)/(n − m).

How do I find the common ratio?

Divide an adjacent nonzero term by the term before it: r = aₖ₊₁/aₖ. If the preceding term is zero, that division is undefined.

How do I solve a sequence from two known terms?

Use “From two indexed terms.” Arithmetic mode finds d and then a₁. Geometric mode solves rⁿ⁻ᵐ = aₙ/aₘ and then finds a₁, when a real ratio is identifiable.

When does an infinite geometric series converge?

Only when |r| < 1. Then S∞ = a₁/(1 − r). If |r| ≥ 1, the infinite series diverges.

Can I enter fractions?

Yes. Use integers, decimals, or fractions such as 1/2, -3/4, and 2/3. Exact fractional answers appear first wherever practical, with a decimal approximation second.

Why do r = 0 and r = 1 need special handling?

With r = 0, every term after the first is zero and some inverse problems have multiple solutions. With r = 1, every term equals a₁, so the finite sum is na₁ instead of the usual fraction with denominator 1 − r.

What is the difference between explicit and recursive formulas?

An explicit formula calculates aₙ directly from n. A recursive formula starts with a₁ and uses the preceding term: aₙ = aₙ₋₁ + d or aₙ = r·aₙ₋₁.

Can a pasted sequence be neither arithmetic nor geometric?

Yes. If neither the consecutive differences nor the valid consecutive ratios stay constant, the calculator identifies the list as neither.

Why are only 50 terms available in the table?

The safety cap keeps the page responsive. Paging changes which of those rows are visible; nth-term and finite-sum calculations still support n up to 100,000.

Explore more tools