Enter the first term (the first number of the sequence), the common ratio (the number you multiply by at each step) and the number of terms (how far to go), then press "Calculate". You get the first few terms, the nth term and the sum of the first n terms at once. The formula below is linked to the input fields, so you can also edit the first term, common ratio and number of terms right inside the formula. When the absolute value of the common ratio is less than 1, it also shows the sum when you keep adding forever (the sum of the infinite geometric series).
Table of Contents
-
What you can do on this page
-
What is this calculation used for?
-
How to Use
-
Formulas and graphs
-
Symbols and terms
-
Good to know before you start
-
How to calculate it in Excel
-
How to calculate it in Google Sheets
-
How to calculate it in Python
-
How to write it in LaTeX and other math languages (copy and paste)
-
How to have ChatGPT do the calculation
-
DataChef Features
-
Related Features
-
NumberChef Calculators List
What you can do on this page
- Enter just three values, the first term, the common ratio (the number you multiply by at each step) and the number of terms, to get the \(n\)th term and the sum of the first \(n\) terms at once
- Works directly for problems like "The sequence 3, 6, 12, 24, … doubles each time. What is the 10th number? What do the first 10 numbers add up to?"
- The first term and the common ratio can be decimals or negative numbers (use a common ratio of "0.5" for a sequence that halves each time, and a negative ratio for one whose signs alternate)
- When the absolute value of the common ratio is less than 1, it also shows the sum when you keep adding forever (the sum of the infinite geometric series)
- Along with the result, a graph shows how the terms keep doubling (rising along a curve). A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are also on this page
What is this calculation used for?
With compound interest, where interest also earns interest, the balance grows by the same factor every year, so it forms a geometric sequence. If you invest $10,000 at 3% interest compounded yearly, the balance is multiplied by 1.03 every year. After 10 years it is \(10000 \times 1.03^{10} \approx 13439\) dollars (assuming the rate stays the same for all 10 years).
"How much will it be in k years?" is exactly the \(n\)th-term calculation of a geometric sequence. The difference from simple interest, which grows by the same amount every year (an arithmetic sequence), is "grow by adding, or grow by multiplying".
Bacteria that multiply by splitting double in number with each division, so they form a geometric sequence with common ratio 2. If one bacterium divides once every 20 minutes, after 6 hours (18 divisions) there are \(2^{18} = 262144\) of them, more than 260,000 (this assumes an ideal case with enough food and space and no bacteria dying).
This doubling pattern (exponential growth) is also the reason you are told not to leave food out at room temperature.
Fold a sheet of copy paper about 0.004 inch thick once and it becomes twice as thick. Each fold doubles it, so the thickness forms a geometric sequence with common ratio 2. On paper, 10 folds give \(0.004 \times 2^{10} \approx 4.1\) inches, and 23 folds give about 2,800 feet, taller than the Burj Khalifa (2,717 feet), the tallest building in the world.
In real life you can only fold paper about 7 or 8 times. Still, "just 23 doublings to pass the world's tallest building" shows how far geometric growth goes beyond our feel for addition.
Suppose a ball bounces back to 60% of the height it fell from each time. Drop it from 6 feet, and the bounce heights shrink as a geometric sequence with common ratio 0.6. By the 5th bounce, it rises only \(6 \times 0.6^{5} \approx 0.47\) feet (about 5.6 inches).
Things that shrink by the same percentage each time, such as fading vibrations and sounds or the level of a medicine in the blood, are modeled with geometric sequences whose common ratio is less than 1.
The equal-tempered scale used on the piano and other instruments is a geometric sequence: each half step up multiplies the frequency by about 1.0595 (exactly the 12th root of 2). Going up 12 half steps from A (440 Hz) gives \(440 \times (\sqrt[12]{2})^{12} = 880\) Hz, the A exactly one octave higher.
Because every half step has the same ratio, music sounds the same in any key you move it to. Geometric sequences are built into the foundation of music.
Formulas and graphs
Symbols and terms
Symbols
| \(a\) | a | The first term. The very first term (number) of the sequence. For the sequence 3, 6, 12, 24, …, it is 3. |
| \(r\) | ar | The common ratio. The fixed number you multiply by to get the next term. For 3, 6, 12, 24, … it is 2. The letter comes from "ratio", and it can be a decimal or a negative number. |
| \(n\) | en | The number of terms. A positive whole number that says how far along the sequence you go. "Up to term 10" is \(n = 10\). |
| \(a_n\) | a sub n | The \(n\)th term. The \(n\)th number of the sequence. The small letter at the lower right (the subscript) tells which position it is. The \(n\)th term written as a formula in \(n\) is called the general term. |
| \(r^{n-1}\) | r to the power of n minus one | The common ratio \(r\) multiplied by itself \(n-1\) times (a power). From term 1 to term \(n\) there are \(n-1\) steps, so you multiply one time fewer than the number of terms \(n\) (from term 1 to term 3 is 2 steps). |
| \(S_n\) | S sub n | The sum of terms 1 through \(n\). A short way to write \(a_1 + a_2 + \cdots + a_n\). The letter S comes from "sum". |
| \(S\) | S | The sum of the infinite geometric series. The value the sum approaches when you keep adding terms forever. It is also written \(S_\infty\) ("S sub infinity"). |
| \(\cdots\) | dot dot dot (ellipsis) | A symbol that says the pattern continues the same way. Writing 3, 6, 12, 24, … says the numbers keep doubling. |
Terms
| sequence | A list of numbers in a set order. Each number in the list is called a term. |
| geometric sequence | A sequence where the ratio between neighboring terms is always the same, such as 3, 6, 12, 24, … (multiply by 2 each time). It is also called a geometric progression. |
| term | Each single number in a sequence. From the start, they are called term 1, term 2, and so on. |
| first term | The very first term of a sequence, that is, term 1. It is written \(a\) or \(a_1\). |
| common ratio | In a geometric sequence, the fixed number you multiply by to get the next term. You get the same value whichever neighboring pair you divide (later term ÷ earlier term). It can be a decimal (for example 0.5, halving each time) or a negative number (the signs alternate). |
| power | A number multiplied by itself several times. \(2^5\) (2 to the 5th power) is \(2 \times 2 \times 2 \times 2 \times 2 = 32\). The small number at the upper right (the exponent) tells how many times to multiply. Taught in Grade 6. |
| general term | The \(n\)th term written as a formula in \(n\), also called the explicit formula. For a geometric sequence it is \(a_n = a r^{n-1}\). Put a position number in for \(n\) and you get that term right away. |
| infinite geometric series | The terms of a geometric sequence added up forever. Only when the absolute value of the common ratio is less than \(1\) does the sum converge to a fixed value, \(\dfrac{a}{1-r}\). It is taught in Algebra 2 or precalculus, but the idea is simple: each amount you add gets smaller and smaller. |
| converge | To get closer and closer to one fixed value the more you add (or the further you go along the sequence). 100 + 50 + 25 + 12.5 + … gets closer to 200 the more you add, so we say it converges to 200. |
| arithmetic sequence | A sequence where the difference between neighboring terms is always the same, such as 5, 8, 11, 14, … (add 3 each time). It grows differently from a geometric sequence, which multiplies by the same number, so the formulas on this page do not apply. |
Good to know before you start
Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back to review these topics is the fastest way forward.
| Number patterns (Grades 4–5) |
|
| Multiplying decimals and fractions (Grades 5–6) |
|
| Negative numbers (Grade 7) |
|
| Exponents and variables (Grade 6) |
|
| Order of operations (Grades 5–6) |
|
How to calculate it in Excel
| First term a | 3 |
| Common ratio r | 2 |
| Number of terms n | 10 |
| nth term | =B1*B2^(B3-1) |
| First term a | 3 |
| Common ratio r | 2 |
| Number of terms n | 10 |
| Sum of terms 1 through n | =IF(B2=1,B1*B3,B1*(1-B2^B3)/(1-B2)) |
| First term a | 100 |
| Common ratio r | 0.5 |
| Sum when you keep adding forever | =B1/(1-B2) |
In the formulas, "B1" and "B2" say "use the number in that cell", "*" is multiplication, "/" is division and "^" is a power (B2^(B3-1) is "the common ratio to the power of (number of terms − 1)").
In the second table, IF(B2=1, …) splits the cases: "if the common ratio is 1, use first term × number of terms; otherwise use the sum formula" (with a common ratio of 1, the denominator of the sum formula would be 0).
For example, the first table shows 1536 (term 10) in B4, the second table shows 3069 (the sum) in B4, and the third table shows 200 in B3. Just replace the input cells with your own numbers.
How to calculate it in Google Sheets
| First term a | 3 |
| Common ratio r | 2 |
| Number of terms n | 10 |
| nth term | =B1*B2^(B3-1) |
| First term a | 3 |
| Common ratio r | 2 |
| Number of terms n | 10 |
| Sum of terms 1 through n | =IF(B2=1,B1*B3,B1*(1-B2^B3)/(1-B2)) |
| First term a | 100 |
| Common ratio r | 0.5 |
| Sum when you keep adding forever | =B1/(1-B2) |
How to calculate it in Python
first_term = 3 # first term
common_ratio = 2 # common ratio
number_of_terms = 10 # number of terms
# nth term = first term * common ratio to the power (n - 1)
nth_term = first_term * common_ratio ** (number_of_terms - 1)
# sum of terms 1 through n = first term * (1 - ratio^n) / (1 - ratio); when the ratio is 1, first term * n
if common_ratio == 1:
sum_of_terms = first_term * number_of_terms
else:
sum_of_terms = first_term * (1 - common_ratio ** number_of_terms) / (1 - common_ratio)
# first 10 terms of the sequence (for checking)
sequence = [first_term * common_ratio ** k for k in range(min(number_of_terms, 10))]
print(f"First terms: {sequence}")
print(f"Term {number_of_terms}: {nth_term}")
print(f"Sum of terms 1 through {number_of_terms}: {sum_of_terms}")
How to write it in LaTeX and other math languages (copy and paste)
aₙ = a × rⁿ⁻¹
a_n = a r^{n-1}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<msub><mi>a</mi><mi>n</mi></msub>
<mo>=</mo>
<mi>a</mi>
<msup><mi>r</mi><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow></msup>
</mrow>
</math>
a_n = a r^(n-1)
a*r^(n - 1)
an := a*r^(n - 1);
a_n = a*r^(n - 1);
a_n = ar^(n - 1)
Sₙ = a(1 − rⁿ) ÷ (1 − r)
S_n = \dfrac{a(1 - r^{n})}{1 - r} \quad (r \neq 1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<msub><mi>S</mi><mi>n</mi></msub>
<mo>=</mo>
<mfrac>
<mrow>
<mi>a</mi>
<mo>(</mo>
<mn>1</mn>
<mo>−</mo>
<msup><mi>r</mi><mi>n</mi></msup>
<mo>)</mo>
</mrow>
<mrow>
<mn>1</mn>
<mo>−</mo>
<mi>r</mi>
</mrow>
</mfrac>
</mrow>
</math>
S_n = (a(1 - r^n))/(1 - r)
a*(1 - r^n)/(1 - r)
Sn := a*(1 - r^n)/(1 - r);
S_n = a*(1 - r^n)/(1 - r);
S_n = a(1 - r^n)/(1 - r)
Sₙ = a × n
S_n = a n \quad (r = 1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<msub><mi>S</mi><mi>n</mi></msub>
<mo>=</mo>
<mi>a</mi>
<mi>n</mi>
</mrow>
</math>
S_n = a n
a*n
Sn := a*n;
S_n = a*n;
S_n = an
S = a ÷ (1 − r)
S = \dfrac{a}{1 - r} \quad (|r| < 1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>S</mi>
<mo>=</mo>
<mfrac>
<mi>a</mi>
<mrow>
<mn>1</mn>
<mo>−</mo>
<mi>r</mi>
</mrow>
</mfrac>
</mrow>
</math>
S = a/(1 - r)
a/(1 - r)
S := a/(1 - r);
S = a/(1 - r);
S = a/(1 - r)
How to have ChatGPT do the calculation
You are an assistant for geometric sequence calculations. Do the following calculations by actually running Python code, and base your answer only on the numbers from the output (do not answer from mental math or guesses). Find the nth term with a_n = a × r^(n-1), the sum with S_n = a(1 - r^n)/(1 - r) (S_n = a × n when r = 1), and the sum of the infinite geometric series with S = a/(1 - r) when |r| < 1. 1. Term 10 and the sum of terms 1 through 10 of the geometric sequence with first term 3 and common ratio 2 2. Term 6, the sum of terms 1 through 6, and the sum when you keep adding forever, for the geometric sequence with first term 100 and common ratio 0.5 3. Term 6 and the sum of terms 1 through 6 of the geometric sequence with first term 3 and common ratio -2 Show the formulas you used and the numbers from the output.
How to Use
-
1Enter your numbersType the numbers you want to calculate with into the input fields
-
2CalculatePress the "Calculate" button
-
3Check the resultThe result appears on the spot. The same page also explains the idea behind the calculation and the formula
DataChef Features
No technical knowledge required.
Intuitive and user-friendly operation.
Can be used without registering personal information.
Automatic file deletion by clicking "download".
and rapid file conversion.
No attribution required.
No need to contact us for commercial use permission.
