Arithmetic & Geometric Sequence Calculator

Find the nth term, the sum of the first n terms and a list of terms for an arithmetic or geometric sequence, plus the infinite sum when it exists.

The amount added to get the next term. Negative for a decreasing sequence.
A whole number from 1 to 1,000,000.

Results

Term number 10 (aₙ)
39
Sum of the first 10 terms
210
The terms
3, 7, 11, 15, 19, 23, 27, 31, 35, 39

How it’s calculated

In an arithmetic sequence each term is the previous one plus a fixed amount, the common difference d (3, 7, 11, 15…). In a geometric sequence each term is the previous one times a fixed ratio r (2, 6, 18, 54…). The calculator gives the nth term, the sum of the first n terms (a series), and a list of the first terms (up to 20).

Arithmetic: aₙ = a₁ + (n − 1)d Sₙ = n(a₁ + aₙ) ÷ 2 Geometric: aₙ = a₁ × rⁿ⁻¹ Sₙ = a₁(1 − rⁿ) ÷ (1 − r) (r ≠ 1) if r = 1 every term equals a₁, so Sₙ = n × a₁ Infinite geometric sum (only when |r| < 1): S∞ = a₁ ÷ (1 − r)

Example (arithmetic): a₁ = 3, d = 4, n = 10. a₁₀ = 3 + 9×4 = 39 and S₁₀ = 10 × (3 + 39) ÷ 2 = 210. Example (geometric): a₁ = 2, r = 3, n = 5 gives 2, 6, 18, 54, 162 so a₅ = 162 and S₅ = 2(1 − 3⁵) ÷ (1 − 3) = 242.

Frequently asked questions

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

Subtract neighbouring terms. If the difference is always the same it is arithmetic. If instead dividing each term by the one before gives the same ratio, it is geometric.

When does a geometric series have an infinite sum?

Only when the ratio is between −1 and 1 (not including them). The terms then shrink toward zero and the total approaches a₁ ÷ (1 − r). For example 8 + 4 + 2 + 1 + … = 16.

What happens when the ratio is 1?

Every term equals the first term, so the sum of n terms is simply n × a₁. The usual formula would divide by zero, so it is handled separately.

Can the common difference or ratio be negative or a fraction?

Yes. A negative difference gives a decreasing sequence, and a negative ratio makes the terms alternate in sign. Use decimals such as 0.5 for fractions.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator