Guide
Arithmetic and geometric sequences: the nth term, the sum and when an infinite sum exists
A sequence is a list of numbers that follows a rule. Two rules are common enough to have their own formulas: adding the same amount each time, an arithmetic sequence, and multiplying by the same amount each time, a geometric sequence. This page takes the first term, the common difference or ratio and the number of terms, then gives the last term, the total, a list of terms and the closed formula.
Arithmetic sequences
Starting at a1 and adding d each time gives the term a1 + (n − 1) × d. The total of the first n terms is the number of terms times the average of the first and last term, n × (a1 + an) ÷ 2, which is the trick the young Gauss is said to have used for 1 to 100. The difference d can be negative for a falling sequence or zero for a constant one.
Geometric sequences
Starting at a1 and multiplying by r each time gives a1 × r^(n − 1). The sum of the first n terms is a1 × (1 − r^n) ÷ (1 − r) for r not equal to 1, and simply n × a1 when r is 1. If the ratio r lies strictly between −1 and 1, the terms shrink toward zero and the series has a finite sum to infinity, a1 ÷ (1 − r). For any other ratio the series does not converge, and the page says so instead of printing a number.
The results
The page shows the nth term, the sum of the first n terms, the first terms of the sequence, the average of the terms and the closed formula with your numbers filled in, so you can copy it into a worksheet. The formula and the sum always use the full n. Decimals and negative numbers work in every field.
Edge cases
The number of terms must be a whole number of at least 1. A negative ratio makes the terms alternate in sign, and a ratio of 1 or −1 does not converge. Geometric terms can become extremely large or small, and the page switches to scientific notation when it needs to. If the rule changes partway, such as a sequence of squares or the Fibonacci numbers, neither formula applies.
A worked example
For the arithmetic sequence 3, 7, 11 with a1 = 3 and d = 4, the 10th term is 3 + 9 × 4 = 39. The sum of the first 10 terms is 210, the average of the terms is 21, and the list is 3, 7, 11, 15, 19, 23, 27, 31, 35, 39. For the geometric sequence 2, 6, 18, the 5th term is 162 and the sum of the first 5 terms is 242, while the infinite sum does not exist since r = 3. For 8, 4, 2 with r = 0.5, the 10th term is 0.015625, the sum of ten terms is 15.984375 and the sum to infinity is 16.
Limits
The calculator cannot work out the rule from a list of numbers, and it does not handle sequences with a recurrence, such as the Fibonacci numbers, or polynomial rules. It gives a sum for a whole number of terms and an infinite sum only for convergent geometric series. For anything else, use a spreadsheet or write the rule as code.
Related tools
- Fibonacci Calculator covers a sequence defined by a recurrence rather than a constant step.
- Compound Interest Calculator is a geometric sequence in disguise, with the growth factor as the ratio.
- Average Calculator finds the mean of any list you type in, not only evenly spaced ones.
- Scientific Calculator lets you check a single term with your own keystrokes.
Checked against the current version of the Arithmetic & Geometric Sequence Calculator on .

