Fibonacci Sequence Calculator
Generate Fibonacci numbers exactly — the nth term, the first N terms or a range — even with thousands of digits.
Fibonacci Sequence Calculator
Up to 5,000 terms, starting at F₀.
Definition and method
F0 = 0, F1 = 1, Fn = Fn−1 + Fn−2Indexing starts at F₀ = 0, so the sequence is 0, 1, 1, 2, 3, 5, 8, … and “the first 10 terms” are F₀ to F₉. All numbers are exact big integers. A single term is calculated with the fast-doubling identities F2k = Fk(2Fk+1 − Fk) and F2k+1 = Fk² + Fk+1², which needs only about log₂ n steps. Indices go up to 100,000 (F₁₀₀₀₀₀ has 20,899 digits); lists are limited to 5,000 terms to keep the page responsive.
Your data is processed locally in your browser and is not uploaded to OZVILO servers.
How to use the Fibonacci Sequence Calculator
- 1Choose a mode: the first N terms, the nth term, a range of indices, or the terms around n.
- 2Enter N or n.
- 3Read the exact values and digit counts; the nth-term and neighbour views also show the ratio F(n)/F(n−1).
- 4Download the sequence as TXT or CSV.
Examples
10th term
- Input
- n = 10
- Result
- F(10) = 55
100th term
- Input
- n = 100
- Result
- F(100) = 354,224,848,179,261,915,075 (21 digits)
1000th term
- Input
- n = 1000
- Result
- A 209-digit number, every digit shown exactly
Fibonacci Sequence Calculator features
- Exact BigInt values — no rounding
- Fast doubling for large n
- Ratio F(n)/F(n−1) → golden ratio
- Log-scale chart, TXT and CSV
Frequently asked questions
Does the sequence start at 0 or 1?
This tool uses the standard convention F(0) = 0, F(1) = 1, and F(n) = F(n−1) + F(n−2), so the sequence begins 0, 1, 1, 2, 3, 5, 8.
Why aren't large values rounded?
Ordinary JavaScript numbers lose precision after F(78). This tool uses BigInt integers and the fast-doubling method, so every digit is exact even for F(100,000), which has over 20,000 digits.
What's the link with the golden ratio?
The ratio F(n+1)/F(n) approaches φ = (1 + √5)/2 ≈ 1.6180339887 as n grows. The nth-term and neighbour views show this ratio for the n you choose.
Related tools
- Available
Prime Number Calculator
Check if a number is prime, factorize it, find the next prime, or list and count primes in a range.
CalculatorsOpen tool - Available
Inverse Modulo Calculator
Find the modular multiplicative inverse with the extended Euclidean algorithm, for very large integers.
CalculatorsOpen tool - Available
Simpson's Rule Calculator
Approximate a definite integral with Simpson's 1/3 rule, with a node table, graph and error estimate.
CalculatorsOpen tool - Available
Convolution Calculator
Convolve two discrete sequences — linear by default, or N-point circular — with step-by-step sums and plots.
CalculatorsOpen tool