Sequence Calculator

In short: An arithmetic sequence adds the same step every time (3, 8, 13, 18… with step 5); a geometric one multiplies by the same ratio (2, 6, 18, 54… with ratio 3). Enter the first term and the step or ratio and this calculator lists the terms, finds any nth term, and sums the first n terms — plus the Fibonacci sequence for good measure.

Arithmetic sequences

Rule: each term = the previous term + d, the common difference. The two formulas that answer almost every question:

nth term: an = a + (n − 1) × d
Sum of the first n terms: Sn = n ÷ 2 × (2a + (n − 1) × d) — equivalently, n × (first + last) ÷ 2, because the terms pair up symmetrically (that pairing is the trick the schoolboy Gauss famously used to sum 1 to 100 in seconds: 50 pairs of 101).

Example, the defaults: a = 3, d = 5. Terms: 3, 8, 13, 18, 23, 28… The 20th term is 3 + 19 × 5 = 98. The first ten terms sum to 10 ÷ 2 × (6 + 45) = 255. Arithmetic sequences model anything that changes by a fixed amount per step: simple interest, a salary rising by a flat amount each year, seats in rows of a theatre.

Geometric sequences

Rule: each term = the previous term × r, the common ratio.

nth term: an = a × r(n − 1)
Sum of the first n terms: Sn = a × (rn − 1) ÷ (r − 1), for r ≠ 1.

Example: a = 2, r = 3. Terms: 2, 6, 18, 54, 162… The 6th term is 2 × 3⁵ = 486, and the first five sum to 2 × (243 − 1) ÷ 2 = 242 — check by hand: 2 + 6 + 18 + 54 + 162 = 242. ✓ Geometric growth outruns arithmetic growth fast: with ratio 2 the terms double, which is the mathematics behind compound interest, population growth, viral spread and the grains-of-rice-on-a-chessboard legend, where the total passes a billion by the 31st square. Ratios between 0 and 1 shrink instead — that is depreciation and radioactive decay.

The Fibonacci sequence

A different animal: no difference, no ratio — each term is the sum of the two before it: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55… The 10th term is 55. There is no tidy a and d to enter, so the calculator simply generates it (your a and d inputs are ignored for this type) and reports the nth term and the running sum. Two patterns reward a look: the ratio between consecutive terms settles toward the golden ratio, about 1.618, and the sum of the first n terms always equals the (n + 2)th term minus 1 — for the first ten, 1 + 1 + 2 + … + 55 = 143 = 144 − 1. Fibonacci numbers surface in sunflower seed spirals and pinecones because that growth pattern packs seeds efficiently, and in computer science as the classic recursion exercise — which is also where its exponential growth teaches why naive recursion is slow.

Frequently asked questions

How do you find the nth term of an arithmetic sequence?

Use aₙ = a + (n − 1) × d, where a is the first term and d the common difference. The (n − 1) is there because the first term already exists before any steps are taken — reaching the 20th term takes 19 steps. For 3, 8, 13… the 20th term is 3 + 19 × 5 = 98. If you are given two terms instead, find d first: it is the gap between them divided by the number of steps between them.

What is the formula for the sum of a geometric series?

Sₙ = a × (rⁿ − 1) ÷ (r − 1), valid for any ratio except 1 (if r = 1 every term equals a and the sum is simply n × a). For 2, 6, 18, 54, 162 the sum of five terms is 2 × (3⁵ − 1) ÷ (3 − 1) = 242. When the ratio is a fraction between −1 and 1, the infinite sum also exists — a ÷ (1 − r) — which is how 0.999… can equal exactly 1: it is the geometric series 0.9 + 0.09 + 0.009… summed to infinity.

How can I tell if a sequence is arithmetic or geometric?

Check the gaps and then the ratios. If consecutive terms differ by the same amount (8 − 3 = 5, 13 − 8 = 5), it is arithmetic. If consecutive terms divide to the same value (6 ÷ 2 = 3, 18 ÷ 6 = 3), it is geometric. If neither is constant, it is something else — Fibonacci-style (each term built from earlier ones), quadratic (gaps themselves grow steadily), or a pattern with its own rule. Testing both differences and ratios takes seconds and settles most textbook sequences.

What is the 10th Fibonacci number?

55, counting the sequence as 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. (Some conventions start 0, 1, 1, 2… which shifts the numbering by one and makes the 10th term 34 — worth checking which convention a question uses.) The terms grow surprisingly fast for such a gentle rule: the 20th is 6,765 and the 50th is 12,586,269,025, because underneath the addition the sequence grows geometrically at the golden ratio, about ×1.618 per step.

Why does the sum of an arithmetic series pair up first and last terms?

Because the terms are evenly spaced, the first and last terms average to the same value as the second and second-to-last, and as every pair in between: in 3, 8, 13, 18, 23 the pairs 3 + 23, 8 + 18 and the middle 13 all centre on 13. So the total is just the number of terms × the average of the ends, n × (first + last) ÷ 2 — which is the same formula as n/2 × (2a + (n − 1)d) with the nth-term formula substituted for “last”.

Related tools

Worked examples verified in Node on 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.