Number Sequence Calculator

Generate an arithmetic, geometric or Fibonacci sequence from its first term and its rule: see every term in order, the nth term formula, the sum of the series and a chart of how the sequence grows.

What you get
  • Three sequence familiesArithmetic, geometric and Fibonacci in one tool.
  • Terms, formula and sumThe closed-form formulas filled in with your numbers.
  • Growth chartWatch the sequence climb term by term as you type.

Build your sequence

Results update as you type

Each term adds a fixed number, the common difference.

Runs entirely in your browser. Nothing you type is sent or saved

Number sequence guide

What a number sequence is

A number sequence is an ordered list of numbers that follows a rule. Each number in the list is a term, and when the rule is known, the whole sequence can be written from a tiny amount of information: a starting value and a pattern. The rule is usually written as a formula for the nth term, so you can jump straight to term 1,000 without listing the 999 before it. When the terms are added together the result is called a series, which is why every result here shows both the terms and their sum.

Three families cover most of the sequences people meet in school and in daily life, and this number sequence calculator handles all of them: arithmetic sequences that add a fixed amount, geometric sequences that multiply by a fixed amount, and the Fibonacci sequence, where each term is built from the two before it.

Arithmetic sequences: adding the same amount

An arithmetic sequence changes by a fixed common difference d from term to term. If the difference is positive the sequence climbs, if it is negative the sequence falls, and if it is zero every term is the same. Two formulas describe everything:

an = a1 + (n - 1) · d

The nth term: start at the first term and add the difference n - 1 times.

Sn = n(a1 + an) ÷ 2

The sum of the first n terms: the average of the first and last term, times how many terms there are.

Worked example: first term 2, difference 3, eight terms. The sequence runs 2, 5, 8, 11, 14, 17, 20, 23. The eighth term is 2 + (8 - 1) × 3 = 23, and the sum is 8 × (2 + 23) ÷ 2 = 4 × 25 = 100. The sum formula works because an arithmetic sequence climbs in equal steps, so pairing the first term with the last, the second with the second-to-last and so on always produces the same total, 25 here, and there are four such pairs.

Geometric sequences: multiplying by the same amount

A geometric sequence multiplies each term by a fixed common ratio r. This one change, from adding to multiplying, makes geometric sequences grow (or shrink) dramatically, because the step size itself keeps changing.

an = a1 · rn-1

The nth term: the first term multiplied by the ratio n - 1 times.

Sn = a1(rn - 1) ÷ (r - 1)

The sum of the first n terms, valid whenever r ≠ 1. For r = 1 the sequence is constant and the sum is simply a1 × n.

Worked example: first term 3, ratio 2, six terms. The sequence runs 3, 6, 12, 24, 48, 96. The sixth term is 3 × 25 = 96, and the sum is 3 × (26 - 1) ÷ (2 - 1) = 3 × 63 = 189. Doubling feels gentle at first, but it is the same curve that turns a single penny into millions over 30 doublings: term 31 of this sequence would be 3,221,225,472.

The ratio does not have to be 2. A ratio between -1 and 1 shrinks the terms toward zero, which is why repeated halving never quite reaches the wall. A negative ratio makes the terms alternate sides of zero, and a ratio of exactly 1 repeats the same term forever.

The Fibonacci sequence and the golden ratio

The Fibonacci sequence starts with 1 and 1, and every term after that is the sum of the two before it:

Fn = Fn-1 + Fn-2,   F1 = F2 = 1

The first ten terms: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, which add up to 143.

Two facts make this sequence famous. The first is how often it appears in nature: the spirals of sunflower seeds, pinecones and shells tend to land on Fibonacci numbers, because each new seed grows where it has the most room, and this rule of turning produces exactly this count. The second is the golden ratio. Divide each term by the one before it: 1 ÷ 1 = 1, 2 ÷ 1 = 2, 3 ÷ 2 = 1.5, 5 ÷ 3 = 1.667, 8 ÷ 5 = 1.6, and the quotients swing ever closer to 1.6180339887, a number the Greeks called phi. The calculator shows this ratio for any Fibonacci sequence you generate, and for ten terms it already sits at 55 ÷ 34 = 1.617647, correct to two decimal places.

There is also a neat shortcut for the sum: the total of the first n Fibonacci terms equals Fn+2 - 1. For ten terms that is F12 - 1 = 144 - 1 = 143, which matches the direct addition exactly.

How to find the rule behind a list of numbers

Given a mystery sequence, run these checks in order; they settle most homework and puzzle sequences in under a minute:

  • Subtract neighbors: if the gaps are constant, the sequence is arithmetic and the gap is d. For 4, 9, 14, 19 the gaps are all 5, so an = 4 + (n - 1) × 5.
  • Divide neighbors: if the quotients are constant, the sequence is geometric and the quotient is r. For 80, 40, 20, 10, every quotient is 0.5.
  • Check the second differences: if the gaps change by a constant amount, the sequence follows a square rule. The gaps in 1, 4, 9, 16, 25 are 3, 5, 7, which themselves rise by 2: these are the square numbers.
  • Try adding the last two: sums of previous terms point to Fibonacci-style rules, which are called recursive because each term is defined from earlier ones.
  • Watch for mixed patterns: alternating signs usually mean a simple rule multiplied by (-1)n, and two interleaved rules hide in lists like 2, 10, 4, 20, which alternate one sequence with a doubled copy of it.

Famous sequences worth knowing

A handful of named sequences appear so often that knowing their rules pays off:

  • Triangular numbers: 1, 3, 6, 10, 15, the counts of objects arranged in a triangle. The nth term is n(n + 1) ÷ 2, which is also the sum 1 + 2 + ... + n: the tenth triangular number is 55.
  • Square numbers: 1, 4, 9, 16, 25, the values of n². Each one is the sum of two consecutive triangular numbers, since 10 + 15 = 25.
  • Powers of two: 1, 2, 4, 8, 16, the geometric sequence with a1 = 1 and r = 2. Their running total is always one less than the next power: 1 + 2 + 4 + 8 = 15.
  • Prime numbers: 2, 3, 5, 7, 11, the numbers divisible only by 1 and themselves. No formula generates them in order, which is exactly what makes them interesting.
  • Perfect numbers: rare cousins of the squares. A perfect number equals the sum of its divisors, as 6 = 1 + 2 + 3 does. Only a few dozen are known.

Where sequences show up in real life

  • Simple vs compound interest: money earning simple interest forms an arithmetic sequence, because the same dollars of interest are added each period. Money earning compound interest forms a geometric sequence, because interest is paid on interest. A $1,000 balance at 5% simple interest grows 1,000, 1,050, 1,100, 1,150; at 5% compound it grows 1,000, 1,050, 1,102.50, 1,157.63, and the gap widens every year.
  • Construction and design: staircase risers, shelf spacing and tiled rows are arithmetic by design, since every step must differ from the last by exactly the same amount for the result to feel even.
  • Population and decay models: a population that grows by a fixed percentage each year is geometric, and so is radioactive decay, where the ratio is a number below 1. The chart above is the quickest way to feel the difference between adding 10% and adding 10 units.
  • Computer science: the Fibonacci sequence appears in algorithm analysis, in the Fibonacci heap data structure, and in Euclid's algorithm, where the worst case arrives precisely with consecutive Fibonacci inputs.

Using the calculator well

  • Pick the family that matches the rule: if the question says "adds 3 each time", choose arithmetic with difference 3. If it says "doubles" or "grows by 10%", choose geometric with ratio 2 or 1.1. A percent change is always a ratio: 10% growth means r = 1.10, not 10.
  • Negative and decimal values are welcome: a difference of -5 produces a falling sequence, a ratio of 0.5 produces a shrinking one, and a ratio of -2 alternates sides of zero. Decimals such as 2.5 or 0.001 work in every field.
  • Mind the number of terms: you can generate up to 500 terms. Geometric sequences with a ratio above 1 grow so fast that the values eventually exceed what a computer number can hold; when that happens the calculator stops at the last term it can represent and tells you where it stopped.
  • Check the sum against the formula: the summary table writes the closed-form sum formula with your numbers already substituted. Comparing it with the plain list of terms ("2 + 5 + 8 + ... + 23") is a good way to see why the shortcut works.
  • Read the chart before the table: a straight rising line means arithmetic growth; a curve that bends upward means geometric. If the line flattens toward a ceiling, your ratio is below 1 and the terms are converging.

Common questions

An arithmetic sequence adds the same amount to each term to get the next one (2, 5, 8, 11), while a geometric sequence multiplies each term by the same amount (3, 6, 12, 24). The quick test is division: in an arithmetic sequence the gaps between terms are equal, so subtracting neighbors gives a constant; in a geometric sequence dividing neighbors gives a constant.

Use the closed-form formulas the calculator prints for you: n(a1 + an) ÷ 2 for an arithmetic sequence, and a1(rⁿ - 1) ÷ (r - 1) for a geometric one with r ≠ 1. These give the exact total of any number of terms in one step, which is why the results table shows the formula filled in with your own values.

It is the sequence that starts 1, 1, and continues by adding the two previous terms: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. It was introduced to Europe by Leonardo of Pisa, known as Fibonacci, in his 1202 book Liber Abaci, in a puzzle about the growth of a rabbit population. It now appears everywhere from sunflower seed spirals to the analysis of algorithms.

Because the limit of F(n) ÷ F(n-1) is the number x that satisfies x = 1 + 1/x: each term is one times the previous term plus one times the term before that, so in the limit the ratio must obey that equation. Solving x² - x - 1 = 0 gives x = (1 + √5) ÷ 2 = 1.6180339887, the golden ratio. The early ratios (1, 2, 1.5, 1.667, 1.6) oscillate around it and close in fast.

Yes to all three, and each produces a recognizable shape. A negative ratio makes terms alternate above and below zero (2, -6, 18, -54). A ratio below 1 shrinks the terms toward zero, so the sequence converges. A ratio of exactly 1 repeats the first term forever, and the sum is then just the first term times the count. The one case worth avoiding is r = 0, which turns every term after the first into zero.

It produces a decreasing arithmetic sequence: 100, 95, 90, 85 has a difference of -5. Loan balances being paid down in equal installments work exactly this way when interest is ignored. A difference of 0 gives a constant sequence, which is also valid.

Up to 500. For geometric sequences with a ratio larger than 1, the terms can overflow before term 500 because each multiplication makes the next value bigger; when a term no longer fits as a number, the calculator stops there and flags it. All results are computed with ordinary double-precision numbers, so integer values stay exact up to 9,007,199,254,740,991 and are close approximations beyond that. Fibonacci terms are exact through term 78, and Fibonacci term 500 has 105 digits.

A sequence is the ordered list itself: 2, 5, 8, 11. A series is what you get when you add the terms of a sequence together: 2 + 5 + 8 + 11 = 26. Every result on this page shows both, because the two answers to "what happens next" are the next term and the running total, and different problems need different ones.

Always. Any finite list of numbers is matched by infinitely many formulas, so the classic "what comes next" puzzle never has a unique answer until the rule is stated. The checks in the guide above just rank the simplest candidates first. That is also why two interleaved sequences (one list made of 2, 4, 6, 8 and 10, 20, 30, 40 alternating) fool people who assume a single rule.

For an arithmetic sequence, solve a1 + (n - 1)d = target for n. For a geometric one, use n = 1 + log(target ÷ a1) ÷ log(r), and round up. Example: the sequence 3, 6, 12, 24 first passes 10,000 at term n = 1 + log(3,333.3) ÷ log(2) ≈ 1 + 11.71 = 12.71, so term 13, whose value is 3 × 2¹² = 12,288, is the first one over the line.

No. Every calculation runs in your browser. Nothing is stored or transmitted.

From first term to final sum, in seconds.

Browse all math calculators