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

Arithmetic Sequence Calculator

Solve an arithmetic sequence for the nth term, common difference, first term or number of terms, with 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 of the term at position n, a₁ + (n − 1)d, in whatever units your terms use.
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.

Ask for the 50th term of 3, 8, 13, 18, … and the quick answer is 3 + 49 × 5 = 248. Notice the 49. Fifty terms are joined by forty-nine gaps, and each gap adds the common difference once, which is why every arithmetic-sequence formula carries an (n − 1) where a first guess would put n. Use n instead and every answer lands one step too far.

An arithmetic sequence is any list that grows or shrinks by the same amount at every step. Four numbers describe a finite run of one completely: the first term a₁, the common difference d, the number of terms n and the last term aₙ. One equation ties them together, aₙ = a₁ + (n − 1)d, so any three of them fix the fourth. Choose which one you are missing and the calculator returns it along with the other three, the sum of all n terms, the explicit rule for that particular sequence and a preview of its opening terms.

The sum is often the more useful half. Rows of seats that each hold five more than the row in front, a loan balance that falls by the same slice of principal every month, the distance a dropped stone covers in each successive second: in each case the total over many steps matters more than any single step, and the total of an arithmetic run has a closed form, n(a₁ + aₙ) ÷ 2, that needs no adding up term by term.

Counting starts at 1. The first term is a₁, and n is always a whole number of at least 1. A few computer-science and discrete-mathematics texts start at a₀; if yours does, every position here reads one higher than in your book.

What is arithmetic sequence calculator?

An arithmetic sequence, or arithmetic progression, is a sequence in which the difference between any two consecutive terms is the same constant, the common difference d. A positive d makes the sequence rise, a negative d makes it fall, and d = 0 gives a constant sequence in which every term equals the first. Plotted against position, the terms sit on a straight line of slope d, which makes an arithmetic sequence the whole-number version of a linear function. A quick test follows: every term except the first and last is the average of its two neighbours, so 13 sits exactly midway between 8 and 18. The list of terms is the sequence; the total of the first n terms is the arithmetic series, Sₙ. Physics supplies a classic instance. A stone dropped from rest, ignoring air resistance, falls 4.9 m in the first second, 14.7 m in the second and 24.5 m in the third, a sequence with d = 9.8 m, and its five-second total of 5 × (4.9 + 44.1) ÷ 2 = 122.5 m is the familiar ½gt².

How to use this calculator.

  1. Under 'What do you want to find?', choose the quantity you are missing: the nth term, the common difference, the first term or the number of terms.
  2. Fill in the three fields that mode uses. The field being solved for is ignored, so whatever is already in it does no harm.
  3. Enter the common difference with its sign, −7 for a sequence that falls by 7 at each step. Fractions and decimals such as 0.25 are fine.
  4. When solving for the number of terms, enter the value you want to reach as aₙ. If it is not a member of the sequence you will be shown the fractional position it would occupy, which usually exposes a typo or a wrong sign.
  5. Check the result against the preview line beneath it: the first six terms, the last term, the count and the direction confirm at a glance that you set up the sequence you meant.

The formula.

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

Walking from the first term to the nth takes n − 1 steps of size d, so aₙ = a₁ + (n − 1)d. The other three modes are that one equation rearranged. The common difference is d = (aₙ − a₁) ÷ (n − 1), which needs n of at least 2, since a single term has no gap to measure. The first term is a₁ = aₙ − (n − 1)d. The number of terms is n = (aₙ − a₁) ÷ d + 1, which needs a non-zero d and has a valid answer only when it comes out as a whole number of 1 or more; a value of aₙ that falls between two terms, or before the first, is not a member of the sequence and is reported as such rather than snapped to the nearest term.

The sum comes from writing the run twice, once forwards and once backwards, and adding the two rows column by column. Every column totals a₁ + aₙ, because as one row climbs by d the other falls by d. There are n columns and each term has been counted twice, so Sₙ = n(a₁ + aₙ) ÷ 2. Put another way, the sum is the number of terms times the average of the first and last terms. Substituting the nth-term formula gives the equivalent Sₙ = n[2a₁ + (n − 1)d] ÷ 2, handy when you know the step but not the last term.

That second form shows the sum is quadratic in n: over long runs, doubling the number of terms roughly quadruples the sum whenever d is not zero. It also means a total can be turned back into a term count by solving a quadratic, as one of the questions below shows. Sums that begin partway through a sequence follow by subtraction, since the terms from position m to position n add to Sₙ − Sₘ₋₁. Positions from 1 up to 10,000,000 are accepted.

A worked example.

Example

A theatre has 3 seats in its front row, and each row behind holds 5 more than the one in front. How many seats are in row 12, and how many in all twelve rows together? Here a₁ = 3, d = 5 and n = 12. Reaching row 12 takes eleven steps, so a₁₂ = 3 + 11 × 5 = 3 + 55 = 58 seats in the back row. For the total, pair the rows from the outside in: 3 + 58, 8 + 53, 13 + 48, 18 + 43, 23 + 38 and 28 + 33. Each of the six pairs holds 61 seats, so the theatre has 6 × 61 = 366. The formula says the same in one line, 12 × (3 + 58) ÷ 2 = 366, and so does the second form, 12 × (2 × 3 + 11 × 5) ÷ 2 = 12 × 61 ÷ 2 = 366. The explicit rule reported alongside is aₙ = 3 + 5(n − 1), and the preview reads 3, 8, 13, 18, 23, 28, …, 58 (12 terms, increasing by 5). The average row holds 30.5 seats, halfway between the front and back rows, and twelve rows of that average is the same 366.

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

Frequently asked questions.

Why is the formula a₁ + (n − 1)d and not a₁ + nd?
Because the first term is already in place before any step is taken. Reaching the second term takes one step, the third two, the twelfth eleven. It is the fencepost problem: a 100 m fence with a post every 10 m needs 11 posts, because ten gaps are bounded by eleven posts. Enter a₁ = 0, d = 10 and aₙ = 100 in the number-of-terms mode and the answer is 11. Textbooks that number from a₀ write aₙ = a₀ + nd instead; both are right for their own counting.
How do I find the sequence if I know two terms but neither is the first?
Divide the difference between the terms by the gap between their positions. If the 4th term is 17 and the 10th is 41, six steps separate them, so d = (41 − 17) ÷ 6 = 4. Then switch to the first-term mode with aₙ = 17, n = 4 and d = 4, and the first term comes out as 17 − 3 × 4 = 5. The sequence is now fully known, 5, 9, 13, 17, …, and its 10th term, 5 + 9 × 4 = 41, confirms the set-up.
Why am I told my number is not a term of the sequence?
Because no whole-number position produces it. With a₁ = 3 and d = 5 the terms are 3, 8, 13, 18 and so on, every one ending in 3 or 8. Asking where 60 falls gives (60 − 3) ÷ 5 + 1 = 12.4, a position that does not exist, and that 12.4 is reported so you can see how near you were. A value that would sit at position 0 or below, such as −2 in the same sequence, lies before the first term, which usually means the sign of d is wrong.
How did Gauss add the numbers from 1 to 100 so quickly?
The classroom story is that he paired them: 1 + 100, 2 + 99, 3 + 98 and so on, fifty pairs each worth 101, for a total of 5,050. That pairing is exactly the argument behind Sₙ = n(a₁ + aₙ) ÷ 2, and it works for any arithmetic run, not only consecutive integers. Enter a₁ = 1, d = 1 and n = 100 and the sum shows 5,050. The general case, 1 + 2 + … + n = n(n + 1) ÷ 2, produces the triangular numbers.
How many terms does it take to reach a given total?
That reverses the sum, and because the sum is quadratic in n it takes a quadratic equation rather than one of the four modes. Rearranging Sₙ = n[2a₁ + (n − 1)d] ÷ 2 gives (d ÷ 2)n² + (a₁ − d ÷ 2)n − S = 0. For the theatre with a₁ = 3 and d = 5, a total of 366 seats gives 2.5n² + 0.5n − 366 = 0, whose positive root is n = 12. If the root is not a whole number, no run of complete terms hits the total exactly; with positive terms, round up to find how many it takes to pass it.
How do I insert arithmetic means between two numbers?
Treat the two numbers as the first and last terms, and count the means you want plus the two ends as n. To place two means between 4 and 25 the run has four terms, so choose the common-difference mode with a₁ = 4, aₙ = 25 and n = 4. The result is d = (25 − 4) ÷ 3 = 7, and the means are 11 and 18, giving 4, 11, 18, 25. A single arithmetic mean between two numbers is simply their average.
How many multiples of 7 lie between 100 and 500, and what do they add up to?
Counting problems like this are arithmetic sequences in disguise. The first multiple of 7 above 100 is 105 and the last below 500 is 497, so use the number-of-terms mode with a₁ = 105, d = 7 and aₙ = 497. The count is (497 − 105) ÷ 7 + 1 = 57, and the sum reported alongside is 57 × (105 + 497) ÷ 2 = 17,157. The same set-up counts the house numbers on one side of a street or the dates in a repeating schedule.
Can the common difference be negative, zero or a fraction?
Yes to all three. A negative d gives a falling sequence: 100, 93, 86, … has d = −7, its terms stay positive up to the 15th, which is 2, and those fifteen terms sum to 765. A fractional step such as 0.25 behaves the same way. A d of zero gives a constant sequence whose sum is just n × a₁. Only the number-of-terms mode cannot accept d = 0, because when every term is identical there is no single position for a given value.
How does an arithmetic sequence relate to a straight-line graph?
Its terms are a linear function sampled at whole numbers. Rewriting aₙ = a₁ + (n − 1)d as aₙ = dn + (a₁ − d) gives a slope of d and an intercept of a₁ − d, so 3, 8, 13, … lies on the line y = 5x − 2. What the sequence adds is a starting point: it exists only at positions 1, 2, 3, …, which is what gives it a first term, a count and a sum. The running sum, unlike the terms, follows a parabola in n, which is why totals of steadily growing quantities accelerate.
Is simple interest an arithmetic sequence, and compound interest a geometric one?
Yes. Under simple interest the same amount is added each period, so $1,000 at 5% a year runs $1,000, $1,050, $1,100, … with d = $50, and nine steps later reaches $1,450. Compound interest multiplies by the same factor each period instead, 1.05 here, which makes a geometric sequence that pulls ahead of the arithmetic one every year after the first. Straight-line depreciation is the arithmetic case run downwards, with a fixed amount subtracted each year.

How this page was produced

Published by
Quanta Calculator
Primary sources
5 cited below
Method
aₙ = a₁ + (n − 1)d · Sₙ = n(a₁ + aₙ) ⁄ 2
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

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