Audited 29 Jul 2026·Last updated 28 Oct 2026·5 citations·Tier 1·0 uses

Geometric Sequence Calculator

Solve a geometric sequence for the nth term, common ratio, first term or term count, with the sum of n terms and whether the infinite series converges.

Geometric Sequence Calculator

What do you want to find?
Must not be zero — a zero first term makes every later term zero and the ratio unrecoverable.
The constant factor each term is multiplied by. Must not be zero. Negative values alternate the sign of the terms.
A whole number of 1 or more. Ignored when you are solving for n.
Ignored when you are solving for aₙ. Used as the known term in the other three modes.
nth term (aₙ)
4,374
The value at position n, equal to a₁ × r^(n − 1), in the same units as the first term.
Sum of the first n terms (Sₙ)
6,560
Infinite series
Diverges — |r| = 3 is not below 1, so the terms never shrink toward zero.
First term (a₁)
2
Common ratio (r)
3
Number of terms (n)
8
Explicit rule
aₙ = 2 × 3^(n − 1)
Sequence
2, 6, 18, 54, 162, 486, …, 4374 (8 terms, growing by a factor of 3)

Background.

Put one grain of rice on the first square of a chessboard, two on the second, four on the third, and keep doubling. The 64th square alone needs 2⁶³ grains, about 9.223 × 10¹⁸, and that single square holds one grain more than the other 63 squares put together. Multiplying by the same number at every step is the whole definition of a geometric sequence, and that runaway arithmetic is why compound interest and the early days of an epidemic look slow for a while and then suddenly enormous.

Run the same rule with a factor below 1 and it works in reverse. A drug concentration that halves with every half-life, a ball that rebounds to 60% of the height it fell from, a signal that loses the same fraction at each stage of a cable: every step is a fixed fraction of the one before, the terms shrink toward zero, and the total of all of them, even infinitely many, settles on a finite number. In the idealised model the ball never quite stops bouncing, yet dropped from 2 metres with that 60% rebound it travels a total of exactly 8 metres.

Four quantities pin a geometric sequence down: the first term a₁, the common ratio r, a position n and the value aₙ found there. Know three and the fourth follows, so the calculator solves in all four directions. You can find a later term, back out the growth factor between two known values, recover a starting value, or locate where a given value falls in the run. Whichever you choose, it also reports the sum of the first n terms, the explicit rule with your numbers in it, a preview of the terms, and a sentence on whether the infinite series converges.

Positions are counted from 1, so the eighth term sits seven multiplications after the first. Some references, the Encyclopedia of Mathematics among them, count from 0 and call the starting value a₀. The sequences are identical; only the labels shift by one, which matters when you copy n out of a textbook problem.

What is geometric sequence calculator?

A geometric sequence, also called a geometric progression, is a list of numbers in which every term after the first equals the previous term multiplied by the same non-zero constant, the common ratio r. Dividing any term by the one before it therefore always gives the same answer, and that is the quickest test of whether data are geometric: 6 ÷ 2, 18 ÷ 6 and 54 ÷ 18 all equal 3. When the terms are positive there is a second test: each one is the geometric mean of its two neighbours, as in 18² = 324 = 6 × 54.

The ratio sets the shape. Above 1 the terms grow; between 0 and 1 they shrink toward zero without ever reaching it; exactly 1 gives a constant list; and a negative ratio flips the sign at every step, so the terms alternate between positive and negative while their size grows or shrinks according to |r|. The ratio cannot be 0, because one zero term makes every later term zero.

Adding the terms gives a geometric series. A finite series stops after n terms; an infinite one asks whether the running total approaches a limit, which happens only when |r| is below 1. Any exponential growth or decay sampled at equal intervals is a geometric sequence: a balance growing 5% a year has r = 1.05, and a radioactive sample measured once per half-life has r = 0.5.

How to use this calculator.

  1. Pick the unknown under 'What do you want to find?': the nth term, the common ratio, the first term or the number of terms. Whatever sits in the field you are solving for is ignored.
  2. Enter the first term a₁ and the common ratio r as plain numbers. Convert percentages first: growth of 5% per step is r = 1.05, a fall of 20% per step is r = 0.8, and halving is r = 0.5. Neither a₁ nor r may be 0.
  3. Set the number of terms n, a whole number from 1 to 100,000, counting the first term as term 1. If your problem counts years or periods after an opening value, n is one more than that count.
  4. When you solve for the ratio, the first term or the count, type the known later value into 'Value of the nth term (aₙ)'. Copy it at full precision: in count mode a value rounded to the cent can be rejected as not being a term at all.
  5. Read the main result, then the sum and the infinite-series line. The preview shows the opening six terms and the last one, which is the fastest way to spot a mistyped ratio or a sign you did not expect.

The formula.

aₙ = a₁·r^(n−1) · Sₙ = a₁(1 − rⁿ) ⁄ (1 − r) · S∞ = a₁ ⁄ (1 − r), |r| < 1

The nth term comes from counting multiplications. Getting from term 1 to term n takes n − 1 steps, each one multiplying by r, so aₙ = a₁ · r^(n−1). Writing a₁ · rⁿ instead is the classic off-by-one error, and it puts every term out by a factor of r.

The sum uses a short trick. Write Sₙ = a₁ + a₁r + a₁r² + … + a₁r^(n−1), multiply the whole line by r, and subtract one line from the other: every middle term cancels, leaving Sₙ − rSₙ = a₁ − a₁rⁿ, so Sₙ = a₁(1 − rⁿ)/(1 − r). That step divides by 1 − r, so r = 1 is handled separately: every term equals a₁ and the sum is simply n × a₁. A rearranged form, Sₙ = (r·aₙ − a₁)/(r − 1), uses the last term directly and is the easier one to check by hand.

Let n grow without limit and rⁿ fades to zero only when |r| < 1; the partial sums then close in on S∞ = a₁/(1 − r). At |r| ≥ 1 nothing fades. With r = 1 the total climbs forever, with r = −1 it flips between a₁ and 0, and beyond that the swings widen, so the result is stated as divergent instead of being given a number.

The inverse solves rearrange the same equation. The first term is a₁ = aₙ / r^(n−1). The ratio is the (n − 1)th root of aₙ/a₁; with an even number of steps and a positive quotient both the positive and the negative root fit, and the positive one is reported, while a negative quotient over an even number of steps has no real root and is refused. The position comes from logarithms, n = 1 + ln|aₙ/a₁| ⁄ ln|r|. Real data rarely give a whole number exactly, so the result is rounded to the nearest position, the term there is recomputed, and your value is accepted only if it agrees to about one part in a billion, a check that also catches a wrong sign when r is negative. A ratio of exactly 1 or −1 cannot locate a position, since every term has the same size.

A worked example.

Example

Take a first term of 2 and a common ratio of 3, and ask for the eighth term. Seven multiplications separate term 1 from term 8, so the exponent is 7: 3⁷ = 2,187, and 2 × 2,187 = 4,374. Written out, the run is 2, 6, 18, 54, 162, 486, 1,458, 4,374. For the sum, the closed form gives 2 × (1 − 3⁸) ÷ (1 − 3). Since 3⁸ = 6,561, that is 2 × (−6,560) ÷ (−2) = 6,560. Adding the terms one at a time agrees, with running totals of 2, 8, 26, 80, 242, 728, 2,186 and finally 6,560, and the last-term shortcut gets there in one line: (3 × 4,374 − 2) ÷ (3 − 1) = 13,120 ÷ 2 = 6,560. The eighth term on its own is 4,374 ÷ 6,560 = 0.6668 of the total, about two-thirds, and it is larger than the 2,186 that the first seven terms add up to. That lopsidedness is what a ratio of 3 does: the newest term always outweighs everything before it. With |r| = 3 the infinite-series line reports divergence, because the terms grow without limit and there is no total to approach. Run backwards with a₁ = 2, aₙ = 4,374 and n = 8, ratio mode returns r = 3, the seventh root of 2,187.

first Term2
nth Term Value4,374
common Ratio3
number Of Terms8
solve FornthTerm

Frequently asked questions.

How do I get the common ratio from two terms that are several positions apart?
Divide the later value by the earlier one and take the root that matches the number of steps between them. From a₁ = 2 to a₈ = 4,374 is seven steps, so r = (4,374 ÷ 2)^(1/7) = 2,187^(1/7) = 3. Choose the common-ratio mode, enter the first term, the later value and its position, and the root is taken for you.
Why is the ratio reported as positive when a negative ratio fits my numbers too?
When the two terms are an even number of steps apart, the ratio only appears raised to an even power, and that hides its sign. A first term of 1 and a third term of 16 fit both 1, 4, 16 and 1, −4, 16. The calculator returns r = 4; if your sequence alternates in sign, use −4 instead. A first term of 1 with a third term of −16 is refused, because no real number squared gives a negative.
How can infinitely many terms add up to a finite number?
Because each term is a fixed fraction of the last, the pieces shrink fast enough that the running total stops growing in any meaningful way. A ball dropped from 2 m that rebounds to 60% of its height rises 1.2 m, 0.72 m, 0.432 m and so on; with a₁ = 1.2 and r = 0.6 those rebounds total 1.2 ÷ 0.4 = 3 m. Each rebound is travelled up and down, so the ball covers 2 + 2 × 3 = 8 m in all.
Does 0.999… with nines forever equal exactly 1?
Yes. Read the decimal as 0.9 + 0.09 + 0.009 + …, a geometric series with a₁ = 0.9 and r = 0.1. Its limit is 0.9 ÷ (1 − 0.1) = 0.9 ÷ 0.9 = 1, and entering those two values gives 'Converges to 1'. The sum of the first ten terms is 0.9999999999, ten nines after the point; only the infinite series reaches 1.
What common ratio should I use for growth or decline in percent?
Add the rate to 1 for growth and subtract it from 1 for decline: 5% growth is r = 1.05, 7% interest is r = 1.07, and 15% depreciation is r = 0.85. A car bought for $20,000 losing 15% a year gives the sequence 20,000, 17,000, 14,450 and so on, worth $8,874.11 after five years, which is the sixth term.
Why does my compound-interest answer come out one year short?
If the first term is the opening balance, the balance after t years is term t + 1, not term t. $1,000 at 5% a year after 10 years is the 11th term of 1,000, 1,050, 1,102.50, …, which is $1,628.89. Entering n = 10 gives the balance after nine years. The same shift applies to any 'after t periods' question.
What does 'not a term of this sequence' mean when I solve for the number of terms?
Your value falls between two positions instead of on one. With a₁ = 2 and r = 3, entering 4,375 or 5,000 reports that position 8 holds 4,374. A rounded figure triggers the same message: 1,628.89 is rejected for 1,000 growing at 5%, because the 11th term is 1,628.8946. Enter the value at full precision, or use the reported position as the nearest whole term.
What does a value like 1.81898940355e-12 in the sequence preview mean?
It is computer shorthand for 1.81898940355 × 10⁻¹², a number with eleven zeros after the decimal point before its first significant digit. That is the 40th term of 1, 0.5, 0.25, …. The preview gives terms to twelve significant figures, while the main nth-term result is carried to ten decimal places, so a term this small can read 0 there even though no term of the sequence is ever zero. Very large terms use a positive exponent, such as 4.49423283716e+307 for the 1,023rd term of a doubling sequence that starts at 1.
How many terms can I ask for before the numbers become too large?
The input allows up to 100,000 terms, but a growing sequence usually overflows long before that. Doubling from 1 works up to n = 1,023, where the term is about 4.494 × 10³⁰⁷; at n = 1,024 the sum passes the largest number a computer's standard floating-point format can hold, roughly 1.798 × 10³⁰⁸, and you are asked for a smaller n or ratio.
What yearly growth rate turns 1,000 into 2,000 in ten years?
Use ratio mode with a₁ = 1,000, aₙ = 2,000 and n = 11, since ten years of growth separate the first and eleventh terms. The result is r = 1.0718, about 7.18% a year, the tenth root of 2. The same mode recovers any steady rate from a start value, an end value and the number of periods between them.

How this page was produced

Published by
Quanta Calculator
Primary sources
5 cited below
Method
aₙ = a₁·r^(n−1) · Sₙ = a₁(1 − rⁿ) ⁄ (1 − r) · S∞ = a₁ ⁄ (1 − r), |r| < 1
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon