Math Solver Free

Sequence Calculator

Arithmetic and geometric sequences — terms, nth-term formula and sum, with every step shown.

The sequence
2, 5, 8, 11, 14, 17, 20, 23
Nth-term formula
aₙ = 3n − 1
Sum of the first 8 terms: 100

Step 1: aₙ = a₁ + (n − 1)d = 2 + (n − 1) × 3

Step 2: S8 = 8/2 × (2 × 2 + 7 × 3) = 100

Arithmetic and Geometric Sequences, Explained

A sequence is a list of numbers written in a definite order and built by a definite rule. Two rules dominate school mathematics: add the same amount every time (an arithmetic sequence) or multiply by the same amount every time (a geometric sequence). This sequence calculator builds either kind from just two ingredients — the first term and the difference or ratio — and returns the generated terms, the nth-term formula that describes the whole list at once, and the sum of the terms, with every substitution shown so the method is as visible as the answer.

The Formulas, Symbol by Symbol

Four symbols run everything. a₁ is the first term. n is a term's position (1st, 2nd, 3rd, …), and aₙ — read "a sub n" — is the term sitting in that position. In an arithmetic sequence, d is the common difference added at each step, and the nth term is aₙ = a₁ + (n − 1)d: you start at a₁ and take n − 1 jumps of size d, because the first term needs no jump at all. In a geometric sequence, r is the common ratio multiplied at each step, and aₙ = a₁ × r^(n−1) for the same reason — the exponent counts jumps, and there are n − 1 of them. The sums have their own pair: Sₙ = n/2 × (2a₁ + (n − 1)d) for arithmetic, Sₙ = a₁ × (rⁿ − 1) ÷ (r − 1) for geometric (with the special case r = 1, where Sₙ = n × a₁).

How to Use This Calculator

  1. Choose the type — Arithmetic or Geometric — with the tabs.
  2. Enter the first term a₁ and then the common difference d (arithmetic) or common ratio r (geometric). The defaults, a₁ = 2 and d = 3, generate 2, 5, 8, 11, …
  3. Set how many terms to generate (2 to 30).
  4. Read the panel: the terms in order, the nth-term formula, the sum of the terms shown, and the two substitution steps that produced the formula and the sum.
  5. Working the other way? If you have a list of terms and want its rule, use the nth term calculator instead — it detects the pattern for you.

Worked Example 1: Arithmetic, a₁ = 2, d = 3

  1. Generate: start at 2 and keep adding 3: 2, 5, 8, 11, 14, 17, 20, 23.
  2. Formula: aₙ = 2 + (n − 1) × 3, which expands and simplifies to aₙ = 3n − 1. Check it against the list: n = 1 gives 2, n = 4 gives 11. ✓
  3. Sum of the first 8: S₈ = 8/2 × (2 × 2 + 7 × 3) = 4 × 25 = 100 — and adding the list by hand (2 + 5 + 8 + 11 + 14 + 17 + 20 + 23) confirms 100.

Worked Example 2: Geometric, a₁ = 3, r = 2

Start at 3 and keep doubling: 3, 6, 12, 24, 48, 96. The formula is aₙ = 3 × 2^(n−1) — test n = 6: 3 × 2^5 = 3 × 32 = 96, matching the list. The sum of the first 6 terms is S₆ = 3 × (2^6 − 1) ÷ (2 − 1) = 3 × 63 = 189, again matching a hand total of 3 + 6 + 12 + 24 + 48 + 96. Notice how much faster the geometric list pulls away from the arithmetic one: multiplication compounds, addition does not.

Where Sequences Show Up

Arithmetic sequences model anything that changes by a fixed amount: a savings plan adding $50 a month, a taxi fare rising per kilometre, the total seats in rows that each hold 4 more than the row before. Geometric sequences model change by a fixed percentage: compound interest (r = 1.05 for 5% growth), population growth, radioactive decay (r = 0.5 per half-life) and the spread of a rumour. Recognising which of the two rules a situation follows is most of the modelling work — the formulas then do the rest.

Three Mistakes to Watch For

First, the off-by-one error: writing aₙ = a₁ + nd instead of a₁ + (n − 1)d, which shifts every term one place and fails the n = 1 check — always test your formula against the first term. Second, feeding a geometric pattern into arithmetic formulas (or vice versa): check differences and ratios before choosing. Third, dividing by zero in the geometric sum when r = 1: with ratio 1 every term is a₁, so the sum is just n × a₁, as the calculator handles automatically.

Go deeper with the geometric sequence formulas reference, or test whether an infinite series settles down with the series convergence calculator.

Frequently Asked Questions

What is the difference between an arithmetic and a geometric sequence?

An arithmetic sequence grows by adding the same amount — the common difference d — at every step, like 2, 5, 8, 11 with d = 3. A geometric sequence grows by multiplying by the same amount — the common ratio r — at every step, like 3, 6, 12, 24 with r = 2. Addition gives steady, linear growth; multiplication gives accelerating, exponential growth.

What is the nth-term formula for an arithmetic sequence?

aₙ = a₁ + (n − 1)d, where a₁ is the first term, d is the common difference and n is the position you want. For 2, 5, 8, 11 (a₁ = 2, d = 3) it simplifies to aₙ = 3n − 1, so the 10th term is 3 × 10 − 1 = 29. The (n − 1) appears because the first term is reached with zero jumps, not one.

How do you find the sum of the first n terms?

For an arithmetic sequence, Sₙ = n/2 × (2a₁ + (n − 1)d) — for 2, 5, 8, … the first 8 terms sum to 8/2 × (4 + 21) = 100. For a geometric sequence, Sₙ = a₁ × (rⁿ − 1) ÷ (r − 1), unless r = 1, when every term equals a₁ and the sum is simply n × a₁. This calculator shows both the formula and the substitution for your numbers.

Can this calculator work backwards from a list of terms?

Yes — that is the companion tool. If you already have the first terms and want the rule behind them, the nth term calculator examines the differences and ratios, identifies the sequence type, and returns the nth-term formula plus any term you ask for. This page works the other way: you supply the rule (a₁ and d or r) and it generates the terms.

What happens with a negative difference or a fraction ratio?

Both work exactly the same way. A negative difference gives a decreasing arithmetic sequence — 20, 17, 14, … with d = −3 and formula aₙ = −3n + 23. A ratio between 0 and 1 gives a shrinking geometric sequence — 81, 27, 9, … with r = 1/3. Enter the values as decimals (0.3333 for 1/3) and the calculator handles them.

Is this sequence calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser. Choose arithmetic or geometric, enter the first term and the difference or ratio, and the calculator generates the terms, the nth-term formula and the sum, with the substitutions written out.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team