Fibonacci Number Calculator
Find any Fibonacci number exactly, list the sequence, compare with the golden ratio and check whether a number is a Fibonacci number.
How to use this calculator
Enter the position n to get the nth Fibonacci number F(n), calculated exactly even when it has hundreds of digits, with the sum of the sequence and the ratio of consecutive terms. Type any whole number in the second box to check whether it belongs to the sequence.
Formula
F(0) = 0, F(1) = 1 and F(n) = F(n − 1) + F(n − 2). Binet's formula: F(n) = (φⁿ − ψⁿ) ÷ √5, with φ = (1 + √5) ÷ 2 ≈ 1.6180339887. Sum F(0) + … + F(n) = F(n + 2) − 1. A positive integer N is a Fibonacci number exactly when 5N² + 4 or 5N² − 4 is a perfect square.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What is the Fibonacci sequence?
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … — each number is the sum of the two before it.
How is it related to the golden ratio?
The ratio of consecutive Fibonacci numbers approaches φ ≈ 1.618 as n grows.
Does the sequence start at 0 or 1?
Modern mathematics uses F(0) = 0 and F(1) = 1. Some books start at F(1) = F(2) = 1; the numbers are the same, only shifted.
Where does Fibonacci appear in nature?
Spiral counts in sunflowers, pine cones and pineapples are often consecutive Fibonacci numbers.
How big do Fibonacci numbers get?
They grow by about 61.8% each step. F(100) has 21 digits and F(1,000) has 209.
Who was Fibonacci?
Leonardo of Pisa, who described the sequence in his 1202 book Liber Abaci, although it was known earlier in Indian mathematics.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- OEIS Foundation. (n.d.). A000045: Fibonacci numbers. The On-Line Encyclopedia of Integer Sequences. View source
- Knuth, D. E. (1997). The art of computer programming: Vol. 2. Seminumerical algorithms (3rd ed.), Section 4.1: Positional number systems. Addison-Wesley. View source
- Hardy, G. H., Wright, E. M., Heath-Brown, D. R., & Silverman, J. H. (2008). An introduction to the theory of numbers (6th ed.). Oxford University Press. View source
- Graham, R. L., Knuth, D. E., & Patashnik, O. (1994). Concrete mathematics (2nd ed.). Addison-Wesley. View source