Arithmetic Sequences

The n-th term and the sum of a sequence that grows by the same amount each step.

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

The common difference d is the gap between neighbouring terms.

The sum equals (first term + last term) × number of terms ÷ 2.

Calculator

Change a value and the result and picture update instantly.

Result

n-th term aₙ21
Sum Sₙ120

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

If a daily reward grows by 10 each day, you can total 30 days without a loop.

Code example (JavaScript)

let total = 0; for (let n = 1; n <= N; n++) total += a1 + (n - 1) * d;

What the symbols mean

SymbolMeaning
a1First term a₁
dDifference d
nTerms n
ann-th term aₙ
SnSum Sₙ

More formulas in this category

Frequently asked questions

What is the formula for Arithmetic Sequences?
The formula for Arithmetic Sequences is aₙ = a₁ + (n − 1)d  Sₙ = n(2a₁ + (n − 1)d) ÷ 2. The n-th term and the sum of a sequence that grows by the same amount each step.

Math Formula Quiz Numbers, Algebra & Functions

Sources

Checked: 2026-11-29