Maths

Number Sequence Calculator

Find the nth term and the sum of an arithmetic or geometric sequence.

By Nitin Raturi · Last reviewed

Your sequence

How to use the Number Sequence Calculator

Find any term of an arithmetic or geometric sequence, and the sum of its terms.

  1. Choose arithmetic or geometric.
  2. Enter the first term and the difference or ratio.
  3. Enter how many terms.
  4. Read the nth term, the sum and the first terms listed.

Good to know

  • Find the difference by subtracting neighbouring terms.
  • Find the ratio by dividing neighbouring terms.
Sequence type

Sequence type

Arithmetic sequences add the same number each time; geometric sequences multiply by the same number.

How to fill it in

  • 3, 7, 11, 15 is arithmetic (+4).
  • 2, 6, 18, 54 is geometric (× 3).

First term

The number the sequence starts with.

How to fill it in

  • Enter any number, positive or negative.

Example

1 + 2 + … + 100 = 5,050.

Difference or ratio

What is added each time (arithmetic) or multiplied each time (geometric).

How to fill it in

  • Use a negative difference to count down, or a ratio below 1 to shrink.

Example

Halving from 81: the 6th term is 2.53125 and the six terms total 159.46875.

Number of terms

Which term to find, and how many terms to add up.

How to fill it in

  • Enter a whole number from 1 to 10,000.

Example

3, 7, 11, … has a 20th term of 79; 2, 6, 18, … has a 10th term of 39,366.

Term 20

79

Term 20 is 79, and the first 20 terms add up to 820.

3, 7, 11, 15, 19, 23, 27, 31, 35, 39, …

aₙ = a + (n − 1)d and Sₙ = n(2a + (n − 1)d) ÷ 2.

How this calculator works

  1. Step 1Arithmetic+ dAdd the same difference each time.
  2. Step 2Geometric× rMultiply by the same ratio each time.
  3. Step 3Closed formsaₙ and SₙJump straight to any term or sum.

You do not need to list every term. A closed formula gives the nth term and the sum of the first n terms in one step.

Worked example: 3, 7, 11, …

20th term and sum of 3, 7, 11, …
Term
aₙ = a + (n − 1)d
Sum
Sₙ = n(2a + (n − 1)d) ÷ 2
  • aFirst term 3
  • dDifference 4
  • nTerms 20
  1. 20th term3 + 19 × 479
  2. Sum of 2020 × (6 + 76) ÷ 2820

The same formula gives the famous school sum 1 + 2 + … + 100 = 5,050.

Growing or shrinking

  • 2, 6, 18, …39,36610th term with ratio 3; the ten terms total 59,048.
  • 81, 40.5, …2.531256th term with ratio 0.5; the six total 159.46875.

A ratio above 1 grows fast; a ratio between 0 and 1 shrinks towards zero.

Assumptions and limits

  • Any startNegative and decimal terms work.
  • Ratio 1Handled without dividing by zero.
  • Huge numbersResults past 10³⁰⁰ are reported, not shown.
  • Ten listedThe first ten terms are shown.

Sequences grow by a fixed step or a fixed ratio. Geometric growth is the same maths as compound interest.

A geometric sequence with ratio 1.1 is money growing at 10% a year; the compound interest calculator applies that to deposits. To raise a number to any power, use the exponent calculator.

Common mistakes

  • Mistake: Using n instead of n − 1 for the nth term.

    Instead: The first term already counts once.

  • Mistake: Treating 2, 4, 8 as arithmetic.

    Instead: Check: do you add or multiply?

  • Mistake: Dividing by r − 1 when r = 1.

    Instead: The sum is simply n × a.

Checking the method

A separate script builds each term in exact fractions and adds them in a loop, without the closed formulas.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

What is the 20th term of 3, 7, 11, …?

79: 3 + 19 × 4. The first 20 terms add to 820.

What is 1 + 2 + … + 100?

5,050, from n(first + last) ÷ 2 = 100 × 101 ÷ 2.

How do I find a term of a geometric sequence?

Multiply the first term by rⁿ⁻¹. The 10th term of 2, 6, 18, … is 39,366.

What happens with a ratio below 1?

Terms shrink: halving from 81, the 6th term is 2.53125.

How do I tell the two kinds apart?

If neighbouring terms differ by the same amount it is arithmetic; if they divide to the same ratio it is geometric.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.