aₙ

Arithmetic Sequence Calculator

The nth term, the sum of the first n terms and the common difference of an arithmetic sequence, from the first term and the difference or from any two terms, with the first terms listed and a check of whether a value is in the sequence.

Math & AlgebraRuns in your browser

Result…

I know

The value the sequence starts with.

What is added each step. Negative if the terms go down.

Gives the nth term and the sum of terms 1 to n.

Find the position of a value

 

…

How it's calculated

nth term: aₙ = a₁ + (n − 1) d
Sum of n terms: Sₙ = n (a₁ + aₙ) ÷ 2 = n (2a₁ + (n − 1) d) ÷ 2
From two terms: d = (a_q − a_p) ÷ (q − p), a₁ = a_p − (p − 1) d
Position of a value x: n = (x − a₁) ÷ d + 1

Each term of an arithmetic sequence is the one before plus a fixed common difference d, so the nth term is the first term plus (n − 1) steps of d. The sum uses the pairing trick credited to Gauss: the first and last terms, the second and second-to-last, and so on all add to the same total, so the sum is n times the average of the first and last terms. Two known terms fix the sequence: the difference is the change in value divided by the change in position. A value is in the sequence exactly when (x − a₁) ÷ d + 1 is a whole number of 1 or more. Results are rounded to 15 significant figures to remove binary rounding noise (0.1 + 0.2 shows as 0.3).

Your numbers, step by step

    About the Arithmetic Sequence calculator

    This arithmetic sequence calculator works with lists of numbers that go up or down by the same amount each step, like 5, 8, 11, 14. Give it the first term and the common difference, or any two terms and their positions, and it returns the nth term, the sum of the first n terms, the rule for the nth term and the first ten terms. It can also tell you whether a number belongs to the sequence and, if it does, which term it is. Students use it for algebra and series homework. Teachers use it to check answer keys, and anyone planning savings that rise by a fixed amount, or seating in rows that grow by the same number, can use it too. Every step is written out with your numbers, so you can follow the working. For terms that multiply instead of add, use the geometric sequence calculator.

    How to use it

    1. Choose what you know under “I know”: “First term and difference” or “Any two terms”.
    2. Type the “First term a₁” and the “Common difference d”, or the positions and values of two terms you know.
    3. Enter the “Number of terms n” to get the nth term and the sum of terms 1 to n.
    4. To check a number, set “Find the position of a value” to Yes and type it in “Value to look for”.

    Worked example

    A sequence starts at 5 and goes up by 3: 5, 8, 11, 14, … The 20th term is 5 + (20 − 1) × 3 = 62, and the sum of the first 20 terms is 20 × (5 + 62) ÷ 2 = 670. The rule is aₙ = 3n + 2. Is 50 in the sequence? (50 − 5) ÷ 3 + 1 = 16, a whole number, so 50 is the 16th term.

    Updated

    Questions people ask

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

    Start from the first term and add the common difference n − 1 times: aₙ = a₁ + (n − 1) × d. With a₁ = 5 and d = 3, the 10th term is 5 + 9 × 3 = 32.

    What is the formula for the sum of an arithmetic series?

    Sₙ = n × (a₁ + aₙ) ÷ 2: the number of terms times the average of the first and last terms. You can also write it as n × (2a₁ + (n − 1)d) ÷ 2 when you don't know the last term yet.

    How do I find the common difference from two terms?

    Divide the change in value by the change in position. If the 3rd term is 11 and the 7th is 27, d = (27 − 11) ÷ (7 − 3) = 4, and the first term is 11 − 2 × 4 = 3.

    Why is my nth term off by one difference?

    A common slip is using n × d instead of (n − 1) × d. The first term already counts as term 1, so only n − 1 steps of the difference are added to reach the nth term.

    How can I tell if a number is in an arithmetic sequence?

    Work out (x − a₁) ÷ d + 1. If it is a whole number of 1 or more, x is that term; if not, x falls between two terms and is not in the sequence.

    Does this calculator work with decimals and negative differences?

    Yes. Terms and differences can be negative or decimal, and results are rounded to 15 significant figures so 0.1 + 0.2 shows as 0.3. The number of terms must be a whole number from 1 to one billion.

    More in Math & Algebra