Skip to content

Number Sequence Calculator: Arithmetic, Geometric, Fibonacci

Find any term and the sum of arithmetic, geometric and Fibonacci sequences, or paste a list to spot the pattern and predict the next terms, with formulas explained.

4 min read

A number sequence is a list of numbers that follows a rule. Spotting the rule lets you predict any later term and add up as many terms as you like. Sequences appear in savings plans, loan payments, population growth, puzzles and nature. Our number sequence calculator works out terms and sums for arithmetic, geometric and Fibonacci sequences, and can detect the pattern in a list you paste in. This guide explains each type and its formulas.

How to use the calculator

  1. Sequence type: arithmetic, geometric, Fibonacci, or find the pattern.
  2. First term a₁: where the sequence starts.
  3. Difference d or ratio r: the step between terms.
  4. Term number n: which term you want.
  5. Terms (find the pattern only): paste a list such as 2, 6, 18, 54.

The default is an arithmetic sequence starting at 3 with difference 4. The 10th term is 39 and the sum of the first 10 terms is 210: 3, 7, 11, 15, 19, 23, 27, 31, 35, 39.

Arithmetic sequences

Each term adds the same amount, the common difference d.

Default example: a₁₀ = 3 + 9 × 4 = 39. S₁₀ = 10 × (3 + 39) ÷ 2 = 210.

The sum formula comes from pairing the first and last terms, the second and second-to-last, and so on. Each pair adds to the same total. Legend says the young Gauss used this to add 1 to 100 in seconds: 100 × 101 ÷ 2 = 5,050.

Real example: saving $50 in the first month and $10 more each month after. In month 12 you save 50 + 11 × 10 = $160, and over the year 12 × (50 + 160) ÷ 2 = $1,260.

Geometric sequences

Each term multiplies by the same amount, the common ratio r.

Example: a₁ = 2, r = 3. The terms are 2, 6, 18, 54, 162, 486, 1,458, 4,374. The 8th term is 4,374 and the sum of the first 8 is 6,560.

Infinite sums. If the ratio is between −1 and 1, the terms shrink and the sum settles on a finite total:

Starting at 8 with r = 0.5: 8 + 4 + 2 + 1 + 0.5 + … = 8 ÷ 0.5 = 16. If |r| is 1 or more, the sum diverges.

Compound interest is a geometric sequence: each year's balance is the previous one times (1 + rate). The compound interest calculator and its guide cover that in depth.

The Fibonacci sequence

Each term is the sum of the two before it, starting 1, 1:

1, 1, 2, 3, 5, 8, 13, 21, 34, 55

The 10th Fibonacci number is 55, and the first 10 add up to 143. A neat fact: the sum of the first n Fibonacci numbers is F(n + 2) − 1, and F(12) = 144.

The ratio of consecutive Fibonacci numbers approaches the golden ratio, about 1.618. Fibonacci numbers turn up in sunflower seed spirals, pine cones and the branching of plants.

Finding the pattern

Choose "find the pattern" and paste a list. The calculator checks for:

  • Arithmetic: constant difference. 5, 8, 11, 14 → rule aₙ = 5 + (n − 1) × 3, next terms 17, 20, 23.
  • Geometric: constant ratio. 2, 6, 18, 54 → rule aₙ = 2 × 3ⁿ⁻¹, next terms 162, 486, 1,458.
  • Quadratic: constant second difference. 1, 4, 9, 16, 25 → second difference 2, next terms 36, 49, 64 (the square numbers).

To find differences by hand, subtract each term from the next. If those differences are not constant, take their differences too.

Other famous sequences

SequenceTermsRule
Square numbers1, 4, 9, 16, 25n²
Triangular numbers1, 3, 6, 10, 15n(n + 1) ÷ 2
Cube numbers1, 8, 27, 64, 125n³
Powers of 21, 2, 4, 8, 162ⁿ⁻¹
Primes2, 3, 5, 7, 11No simple formula

The exponent calculator helps with powers, and the prime factorization calculator with primes.

Frequently asked questions

How do I tell arithmetic and geometric sequences apart?

Subtract consecutive terms. If the difference is constant, it is arithmetic. If not, divide consecutive terms; a constant ratio means geometric.

Can the common difference or ratio be negative?

Yes. A negative difference makes an arithmetic sequence fall. A negative ratio makes a geometric sequence alternate between positive and negative.

When does an infinite geometric series have a sum?

Only when the ratio is strictly between −1 and 1, so the terms shrink towards zero.

Does the Fibonacci sequence start at 0 or 1?

Both conventions exist. The calculator starts at 1, 1. Starting at 0 shifts every term one place.

Share

Try it yourself

Run your own numbers with our free tool: Number sequence calculator. No sign-up, and it works on any device.

Open the calculator