🔢 Number Sequence Calculator
Identify and extend arithmetic and geometric sequences. Enter the first few terms to find the common difference or ratio, the next terms, the nth term and the partial sum.
What is this tool?
A number sequence is an ordered list of numbers that follow a pattern. The two most common types are arithmetic sequences, where each term is obtained by adding a fixed number (the common difference d) to the previous term, and geometric sequences, where each term is obtained by multiplying the previous term by a fixed number (the common ratio r).
Arithmetic sequences appear in simple interest calculations, evenly spaced schedules, linear depreciation and stair-step pricing. The sequence 3, 7, 11, 15, 19 is arithmetic with d = 4. Geometric sequences appear in compound interest, population growth, radioactive decay and computer science algorithms. The sequence 2, 6, 18, 54, 162 is geometric with r = 3.
This sequence calculator detects whether your sequence is arithmetic or geometric, identifies the common difference or ratio, and computes the next several terms. It also provides the general formula for the nth term and the sum of the first n terms. All calculations run locally in your browser.How it works
For an arithmetic sequence with first term a₁ and common difference d, the nth term is aₙ = a₁ + (n−1)d, and the sum of the first n terms is Sₙ = n/2 × (2a₁ + (n−1)d). The calculator checks whether the differences between consecutive terms are all the same; if so, the sequence is arithmetic.
For a geometric sequence with first term a₁ and common ratio r, the nth term is aₙ = a₁ × rⁿ⁻¹, and the sum of the first n terms is Sₙ = a₁ × (rⁿ − 1) / (r − 1) when r ≠ 1. The calculator checks whether the ratios between consecutive terms are all the same; if so, the sequence is geometric.
If neither pattern matches, the calculator reports the sequence as neither arithmetic nor geometric and suggests looking for other patterns such as Fibonacci, quadratic or alternating sequences.How to use
- Enter at least 3 terms of your sequence, separated by commas.
- For example, enter 2, 6, 18, 54 for a geometric sequence.
- Click Calculate to identify the pattern.
- See the next 5 terms, the nth term formula and the partial sum.
- Try different sequences to compare arithmetic and geometric patterns.
Frequently Asked Questions
What if my sequence is neither arithmetic nor geometric?
Some sequences follow other patterns: Fibonacci (each term is the sum of the two preceding), quadratic (the second differences are constant) or alternating. The calculator will report that it cannot identify the sequence as arithmetic or geometric. Try entering more terms or look for a different pattern manually.
What is the difference between arithmetic and geometric?
In an arithmetic sequence, you add a fixed number to get the next term (2, 5, 8, 11 with d = 3). In a geometric sequence, you multiply by a fixed number (2, 6, 18, 54 with r = 3). Arithmetic grows linearly; geometric grows exponentially. Over many terms, a geometric sequence with r > 1 quickly outpaces an arithmetic sequence.
How many terms do I need to enter?
At least 3 terms are required to detect a pattern. Entering more terms improves accuracy: 3 terms uniquely determine an arithmetic or geometric sequence, but 4 or more terms help confirm that the pattern is consistent and not a coincidence.
What is the sum formula used for?
The partial sum Sₙ gives the total of the first n terms. For arithmetic sequences, it is useful for calculating total payments in a payment plan with fixed increases. For geometric sequences, it is used in compound interest (summing returns over time), annuities and loan amortization. The geometric sum formula is the basis for calculating the present value of a series of future cash flows.
Tips & Advice
When identifying a sequence pattern, always check both arithmetic (constant difference) and geometric (constant ratio) possibilities. For arithmetic sequences, subtract consecutive terms: if all differences are the same, d is confirmed. For geometric sequences, divide consecutive terms: if all ratios are the same, r is confirmed. Watch out for sequences that are both arithmetic and geometric: a constant sequence like 5, 5, 5, 5 is technically both (d = 0 and r = 1). In real-world applications, arithmetic sequences model linear growth (simple interest, fixed-amount savings plans), while geometric sequences model exponential growth (compound interest, population models, viral spread). When using the sum formula for geometric sequences with r between −1 and 1, the infinite sum converges to a₁ / (1−r), which is the basis for present value calculations in finance. Always verify your pattern by checking that the predicted next term matches what you would expect from the rule.
Related Tools
Scientific Calculator
Use our free online scientific calculator for trigonometry, logarithms, exponent
Fraction Calculator
Add, subtract, multiply, and divide fractions with our free fraction calculator.
Prime Number Checker
Free online prime number checker. Instantly test whether any number is prime, fi
Average Calculator
Calculate the average (mean), median, mode, and range of any set of numbers inst
Log Calculator
Calculate logarithms with any base. Compute log base 10, natural log (ln), or lo