Skip to main content

Free Sequence Calculator – nth Term, Sum and Pattern Detection

Find the nth term and sum of arithmetic, geometric and Fibonacci sequences, test whether an infinite series converges, or paste terms and let the tool detect the pattern.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

ArithmeticGeometricExact FibonacciPattern DetectionFree

Sequence Type

19

nth term a10

100

Sum of first 10 terms

2

Common difference d

10

Average of the terms

The Working, With Your Numbers

  1. 1. aₙ = a₁ + (n − 1)d = 1 + (10 − 1) × 2 = 1 + 18 = 19
  2. 2. Sₙ = n/2 × (2a₁ + (n − 1)d) = 10/2 × (2 × 1 + 18) = 100
  3. 3. Cross-check with Sₙ = n(a₁ + aₙ)/2 = 10 × (1 + 19) ÷ 2 = 100

Terms (10 shown)

1, 3, 5, 7, 9, 11, 13, 15, 17, 19

Formula Reference

Sequencenth termSum of first n
Arithmetica₁ + (n−1)dn/2 × (2a₁ + (n−1)d)
Geometric, r ≠ 1a₁ × r^(n−1)a₁(1 − rⁿ)/(1 − r)
Geometric, r = 1a₁n × a₁
Geometric, |r| < 1S∞ = a₁/(1 − r)
Fibonacciaₙ₋₁ + aₙ₋₂a₍ₙ₊₂₎ − 1

Definitions follow Wolfram MathWorld (Arithmetic Series, Geometric Series, Fibonacci Number) and OEIS A000045 for the Fibonacci term values.

100% Private

Every term and sum is computed in your browser. Nothing you type is uploaded.

How to Use Sequence Calculator

1

Choose the Sequence Type

Pick arithmetic, geometric, Fibonacci, or the detect mode if you only have a list of terms. Each type reveals the fields it actually needs, so you are never asked for a common ratio when working on an arithmetic progression.

2

Enter the First Term and the Step

Type a₁ and either the common difference d or the common ratio r, then set how many terms you want. For Fibonacci you only need the term index, plus your preferred indexing convention if your textbook starts at F₁ = 1.

3

Read the nth Term, Sum and Substituted Working

The result cards show the nth term, the sum of the first n terms and, for geometric sequences, whether the infinite series converges. The working panel puts your own numbers into each formula so you can copy the steps into your answer.

How Arithmetic, Geometric and Fibonacci Sequences Are Built

A sequence is an ordered list of numbers built by a rule, and three families cover almost everything a student meets. An arithmetic sequence adds the same amount each step, so 1, 3, 5, 7, 9 has a common difference of 2. A geometric sequence multiplies by the same amount each step, so 1, 2, 4, 8, 16 has a common ratio of 2. A Fibonacci sequence adds the two previous terms, giving 0, 1, 1, 2, 3, 5, 8, 13. The rules look simple, but they show up in loan schedules, population models, compound growth, computer algorithms and the branching of plants — which is why exam papers keep asking for the nth term and the sum without listing every value. For an arithmetic sequence, aₙ = a₁ + (n − 1)d gives the nth term, where a₁ is the first term, d is the common difference and n is the position you want. The sum of the first n terms is Sₙ = n/2 × (2a₁ + (n − 1)d), equivalently n(a₁ + aₙ)/2. For a geometric sequence, aₙ = a₁ × r^(n−1), where r is the common ratio, and Sₙ = a₁(1 − rⁿ) ÷ (1 − r) — but only when r ≠ 1, because r = 1 makes the denominator zero. In that case every term equals a₁ and the sum is n × a₁, handled explicitly here rather than as an error. The infinite sum a₁ ÷ (1 − r) exists only when |r| < 1; for |r| ≥ 1 the series diverges. Fibonacci uses aₙ = aₙ₋₁ + aₙ₋₂, computed iteratively, and its first-n sum follows the identity a₍ₙ₊₂₎ − 1. Run the examples calculator.net publishes. For 1, 3, 5, 7, 9 with a₁ = 1 and d = 2, the fifth term is a₅ = 1 + 2 × (5 − 1) = 9 and the sum of five terms is 5 × (1 + 9) ÷ 2 = 25, which you can confirm by adding them by hand. Push to n = 10 and you get a₁₀ = 19 with S₁₀ = 100 — the sum of the first ten odd numbers is 10², a result worth remembering. For the geometric sequence 1, 2, 4, 8 with r = 2, the eighth term is 1 × 2⁷ = 128 and the sum of eight terms is 255, one less than 2⁸. Set a₁ = 1 and r = 0.5 and the infinite sum is 1 ÷ 0.5 = 2, while r = 2 diverges. Fibonacci at n = 10 gives 55, and at n = 100 gives 354,224,848,179,261,915,075. Three uses come up repeatedly. A student revising arithmetic and geometric progressions needs the substituted working, not just the answer, because marks come from showing a₁ + (n − 1)d with real numbers in it. Anyone modelling something that grows by a fixed percentage — a salary rising 8% a year, bacteria doubling every hour — is working with a geometric sequence, and the sum of n terms is the total accumulated over that span. And the pattern-detection mode is genuinely handy when you have a list of terms from a question or a spreadsheet and need to know what kind of sequence it is: paste 2, 5, 8, 11, 14 and it reports arithmetic with d = 3 and predicts the next term. One precision detail matters here more than anywhere else in basic maths. F(78) = 8,944,394,323,791,464 is the last Fibonacci number below JavaScript's safe integer limit of 9,007,199,254,740,991. Past that point a calculator using ordinary floating-point numbers corrupts the final digits without warning, so F(79) can come back as 14,472,334,024,676,220 rather than the correct 14,472,334,024,676,221. This tool adds terms digit by digit, keeping every one exact, and tells you when you cross that threshold. Two other honest limits: Fibonacci indexing differs between textbooks, so both a₀ = 0 and F₁ = 1 forms are offered with the active one named, and the detector recognises only the three named families. Definitions follow Wolfram MathWorld and OEIS A000045. All computation happens in your browser.

Sequence Calculator Formula & Method

Arithmetic sequence (constant difference d): aₙ = a₁ + (n − 1) × d Sₙ = n/2 × (2a₁ + (n − 1)d) equivalently Sₙ = n(a₁ + aₙ) ÷ 2 Geometric sequence (constant ratio r): aₙ = a₁ × r^(n − 1) Sₙ = a₁(1 − rⁿ) ÷ (1 − r) for r ≠ 1 Sₙ = n × a₁ for r = 1 (the standard formula would divide by zero) S∞ = a₁ ÷ (1 − r) ONLY when |r| < 1; otherwise the series diverges Fibonacci sequence (a₀ = 0, a₁ = 1, OEIS A000045): aₙ = aₙ₋₁ + aₙ₋₂ (computed iteratively, never recursively) Sum of the first n terms = a₍ₙ₊₂₎ − 1 Variables: a₁ = first term, d = common difference, r = common ratio, n = term index (a whole number ≥ 1). All values are pure numbers with no units. Precision: F(78) = 8,944,394,323,791,464 is the last Fibonacci term below Number.MAX_SAFE_INTEGER (9,007,199,254,740,991), so terms are added digit by digit to stay exact beyond it. Rounding rule: no rounding inside any step; integers display in full and decimals are trimmed only at display time.

Examples: Sequence Calculator

Input

Arithmetic: a₁ = 1, d = 2, n = 5

Result

a₅ = 9 · S₅ = 25

a₅ = 1 + 2 × (5 − 1) = 9, and S₅ = 5 × (1 + 9) ÷ 2 = 25 — calculator.net's own worked example, which you can check by adding 1 + 3 + 5 + 7 + 9.

Input

Arithmetic: a₁ = 1, d = 2, n = 10

Result

a₁₀ = 19 · S₁₀ = 100

The sum of the first ten odd numbers is 10² = 100, a standard identity that makes this a useful self-check on the sum formula.

Input

Geometric: a₁ = 1, r = 2, n = 8

Result

a₈ = 128 · S₈ = 255

a₈ = 1 × 2⁷ = 128, matching calculator.net, and S₈ = (1 − 2⁸) ÷ (1 − 2) = 255, which is one less than 2⁸ as the doubling pattern predicts.

Input

Geometric: a₁ = 5, r = 1, n = 6

Result

S₆ = 30 (no division by zero)

With r = 1 every term is 5, so the sum is 6 × 5 = 30; the usual formula is skipped because its denominator 1 − r would be zero.

Input

Geometric: a₁ = 1, r = 0.5 versus r = 2

Result

S∞ = 2 for r = 0.5 · "diverges" for r = 2

|0.5| < 1 so S∞ = 1 ÷ (1 − 0.5) = 2, while |2| ≥ 1 means the terms grow without bound and no finite infinite sum exists.

Input

Fibonacci: n = 10, n = 79 and n = 100

Result

55 · 14,472,334,024,676,221 · 354,224,848,179,261,915,075

All three match OEIS A000045 exactly; n = 79 is the first term past the safe integer limit, where digit-by-digit addition prevents the silent precision loss other calculators show.

Input

Pattern detection: paste 2, 5, 8, 11, 14

Result

Arithmetic sequence, a₁ = 2, d = 3, next term 17

Every consecutive difference equals 3 within tolerance, so the sequence is arithmetic and the sixth term is 2 + 5 × 3 = 17.

Frequently Asked Questions – Sequence Calculator

An arithmetic sequence adds a fixed amount each step, so consecutive differences are constant. A geometric sequence multiplies by a fixed amount, so consecutive ratios are constant. 2, 5, 8, 11 is arithmetic with d = 3; 3, 6, 12, 24 is geometric with r = 2.