Every digit of the nth Fibonacci number, not a rounded one.
The nth Fibonacci number
Every digit, not a rounded double.
F(50)
12,586,269,025
F(50) = F(49) + F(48), and every digit here is exact.
Digits
11
a double could still hold this
F(50) ÷ F(49)
1.618033988749894
8.88e-16 away from φ
Lucas L(50)
28,143,753,123
the same rule from 2 and 1
Cassini's identity
F(50)² − F(49)·F(51) = -1
always exactly ±1
The neighbours
The Fibonacci numbers either side of the requested index, and the running total to it
Which
Value
Note
F(49)
7,778,742,049
the one before
F(50)
12,586,269,025
your answer
F(51)
20,365,011,074
the one after
Sum F(0)…F(50)
32,951,280,098
equals F(52) − 1
F(50) has 11 digits. A JavaScript number stops representing Fibonacci numbers exactly at F(79), so everything here is computed on arbitrary-precision integers.
Consecutive Fibonacci numbers are always coprime, so F(50) and F(49) share no factor above 1 — which is why the ratio never simplifies.
The sum of the first 51 Fibonacci numbers is F(52) − 1, which is why the running total is itself almost a Fibonacci number.
Computed by fast doubling on arbitrary-precision integers — F(5000) takes about thirteen steps, not five thousand.
What this tool shows
F(79) is 14,472,334,024,676,221 — the last Fibonacci number a JavaScript number can name exactly. F(80) is the first one it gets wrong. Everything here is computed on arbitrary-precision integers, so F(1000) is all 209 digits of it.
The nth Fibonacci number, exactly
The terms either side of it
How close F(n)/F(n−1) has got to φ
The corresponding Lucas number
Cassini’s identity, evaluated
The running total, and why it is almost a Fibonacci number
Every digit exact Fast doubling, not a loop The golden ratio measured Lucas numbers too
Updated 7 September 2026 · Works in any browser, no installation
Each term is the sum of the two before it, starting 0, 1. So the sequence runs 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 — and F(10) = 55. Beyond about F(79) the numbers stop fitting in ordinary floating point, which is why this page computes them on arbitrary-precision integers.
At a glance
Formula shown
F(0) = 0, F(1) = 1, F(n) = F(n\u22121) + F(n\u22122). Binet\u2019s formula gives a closed form, F(n) = (\u03c6\u207f \u2212 \u03c8\u207f)/\u221a5, but it needs irrational arithmetic and loses exactness long before the recurrence does.
Scenario support
Checking a programming exercise against exact values; looking at how fast the ratio approaches \u03c6; needing a large Fibonacci number in full rather than in scientific notation.
Educational estimate
Planning support from the values you enter — not professional advice.
The precision cliff at F(79)
A JavaScript number holds integers exactly up to 2⁵³ − 1, which is 9,007,199,254,740,991. Fibonacci numbers pass that between F(78) and F(79).
F(79) is 14,472,334,024,676,221 and comes out right, because it happens to be representable. F(80) is 23,416,728,348,467,685 and a double returns 23,416,728,348,467,684 — off by one, silently, with no error and no warning.
From there the errors grow. Any tool that reports F(100) as 354224848179262000000 rather than 354224848179261915075 is showing you a rounded double, and the trailing zeros are the giveaway.
Both indices are presets on this page so the difference can be seen rather than taken on trust.
How it is computed
The obvious method adds its way up: F(2), then F(3), and so on. For F(5000) that is five thousand additions of numbers a thousand digits long.
Fast doubling gets there in about thirteen steps. Two identities do the work: F(2k) = F(k)×(2F(k+1) − F(k)) and F(2k+1) = F(k)² + F(k+1)². Each step halves the index, so the cost grows with the number of bits rather than with the index.
Binet’s formula — F(n) = (φⁿ − ψⁿ)/√5 — is the closed form, and it is a poor way to compute. It needs irrational arithmetic, and rounding error overtakes it around n = 70, well before the recurrence has any trouble at all.
The suite checks fast doubling against a plain addition loop for every index up to 500, so the clever method is verified against the obvious one rather than against itself.
The golden ratio
Divide any Fibonacci number by the one before it and the answer creeps towards φ = 1.6180339887…, the golden ratio.
It converges quickly. 8/5 = 1.6, 13/8 = 1.625, 89/55 = 1.61818…, and by F(30)/F(29) the first eleven digits are right. The page reports the ratio and how far it still is from φ.
The reason is Binet’s formula. F(n) is a difference of two powers, and the second, ψⁿ with ψ ≈ −0.618, shrinks towards zero. What is left is essentially φⁿ/√5, and consecutive terms of that have a ratio of exactly φ.
The convergence alternates: the ratio sits above φ, then below, then above, closing in from each side.
Identities worth knowing
Cassini’s identity. F(n)² − F(n−1)F(n+1) is always exactly 1 or −1, alternating. It is the basis of a classic dissection puzzle that appears to turn a 64-square area into 65 — the missing square is that ±1.
The running total. F(0) + F(1) + … + F(n) = F(n+2) − 1. The sum of a stretch of Fibonacci numbers is always one less than a Fibonacci number.
Consecutive terms are coprime. gcd(F(n), F(n−1)) = 1 always, which is why the ratio never simplifies. More generally gcd(F(m), F(n)) = F(gcd(m, n)), which is a much stronger and stranger statement.
Divisibility follows the index. F(n) is divisible by F(m) exactly when n is divisible by m. Every third Fibonacci number is even, because F(3) = 2.
Where it is real, and where it is not
The sequence does turn up in biology, and it turns up for a reason worth stating rather than waving at.
Real. Sunflower seed heads, pine cones and pineapples show Fibonacci counts in their spirals. The cause is the golden angle: placing each new element about 137.5° round from the last packs them without alignment gaps, and Fibonacci counts fall out of that packing. Branching patterns in some plants follow the same rule.
Not. The nautilus shell is a logarithmic spiral, but not the golden one — measured shells cluster nearer a ratio of 1.33 than 1.618. The Parthenon and the Mona Lisa are fitted with golden rectangles after the fact, by choosing where to put the edges. And Fibonacci retracement levels in trading are a convention among traders, not a property of markets.
The mathematics is remarkable enough without the decorations, and a page that repeated them would be less trustworthy about the parts that are true.
Lucas numbers
Same rule, different start. The Lucas numbers begin 2, 1 and then add: 2, 1, 3, 4, 7, 11, 18, 29.
They interlock with the Fibonacci numbers closely. L(n) = F(n−1) + F(n+1), and F(2n) = F(n)×L(n) — which is one way to see why fast doubling works.
Their ratios approach φ as well, and faster from the start, because the Lucas numbers are the other natural solution to the same recurrence. The page reports L(n) beside F(n) for that reason.
Sources and methodology
The sequence is catalogued and its identities are standard; these are the references.
Method. Computed by fast doubling — F(2k) and F(2k+1) are derived from F(k) and F(k+1) — so the work grows with the number of BITS in the index rather than with the index itself: F(5000) takes about thirteen steps, not five thousand additions. Everything runs on arbitrary-precision integers, and the suite checks the result against a plain addition loop for every index up to 500, so the fast method is never trusted against itself. That engine is verified on every change against 76 hand-written assertions, including that Cassini’s identity gives exactly ±1 at every index up to 300, and that consecutive Fibonacci numbers are coprime at every index up to 400 — both would break immediately on an off-by-one in the doubling. The count and the per-case breakdown are published on the formula verification page.
Related calculators
Where this goes next:
Arithmetic SequenceNth term and sum with both formulas substituted, carried as exact fractions — a step of 0.1 gives exactly 4 at term 40 rather than 3.9999999999999996.
Geometric SequenceNth term, partial sum, and whether the infinite series converges at all — with exact ratios, so 1/3 stays 1/3 instead of becoming 0.3333333333.
Nth TermGive it the terms and it finds the rule — arithmetic, geometric, quadratic or Fibonacci-like — with the difference table, and an honest 'no rule found' when there is none.
Pascal’s TriangleThe triangle drawn to any row up to 40, exact on big integers, with the row sum as a power of two and each diagonal's meaning named.
FactorialFactorials with every digit exact — 100 factorial is 158 of them — plus the trailing-zero count derived from Legendre's formula and Stirling's error.
GCFThe greatest common factor of two to six numbers with all three routes shown — the shared primes to their lower powers, Euclid line by line, and the full factor lists when they are short enough to be honest.
The shallow diagonals of Pascal’s triangle sum to the Fibonacci numbers, and the Pascal’s Triangle Calculator draws them. For sequences that step or multiply by a fixed amount instead, the arithmetic and geometric pages apply.
Educational use disclaimer
This is an educational tool. The numbers are exact; the claims often made about Fibonacci ratios in nature and in markets are not part of it, and the page says which of them hold up.
Published the Fibonacci page computing on arbitrary-precision integers, because a JavaScript number stops naming these exactly at F(79) and returns a value one too low at F(80) with no error.
Both indices are offered as presets so the precision cliff can be seen rather than described.
The nature claims are separated into the ones that hold up — seed-head spirals, from the golden angle — and the ones that do not, since a page repeating the nautilus story would be less trustworthy about the parts that are true.
Add this calculator to your site
Responsive embed — and private: nothing your visitors type leaves their browser.