Home/Statistics/Number Sequence Calculator

Number Sequence Calculator & Sequence Solver

Identify the pattern in a number sequence, find the next terms and the nth term formula, and calculate partial sums for arithmetic, geometric, Fibonacci, quadratic and other sequences — a full sequence solver and numerical pattern finder in one tool.

Quick Answer: How Do You Find the Next Number in a Sequence?

Look at the differences between consecutive terms. If the difference is constant, it's an arithmetic sequence — add that difference to get the next term. If the ratio between terms is constant, it's geometric — multiply by that ratio. If each term is the sum of the two before it, it's Fibonacci-like. If neither the difference nor the ratio is constant, check the second differences — if those are constant, the sequence is quadratic. The calculator below runs through all of these checks automatically and extends the sequence as far as you need.

Identify & Extend a Sequence

Enter the known terms of your sequence (at least 3 — 4 or more gives more reliable pattern detection), separated by commas.

Show next
terms

Generate a sequence

Type
First term (a₁)
Common diff/ratio
Number of terms
Analysis Result
Sequence Type
Arithmetic
aₙ = 2 + (n−1)×3
PropertyValue
Extended Sequence

Term Table

nTerm (aₙ)Partial Sum (Sₙ)

Types of Number Sequences

TypeDefinitionnth Term FormulaExample
ArithmeticConstant difference (d) between termsaₙ = a₁ + (n−1)d2, 5, 8, 11, 14, …
GeometricConstant ratio (r) between termsaₙ = a₁ × rⁿ⁻¹2, 6, 18, 54, …
Fibonacci-likeEach term = sum of the previous twoaₙ = aₙ₋₁ + aₙ₋₂1, 1, 2, 3, 5, 8, …
QuadraticConstant second differenceaₙ = an² + bn + c2, 4, 7, 11, 16, … (2nd diff = 1)
TriangularCount of dots forming a triangleaₙ = n(n+1)/21, 3, 6, 10, 15, …
Square numbersPerfect squaresaₙ = n²1, 4, 9, 16, 25, …
💡 Did You Know? Every quadratic sequence has a constant second difference equal to twice the coefficient of n² in its formula. For 1, 4, 9, 16, 25 (aₙ = n²), the differences are 3, 5, 7, 9 and the second differences are all 2 — exactly 2 × 1, since the coefficient of n² is 1.

Quick Quiz: Is It Arithmetic, Geometric, or Neither?

A common exam-style question asks you to identify which of several sequences is arithmetic, which is geometric, and which is neither. Work through these four before checking the answers.

Which of the following sequences are arithmetic or geometric?

A. 4, 9, 14, 19, 24, …
B. 3, 6, 12, 24, 48, …
C. 1, 4, 9, 16, 25, …
D. 5, −10, 20, −40, …
Show answers

A is arithmetic — common difference d = 5. B is geometric — common ratio r = 2. C is neither — it's a quadratic sequence of perfect squares (constant second difference of 2), not arithmetic or geometric. D is geometric — common ratio r = −2; a geometric sequence can have a negative ratio, which makes the terms alternate in sign.

How to Find the Next Number in a Sequence

There is a reliable order of checks that covers almost every sequence you will meet in a maths class or a puzzle. First, calculate the differences between consecutive terms — if they're all equal, you have an arithmetic sequence and the pattern is simply "add d each time." Second, if the differences aren't constant, calculate the ratios instead — a constant ratio means a geometric sequence, where the pattern is "multiply by r each time." Third, check whether each term is the sum of the two before it, which identifies a Fibonacci-like sequence. Fourth, if none of those match, take the differences of the differences — the "second differences." If those are constant, the sequence is quadratic, and you can keep extending it by continuing the second-difference pattern even without knowing the full formula.

Nth Term Formulas

Arithmetic:   aₙ = a₁ + (n − 1)d
Geometric:   aₙ = a₁ × rⁿ⁻¹
Fibonacci-like:   aₙ = aₙ₋₁ + aₙ₋₂
a₁ = first term | d = common difference | r = common ratio | n = term position

Sum (Series) Formulas

Arithmetic series:   Sₙ = n/2 × (a₁ + aₙ) = n/2 × (2a₁ + (n−1)d)
Geometric series (r ≠ 1):   Sₙ = a₁ × (1 − rⁿ) / (1 − r)
Infinite geometric series (|r| < 1):   S∞ = a₁ / (1 − r)

Step-by-Step Calculation Examples

Example 1 — arithmetic sequence

Sequence: 3, 7, 11, 15, … — differences are all 4, so d = 4.
nth term: aₙ = 3 + (n − 1) × 4
10th term: a₁₀ = 3 + 9 × 4 = 39
Sum of first 10 terms: S₁₀ = 10/2 × (3 + 39) = 5 × 42 = 210

Example 2 — geometric sequence

Sequence: 2, 6, 18, 54, … — ratios are all 3, so r = 3.
nth term: aₙ = 2 × 3ⁿ⁻¹
6th term: a₆ = 2 × 3⁵ = 2 × 243 = 486
Sum of first 6 terms: S₆ = 2 × (1 − 3⁶)/(1 − 3) = 2 × (1 − 729)/(−2) = 728

Example 3 — quadratic (constant second difference) sequence

Sequence: 2, 4, 7, 11, 16, … — first differences: 2, 3, 4, 5 (not constant).
Second differences: 1, 1, 1 — constant, so this is a quadratic sequence.
Extend by continuing the pattern: next difference = 5 + 1 = 6, so next term = 16 + 6 = 22
Continuing: differences 7, 8, 9 → terms 29, 37, 46, …

Example 4 — infinite geometric series

Sequence: 8, 4, 2, 1, 0.5, … with r = 0.5 (since |r| < 1, the sum converges).
S∞ = a₁ / (1 − r) = 8 / (1 − 0.5) = 8 / 0.5 = 16
This is the same idea behind Zeno's paradox and the repeating-decimal identity 0.999… = 1.

Choosing the Right Pattern: Arithmetic vs Geometric vs Quadratic

SignalSequence typeHow to extend
Constant difference between termsArithmeticAdd the common difference d
Constant ratio between termsGeometricMultiply by the common ratio r
Each term = sum of previous twoFibonacci-likeAdd the two preceding terms
Constant second differenceQuadraticContinue the difference pattern one level down
None of the aboveUnrecognised / needs more termsProvide more known terms, or check for a non-numeric rule

Common Mistakes

MistakeWhy it goes wrongHow to avoid it
Assuming a pattern from only 2 termsInfinitely many sequences pass through any two pointsUse at least 3 terms for arithmetic/geometric, and 4+ for quadratic detection
Mixing up arithmetic and geometricAdding when you should multiply (or vice versa) gives a completely different sequenceCheck differences first, then ratios, before assuming a pattern
Forgetting a geometric ratio can be negative or a fractionSequences like 4, −2, 1, −0.5 are geometric with r = −0.5, easy to missDivide consecutive terms rather than eyeballing the pattern
Applying the infinite sum formula when |r| ≥ 1The series diverges — there is no finite sumOnly use S∞ = a₁/(1−r) when the ratio's absolute value is less than 1
Treating every non-arithmetic, non-geometric sequence as "random"Many such sequences are quadratic, cubic, or Fibonacci-like and are still fully predictableCheck second differences before giving up on finding a pattern
⚠️ Common Mistake: Confusing the sequence 1, 1, 2, 3, 5, 8 (Fibonacci — each term is the sum of the previous two) with a quadratic sequence. Fibonacci-like growth is exponential in the long run, not quadratic, even though early terms can look similar.

Practical Applications

Finance

Compound interest is a geometric sequence — each period's balance is the previous balance multiplied by the same factor (1 + rate). Loan amortisation schedules and superannuation balance projections are built on exactly this pattern.

Computer science

Algorithm growth rates, recursive data structures and time-complexity analysis frequently use arithmetic, geometric and Fibonacci-like sequences — for example, the number of operations in certain divide-and-conquer algorithms follows a geometric pattern.

Nature and biology

The Fibonacci sequence appears throughout nature: the spiral patterns of shells and sunflower seed heads, and the branching of trees, all approximate Fibonacci-like growth, connected to the golden ratio φ ≈ 1.618 that consecutive Fibonacci ratios converge towards.

Education and puzzles

Number sequence questions are a staple of numeracy tests, IQ tests and maths curricula precisely because they test pattern recognition — the same skill used here to classify a sequence as arithmetic, geometric, quadratic or otherwise.

Hard Number Sequences to Test Yourself

Not every sequence is arithmetic, geometric, Fibonacci or quadratic — some of the hardest number sequences in IQ tests and maths competitions combine two rules at once, or use a rule that only becomes obvious once you look at ratios and differences together. Try these before checking the answers, then paste them into the calculator above to confirm.

Puzzle 1 — 1, 2, 6, 24, 120, ?

Not arithmetic (differences 1, 4, 18, 96 — not constant) and not geometric (ratios 2, 3, 4, 5 — not constant either).
The ratios themselves are increasing by 1 each time: ×2, ×3, ×4, ×5 — so the next multiplier is ×6.
Answer: 120 × 6 = 720 (this is actually the sequence of factorials, 1!, 2!, 3!, 4!, 5!, 6!)

Puzzle 2 — 100, 81, 64, 49, 36, ?

Differences: −19, −17, −15, −13 — not constant, so not arithmetic.
Second differences: 2, 2, 2 — constant, so this is a quadratic sequence, descending.
These are perfect squares counting down: 10², 9², 8², 7², 6² — so the answer is 5² = 25

Puzzle 3 — 2, 5, 11, 23, 47, ?

Differences: 3, 6, 12, 24 — these double each time, so the differences themselves are geometric.
The underlying rule is "double the previous term and add 1": aₙ = 2 × aₙ₋₁ + 1.
Answer: 2 × 47 + 1 = 95

Puzzle 4 — 2, 3, 5, 8, 13, ?

Not arithmetic or geometric — but each term is the sum of the two before it, just like Fibonacci, only starting from 2 and 3 instead of 1 and 1.
Answer: 8 + 13 = 21

Number Sequence Cheat Sheet

Quick Reference

Arithmetic nth term: aₙ = a₁ + (n−1)d
Geometric nth term: aₙ = a₁ × rⁿ⁻¹
Arithmetic sum: Sₙ = n/2 × (a₁ + aₙ)
Geometric sum: Sₙ = a₁(1−rⁿ)/(1−r)
Infinite geometric sum (|r|<1): S∞ = a₁/(1−r)
Triangular numbers: aₙ = n(n+1)/2
Square numbers: aₙ = n²
Fibonacci: aₙ = aₙ₋₁ + aₙ₋₂, golden ratio φ ≈ 1.618

Practice Questions

Beginner (with answers)

  1. Find the next term: 5, 9, 13, 17, …
  2. Find the next term: 3, 6, 12, 24, …
  3. What is the common difference in 20, 17, 14, 11, …?
  4. Find the 8th term of the arithmetic sequence with a₁ = 4 and d = 5.
  5. Is 1, 4, 9, 16, 25 arithmetic, geometric, or neither?
Show answers

1) 21 (add 4)   2) 48 (multiply by 2)   3) −3   4) a₈ = 4 + 7×5 = 39   5) Neither — it is quadratic (perfect squares), with constant second difference 2

Advanced (with answers)

  1. Find the sum of the first 20 terms of the arithmetic sequence 5, 9, 13, …
  2. Find the 7th term of the geometric sequence with a₁ = 5, r = −2.
  3. Find S∞ for the geometric sequence 9, 3, 1, 1/3, …
  4. Identify the pattern and next term of 1, 3, 6, 10, 15, …
  5. Two sequences have a₁ = 2. Sequence A is arithmetic with d = 6; sequence B is geometric with r = 2. At which term does B first exceed A?
Show answers

1) a₂₀ = 5+19×4 = 81, S₂₀ = 20/2×(5+81) = 860   2) a₇ = 5×(−2)⁶ = 5×64 = 320   3) S∞ = 9/(1−1/3) = 9/(2/3) = 13.5   4) Triangular numbers, aₙ = n(n+1)/2, next term = 21   5) A: 2,8,14,20,26,32,38,44,50,56…; B: 2,4,8,16,32,64… — B first exceeds A at the 7th term (B=64 vs A=38)

🔑 Key Takeaways

  • Arithmetic sequence: constant difference d between terms. aₙ = a₁ + (n−1)d.
  • Geometric sequence: constant ratio r between terms. aₙ = a₁ × rⁿ⁻¹.
  • Fibonacci-like: each term is the sum of the two preceding terms (1, 1, 2, 3, 5, 8, 13, 21, …).
  • Quadratic sequences have a constant second difference and can still be extended even without the full formula.
  • Arithmetic sum: Sₙ = n/2 × (a₁ + aₙ). Geometric sum: Sₙ = a₁(1−rⁿ)/(1−r).
  • Compound interest is a geometric sequence — each period multiplies the balance by (1 + rate).

Frequently Asked Questions

References

Last updated: August 2026
Reviewed by Mohsin Iqbal using standard sequence and series definitions, with every worked example independently verified. This page is for educational purposes.