Skip to content

Number Sequence Calculator

Work with arithmetic, geometric and Fibonacci-type sequences, or paste a list of terms and let the calculator spot the pattern.

MathUpdated Free · No sign-up

How to use the Number Sequence Calculator

  1. Pick what you want to work out using the tabs: Arithmetic, Geometric, Fibonacci-type or Identify pattern.
  2. Enter First term (a₁).
  3. Enter Common difference (d).
  4. Enter Term number (n).
  5. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  6. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

Arithmetic sequences

An arithmetic sequence adds the same number, the common difference d, at every step: 3, 7, 11, 15, … has d = 4.

aₙ = a₁ + (n − 1)d Sₙ = n ÷ 2 × (2a₁ + (n − 1)d)

Example: with a₁ = 3 and d = 4, the 10th term is 3 + 9 × 4 = 39 and the sum of the first ten terms is 10 ÷ 2 × (6 + 36) = 210. The sum formula comes from pairing the first and last terms, the second and second-to-last, and so on; every pair has the same total.

Geometric sequences

A geometric sequence multiplies by the same common ratio r each time: 2, 6, 18, 54, … has r = 3.

aₙ = a₁ × rⁿ⁻¹ Sₙ = a₁(1 − rⁿ) ÷ (1 − r) (r ≠ 1)

With a₁ = 2 and r = 3, the 8th term is 2 × 3⁷ = 4,374 and the first eight terms add to 6,560. When the ratio is between −1 and 1 the terms shrink towards zero and the infinite sum converges to a₁ ÷ (1 − r). For example 1 + ½ + ¼ + … = 2.

Fibonacci-type sequences

In a Fibonacci-type sequence each term is the sum of the two before it. Starting from 0 and 1 gives the Fibonacci numbers; starting from 2 and 1 gives the Lucas numbers. These grow quickly (the 100th Fibonacci number has 21 digits), so the calculator uses exact big-integer arithmetic. The ratio of consecutive terms approaches the golden ratio, about 1.6180339887, whatever two starting numbers you choose.

Identifying a pattern

In the “Identify pattern” tab, the calculator tests your terms in this order:

  1. Arithmetic: are all the differences equal?
  2. Geometric: are all the ratios equal (and no term zero)?
  3. Fibonacci-type: does every term equal the sum of the previous two?
  4. Quadratic: are the second differences equal? Then the terms fit an² + bn + c, like the square numbers 1, 4, 9, 16.

A short list can fit more than one rule, and any finite list can be continued in infinitely many ways. Give at least four or five terms for a reliable answer, and treat the result as the simplest rule that fits rather than the only one.

Frequently asked questions

How do I find the nth term of an arithmetic sequence?

Use aₙ = a₁ + (n − 1)d. For 5, 8, 11, … the first term is 5 and d = 3, so the 20th term is 5 + 19 × 3 = 62.

How do I know if a sequence is arithmetic or geometric?

Subtract neighbouring terms: if the differences are constant it is arithmetic. Divide neighbouring terms: if the ratios are constant it is geometric.

When does an infinite geometric series have a sum?

Only when the common ratio is strictly between −1 and 1. The sum is then a₁ ÷ (1 − r).

What is a Fibonacci-type sequence?

Any sequence where each term is the sum of the previous two. The classic Fibonacci numbers start 0, 1, 1, 2, 3, 5, 8, but you can start with any two whole numbers.