Fibonacci Calculator (nth Term, Sequence and Golden Ratio)

Find the exact nth Fibonacci number (up to n = 1000), list the first terms and their sum, and see how F(n+1) ÷ F(n) closes in on the golden ratio.

A whole number from 1 to 1,000. F(1) = 1, F(2) = 1, F(3) = 2, …

Results

F(20), the 20th Fibonacci number
6,765
4 digits, every one exact.
The first 20 terms
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1,597, 2,584, 4,181, 6,765
Sum of the first 20 terms
17,710
F(1) + … + F(20) = F(22) − 1.
Binet’s formula (approximate)
6765.0000, which rounds to 6765
Computed with decimals; rounding to the nearest whole number gives the exact term.
F(21) ÷ F(20)
1.6180339985
The golden ratio φ is 1.6180339887…; this ratio is 0.0000000098 away from it.

How it’s calculated

The Fibonacci sequence starts 1, 1 and then each term is the sum of the two before it: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … This calculator builds the sequence with exact whole-number arithmetic, so even the 1000th term (209 digits) is correct to the last digit.

F(1) = 1, F(2) = 1, F(n) = F(n − 1) + F(n − 2) Sum of the first n terms = F(n + 2) − 1 Binet: F(n) = (φⁿ − ψⁿ) ÷ √5, with φ = (1 + √5) ÷ 2 and ψ = (1 − √5) ÷ 2

Dividing a term by the one before it gives ratios 1, 2, 1.5, 1.667, 1.6, 1.625, … that settle toward the golden ratio φ ≈ 1.618034.

Example: F(10). The terms are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, so F(10) = 55. Their sum is 143 = F(12) − 1 = 144 − 1. Binet's formula gives (φ¹⁰ − ψ¹⁰) ÷ √5 = (122.9919 − 0.0081) ÷ 2.2361 = 55.0000. And F(11) ÷ F(10) = 89 ÷ 55 = 1.61818, already very close to φ.

Frequently asked questions

Does the sequence start at 0 or 1?

Some books start 0, 1, 1, 2, … This calculator numbers the terms F(1) = 1, F(2) = 1, F(3) = 2. The values are the same; only the count shifts by one (and F(0) = 0).

Why is there a limit of n = 1000?

F(1000) already has 209 digits. The limit keeps the page quick and the list readable, and everything up to it is exact.

Why does Binet’s formula not match for large n?

It needs irrational numbers like √5, which a computer can only store to about 15 digits. Beyond n of about 70 the rounding error is bigger than 1, so exact addition is used for the main answer.

Where does the golden ratio come from here?

If F(n) is large, F(n + 1) ÷ F(n) is almost exactly (1 + √5) ÷ 2 = 1.6180339887…, and the error shrinks with every step.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator