Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Fibonacci Sequence Calculator (nth Term and Sum)

Enter the number of terms (how far to go) and press "Calculate". You get the first few terms of the Fibonacci sequence (1, 1, 2, 3, 5, 8, …), the nth term and the sum of the first n terms at once.

Enter the number of terms n as a positive whole number (1 to 1000). All calculations use exact whole numbers, so even large terms have no rounding error in any digit.
Result and graph
Enter the number of terms in the field on the left and press "Calculate". The result and a graph will appear here.

What you can do on this page

  • Enter just one value, the number of terms (how far to go), to get the \(n\)th term of the Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, …) and the sum of the first \(n\) terms at once
  • Works directly for questions like "What is the 20th Fibonacci number? What do the first 20 add up to?"
  • Calculates exact values, with every digit, all the way up to term 1000 (a 209-digit number)
  • Along with the result, a graph shows how the Fibonacci sequence grows, with each term being the sum of the two terms before it
  • A plain-language explanation of the formula (the recurrence relation) and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
This calculator starts the Fibonacci sequence at 1, as "1, 1, 2, 3, 5, …" (term 1 = 1, term 2 = 1). Some books put a 0 in front and start "0, 1, 1, 2, 3, …". In that case the 0 is usually counted as term 0, so from term 1 = 1 on, the numbering is the same as on this page. (Be careful - if you count the 0 as the 1st term, every position number shifts by one.)

What is this calculation used for?

A classic exercise for learning to program (computer science)

The Fibonacci sequence follows the simple rule "add the two previous terms", so it is a classic exercise for learning loops and recursion (a function that calls itself) in intro programming. The same answer can take very different amounts of time depending on how you write the code (plain recursion needs a huge number of calls to reach term 50), so it is also popular in algorithms classes.
There are also a data structure (the Fibonacci heap) and a search method (Fibonacci search) named after it, making it one of the basic terms of computer science.

The ratio of neighboring terms approaches the golden ratio (math and design)

It has been proven that the ratio of neighboring Fibonacci numbers (later ÷ earlier) gets closer to the golden ratio \(\varphi = 1.618\cdots\) the further you go. In fact, \(55 \div 34 \approx 1.6176\) and \(89 \div 55 \approx 1.6182\), so by around term 10 they already match to 2 decimal places.
The golden ratio is sometimes used in design as a well-balanced ratio. For example, the shape of a credit card is often said to be close to it. That the golden ratio appears from a sequence built only by adding whole numbers is the most beautiful property of the Fibonacci sequence.

How pairs of rabbits multiply (the problem behind the sequence)

The Fibonacci sequence comes from a problem in the book Liber Abaci by the 13th-century Italian mathematician Fibonacci: "A newborn pair of rabbits starts having one new pair every month once it is 2 months old. How does the number of pairs change month by month?" The number of pairs each month grows as 1, 1, 2, 3, 5, 8, …, reaching 144 pairs in month 12.
Of course, real rabbits do not multiply exactly this way; it is an idealized model. Still, it became the starting point for describing with sequences how an amount grows depending on the amounts a little earlier.

Used for estimates in software teams (IT and project management)

In agile software development, it is common to estimate work with numbers based on the Fibonacci sequence, such as 1, 2, 3, 5, 8, 13, … (called story points).
The gaps grow as the numbers get larger, which fits the reality that bigger tasks cannot be estimated precisely. It also avoids pointlessly fine debates such as "is this an 8 or a 9?".

Found in the spirals of plants (biology and nature)

Many examples have been reported where the number of spirals is a Fibonacci number (8, 13, 21, 34, 55, …), such as the spirals of seeds in a sunflower (for example, 34 one way and 55 the other) and the spirals of scales on pine cones and pineapples. This pattern is explained by how plants grow: new buds and seeds form in directions that do not overlap the parts already there.
Not every plant or specimen follows it, though. It is known as a tendency: many examples turn out to be Fibonacci numbers. Try counting the spirals on a plant near you, and you may meet this sequence.

Formulas and graphs

Formula for the next term (the Fibonacci recurrence relation)
Graph
Standard notation (the usual math form)
\(a_n\) \(=\) \(a_{n-1}\) \(+\) \(a_{n-2}\)
In words (symbols replaced with words)
③ \(a_n\): \(n\)th term \(=\) ① \(a_{n-1}\): previous term \(+\) ② \(a_{n-2}\): term two before
The formula in words
① Add the \(a_{n-1}\): previous term and the
② \(a_{n-2}\): term two before ,
③ and you get the \(a_n\): \(n\)th term
Quick example
In the Fibonacci sequence 1, 1, 2, 3, 5, 8, …, term 7 is
\(a_7\): term 7 \(=\) previous term (term 6 = 8) \(+\) term two before (term 5 = 5)
\(8 + 5 = 13\)
Key idea
This formula alone does not fix the first two terms. The sequence is fully set only when you add the rule (the initial conditions) that the first two terms are both \(1\) (\(a_1 = 1,\ a_2 = 1\)). A formula written as "a rule that gets the next term from earlier terms" like this is called a recurrence relation (or recursive formula). Unlike the general term of an arithmetic or geometric sequence (a formula that gives the value as soon as you put in \(n\)), to find the \(n\)th term you go back to term 2 and add your way forward in order. Some books put a \(0\) in front and start \(0, 1, 1, 2, 3, \cdots\). In that style the \(0\) is usually counted as term 0 (\(a_0 = 0\)), so from term 1 on (\(a_1 = 1,\ a_2 = 1, \cdots\)) the numbers and values are the same as on this page. The position numbers shift by one only if you count the \(0\) as the 1st term. This calculator uses the common textbook convention: start with \(1, 1\), with term 1 = 1.
Formula for the sum of the first \(n\) terms (the sum property)
Graph
Standard notation (the usual math form)
\(S_n\) \(=\) \(a_{n+2}\) \(-\) \(1\)
In words (symbols replaced with words)
③ \(S_n\): sum of terms 1 through \(n\) \(=\) ① \(a_{n+2}\): term two ahead \(-\) ② \(1\)
The formula in words
① From the \(a_{n+2}\): term two ahead , subtract
② \(1\) ,
③ and you get the \(S_n\): sum of terms 1 through \(n\)
Quick example
In the Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21, …, the sum of terms 1 through 6 (1 + 1 + 2 + 3 + 5 + 8) is
\(S_6\): sum up to term 6 \(=\) term two ahead (term 8 = 21) \(-\) 1
\(21 - 1 = 20\)
Key idea
"To get the sum, just look at the term two ahead and subtract \(1\)." This handy property belongs to the Fibonacci sequence. You get the sum in one step, without adding the terms one by one. Why does it work? Read the recurrence relation as \(a_k = a_{k+2} - a_{k+1}\) (a term equals the term two ahead minus the next term). Apply it to each term of \(a_1 + a_2 + \cdots + a_n\), and neighboring parts cancel one after another, leaving only \(a_{n+2} - a_2 = a_{n+2} - 1\). You can use this property to check the calculator. For example, the sum up to term 10 is 143, exactly 1 less than term 12, which is 144.
In the Fibonacci sequence, each term is the sum of the two terms before it (the first two terms are both 1). You find the \(n\)th term step by step with the recurrence relation \(a_n = a_{n-1} + a_{n-2}\), and the sum of terms 1 through \(n\) by "take the term two ahead and subtract \(1\)" (\(S_n = a_{n+2} - 1\)).

Symbols and terms

Symbols

\(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. In the Fibonacci sequence, \(a_1 = 1,\ a_2 = 1,\ a_3 = 2,\ a_4 = 3, \cdots\).
\(a_{n-1}\) a sub n minus one The term just before the \(n\)th term (one back). For term 10, it is term 9. The subtraction inside the subscript says "one position earlier".
\(a_{n-2}\) a sub n minus two The term two before the \(n\)th term. For term 10, it is term 8.
\(a_{n+2}\) a sub n plus two The term two ahead of the \(n\)th term. For term 10, it is term 12. The sum of terms 1 through \(n\) equals this term minus \(1\).
\(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".
\(\varphi\) phi The symbol for the golden ratio. Its value is \(\varphi = \dfrac{1 + \sqrt{5}}{2} = 1.618\cdots\). The ratio of neighboring Fibonacci numbers (later ÷ earlier) gets closer to this value the further you go.
\(\cdots\) dot dot dot (ellipsis) A symbol that says the pattern continues the same way. Writing 1, 1, 2, 3, 5, 8, … says the sequence keeps going by adding the two previous terms.

Terms

sequence A list of numbers in a set order. Each number in the list is called a term.
Fibonacci sequence A sequence that starts with 1, 1 and then continues by the rule "each term is the sum of the two terms before it", giving 1, 1, 2, 3, 5, 8, 13, 21, …. It comes from a problem about how pairs of rabbits multiply, which the 13th-century Italian mathematician Fibonacci described in his book. Each number in it is called a Fibonacci number.
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. In the Fibonacci sequence (as counted on this page), it is 1.
recurrence relation (recursive formula) A formula that describes a sequence as "a rule that gets the next term from earlier terms". The recurrence relation of the Fibonacci sequence is \(a_n = a_{n-1} + a_{n-2}\). Recursive formulas are taught in Algebra 1 and Algebra 2.
initial conditions The values of the first terms, given together with a recurrence relation. For the Fibonacci sequence, the initial conditions are \(a_1 = 1,\ a_2 = 1\). Without them, the recurrence relation alone does not fix the sequence.
golden ratio The ratio \(1 : \dfrac{1 + \sqrt{5}}{2}\) (about \(1 : 1.618\)). Since ancient times it has been seen as a well-balanced ratio, and it is written with the symbol \(\varphi\) (phi). It has been proven that the ratio of neighboring Fibonacci numbers gets closer to the golden ratio the further you go.
general term The \(n\)th term written as a formula in \(n\) (an explicit formula). The Fibonacci sequence also has one that uses the golden ratio \(\varphi\), called Binet's formula. It contains \(\sqrt{5}\) and is a bit complex, so if you only need the value, adding step by step with the recurrence relation is more reliable.
arithmetic sequence A sequence where the difference between neighboring terms is always the same, such as 5, 8, 11, 14, … (add 3 each time). An arithmetic sequence adds a fixed number, while the Fibonacci sequence adds the two previous terms.
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). The Fibonacci sequence is not a geometric sequence, but further along it grows by an almost constant factor of about 1.618, so it behaves much like one.

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.

Adding whole numbers (Grades 2–3)
  • Being able to add two-digit numbers on paper, as in 34 + 21 = 55
  • Being able to add larger numbers with the same steps (Fibonacci calculations need only addition)
Number patterns (Grades 4–5)
  • Being able to spot a rule such as "each number adds the two before it" in a list like 1, 1, 2, 3, 5, 8, …
  • Being able to make a table that pairs each position number with its value
Variables and expressions (Grade 6)
  • Knowing that letters such as \(n\) and \(a_n\) stand for "which position" and "the value at that position"
  • Being able to substitute, such as putting \(n = 10\) into \(n - 1\) to get 9
Sequence notation (Algebra 1 and 2)
  • Being used to writing the \(n\)th term as \(a_n\), with the subscript (the small letter at the lower right) showing the position
  • Understanding that a recurrence relation (a formula that gets the next term from earlier terms) together with initial conditions fixes a sequence (the explanation on this page is enough to follow it)

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the nth term (up to term 10)
Term 1 1
Term 2 1
Term 3 =B1+B2
Term 4 =B2+B3
Term 5 =B3+B4
Term 6 =B4+B5
Term 7 =B5+B6
Term 8 =B6+B7
Term 9 =B7+B8
Term 10 =B8+B9
Table to find the sum of terms 1 through n (sum up to term 10)
Term 1 1
Term 2 1
Term 3 =B1+B2
Term 4 =B2+B3
Term 5 =B3+B4
Term 6 =B4+B5
Term 7 =B5+B6
Term 8 =B6+B7
Term 9 =B7+B8
Term 10 =B8+B9
Sum of terms 1 through 10 =SUM(B1:B10)
After pasting, only B1 and B2 (the first two terms, both 1) are inputs. From B3 down, each cell calculates "the cell one above + the cell two above" automatically. In the formulas, "B1" and "B2" say "use the number in that cell", "+" is addition, and SUM(B1:B10) says "add up everything from B1 to B10".
The first table shows 55 (term 10) in B10, and the second table shows 143 (the sum up to term 10) in B11. To get terms further along, select the bottom "=B8+B9" cell and drag the small square at its lower right corner downward. The same rule continues (the recurrence relation "add the two previous terms" is exactly the cell formula).

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the nth term (up to term 10)
Term 1 1
Term 2 1
Term 3 =B1+B2
Term 4 =B2+B3
Term 5 =B3+B4
Term 6 =B4+B5
Term 7 =B5+B6
Term 8 =B6+B7
Term 9 =B7+B8
Term 10 =B8+B9
Table to find the sum of terms 1 through n (sum up to term 10)
Term 1 1
Term 2 1
Term 3 =B1+B2
Term 4 =B2+B3
Term 5 =B3+B4
Term 6 =B4+B5
Term 7 =B5+B6
Term 8 =B6+B7
Term 9 =B7+B8
Term 10 =B8+B9
Sum of terms 1 through 10 =SUM(B1:B10)
The same formulas as in Excel work as is. Copy the whole table and paste it into cell A1. B10 shows 55 (term 10), and in the second table B11 shows 143 (the sum). To get terms further along, drag the bottom formula cell downward to continue.

How to calculate it in Python

number_of_terms = 10  # number of terms (how far to go)

# Fibonacci sequence: the first two terms are 1, then each term is the sum of the two before it
fibonacci = [1, 1]
while len(fibonacci) < number_of_terms:
    fibonacci.append(fibonacci[-1] + fibonacci[-2])
fibonacci = fibonacci[:number_of_terms]

nth_term = fibonacci[-1]        # nth term
sum_of_terms = sum(fibonacci)   # sum of terms 1 through n

print(f"First terms: {fibonacci[:10]}")
print(f"Term {number_of_terms}: {nth_term}")
print(f"Sum of terms 1 through {number_of_terms}: {sum_of_terms}")
It runs with the standard library only. Change the number at the top (the number of terms) and run it. This example prints 55 for term 10 and 143 for the sum. Python integers have no limit on digits, so even with 1000 terms (term 1000 has 209 digits) you get the exact value. In fibonacci[-1], "-1" is "the last item in the list" and [-2] is "the second to last", so the code writes the recurrence relation "add the two previous terms" directly.

How to write it in LaTeX and other math languages (copy and paste)

Formula for the next term (the Fibonacci recurrence relation)
aₙ = aₙ₋₁ + aₙ₋₂
a_n = a_{n-1} + a_{n-2} \quad (n \geq 3,\ a_1 = a_2 = 1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>a</mi><mi>n</mi></msub>
    <mo>=</mo>
    <msub><mi>a</mi><mrow><mi>n</mi><mo>&#x2212;</mo><mn>1</mn></mrow></msub>
    <mo>+</mo>
    <msub><mi>a</mi><mrow><mi>n</mi><mo>&#x2212;</mo><mn>2</mn></mrow></msub>
  </mrow>
</math>
a_n = a_(n-1) + a_(n-2)
a[n] == a[n - 1] + a[n - 2]
a(n) := a(n - 1) + a(n - 2);
a(n) = a(n - 1) + a(n - 2);
a_n = a_(n-1) + a_(n-2)
Formula for the sum of the first \(n\) terms (the sum property)
Sₙ = aₙ₊₂ − 1
S_n = a_{n+2} - 1
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>S</mi><mi>n</mi></msub>
    <mo>=</mo>
    <msub><mi>a</mi><mrow><mi>n</mi><mo>+</mo><mn>2</mn></mrow></msub>
    <mo>&#x2212;</mo>
    <mn>1</mn>
  </mrow>
</math>
S_n = a_(n+2) - 1
Fibonacci[n + 2] - 1
Sn := a(n + 2) - 1;
S_n = a(n + 2) - 1;
S_n = a_(n+2) - 1

How to have ChatGPT  do the calculation

You are an assistant for Fibonacci 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). Define the Fibonacci sequence by a_1 = 1, a_2 = 1, a_n = a_(n-1) + a_(n-2) (n ≥ 3). Find each sum by actually adding the terms, and also check that it matches the property S_n = a_(n+2) - 1.

1. Term 10 of the Fibonacci sequence and the sum of terms 1 through 10
2. Term 20 of the Fibonacci sequence and the sum of terms 1 through 20
3. Term 50 of the Fibonacci sequence, and term 50 divided by term 49 (also check that it is close to the golden ratio 1.6180…)

Show the formulas you used and the numbers from the output.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.