Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Geometric Sequence Calculator

How to use Geometric Sequence Calculator
  1. Set First term a₁ and Common ratio r in the Parameters row and click Apply; every tab recomputes with the new rule. Learn more about the parameters
  2. Pick a mode with the five tabs across the top of the card: List first N, List a – b, Test a number, Lookup by index or Solver; the ? beside each tab describes it. Learn more about the modes
  3. In List first N, type how many terms to show in Show first and click Update; the cards give the count, the largest term and the sum, and the tiles list every term. Learn more about listing terms
  4. In List a – b, type the From index and the To index and click List range; a red box explains a bad range. Learn more about ranges
  5. In Test a number, type a number in Test number and click Check; a green box names the index, a red box says it is not a term. Learn more about the test
  6. In Lookup by index, type the position in Index n and click Get term. Learn more about lookups
  7. In Solver, pick Find term (aₙ), Sum Sₙ or Infinite sum S∞, fill every box but the one marked solve and click Solve; move the radio to change the unknown. Learn more about the solver
  8. The panel on the right explains the current mode and walks through the arithmetic with your own numbers; it changes with every tab and click. Learn more about the panel





Setting the Parameters

DemoTwo new parameter pairs, then the opening pair again
Step 0 of 3
The card opens with the Sequence drop-down set to Geometric sequence; the other entry switches the card to the Arithmetic sequence, which has its own page, Arithmetic sequence calculator. Under it the Parameters row holds the two numbers that fix the sequence, First term a₁ and Common ratio r, opening with a1=2a_1 = 2 and r=3r = 3. Type new values and click Apply or press Enter; every tab recomputes at once with the rule an=a1⋅rn−1a_n = a_1 \cdot r^{n-1}. With a1=1a_1 = 1 and r=2r = 2 the first eight terms are the powers of two from 11 to 128128 with the sum 255255; with a1=3a_1 = 3 and r=0.5r = 0.5 they halve from 33 to 0.02343750.0234375 and the sum is 5.97656255.9765625.

Both boxes take any decimal, negative values included; a blank or non-numeric box is refused with "Enter a number in every parameter box." and the tabs keep their last values. Which two numbers define the sequence is explained in what is a geometric sequence.

Listing the First N Terms

DemoThree counts in List first N
Step 0 of 3
The explorer opens on the List first N tab, one of five tabs across the top of the card; the small ? beside each tab shows what the mode does. Type how many terms you want in the Show first box and click Update or press Enter. Three cards answer at once: Showing gives the count, Largest the last term with its index, and Sum the total of the listed terms, SN=a1rN−1r−1S_N = a_1 \frac{r^N - 1}{r - 1}. Under the cards every term is laid out as a tile with its index above its value.

With the opening parameters the box accepts 11 to 100100: 88 gives a8=4,374a_8 = 4,374 with the sum 6,5606,560, 1212 gives a12=354,294a_{12} = 354,294 with the sum 531,440531,440, and the box is capped at 100100 terms; a single term gives a1=2a_1 = 2. Large values are printed with thousands separators. A count of 0, a decimal or an empty box is refused with "Enter a positive integer." There is no Reset button: type a new count and click Update again. The panel on the right, List first N, states the rule the tiles come from, and its walkthrough repeats the last term and the sum with your own NN. The rule is explained in the n-th term formula and the sum in the finite sum formula.

Listing a Range of Indexes

DemoThe range tab, a new range, two bad ranges
Step 0 of 4
Click the List a – b tab to list the terms between two positions instead of starting from 11. Type the From index and the To index and click List range or press Enter. The cards give the Count b−a+1b - a + 1, the Smallest term aaa_a and the Largest term aba_b, and the tiles below list every term in between with its index. The tab opens with 11 to 66, 6 terms from a1=2a_{1} = 2 to a6=486a_{6} = 486; indexes 44 to 99 give 6 terms from 5454 to 13,12213,122.

Both boxes must hold positive integers, the first no larger than the second, and the range may hold at most 100100 terms; otherwise a red box explains: "Enter two positive integer indexes", "From-index must be less than or equal to to-index", or "Range too wide — cap is 100 terms". The panel on the right, List a – b, explains the mode, and its walkthrough names the smallest and largest term of your range. The rule each tile uses is explained in the n-th term formula.

Testing a Number

DemoThe test tab, a non-member, a member, a decimal
Step 0 of 4
Click the Test a number tab to ask whether a given number is a term of the sequence. Type it in the Test number box and click Check or press Enter. A green box with a tick answers yes and names the index, as for the opening value 162162, which is a5a_{5}; a red box with a cross answers no, as for 100100, and the walkthrough on the right then shows the two nearest terms, a4=54a_{4} = 54 and a5=162a_{5} = 162. A large value is handled the same way: 39,36639,366 is a10a_{10}.

The box takes any number, decimals and negatives included, since the parameters may be decimals too; an empty box is refused with "Enter a number". The test is exact: the explorer multiplies a1a_1 by rr step by step and stops as soon as the running term reaches mm or passes it. The panel on the right, Test a number, states this rule, and its walkthrough carries out the arithmetic for your number. The formula behind it is in the n-th term formula.

Looking Up a Term by Index

DemoThe lookup tab, two indexes, n = 0
Step 0 of 4
Click the Lookup by index tab to compute one term directly. Type the position in the Index n box and click Get term or press Enter. Two cards answer: Index repeats nn and Value gives ana_n with its index as a subscript. The tab opens with n=10n = 10, which gives a10=39,366a_{10} = 39,366; n=15n = 15 gives 9,565,9389,565,938 and n=20n = 20 gives 2,324,522,9342,324,522,934. The box takes positive integers only; 00 is refused with "Enter a positive integer index".

The panel on the right has two parts in every mode. How it works names the rule the mode uses, here an=a1⋅rn−1a_n = a_1 \cdot r^{n-1}, and links to the section of this page that explains it; Walkthrough applies the rule to the numbers you typed, so for the lookup it shows the arithmetic with your nn and the current parameters filled in. Both change as soon as you switch tabs or click a button. The rule and where it comes from are in the n-th term formula.

Using the Solver Tab

DemoThe solver tab: a term, an unknown moved, a sum
Step 0 of 4
Click the Solver tab, the fifth tab, to work the formulas backwards. Three buttons choose the relation: Find term (aₙ) uses an=a1⋅rn−1a_n = a_1 \cdot r^{n-1}, Sum Sₙ uses Sn=a1rn−1r−1S_n = a_1 \frac{r^n - 1}{r - 1} and Infinite sum S∞ uses S∞=a11−rS_\infty = \frac{a_1}{1 - r} for ∣r∣<1|r| < 1. The first two have four boxes and the third has three; the one marked solve with a ? is the unknown and the others must be filled. The unknown opens as ana_n, SnS_n or S∞S_\infty; click the solve radio beside another box to make that the unknown. Click Solve or press Enter and the answer appears under the grid, while the walkthrough on the right shows the substitution.

With a1=2a_1 = 2, r=3r = 3 and n=10n = 10 the term is a10=39,366a_{10} = 39,366; with n=5n = 5 the sum is S5=242S_5 = 242; with a1=2a_1 = 2 and r=0.5r = 0.5 the infinite sum is 44, while r=3r = 3 is refused with "Series diverges when |r| ≥ 1". Switching the relation clears the boxes, and clicking Solve with a box empty gives "Fill all fields except the one being solved for". Solving SnS_n for rr is not supported, and solving for nn needs r>0r > 0. The solver boxes are independent of the Parameters row. Every relation is explained in using the solver — three modes.

What is a Geometric Sequence?

A geometric sequence (also called a geometric progression, GP) is a sequence where each term is obtained by multiplying the previous term by a constant. The constant is called the common ratio, denoted rr.

a1,    a1r,    a1r2,    a1r3,    …a_1, \;\; a_1 r, \;\; a_1 r^2, \;\; a_1 r^3, \;\; \ldots


Examples.

• a1=2a_1 = 2, r=3r = 3: gives 2,6,18,54,162,486,…2, 6, 18, 54, 162, 486, \ldots — exponential growth.
• a1=100a_1 = 100, r=1/2r = 1/2: gives 100,50,25,12.5,6.25,3.125,…100, 50, 25, 12.5, 6.25, 3.125, \ldots — exponential decay.
• a1=1a_1 = 1, r=2r = 2: gives 1,2,4,8,16,32,…1, 2, 4, 8, 16, 32, \ldots — powers of 2.
• a1=1a_1 = 1, r=−1r = -1: gives 1,−1,1,−1,…1, -1, 1, -1, \ldots — alternating signs.
• a1=5a_1 = 5, r=0r = 0: gives 5,0,0,0,…5, 0, 0, 0, \ldots — degenerate after the first term.

Three key formulas.

• The nn-th term: an=a1rn−1a_n = a_1 r^{n - 1}.
• Sum of first nn terms: Sn=a1rn−1r−1S_n = a_1 \dfrac{r^n - 1}{r - 1} for r≠1r \neq 1; Sn=na1S_n = n a_1 for r=1r = 1.
• Infinite sum: S∞=a11−rS_\infty = \dfrac{a_1}{1 - r} when ∣r∣<1|r| < 1; diverges otherwise.

Parametric nature. Like arithmetic sequences, geometric sequences depend on two parameters: a1a_1 and rr. The explorer lets you set both and explore the resulting sequence and sums.

For deeper coverage see geometric sequence, geometric series, and exponential function.

The definition is explained in Geometric sequences: definition, and the overview page compares the main types in Geometric sequences.

Finding terms works the formula through more examples, and Recursive formula gives the step-by-step form an=r⋅an−1a_n = r \cdot a_{n-1}.

Finite geometric series proves the formula and applies it.

Infinite geometric series explains convergence and the limit in detail.

Each relation the solver uses is derived in Finding terms, Finite geometric series and Infinite geometric series.

The n-th Term Formula

Derivation. Starting from a1a_1, multiply by rr once to get a1ra_1 r, twice to get a1r2a_1 r^2. After n−1n - 1 multiplications, the nn-th term is

an=a1rn−1a_n = a_1 r^{n - 1}


Inverting the formula. Given ana_n, a1a_1, and rr, solve for nn using logarithms:

n=ln⁡(an/a1)ln⁡r+1n = \frac{\ln(a_n / a_1)}{\ln r} + 1


This works only when r>0r > 0, r≠1r \neq 1, a1≠0a_1 \neq 0, and an/a1>0a_n / a_1 > 0. Negative rr requires complex logarithms; r=1r = 1 makes every term equal to a1a_1 and nn is undetermined.

Examples.

• Sequence 3,6,12,24,…3, 6, 12, 24, \ldots: a1=3a_1 = 3, r=2r = 2. The 10th term: a10=3⋅29=3⋅512=1536a_{10} = 3 \cdot 2^9 = 3 \cdot 512 = 1536.
• Sequence 1000,500,250,…1000, 500, 250, \ldots: a1=1000a_1 = 1000, r=1/2r = 1/2. The 10th term: a10=1000⋅(1/2)9=1000/512≈1.95a_{10} = 1000 \cdot (1/2)^9 = 1000/512 \approx 1.95.
• Membership test: is 162 in the sequence 2,6,18,54,…2, 6, 18, 54, \ldots (with r=3r = 3)? Solve 162=2⋅3n−1  ⟹  81=3n−1  ⟹  n−1=4  ⟹  n=5162 = 2 \cdot 3^{n-1} \implies 81 = 3^{n-1} \implies n - 1 = 4 \implies n = 5. Yes — 162=a5162 = a_5.

Two-parameter recovery. Given two terms ama_m and ana_n with m<nm < n: rn−m=an/amr^{n - m} = a_n / a_m, so r=(an/am)1/(n−m)r = (a_n / a_m)^{1/(n - m)}. Then a1=am/rm−1a_1 = a_m / r^{m - 1}.

Sign of rr. Negative rr produces alternating-sign sequences: a1=1,r=−2a_1 = 1, r = -2 gives 1,−2,4,−8,16,−32,…1, -2, 4, -8, 16, -32, \ldots. The closed form still applies; signs alternate based on parity of n−1n - 1.

The Finite Sum Formula

Finite geometric sum. The sum of the first nn terms of a geometric sequence is

Sn=a1+a1r+a1r2+⋯+a1rn−1=a1rn−1r−1(r≠1)S_n = a_1 + a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1} = a_1 \frac{r^n - 1}{r - 1} \quad (r \neq 1)


For r=1r = 1, every term equals a1a_1, and Sn=na1S_n = n a_1.

Derivation. Write the sum:

Sn=a1+a1r+a1r2+⋯+a1rn−1S_n = a_1 + a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1}


Multiply both sides by rr:

rSn=a1r+a1r2+⋯+a1rn−1+a1rnr S_n = a_1 r + a_1 r^2 + \cdots + a_1 r^{n - 1} + a_1 r^n


Subtract:

Sn−rSn=a1−a1rn  ⟹  Sn(1−r)=a1(1−rn)  ⟹  Sn=a11−rn1−r=a1rn−1r−1S_n - r S_n = a_1 - a_1 r^n \implies S_n (1 - r) = a_1 (1 - r^n) \implies S_n = a_1 \frac{1 - r^n}{1 - r} = a_1 \frac{r^n - 1}{r - 1}


Examples.

• a1=2a_1 = 2, r=3r = 3, n=5n = 5: S5=2⋅(35−1)/(3−1)=2⋅242/2=242S_5 = 2 \cdot (3^5 - 1)/(3 - 1) = 2 \cdot 242/2 = 242. Verify: 2+6+18+54+162=2422 + 6 + 18 + 54 + 162 = 242. ✓
• a1=1a_1 = 1, r=1/2r = 1/2, n=10n = 10: S10=(1/210−1)/(1/2−1)=(1/1024−1)/(−1/2)=(1023/1024)⋅2=2046/1024≈2.0S_{10} = (1/2^{10} - 1)/(1/2 - 1) = (1/1024 - 1)/(-1/2) = (1023/1024) \cdot 2 = 2046/1024 \approx 2.0.

Solving for nn. Given SnS_n, a1a_1, and rr, the formula is invertible:

rn=Sn(r−1)a1+1  ⟹  n=ln⁡(Sn(r−1)a1+1)ln⁡rr^n = \frac{S_n (r - 1)}{a_1} + 1 \implies n = \frac{\ln\left(\dfrac{S_n (r - 1)}{a_1} + 1\right)}{\ln r}


This requires r>0,r≠1r > 0, r \neq 1, and the argument of the logarithm to be positive.

Solving for rr. Given SnS_n, a1a_1, and nn, the equation Sn=a1(rn−1)/(r−1)S_n = a_1(r^n - 1)/(r - 1) is transcendental in rr — no closed-form solution in general. The solver flags this as unsupported.

The Infinite Sum and Convergence

Infinite geometric series. What happens as n→∞n \to \infty?

S∞=a1+a1r+a1r2+⋯=lim⁡n→∞a1rn−1r−1S_\infty = a_1 + a_1 r + a_1 r^2 + \cdots = \lim_{n \to \infty} a_1 \frac{r^n - 1}{r - 1}


Convergence condition. The series converges if and only if ∣r∣<1|r| < 1. When it converges:

S∞=a11−rS_\infty = \frac{a_1}{1 - r}


Why ∣r∣<1|r| < 1. As n→∞n \to \infty, rn→0r^n \to 0 when ∣r∣<1|r| < 1, giving the formula. When ∣r∣≥1|r| \geq 1, rnr^n does not converge (it grows, oscillates, or stays bounded but doesn't approach zero), and the series diverges.

Classic examples.

• Zeno's paradox. 1+1/2+1/4+1/8+⋯=11−1/2=21 + 1/2 + 1/4 + 1/8 + \cdots = \dfrac{1}{1 - 1/2} = 2. The pieces sum to a finite total despite there being infinitely many.
• Repeating decimals. 0.3‾=0.333…=0.31−0.1=130.\overline{3} = 0.333\ldots = \dfrac{0.3}{1 - 0.1} = \dfrac{1}{3}. Every repeating decimal is a geometric series.
• Convergent but slowly. a1=1,r=0.99a_1 = 1, r = 0.99: S∞=100S_\infty = 100. The sequence approaches zero so slowly that it takes thousands of terms to get close.

Diverging cases.

• r=1r = 1: Sn=na1→∞S_n = n a_1 \to \infty (unless a1=0a_1 = 0).
• r=−1r = -1: SnS_n oscillates between 00 and a1a_1, never converging.
• ∣r∣>1|r| > 1: ∣Sn∣|S_n| grows without bound.

The geometric series test. The convergence behavior of ∑rn\sum r^n is used as a benchmark for testing other series: comparison test, ratio test, root test all reference geometric series.

Power series. The geometric series is the simplest power series. ∑rn=1/(1−r)\sum r^n = 1/(1 - r) for ∣r∣<1|r| < 1 extends to functions: 1/(1−x)=1+x+x2+x3+⋯1/(1 - x) = 1 + x + x^2 + x^3 + \cdots for ∣x∣<1|x| < 1. The cornerstone of formal power series and generating functions.

Using the Solver — Three Modes

The geometric-sequence explorer includes a solver mode with three sub-modes:

• Find term (ana_n) — uses an=a1rn−1a_n = a_1 r^{n - 1}. Fill any three of {a1,r,n,an}\{a_1, r, n, a_n\} and the solver computes the fourth.
• Sum SnS_n — uses Sn=a1(rn−1)/(r−1)S_n = a_1 (r^n - 1)/(r - 1) for r≠1r \neq 1. Fill any three of {a1,r,n,Sn}\{a_1, r, n, S_n\} and the solver computes the fourth (except solving for rr, which is transcendental and not supported).
• Infinite sum S∞S_\infty — uses S∞=a1/(1−r)S_\infty = a_1/(1 - r) for ∣r∣<1|r| < 1. Fill any two of {a1,r,S∞}\{a_1, r, S_\infty\} and the solver computes the third, flagging cases where ∣r∣≥1|r| \geq 1 as divergent.

Solving for ana_n. Direct: an=a1rn−1a_n = a_1 r^{n - 1}.

Solving for a1a_1. Rearrange: a1=an/rn−1a_1 = a_n/r^{n - 1} (term sub-mode), a1=Sn(r−1)/(rn−1)a_1 = S_n(r - 1)/(r^n - 1) (sum sub-mode), or a1=S∞(1−r)a_1 = S_\infty(1 - r) (infinite sum).

Solving for rr. (n−1)(n - 1)-th root: r=(an/a1)1/(n−1)r = (a_n/a_1)^{1/(n - 1)} (term sub-mode). For infinite sum: r=1−a1/S∞r = 1 - a_1/S_\infty (with a convergence check). For finite sum: transcendental — not supported.

Solving for nn. Logarithm: n=ln⁡(an/a1)/ln⁡r+1n = \ln(a_n/a_1)/\ln r + 1 (term sub-mode); n=ln⁡(Sn(r−1)/a1+1)/ln⁡rn = \ln(S_n(r - 1)/a_1 + 1)/\ln r (sum sub-mode). Both require r>0r > 0, r≠1r \neq 1.

Edge cases the solver handles.

• r=1r = 1: term-sub-mode has every term equal; sum sub-mode reduces to Sn=na1S_n = n a_1.
• r≤0r \leq 0 in solve-for-nn: real logarithm doesn't exist, the solver flags this.
• ∣r∣≥1|r| \geq 1 in infinite sum: divergence flagged.
• a1=0a_1 = 0: most equations become degenerate; flagged.

Practical use. Solve word problems: "An investment of \1000growsby51000 grows by 5% per year. After how many years does it reach \2000?" → solve for nn given a1=1000a_1 = 1000, r=1.05r = 1.05, an=2000a_n = 2000.

Common Applications

Geometric sequences model exponential growth and decay across science, finance, and computing.

• Compound interest. \1000at51000 at 5% annual interest, compounded yearly: balance follows the geometric sequence 1000, 1050, 1102.50, \ldotswith with r = 1.05$.
• Population growth. Bacterial population doubles every hour: r=2r = 2. After nn hours, population is a1⋅2n−1a_1 \cdot 2^{n - 1} relative to the starting count.
• Radioactive decay. Mass remaining after each half-life follows r=1/2r = 1/2. After nn half-lives, a1/2na_1 / 2^n mass remains.
• Mortgage payments. Outstanding balance after each payment follows a geometric-related sequence (with adjustments for the principal payment). The total payment formula is the geometric sum.
• Algorithm analysis. Binary search splits the search space by half each step — a geometric sequence with r=1/2r = 1/2. Total steps: log⁡2n\log_2 n.
• Fractals and self-similarity. The Koch snowflake's perimeter at each iteration multiplies by 4/34/3: a geometric sequence with r=4/3r = 4/3 that grows without bound.
• Repeating decimals as fractions. 0.abc‾=abc/9990.\overline{abc} = abc/999, derived from the geometric-series formula.
• Pyramid schemes. Each level multiplies participants by some ratio rr. Total participants grow exponentially until the scheme exceeds the population.
• Music tuning. Equal-temperament tuning divides the octave into 12 equal ratios, each 212≈1.0595\sqrt[12]{2} \approx 1.0595. Frequencies follow a geometric sequence.
• Light absorption. Light passing through a medium of uniform absorption loses a fixed fraction per unit length — Beer's law, an exponential decay (geometric in the discrete approximation).

Identifying geometric sequences shows how to spot a constant ratio in data; Geometric mean is the average that fits such data.

Common Mistakes

• Off-by-one in the nn-th term formula. an=a1rn−1a_n = a_1 r^{n - 1}, not a1rna_1 r^n. The 1st term is a1a_1 (zero multiplications), the 2nd is a1ra_1 r (one multiplication).

• Wrong sum formula. Sn=a1(rn−1)/(r−1)S_n = a_1 (r^n - 1)/(r - 1) or equivalently a1(1−rn)/(1−r)a_1 (1 - r^n)/(1 - r). Both are correct; common errors include using nn as an exponent on r−1r - 1 or forgetting to divide by r−1r - 1.

• Treating r=1r = 1 with the general formula. When r=1r = 1, the formula has 0/00/0 — undefined. The correct value is Sn=na1S_n = n a_1. Always check r=1r = 1 as a special case.

• Forgetting the convergence condition for S∞S_\infty. The infinite sum exists only when ∣r∣<1|r| < 1. Applying a1/(1−r)a_1/(1 - r) when ∣r∣≥1|r| \geq 1 gives a meaningless number. The classic error: writing 1+2+4+8+⋯=1/(1−2)=−11 + 2 + 4 + 8 + \cdots = 1/(1 - 2) = -1. The series diverges; the formula doesn't apply.

• Confusing arithmetic and geometric. Arithmetic adds; geometric multiplies. "Increases by 10% per year" is geometric (r=1.1r = 1.1); "increases by \10peryear"isarithmetic(10 per year" is arithmetic (d = 10$).

• Negative rr and parity. With r<0r < 0, terms alternate in sign. a1=1,r=−2a_1 = 1, r = -2 gives 1,−2,4,−8,161, -2, 4, -8, 16. The sum formula still works but the result oscillates as nn grows.

• Logarithm restrictions in solve-for-nn. n=ln⁡(an/a1)/ln⁡r+1n = \ln(a_n/a_1)/\ln r + 1 requires positive arguments. Negative or zero rr, or ana_n and a1a_1 with opposite signs, makes the formula fail. The solver flags these.

• Floating-point errors with non-integer ratios. r=1/3r = 1/3 is exact in mathematics but approximate in floating-point. Computing a100a_{100} with r=1/3r = 1/3 accumulates rounding error. Use symbolic computation or rational arithmetic for exact results.

• Conflating geometric series with arithmetic series for ratio. "Common ratio" is for geometric; "common difference" is for arithmetic. The terms are not interchangeable.

The one-page summary Geometric sequences at a glance is a quick check against these slips.