Arithmetic Sequence Calculator
Enter the first term, common difference, and which term number you want to find the nth term and the sum of the first n terms.
Check the active inputs and the formula domain. Blank, malformed or out-of-range values clear every result.
Approximate results show up to 12 significant digits. Decimal fields use a dot, up to 12 digits on each side, an exponent from −24 to 24 and absolute values up to 10¹². Rational intermediate numerators and denominators are limited to 512 bits. Integer and scientific-notation exceptions are specified below. aₙ = a₁+(n−1)d; Sₙ = n(a₁+aₙ)/2; n ∈ ℤ ∩ [1,10⁹].
How arithmetic sequences work
An arithmetic sequence is a list of numbers where each term increases (or decreases) by the same fixed amount, the common difference (d), from the one before it. The nth term is found as aₙ = a₁ + (n−1)×d, where a₁ is the first term.
The sum of the first n terms is Sₙ = (n/2) × (2a₁ + (n−1)d) — this formula comes from pairing the first and last terms, which always add up to the same total, and multiplying by half the number of terms.
Frequently asked questions
What makes a sequence "arithmetic"?
A sequence is arithmetic if the difference between any term and the one before it is always the same constant value — like 2, 5, 8, 11, ... where each term adds 3.
What if the common difference is negative?
A negative common difference means the sequence decreases — for example, 20, 15, 10, 5, ... has a common difference of −5.
How was the sum formula derived?
Carl Friedrich Gauss famously noticed that pairing the first and last term, the second and second-to-last, and so on, always gives the same sum — multiplying that pair sum by half the number of terms gives the total.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
First term (a₁) = 3
Common difference (d) = 5
Term number (n) = 10
|
nth term: 48
Sum of first n terms: 255
Terms (first 8, then the last): 3, 8, 13, 18, 23, 28, 33, 38, …, 48
|
| 2 |
First term (a₁) = 10
Common difference (d) = -2.5
Term number (n) = 4
|
nth term: 2.5
Sum of first n terms: 25
Terms (first 8, then the last): 10, 7.5, 5, 2.5
|
| 3 |
First term (a₁) = 0.1
Common difference (d) = 0.2
Term number (n) = 30
|
nth term: 5.9
Sum of first n terms: 90
Terms (first 8, then the last): 0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3, 1.5, …, 5.9
|
| 4 |
First term (a₁) = -7
Common difference (d) = 0
Term number (n) = 1
|
nth term: -7
Sum of first n terms: -7
Terms (first 8, then the last): -7
|
| 5 |
First term (a₁) = 1
Common difference (d) = 1
Term number (n) = 8
|
nth term: 8
Sum of first n terms: 36
Terms (first 8, then the last): 1, 2, 3, 4, 5, 6, 7, 8
|
| 6 |
First term (a₁) = 1
Common difference (d) = 1
Term number (n) = 9
|
nth term: 9
Sum of first n terms: 45
Terms (first 8, then the last): 1, 2, 3, 4, 5, 6, 7, 8, …, 9
|