Boneyard Tools

Arithmetic and Geometric Sequence Calculator

Build an arithmetic or geometric sequence from its first term and a common difference or ratio. Enter how many terms you want to see the nth term, the sum of those terms and the full list, all updating as you type.

How to calculate a sequence

  1. Pick arithmetic (add a fixed step) or geometric (multiply by a fixed ratio).
  2. Enter the first term and the common difference d or common ratio r.
  3. Enter n, the number of terms, to read the nth term, the sum and the list.

Examples

Arithmetic: start 2, step 3, 5 terms

type = arithmetic, a1 = 2, d = 3, n = 5
Terms 2, 5, 8, 11, 14. nth term 14, sum 40

Geometric: start 2, ratio 3, 4 terms

type = geometric, a1 = 2, r = 3, n = 4
Terms 2, 6, 18, 54. nth term 54, sum 80

Frequently asked questions

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

An arithmetic sequence adds the same amount, the common difference d, to get from one term to the next, so the gaps are constant. A geometric sequence multiplies by the same amount, the common ratio r, so each term is a fixed multiple of the one before. Arithmetic sequences grow in a straight line, while geometric sequences grow or shrink exponentially.

How do I find the nth term and the sum?

For an arithmetic sequence the nth term is a1 + (n - 1)d and the sum of the first n terms is n/2 times (2*a1 + (n - 1)d). For a geometric sequence the nth term is a1 * r^(n-1) and the sum is a1 * (r^n - 1) / (r - 1), or simply a1 * n when r is exactly 1. This calculator applies these formulas and also lists every term so you can check the pattern.

Can a geometric series have an infinite sum?

Yes, but only when the common ratio satisfies |r| < 1, so the terms keep shrinking toward zero. In that case the infinite sum converges to a1 / (1 - r). When |r| is 1 or more the terms do not shrink, the running total keeps growing, and the infinite sum does not converge to a finite value.

What values can the first term, difference and ratio take?

The first term, the common difference and the common ratio can each be any finite number, including negatives and decimals. A negative difference makes an arithmetic sequence count down, and a negative ratio makes a geometric sequence alternate between positive and negative terms. The number of terms n must be a whole number of at least 1.

Does this calculator send my numbers anywhere?

No. Every calculation runs entirely in your browser, so the first term, the difference or ratio and your results never leave your device.

Related tools