An arithmetic sequence is a list of numbers where each term changes by a constant amount called the common difference (d). An arithmetic series is the sum of the first n terms of that sequence.
With inputs first term (a1), common difference (d), and number of terms (n), this calculator computes:
The nth (last) term: an
The sum of the first n terms: Sn
How to use this arithmetic series calculator
Enter the first term a1 (any real number, including negatives and decimals).
Enter the common difference d (can be negative, zero, or decimal).
Enter the number of terms n (typically a whole number: 1, 2, 3, …).
Click Calculate to get an and Sn.
Definitions
a1: first term of the sequence
d: common difference (the amount added each step)
n: number of terms being included
an: nth term (also the last term among the first n)
Sn: sum of the first n terms
Formulas
Nth term of an arithmetic sequence:
an = a1 + (n − 1)d
Sum of the first n terms (two equivalent forms):
Sn = (n/2)·(2a1 + (n − 1)d)
Sn = (n/2)·(a1 + an)
MathML (copy/paste friendly)
Interpreting the results
What does an mean?
an is the value of the term at position n. If you list the first n terms, an is the last one shown.
What does Sn mean?
Sn is the total when you add the first n terms:
a1 + a2 + … + an
Special cases
If d = 0: every term equals a1, so Sn = n·a1.
If d < 0: the sequence decreases, but the formulas still work normally.
If a1 or d are decimals: results may be fractional; that is expected.
Worked example (step by step)
Suppose a1 = 2, d = 3, and n = 4.
1) Find the 4th term
a4 = 2 + (4 − 1)·3 = 2 + 9 = 11
2) Find the sum of the first 4 terms
S4 = (4/2)·(2·2 + (4 − 1)·3) = 2·(4 + 9) = 26
Check by listing the terms: 2, 5, 8, 11 → 2 + 5 + 8 + 11 = 26.
n should be a positive integer. If you enter a non-integer n, the formulas still evaluate algebraically, but it may not represent a sum of a whole number of terms.
Applies only to arithmetic sequences (constant difference). If differences vary, these formulas do not apply.
Floating-point rounding: JavaScript uses floating-point arithmetic, so very large values or certain decimals can show rounding (e.g., 0.1 + 0.2 effects).
Very large inputs: extremely large n or large magnitudes of a1/d can exceed safe integer precision; consider a big-number tool if you need exact integer results at huge scales.
FAQ
Can the common difference d be negative?
Yes. A negative d means the sequence decreases by a fixed amount each term, and the same nth-term and sum formulas still apply.
What if d = 0?
Then every term equals a1. The sum becomes Sn = n·a1.
Is an arithmetic series the same as an arithmetic sequence?
No. A sequence is the list of terms (an), while a series is the sum of terms (Sn).
Can a₁ or d be decimals?
Yes. The results can be fractional/decimal as well.
Why does the sum formula use n/2?
The series can be paired from the beginning and end: each pair sums to the same value (a1 + an), and there are n/2 such pairs (with a middle term when n is odd).
Can this calculator find n if I know the sum?
Not directly. Solving for n from Sn typically leads to a quadratic equation when d ≠ 0.
Enter values to compute.
Embed this calculator
Copy and paste the HTML below to add the Arithmetic Series Calculator - Sum and Term Finder to your website.
Use this Fourier series calculator to approximate a function on [−π, π] with a truncated sine–cosine series, view coefficients aₙ and bₙ, and study harmonic...
Fourier series calculatorharmonic analysisperiodic functions
Classify any integer from 1 to 100,000 as perfect, abundant, or deficient using the sum of proper divisors (aliquot sum). View the divisor list, divisor sum, difference, and abundance index.
Use this Taylor Series Calculator calculator to estimate results and understand the formulas with a worked example, a comparison table, and clear limitations.
Estimate how many years your PhD will take based on remaining coursework, writing pace, and research time. Get a rough graduation timeline to plan funding, j...
PhD completion calculatordoctoral time estimatorresearch timeline
Compute Laurent series of complex functions around a chosen point. Enter f(x), expansion point a, and orders to study poles, residues, and singular behavior...
Laurent series calculatorcomplex analysisseries expansion