Fibonacci Sequence Calculator
Calculate the nth number in the Fibonacci sequence.
Calculator Inputs
Your Result
Enter your details and press Calculate to see your result.
Formula
How it works
- Enter a position n in the Fibonacci sequence.
- View the value at that position.
Share on Social Media:
The Fibonacci sequence starts 0, 1, and each number after that is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55… Enter a position n (from 0 to 1,000) and this calculator gives you F(n) exactly, with every digit.
Definition and indexing
F(0) = 0, F(1) = 1, and F(n) = F(n − 1) + F(n − 2).
The calculator counts from zero, so F(10) = 55, not 34. Some books start at F(1) = 1, F(2) = 1, which gives the same values with the same numbering. Check which convention your course or problem uses.
Examples
| n | F(n) |
|---|---|
| 10 | 55 |
| 20 | 6,765 |
| 30 | 832,040 |
| 50 | 12,586,269,025 |
| 100 | 354,224,848,179,261,915,075 |
F(1000) has 209 digits. The calculator adds numbers as exact strings, so there's no rounding even at that size.
The golden ratio
Divide each Fibonacci number by the one before it and the result gets closer and closer to the golden ratio, φ ≈ 1.6180339887. For example, 55 ÷ 34 = 1.6176. Binet's formula uses this to give F(n) directly: F(n) = (φⁿ − ψⁿ) ÷ √5, where ψ = 1 − φ.
Where Fibonacci numbers appear
- Nature: the number of spirals in sunflower heads, pine cones and pineapples is often a Fibonacci number.
- Computer science: a classic example for teaching recursion and dynamic programming.
- Agile planning: story points often use a modified Fibonacci scale (1, 2, 3, 5, 8, 13).
- Conversions: consecutive Fibonacci numbers roughly convert miles to kilometres: 5 miles ≈ 8 km, 8 miles ≈ 13 km.
The sequence is named after Leonardo of Pisa (Fibonacci), whose 1202 book Liber Abaci introduced it to Europe, though Indian mathematicians described it centuries earlier.