Toolstia / Fibonacci calculator
Fibonacci calculator
Get any Fibonacci number up to the 5,000th, list the first terms of the sequence, or test whether a number you enter belongs to it. Results are exact, even for hundreds of digits.
The Fibonacci sequence starts 0, 1 and each number is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, 21. It uses exact big integers, so even F(1000), with 209 digits, is shown in full. The number 1 appears twice, as F(1) and F(2), and the check reports the first position.
How it works
- Choose nth number, list or check.
- Enter n or the number to test.
- Read or copy the result.
The sequence
It starts 0, 1, and every number is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34.
Big numbers
The tool uses exact big integers, so F(100) is 354224848179261915075 and F(1000) has 209 digits.
Checking membership
For a number that is not in the sequence, you get the Fibonacci numbers just below and above it.
The golden ratio
Dividing a Fibonacci number by the one before it gets closer and closer to about 1.618, the golden ratio.
Questions
Does it start at 0 or 1?
It counts from F(0) = 0. The value 1 appears at F(1) and F(2), and the check reports the first. Everything happens in your browser, and nothing you enter is sent anywhere.
How big can n be?
Up to 5,000 for a single number and 200 for the list.
Can I enter commas?
Yes, for the check mode. Commas and spaces are ignored.