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.
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.
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.
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 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.
Given a mystery sequence, run these checks in order; they settle most homework and puzzle sequences in under a minute:
A handful of named sequences appear so often that knowing their rules pays off:
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.