Arithmetic and Geometric Sequence Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working
Algebra & Trig#35

Arithmetic & Geometric Sequences

nth term \(a_n\), sum \(S_n\), the first terms and, for geometric series with \(|r| < 1\), the infinite sum.

This sequence calculator handles both arithmetic sequences (add the same number each time) and geometric sequences (multiply by the same number each time). Give it the first term, the common difference or ratio and a term number n, and it returns the explicit formula for \( a_n \), the value of the nth term, the sum of the first n terms \( S_n \), and a list of the opening terms. For geometric sequences with \( |r| < 1 \) it also gives the infinite sum.

It works as an arithmetic sequence calculator and a geometric sequence calculator, with exact fractions where possible. It’s free and needs no sign-up.

Arithmetic and Geometric Sequence Calculator: Terms of a geometric sequence with ratio r = 0.65 shrink by the same factor…
Terms of a geometric sequence with ratio r = 0.65 shrink by the same factor each step, so its infinite sum converges.

How to use the sequence calculator

  1. Choose Arithmetic or Geometric in the Type menu.
  2. Enter the first term \( a_1 \).
  3. Enter d or r: the common difference for arithmetic, or the common ratio for geometric. Fractions such as 1/2 and negative numbers are fine.
  4. Enter n, the term you want, and press Calculate.

Formulas

ArithmeticGeometric
Ruleadd \( d \)multiply by \( r \)
nth term\( a_n = a_1 + (n - 1)d \)\( a_n = a_1 r^{n-1} \)
Sum of n terms\( S_n = \frac{n}{2}(a_1 + a_n) \)\( S_n = a_1\frac{1 - r^n}{1 - r} \), \( r \neq 1 \)
Infinite sumdiverges (unless all terms are 0)\( S_\infty = \frac{a_1}{1 - r} \) if \( \lvert r \rvert < 1 \)

Worked example: arithmetic

The sequence 3, 7, 11, 15, … has \( a_1 = 3 \) and \( d = 4 \), as loaded above.

Formula. \( a_n = 3 + 4(n - 1) \).

10th term. \( a_{10} = 3 + 4 \cdot 9 = 39 \).

Sum of 10 terms. \( S_{10} = \frac{10}{2}(3 + 39) = 5 \cdot 42 = 210 \).

Worked example: geometric

The sequence 2, 6, 18, 54, … has \( a_1 = 2 \) and \( r = 3 \).

$$a_8 = 2 \cdot 3^7 = 4374, \qquad S_8 = 2 \cdot \frac{1 - 3^8}{1 - 3} = \frac{2(1 - 6561)}{-2} = 6560$$

Because \( r = 3 > 1 \), the infinite series diverges.

Worked example: a converging geometric series

16, 8, 4, 2, … has \( r = \frac12 \). The sixth term is \( 16 \cdot \left(\frac12\right)^5 = \frac12 \) and \( S_6 = \frac{63}{2} = 31.5 \). Since \( |r| < 1 \), the infinite sum exists:

Water drops colliding and splashing, creating ripples and a column of water.

$$S_\infty = \frac{16}{1 - \frac12} = 32$$

The partial sums 16, 24, 28, 30, 31, 31.5, … creep up toward 32 without passing it.

Tips and common mistakes

  • Off-by-one errors. The exponent is \( n - 1 \), not n, because the first term has no factor of r.
  • Finding d or r. Subtract consecutive terms for d. Divide consecutive terms for r.
  • Negative ratios. With \( r = -2 \), terms alternate in sign: 1, −2, 4, −8, …
  • Decreasing arithmetic sequences. Use a negative d: 50, 43, 36, … has \( d = -7 \) and \( a_{12} = -27 \).

From sequences to series in calculus

A sum of infinitely many terms is a series, and deciding whether it converges is a central topic in Calculus 2. The geometric series is the model case; the geometric series formula guide covers it in depth, the ratio test compares other series to it, and Taylor series build functions out of infinite sums. For general series, use the series convergence calculator.

A calculator on a textbook page about differential and integral calculus.

Finding the formula from a list of terms

  1. Check the differences between terms. If they are constant, the sequence is arithmetic: 5, 9, 13, 17 has difference 4, so \( a_n = 5 + 4(n - 1) = 4n + 1 \).
  2. Next, if not, check the ratios. If they are constant, it is geometric: 3, 6, 12, 24 has ratio 2, so \( a_n = 3 \cdot 2^{n-1} \).
  3. Also, if neither works, look at second differences (a quadratic pattern such as 1, 4, 9, 16) or at a rule linking each term to earlier ones.

Worked example: sums

Arithmetic: the sum of the first 20 terms of 3, 7, 11, … The 20th term is \( 3 + 19 \times 4 = 79 \), so

$$S_{20} = \frac{20(3 + 79)}{2} = 820$$

Geometric: the sum of the first 10 terms of 2, 6, 18, … with \( r = 3 \):

$$S_{10} = \frac{2(3^{10} - 1)}{3 - 1} = 59{,}048$$

Recursive and explicit formulas

A recursive formula gives each term from earlier ones: \( a_1 = 5 \), \( a_n = a_{n-1} + 4 \). An explicit formula gives any term directly: \( a_n = 4n + 1 \). The Fibonacci sequence 1, 1, 2, 3, 5, 8, … is naturally recursive (\( F_n = F_{n-1} + F_{n-2} \)). Its explicit form (Binet’s formula) involves the golden ratio. You can use a sequence calculator for these.

Sequences in real life

  • Savings with fixed deposits grow arithmetically without interest, geometrically with it. See the compound interest calculator.
  • Depreciation: a car worth $20,000 that loses 15% a year is worth \( 20000 \times 0.85^5 \approx \$8{,}874 \) after 5 years, a geometric sequence with ratio 0.85.
  • Seating: a theatre with 20 seats in the first row and 2 more in each row has \( 20 + 2(n - 1) \) seats in row \( n \).

Common mistakes

  • Using \( n \) instead of \( n - 1 \) in \( a_n = a_1 + (n - 1)d \), which shifts every term by one step.
  • Applying the infinite geometric sum when \( |r| \ge 1 \): the series then diverges.
  • Mixing up the number of terms with the value of the last term in a sum.

Practice problems

  1. Find the 15th term of 7, 10, 13, …
  2. Find the sum of the first 8 terms of 1, 2, 4, 8, …
  3. Does the series \( 6 + 3 + 1.5 + \cdots \) converge? If so, to what?

Answers: 1. \( 7 + 14 \times 3 = 49 \). 2. \( 2^8 - 1 = 255 \). 3. Yes, \( r = 0.5 \), sum \( 6/(1 - 0.5) = 12 \).

Checking Your Calculator Results

After using the sequence calculator, always verify the output. The calculator provides the nth term, the sum of terms, and a list of initial terms. First, check the list of terms against your input. Do the terms increase or decrease as expected? Do they alternate sign if you used a negative common ratio?

Next, manually calculate the second or third term. Use a sequence calculator for arithmetic sequences. Add the common difference to the first term. For instance, if a1 = 5 and d = 3, the second term is 5 + 3 = 8. A geometric sequence requires multiplying the first term by the common ratio. If a1 = 4 and r = 2, the second term is 4 * 2 = 8.

Finally, quickly estimate the nth term. For arithmetic sequences, it grows linearly. For geometric sequences, it grows exponentially. If your result is vastly different from your estimate, re-check your inputs. This simple verification catches most input errors quickly.

When a Simple Calculation is Better

Sometimes, a full sequence calculator is more than you need. If you only want the next term in a sequence, simple addition or multiplication is faster. For example, given 10, 15, 20, …, the next term is clearly 25. You just add 5.

Similarly, if you need only the first few terms, mental math often suffices. Consider a sequence starting with 2, and a common ratio of 3. The first three terms are 2, 6, 18. This avoids unnecessary steps with a calculator.

However, for the 50th term or the sum of many terms, the calculator is invaluable. Use it for complex calculations or to confirm your manual work. For very basic steps, trust your arithmetic skills first.

Avoiding Common Input Errors

Careful input is crucial for accurate results from any sequence calculator. One frequent mistake is swapping the common difference (d) with the common ratio (r). Remember, d applies to arithmetic sequences, meaning addition. Conversely, r applies to geometric sequences, meaning multiplication.

Another error involves negative numbers. Ensure you correctly input negative signs for d or r if the sequence decreases or alternates. For example, a common difference of -2 makes terms smaller. A common ratio of -2 makes terms alternate in sign.

Always double-check the 'n' value. This is the term number you want to find. Confusing 'n' with the value of the nth term itself leads to incorrect outputs. A quick review of your entered values against the problem statement prevents these common slip-ups.

Related guides

Further reading

FAQ

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

Use \( a_n = a_1 + (n - 1)d \). For 3, 7, 11, … the 10th term is \( 3 + 9 \cdot 4 = 39 \).

How do I find the sum of a geometric sequence?

Use \( S_n = a_1\frac{1 - r^n}{1 - r} \). For an infinite sum with \( |r| < 1 \), use \( \frac{a_1}{1 - r} \).

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

If the differences between terms are constant, it’s arithmetic. If the ratios are constant, it’s geometric. Many sequences are neither.

What if r = 1?

Every term equals \( a_1 \), so \( S_n = n a_1 \). The calculator handles this case separately.

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators