All tools › Math Calculators › Algebra
Find the nth term and the sum of an arithmetic, geometric or Fibonacci-style sequence.
Find any term and the sum of a number sequence
A number sequence is a list of numbers that follows a rule. This number sequence calculator handles the three rules that come up most in school and in puzzles: arithmetic (add the same number each time), geometric (multiply by the same number each time) and Fibonacci-style (each term is the sum of the two before it).
Give it the starting values and how many terms you want. It returns the last of those terms, the sum of all of them, the formula with your numbers filled in, and a table of every term with a running total.
How to use the number sequence calculator
- Choose the Type of sequence.
- Type the First term.
- Fill in the one box that matches your type: Common difference (arithmetic), Common ratio (geometric) or Second term (Fibonacci-style). The other two are ignored.
- Type the Number of terms (n), a whole number from 1 to 300.
- Press the button. The large figure is term number n. Open the table to see every term, or use the Copy button to copy the first 20 terms as a list.
The formulas
Arithmetic: a(n) = a + (n – 1) x d, and S(n) = n x (first + last) / 2
Geometric: a(n) = a x r^(n – 1), and S(n) = a x (1 – r^n) / (1 – r)
Fibonacci-style: a(n) = a(n – 1) + a(n – 2)
Here a is the first term, d the common difference, r the common ratio, n the position of the term and S(n) the sum of the first n terms. When the ratio is exactly 1, every geometric term is the same and the sum is simply n x a.
A Fibonacci-style sequence has no simple formula of this kind, so the calculator builds it term by term. It also shows a handy shortcut for the sum: S(n) = a(n + 2) – a(2), the term two places further on minus the second term.
Worked examples
| Inputs | Term n | Sum of the first n terms | Working shown |
|---|---|---|---|
| Arithmetic, first term 5, difference 4, n = 20 | 81 | 860 | a(20) = 5 + 19 x 4 = 81 |
| Geometric, first term 2, ratio 3, n = 8 | 4,374 | 6,560 | a(8) = 2 x 3^7 = 4,374 |
| Fibonacci-style, terms 2 and 1, n = 10 | 76 | 198 | S(n) = a(n + 2) – a(2) = 199 – 1 = 198 |
For the arithmetic example the sum row reads 20 x (5 + 81) / 2 = 860 and the average of the terms is 43. The Fibonacci-style example lists 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, gives the next term as 123, and shows 1.617021277 as the ratio of the last two terms.
How to tell which type you have
| Test on neighboring terms | Type | Example |
|---|---|---|
| Subtracting gives the same number every time | Arithmetic | 3, 7, 11, 15 (difference 4) |
| Dividing gives the same number every time | Geometric | 5, 10, 20, 40 (ratio 2) |
| Each term equals the two before it added together | Fibonacci-style | 1, 1, 2, 3, 5, 8 |
A negative difference gives a falling arithmetic sequence. A negative ratio makes a geometric sequence switch signs from term to term.
Reading the extra rows
- Sum to infinity appears for geometric sequences. When the ratio is between -1 and 1, the sum of all the terms forever settles at a / (1 – r). With first term 3 and ratio 0.5 it is 6. For any other ratio the calculator says there is none.
- Ratio of the last two terms appears for Fibonacci-style sequences. For most starting values it moves toward the golden ratio, about 1.618, as n grows.
Limits and assumptions
- Up to 300 terms. If the terms become too large to display, the calculator asks for fewer terms or smaller numbers.
- Values are shown to 10 significant digits. Very large whole numbers are therefore rounded, not exact to the last digit.
- The first term is counted as term number 1, not term 0. If your textbook starts at 0, add 1 to n.
- It does not detect the rule from a list you paste in, and it does not cover other patterns such as squares or primes.
Frequently asked questions
What is the difference between a sequence and a series?
A sequence is the list of terms. A series is what you get when you add the terms together, which is the sum this calculator reports.
How do I get the classic Fibonacci numbers?
Choose Fibonacci-style and enter 1 as the first term and 1 as the second term. Entering 0 and 1 gives the same numbers with a 0 in front.
Can the common difference or ratio be a decimal or negative?
Yes. Both accept decimals and negative numbers, and so does the first term.
How do I find the common ratio from two terms?
Divide any term by the one before it. For an arithmetic sequence, subtract instead to get the common difference.
Related calculators
- Exponent Calculator – the powers behind geometric terms.
- Average Calculator – mean, median and more for any list of numbers.
- Compound Interest Calculator – geometric growth applied to money.
- Log Calculator – solve for how many terms it takes a geometric sequence to reach a value.
