Audited 29 Jul 2026·Last updated 31 Jul 2026·5 citations·Tier 1·0 uses

Arithmetic Sequence Calculator

Find the nth term, the common difference, the first term or the number of terms of any arithmetic sequence, plus the sum of the run and its explicit rule.

Arithmetic Sequence Calculator

What do you want to find?
This page is 1-indexed: a₁ is the first term, not a₀.
The constant amount added to get from one term to the next. Negative values give a decreasing sequence.
A whole number of 1 or more. Ignored when you are solving for n.
Ignored when you are solving for aₙ. Used as the known term in the other three modes.
nth term (aₙ)
58
The value sitting at position n, computed as a₁ + (n − 1)d.
Sum of the first n terms (Sₙ)
366
First term (a₁)
3
Common difference (d)
5
Number of terms (n)
12
Explicit rule
aₙ = 3 + 5(n − 1)
Sequence
3, 8, 13, 18, 23, 28, …, 58 (12 terms, increasing by 5)

Background.

An arithmetic sequence is the simplest interesting sequence in mathematics: a list of numbers where you get from each term to the next by adding the same fixed amount every single time. That fixed amount is the common difference, written d. Start at 3 and keep adding 5 and you get 3, 8, 13, 18, 23 — an arithmetic sequence with a₁ = 3 and d = 5. This calculator handles that sequence in every direction. Give it the first term, the common difference and a position, and it returns the term sitting at that position. Give it two terms and a position count and it works backwards to the common difference. Give it a target value and it tells you which position that value occupies — or refuses, correctly, if the value is not actually a term of the sequence at all.

Four things fully describe an arithmetic sequence: the first term a₁, the common difference d, how many terms you are looking at (n), and the value of the last of those terms (aₙ). Knowing any three of the four pins down the fourth, which is exactly what the mode selector at the top of the calculator does. Whichever one you solve for, all four are reported together, along with the sum of the whole run and the explicit rule you can write down in a homework answer. There is no second page to visit and no re-entering of numbers to get the sum after you have found the term.

The page is 1-indexed throughout, and that convention is worth stating before you read a single result. The first term is a₁, not a₀, so the n-th term is a₁ + (n − 1)d and n is always a positive whole number. The subtraction of 1 in that formula is the single most common source of off-by-one errors in sequence homework: you take d steps to get from term 1 to term 2, so getting to term 12 takes eleven steps, not twelve. If your textbook indexes from zero — a few discrete-mathematics and computer-science texts do — every index on this page will sit one higher than the one in your book.

The partial sum matters as much as the term itself, and it has an elegant history. The story that a young Carl Friedrich Gauss added the whole numbers from 1 to 100 in seconds by pairing 1 with 100, 2 with 99, and so on to get fifty pairs of 101 is the standard classroom illustration of the sum formula. Every pair drawn inward from the two ends of an arithmetic sequence adds to the same total, a₁ + aₙ, and there are n/2 such pairs — which is precisely Sₙ = n(a₁ + aₙ)/2. Enter a₁ = 1, d = 1, n = 100 into this page and you get the 5050 that story turns on.

The distinction worth drawing before you use the result: an arithmetic sequence is a straight line restricted to whole-number positions. Its terms plot as evenly spaced points on a line whose gradient is d and whose value at n = 1 is a₁. That is why the linear-equation and slope calculators feel adjacent — but they work over the continuous real numbers, where there is no first term, no term count and no partial sum. If you have a set of observed numbers and do not yet know whether they form an arithmetic sequence at all, the sequence calculator identifies the family for you first. If your terms multiply rather than add, you want the geometric sequence calculator instead. And if you need a sum whose index runs from something other than 1, or a sum of squares or cubes, the sum of series calculator handles the sigma notation directly.

What is arithmetic sequence calculator?

An arithmetic sequence — also called an arithmetic progression — is a sequence of numbers in which the difference between any two consecutive terms is constant. OpenStax's College Algebra 2e puts it as: 'The difference between any two consecutive terms is a constant. This constant is called the common difference.' That constant is written d, and it can be positive (an increasing sequence), negative (a decreasing sequence) or zero (a constant sequence where every term is the same). The n-th term has the explicit formula aₙ = a₁ + d(n − 1), and the sum of the first n terms — called an arithmetic series — is Sₙ = n(a₁ + aₙ)/2. The Encyclopedia of Mathematics records the same two formulas and adds a neat characteristic test: in an arithmetic progression every term is the average of its two neighbours, aₙ = (aₙ₊₁ + aₙ₋₁)/2. Arithmetic sequences appear anywhere a quantity changes by a fixed amount per step: seats added row by row in an auditorium, a fixed monthly repayment schedule ignoring interest, degree markings on a scale, or the positions of evenly spaced fence posts.

How to use this calculator.

  1. Pick what you want to find from the mode selector — the nth term, the common difference, the first term, or the number of terms.
  2. Fill in the three fields that mode needs. The field it solves for is ignored, so you can leave whatever is already in it.
  3. Read the hero number, then the sum of the run, the explicit rule and the sequence preview beneath it.
  4. Check the preview line: it tells you the opening terms, the final term, the count, and whether the sequence is increasing, decreasing or constant.
  5. If you are solving for the number of terms and get an error, the value you entered for aₙ is not on this sequence — the message tells you the fractional position it would occupy, which is usually enough to spot the typo.

The formula.

aₙ = a₁ + (n − 1)d · Sₙ = n(a₁ + aₙ) ⁄ 2

Getting from term 1 to term n takes n − 1 steps, and each step adds d, so aₙ = a₁ + (n − 1)d. Rearranging that single equation gives the three inverse solves this page offers: d = (aₙ − a₁)/(n − 1) needs at least two terms, because a single term has no gap to measure; a₁ = aₙ − (n − 1)d; and n = (aₙ − a₁)/d + 1, which requires d ≠ 0 and only makes sense when the quotient lands on a whole number. The sum comes from the pairing argument: write the run forwards and backwards under itself, add the two rows column by column, and every column totals a₁ + aₙ. There are n columns, and you have counted each term twice, so Sₙ = n(a₁ + aₙ)/2. Substituting the term formula gives the equivalent expansion Sₙ = n[2a₁ + (n − 1)d]/2, and the test suite asserts the two forms agree across a fixed sweep of parameters. On rounding: nothing is rounded at an intermediate step. Every quantity is carried at full decimal precision and rounded once, at the boundary, to 10 decimal places, which is why entering a₁ = 0.1 with d = 0.2 gives a third term of exactly 0.5 rather than the 0.5000000000000001 a floating-point implementation returns. The one exactness test — 'is aₙ really a term of this sequence' — is applied to the unrounded quotient before any rounding happens, so a near-miss is rejected rather than quietly snapped to the nearest term. The increasing/decreasing/constant wording in the preview is likewise classified from the unrounded common difference, not from the rounded value shown in the results panel.

A worked example.

Example

A theatre has 3 seats in the front row and adds 5 seats to every row behind it. How many seats are in row 12, and how many seats are there in total across those twelve rows? The first term a₁ is 3 and the common difference d is 5, so the sequence runs 3, 8, 13, 18, 23, 28, 33, 38, 43, 48, 53, 58. Reaching row 12 takes eleven steps, not twelve, so the nth term output is 3 + 11 × 5 = 58 seats in the back row. The sum of the first n terms output pairs the rows inward from both ends — 3 + 58, 8 + 53, 13 + 48, 18 + 43, 23 + 38 and 28 + 33 — and every one of those six pairs totals 61, giving 6 × 61 = 366 seats in the theatre. The same figure falls straight out of the formula: 12 × (3 + 58) ⁄ 2 = 366. The explicit rule output reports aₙ = 3 + 5(n − 1), which is the line you would write in a homework answer, and the sequence preview confirms twelve terms increasing by 5. Switching the mode selector to 'the number of terms' and entering 58 as the known term returns a term count of 12 — the same progression read from the other end.

first Term3
nth Term Value58
number Of Terms12
common Difference5
solve FornthTerm

Frequently asked questions.

What is the formula for the nth term of an arithmetic sequence?
aₙ = a₁ + (n − 1)d, where a₁ is the first term, d is the common difference and n is the position you want. The n − 1 rather than n is the point people get wrong: it takes eleven steps of size d to walk from the first term to the twelfth, not twelve. OpenStax College Algebra 2e §9.2 states the formula in exactly this form.
How do I find the common difference if I only know two terms?
Subtract and divide by the gap in position. If you know a₁ and aₙ, then d = (aₙ − a₁)/(n − 1). Choose the 'common difference' mode, enter the first term, the known later term and its position, and the calculator does it. You need at least two terms — a single term has no gap to measure, and the page rejects n = 1 in that mode rather than dividing by zero.
What is the sum of an arithmetic sequence?
Sₙ = n(a₁ + aₙ)/2 — the number of terms multiplied by the average of the first and last term. It works because pairing terms inward from both ends always gives the same total, a₁ + aₙ. An equivalent form, useful when you know d but not aₙ, is Sₙ = n[2a₁ + (n − 1)d]/2. The calculator reports the sum on every mode, so you never have to compute the last term first and then come back.
Can the common difference be negative or zero?
Yes to both. A negative d gives a decreasing sequence — 100, 93, 86, 79 has d = −7. A d of exactly zero gives a constant sequence where every term equals a₁; it is still a legitimate arithmetic sequence, and its sum is simply n × a₁. The only place d = 0 is refused is when you ask the calculator to solve for the number of terms, because with every term identical there is no way to say which position a given value occupies.
Why does the calculator refuse some values when I solve for n?
Because the value you gave is not a term of that sequence. With a₁ = 3 and d = 5 the terms are 3, 8, 13, 18 …; the value 60 would sit at position 12.4, which does not exist. Rather than rounding to the nearest real term and handing you a subtly wrong answer, the page rejects the input and tells you the fractional position — which usually makes the typo obvious at a glance.
Is this page 0-indexed or 1-indexed?
1-indexed. The first term is a₁ and n is always a positive whole number, which matches OpenStax, the Encyclopedia of Mathematics and essentially every algebra textbook. A minority of discrete-mathematics and computer-science texts index from a₀ instead; if yours does, every index here will read one higher than the one in your book, so a₀ in your notes is a₁ here.
What is the difference between an arithmetic sequence and an arithmetic series?
The sequence is the list of terms; the series is what you get when you add them up. 3, 8, 13, 18 is a sequence; 3 + 8 + 13 + 18 = 42 is the corresponding series. This calculator gives you both at once — the nth term output describes the sequence and the sum output is the series.
How is an arithmetic sequence different from a geometric one?
An arithmetic sequence adds a fixed amount each step; a geometric sequence multiplies by a fixed factor. 3, 8, 13, 18 is arithmetic with d = 5. 3, 6, 12, 24 is geometric with r = 2. Arithmetic sequences grow along a straight line and their sums grow roughly with n²; geometric sequences grow exponentially and, when the ratio is between −1 and 1, their infinite sums converge to a finite number. For the multiplicative case use the geometric sequence calculator.
Where do arithmetic sequences show up outside a textbook?
Anywhere something changes by the same fixed amount per step: rows of seats that widen by a constant number, a straight-line depreciation schedule, evenly spaced fence posts or floor joists, degree markings on a dial, a fixed-increment pay scale, or the total distance covered by an object under constant acceleration measured second by second. The moment the change per step stops being constant, you need a different family — the sequence calculator will tell you which one your numbers fit.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 977 calculators remain free
  • No billing is enabled
Coming soon