Number Sequence Calculator

Find any term and the sum of arithmetic, geometric and Fibonacci sequences, or enter a few numbers to identify the pattern and predict the next terms.

Number sequence calculator

    Terms

    Arithmetic: aₙ = a₁ + (n − 1)d. Geometric: aₙ = a₁ × rⁿ⁻¹. Fibonacci starts 1, 1 and each term is the sum of the two before it. Very large values are shown in scientific notation.

    On this page

    A number sequence calculator finds any term of an arithmetic, geometric or Fibonacci sequence, adds up the terms, and can identify the pattern in a list of numbers so you can predict what comes next. It gives the nth-term formula, the sum of the first n terms, the first terms of the sequence and, for geometric sequences with a ratio between −1 and 1, the sum to infinity.

    For example, the arithmetic sequence 3, 7, 11, 15, … has a 10th term of 39, and its first 10 terms add up to 210. The geometric sequence 2, 6, 18, 54, … has an 8th term of 4,374. The 10th Fibonacci number is 55, and the pattern finder recognises 1, 4, 9, 16, 25 as the square numbers, n².

    How to use the number sequence calculator

    1. Choose the type of sequence, or choose “Find the pattern” if you only have some terms.
    2. For arithmetic and geometric sequences, enter the first term and the common difference or ratio.
    3. Enter the term number you want to find.
    4. For pattern finding, enter at least three terms separated by commas; four or more give more reliable results.
    5. Press Calculate.

    Arithmetic sequences

    In an arithmetic sequence, you add the same number, the common difference d, each time: 3, 7, 11, 15 has d = 4.

    nth term: aₙ = a₁ + (n − 1)d

    Sum of the first n terms: Sₙ = n ÷ 2 × (2a₁ + (n − 1)d)

    For 3, 7, 11, …, the 10th term is 3 + 9 × 4 = 39, and the sum of the first 10 terms is 10 ÷ 2 × (6 + 36) = 210. The nth-term rule simplifies to aₙ = 4n − 1. A neat way to remember the sum: it’s the number of terms times the average of the first and last terms, 10 × (3 + 39) ÷ 2 = 210.

    The common difference can be negative, giving a decreasing sequence, such as 20, 17, 14, 11 with d = −3.

    Geometric sequences

    In a geometric sequence, you multiply by the same number, the common ratio r, each time: 2, 6, 18, 54 has r = 3.

    nth term: aₙ = a₁ × rⁿ⁻¹

    Sum of the first n terms: Sₙ = a₁(1 − rⁿ) ÷ (1 − r), for r ≠ 1

    For 2, 6, 18, …, the 8th term is 2 × 3⁷ = 4,374, and the first 8 terms add up to 6,560. Geometric sequences grow very quickly when r is greater than 1, which is why they describe compound interest, population growth and the spread of viruses.

    Sum to infinity

    When the ratio is between −1 and 1, the terms get smaller and smaller, and the total approaches a fixed limit:

    S∞ = a₁ ÷ (1 − r)

    For 16, 8, 4, 2, 1, …, with r = 0.5, the sum to infinity is 16 ÷ 0.5 = 32. The first 6 terms already add up to 31.5.

    The Fibonacci sequence

    The Fibonacci sequence starts 1, 1, and each term is the sum of the two before it: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … The 10th term is 55 and the 50th is 12,586,269,025. The sum of the first n Fibonacci numbers is always one less than the term two places further on: the first 10 add up to 143, which is 144 − 1.

    As the sequence grows, the ratio of one term to the one before approaches the golden ratio, φ ≈ 1.618034. Fibonacci numbers appear in nature, in the spirals of sunflowers and pine cones and the branching of trees, and in art, architecture and computer algorithms.

    Finding the pattern

    Enter a few terms and the calculator checks the common patterns in order:

    • Arithmetic: the difference between terms is constant. 5, 9, 13, 17 adds 4 each time, so the next terms are 21, 25 and 29.
    • Geometric: the ratio between terms is constant. 2, 6, 18, 54 multiplies by 3, so the next term is 162.
    • Fibonacci-type: each term is the sum of the previous two. 3, 5, 8, 13 continues 21, 34, 55.
    • Quadratic: the differences themselves change by a constant amount (the second difference is constant). 1, 4, 9, 16, 25 has differences 3, 5, 7, 9 and second differences of 2, giving aₙ = n².

    Finding a quadratic formula

    For a quadratic sequence, half the second difference is the coefficient of n². For 4, 9, 16, 25, the second difference is 2, so the formula starts with n². Subtracting n² from each term (4 − 1, 9 − 4, 16 − 9, 25 − 16) leaves 3, 5, 7, 9, an arithmetic sequence equal to 2n + 1. Putting them together gives aₙ = n² + 2n + 1, which is (n + 1)².

    Arithmetic versus geometric growth

    Compare two pay rises on a starting salary of 30,000: one adds a fixed 2,000 a year (arithmetic), the other adds 5% a year (geometric).

    Year+2,000 a year+5% a year
    130,00030,000.00
    538,00036,465.19
    1048,00046,539.85
    2068,00075,808.51

    The fixed increase wins at first, but percentage growth catches up and pulls ahead, because each rise is calculated on a bigger number. Over long periods, geometric growth always overtakes arithmetic growth when the ratio is greater than 1.

    Worked example: seats in a theatre

    A theatre has 20 seats in the front row, and each row behind has 2 more seats than the one in front. How many seats are in row 20, and how many in total? This is an arithmetic sequence with a₁ = 20 and d = 2. Row 20 has 20 + 19 × 2 = 58 seats, and the total is 20 ÷ 2 × (20 + 58) = 780 seats.

    Other famous sequences

    • Square numbers: 1, 4, 9, 16, 25, … where aₙ = n².
    • Cube numbers: 1, 8, 27, 64, 125, … where aₙ = n³.
    • Triangular numbers: 1, 3, 6, 10, 15, … where aₙ = n(n + 1) ÷ 2, the number of dots in a triangle.
    • Powers of 2: 1, 2, 4, 8, 16, … a geometric sequence with r = 2, central to computing.
    • Prime numbers: 2, 3, 5, 7, 11, 13, … which follow no simple formula.

    Square and triangular numbers are quadratic sequences, so the pattern finder recognises them from a few terms.

    Finding the number of terms

    Sometimes you know the first term, the difference and the last term, and need to know how many terms there are. Rearranging the arithmetic formula gives n = (last − first) ÷ d + 1. For 7, 11, 15, …, 99, that’s (99 − 7) ÷ 4 + 1 = 24 terms, including both the first and the last.

    Common mistakes

    • Using n instead of n − 1: the first term already counts as term 1, so you add the difference (or multiply by the ratio) only n − 1 times.
    • Mixing up difference and ratio: check whether the terms go up by adding or by multiplying.
    • Assuming a pattern from too few terms: 1, 2, 4 could be doubling or adding 1 then 2; more terms remove the doubt.

    Where sequences are used

    • Finance: regular savings with a fixed increase form an arithmetic sequence; compound growth forms a geometric one.
    • Science: radioactive decay and bacterial growth follow geometric patterns.
    • Construction and design: seats in each row of a theatre often increase by a fixed number.
    • Computing: algorithms, data structures and binary numbers involve powers of 2, a geometric sequence.
    • Puzzles and exams: “what comes next?” questions test pattern recognition.

    Related calculations

    For related questions, use the matrix calculator to add, multiply and invert matrices, or the quadratic formula calculator to solve quadratic equations.

    Frequently asked questions

    Use aₙ = a₁ + (n − 1)d. For 3, 7, 11, …, the 10th term is 3 + 9 × 4 = 39.

    Use aₙ = a₁ × rⁿ⁻¹. For 2, 6, 18, …, the 8th term is 2 × 3⁷ = 4,374.

    Sₙ = n ÷ 2 × (first term + last term). The first 10 terms of 3, 7, 11, … add up to 210.

    For a geometric sequence with a ratio between −1 and 1, the sum approaches a₁ ÷ (1 − r). For 16, 8, 4, … it's 32.

    55. The sequence runs 1, 1, 2, 3, 5, 8, 13, 21, 34, 55.

    If the difference between terms is constant, it's arithmetic. If the ratio between terms is constant, it's geometric.

    A sequence whose second differences are constant, such as the square numbers 1, 4, 9, 16, 25. Its nth term includes n².

    About 1.618034. The ratio of consecutive Fibonacci numbers gets closer and closer to it as the sequence grows.

    The sequence 1, 3, 6, 10, 15, …, where each term is n(n + 1) ÷ 2. They count the dots needed to make a triangle.

    Yes. Increasing by 5% each year multiplies by 1.05 each time, so the values form a geometric sequence with r = 1.05.

    Yes. A negative common difference gives a decreasing arithmetic sequence, such as 20, 17, 14, 11 with d = −3.

    At least three, but four or more make the result more reliable, especially for quadratic sequences.