Geometric Sequences
The n-th term and the sum of a sequence multiplied by the same ratio each step.
aₙ = a₁ rⁿ⁻¹ Sₙ = a₁(1 − rⁿ) ÷ (1 − r)
The common ratio r is the ratio between neighbouring terms. When r = 1 the sum is a₁ × n.
If |r| < 1, adding terms forever gets closer and closer to a₁ ÷ (1 − r).
Calculator
Change a value and the result and picture update instantly.
Result
n-th term aₙ
Sum Sₙ
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
When required XP grows by a fixed ratio per level, you can total it up to the level cap in one step.
Code example (JavaScript)
const totalXp = a1 * (1 - Math.pow(r, n)) / (1 - r); // r !== 1
What the symbols mean
| Symbol | Meaning |
|---|---|
a1 | First term a₁ |
r | Ratio r |
n | Terms n |
an | n-th term aₙ |
Sn | Sum Sₙ |
More formulas in this category
Frequently asked questions
- What is the formula for Geometric Sequences?
- The formula for Geometric Sequences is aₙ = a₁ rⁿ⁻¹ Sₙ = a₁(1 − rⁿ) ÷ (1 − r). The n-th term and the sum of a sequence multiplied by the same ratio each step.
Math Formula Quiz Numbers, Algebra & Functions
Sources
Checked: 2026-11-29