Fibonacci Calculator
Each Fibonacci number is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, … This tool computes F(n) for n up to 1000 in exact integer arithmetic, so the digits it prints are the true digits — all 209 of them at F(1000). That is not a pedantic point: ordinary floating-point arithmetic starts silently rounding Fibonacci numbers after F(78), and many online tools print plausible-looking wrong digits from there on.
The convention here is the standard mathematical one, F(0) = 0 and F(1) = 1. A few textbooks start the sequence at 1, 1, 2, 3, 5 and count from there, which shifts every index by one — if your source disagrees with this page by one step, that is almost certainly why, and this page states its convention so you can check.
F(20)
6765
Exact integer arithmetic — every digit is the real digit, however long the number gets.
The sequence
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765
F(0) through F(20).
How it is worked out
- Start F(0) = 0, F(1) = 1; every later term is the sum of the two before it: F(n) = F(n−1) + F(n−2).
- Counting up 20 steps in exact integer arithmetic gives F(20) = 6765.
Embed this calculator on your website →
The formula
F(0) = 0 · F(1) = 1 · F(n) = F(n−1) + F(n−2)
- Exact addition — the recurrence is two big-integer additions per step; no Binet formula, no floating point, no rounding anywhere.
- The ratio — F(n+1)/F(n) tends to the golden ratio φ ≈ 1.6180339887 as n grows, which is why the sequence shows up wherever growth compounds at a steady relative rate.
Worked example: F(20) = 6765, and F(100) = 354224848179261915075 — twenty-one digits, every one exact.
How it works
Why not use the closed formula? Binet’s formula writes F(n) with square roots and the golden ratio, and in floating point it is exactly the trap this page avoids: φⁿ grows until the double-precision mantissa can no longer name the integer, and the printed digits drift. Adding two integers, by contrast, cannot drift. The direct recurrence is also the honest algorithm to teach — the sequence is defined by addition, so the tool computes it by addition.
Where the sequence turns up. Pinecones and sunflower heads pack seeds in Fibonacci-counted spirals because that is what a constant turning angle produces; the same numbers appear in the Euclidean algorithm’s worst case, in stair-climbing counts (1 or 2 steps at a time — the count is a Fibonacci number), and in the “Fibonacci retracement” levels traders draw, whatever one thinks of their predictive power. The mathematics is the same in every case: yesterday plus the day before.
Examples
- The classroom value — F(10) = 55.
- Beyond calculator displays — F(50) = 12586269025, already eleven digits.
- The top of the range — F(1000) has 209 digits, printed in full by the tool.
Frequently asked questions
Why does F(10) show 55 here but some sites differ?
Indexing. The standard convention — used by mathematicians and this page — is F(0) = 0, F(1) = 1, giving F(10) = 55. Sources that start counting from 1, 1 sometimes call 55 their '11th' number or shift differently. The sequence itself is identical; only the labels move. This page states its convention, F(0) = 0, on the page.
How large can F(n) get?
About n × 0.209 digits — F(100) has 21 digits, F(1000) has 209. Each step multiplies the size by roughly the golden ratio, adding a digit every five steps or so. This tool caps n at 1000, which keeps the answer a satisfying wall of exact digits rather than a book.
What is the connection to the golden ratio?
Divide each Fibonacci number by its predecessor: 3/2, 5/3, 8/5, 13/8… the ratios home in on φ = (1 + √5)/2 ≈ 1.6180339887. Binet's formula makes the connection exact: F(n) is the nearest integer to φⁿ/√5. Pretty — but computing with it in floating point is how digits get lost, which is why this page adds integers instead.
Is the Fibonacci sequence the same as the rabbit problem?
Yes — Leonardo of Pisa (Fibonacci) introduced the sequence to Europe in 1202 with a stylised rabbit-breeding model: pairs mature in a month, then produce a new pair monthly. Real rabbits are messier, but the counting rule — this month's total is last month's adults plus the month before's — is exactly the recurrence this tool computes.
Related calculators
Prime Factorization Calculator
LiveAny whole number up to 10¹² broken into its prime factors by exact trial division, with the full factor list and count.
Permutations & Combinations Calculator
LivenPr, nCr, and both with-replacement counts plus circular permutations — exact whole numbers with every digit printed.
Math Helpers
LiveThe everyday operations in one place: percentage of a number, powers, square and cube roots, factorials, and logarithms — each with its rule stated.

