Audited 29 Jul 2026·Last updated 31 Jul 2026·5 citations·Tier 2·0 uses

Sequence Calculator

Paste a list of numbers and find out which rule they follow — arithmetic, geometric, quadratic or Fibonacci-style — with the nth term rule and the next terms.

Sequence Calculator

At least 4 numbers, in order, separated by commas or spaces. Order matters — this is a sequence, not a dataset. Five or more terms gives a much more confident answer.
How many further terms to generate once the rule has been identified.
Pattern
Arithmetic — each term is 3 more than the one before it
Which of the four recognised rules your terms follow, and the parameter that defines it.
Next term
17
Rule for the nth term
aₙ = 2 + 3(n − 1)
Continued sequence
17, 20, 23, 26, 29
Terms you entered
5
Sum of your terms
40

Background.

Paste a list of numbers and this calculator works out which rule generated them, writes that rule down, and continues the sequence for as many terms as you want. It is the reverse of every other sequence page: instead of asking you for a first term and a common difference and handing back a value, it starts from the numbers you can actually see and tells you what they are.

That distinction matters more than it sounds. If you are staring at 2, 5, 8, 11, 14 and wondering what comes next, an arithmetic sequence calculator is no help until you have already spotted that it is arithmetic and worked out that the common difference is 3 — which is the whole job. This page does that step. It reports the family in plain words, gives you the nth-term rule you can write in a homework answer, and generates the continuation.

Four rules are recognised, and the page names all four rather than pretending to be a universal pattern-finder. Arithmetic: every step adds the same amount. Geometric: every step multiplies by the same factor. Quadratic: the gaps between terms themselves grow by a constant amount, which is what perfect squares, triangular numbers and any second-degree polynomial do. Fibonacci-style: each term is the sum of the two before it, from any starting pair — not just 1 and 1. If your numbers fit none of those, the calculator says so and stops. It does not fit a curve to unrecognised data and it does not extrapolate from the last two terms, because a confident wrong answer about what comes next is worse than an honest refusal.

The order the four tests run in is fixed and worth knowing, because short sequences can genuinely satisfy more than one rule. The list 1, 2, 3 is arithmetic with a difference of 1 and also satisfies the Fibonacci rule, since 3 = 1 + 2. Testing arithmetic first means the simpler description wins, which is almost always the one intended. The full order is arithmetic, then geometric, then quadratic, then Fibonacci-style.

A minimum of four terms is required. With three, the quadratic test has only one second difference to look at and the Fibonacci test only one sum to check, so almost any three numbers satisfy several rules at once and the answer would be close to meaningless. Four is the smallest count at which the two-step families each get two independent checks. Five or more is better, and the page says so rather than quietly giving you a shaky verdict.

One technical detail that changes results and is therefore stated openly: your numbers are read directly from the text you typed into an exact decimal engine, never through binary floating point. That is why 0.1, 0.2, 0.3, 0.4 is correctly identified as arithmetic with a common difference of exactly 0.1. A calculator that goes through ordinary floating-point arithmetic computes 0.3 − 0.2 as 0.09999999999999998, finds the differences unequal, and misses the pattern entirely. Differences are therefore compared exactly, with no tolerance at all. Ratios cannot be compared exactly — one third has no finite decimal expansion — so the geometric test uses a relative tolerance of one part in a trillion, which is why 81, 27, 9, 3 is correctly recognised even though its ratio never terminates.

Once you know the family, the dedicated pages go deeper: arithmetic sequence for the nth term and partial sums, geometric sequence for the convergence test on infinite series, and fibonacci for exact large-index values.

What is sequence calculator?

A number sequence is an ordered list where position matters — the first term, the second term, and so on — and a sequence rule is a description of how each term is produced. This calculator tests an entered list against four standard families. An arithmetic sequence has a constant difference between consecutive terms, so aₙ = a₁ + d(n − 1); OpenStax College Algebra 2e §9.2 defines it as the case where 'the difference between any two consecutive terms is a constant'. A geometric sequence has a constant ratio, aₙ = a₁r^(n−1), which §9.3 describes as increasing or decreasing 'by a constant factor called the common ratio'. A quadratic sequence has a constant second difference and is generated by a second-degree polynomial An² + Bn + C; the perfect squares and the triangular numbers are the two most familiar examples. A Fibonacci-style sequence obeys the two-step recurrence aₙ = aₙ₋₁ + aₙ₋₂ from any starting pair, generalising the classic Fibonacci numbers. These four cover the overwhelming majority of sequences that appear in school and competition problems; sequences built from other rules — primes, factorials, digit patterns, or anything requiring cleverness rather than arithmetic — are outside this page's scope and it declines them explicitly.

How to use this calculator.

  1. Type or paste your numbers in order, separated by commas or spaces. At least four are needed; five or more gives a firmer answer.
  2. Set how many further terms you want generated, from 1 to 50.
  3. Read the pattern line first — it names the family and the parameter, for example 'each term is 3 more than the one before it'.
  4. Use the nth-term rule for homework and the continued sequence to check your own working.
  5. If the calculator refuses, your numbers do not fit any of the four recognised rules. Double-check for a typo or a term entered out of order before assuming the pattern is exotic.

The formula.

Δ constant → arithmetic · ratio constant → geometric · Δ² constant → quadratic · aₙ = aₙ₋₁ + aₙ₋₂ → Fibonacci-style

The calculator takes your terms and runs four structural tests in a fixed order. First it takes every first difference aₖ − aₖ₋₁ and checks whether they are all identical; if so the sequence is arithmetic and the rule is aₙ = a₁ + d(n − 1). Next it takes every ratio aₖ ⁄ aₖ₋₁ — skipping this test entirely if any term is zero, since a geometric sequence never contains one — and checks whether those agree; if so the rule is aₙ = a₁r^(n−1). Third it takes second differences, the changes in the first differences, and checks those for constancy. A constant second difference Δ² means the terms come from a quadratic, and the coefficients follow from a₁, the first difference Δ₁ and Δ² as A = Δ²/2, B = Δ₁ − 3Δ²/2 and C = a₁ − Δ₁ + Δ². You can check that derivation on the squares 1, 4, 9, 16: a₁ = 1, Δ₁ = 3, Δ² = 2, giving A = 1, B = 3 − 3 = 0 and C = 1 − 3 + 2 = 0, so the rule reduces to aₙ = n² as it should. Last it checks whether every term from the third onward equals the sum of the two before it. The order matters because 1, 2, 3 satisfies both the arithmetic and the Fibonacci tests, and the simpler description is almost always the intended one. On precision: your numbers are parsed straight from the characters you typed into a decimal engine, so differences are compared with no tolerance whatsoever — 0.1, 0.2, 0.3 has an exactly constant difference here, where floating-point arithmetic would see 0.09999999999999998 and reject it. Ratios get a relative tolerance of 1e-12 because a ratio such as one third has no finite decimal form. Nothing is rounded during detection; the three numeric outputs are rounded once at the end to 10 decimal places, and the text outputs show 12 significant figures, which is why a repeating ratio prints as 0.333333333333 rather than as a fraction.

A worked example.

Example

Enter 2, 5, 8, 11, 14 and ask for five more terms. The first test takes the differences: 5 − 2 = 3, 8 − 5 = 3, 11 − 8 = 3, 14 − 11 = 3. They are all identical, so the pattern output reports an arithmetic sequence where each term is 3 more than the one before it, and the later three tests are never run. With a first term of 2 and a common difference of 3, the rule output reads aₙ = 2 + 3(n − 1). The next term output is the sixth term, 2 + 3 × 5 = 17, and the continued sequence output carries on 17, 20, 23, 26, 29. The terms-entered output confirms 5 numbers were read, and the sum output adds them to 40 — which you can check against the arithmetic series formula, 5 × (2 + 14) ⁄ 2 = 40. If you wanted the hundredth term or the total of the first fifty terms rather than the next five, the arithmetic sequence calculator takes it from here, now that you know a₁ = 2 and d = 3.

terms2, 5, 8, 11, 14
extend By5

Frequently asked questions.

What patterns can this calculator recognise?
Four families: arithmetic (a constant difference between terms), geometric (a constant ratio), quadratic (a constant second difference, which covers perfect squares, triangular numbers and any second-degree polynomial), and Fibonacci-style (each term the sum of the two before it, from any starting pair). Sequences built from prime numbers, factorials, digit patterns or one-off tricks are outside its scope, and it declines them rather than guessing.
Why does it need at least four numbers?
Because with three, several rules fit at once and the answer would be close to meaningless. The quadratic test needs at least two second differences to compare and the Fibonacci test at least two recurrences to check, and four terms is the minimum that provides both. Even four is thin for a quadratic verdict, which rests on a single equality there — five or more terms makes the identification much firmer.
What happens if my sequence fits more than one rule?
The tests run in a fixed order — arithmetic, then geometric, then quadratic, then Fibonacci-style — and the first match wins. That is a deliberate choice, not an accident of implementation. The list 1, 2, 3 is arithmetic with a difference of 1 and also satisfies the Fibonacci rule since 3 = 1 + 2, and 'add 1 each time' is almost certainly the description you wanted.
Why did it refuse my sequence?
Because the numbers do not follow any of the four rules it recognises. That is a real answer, not a failure — the alternative would be to extrapolate from the last two terms and hand you a next number with no justification behind it. Before assuming your pattern is exotic, check for a typo, a missing term, or terms entered out of order, since order is what makes a sequence a sequence.
Why does a ratio show as 0.333333333333 instead of 1/3?
Because the ratio genuinely has no finite decimal expansion and the page reports 12 significant figures. The sequence 81, 27, 9, 3 is correctly identified as geometric and the next term is exactly 1; only the printed ratio is truncated. This is also why the geometric test compares ratios with a small tolerance while the arithmetic test compares differences exactly — differences of decimal inputs are exact, ratios are not.
Does the order of my numbers matter?
Completely. This is a sequence tool, not a statistics tool: position is the entire subject. Reordering 2, 5, 8, 11, 14 into 14, 2, 11, 5, 8 destroys the pattern and the calculator will refuse it. Pages such as mean, median and mode or the quartile calculator take the same comma-separated input but treat it as an unordered dataset, which is a different question.
How is this different from a linear regression calculator?
Regression fits a best line through paired data and always returns one, along with a measure of how well it fits. This page tests for an exact rule over a single indexed list and refuses when none holds. If your data is measured and noisy, regression is what you want. If your numbers came from a rule and you want to know which rule, this page is.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 977 calculators remain free
  • No billing is enabled
Coming soon