Fibonacci Calculator
Find the nth Fibonacci number, check if a number is Fibonacci, or generate a sequence. Shows the golden ratio and exact digit count.
🌀 What is the Fibonacci Sequence?
The Fibonacci sequence is one of the most famous number sequences in mathematics: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ... Each number (called a Fibonacci number) is the sum of the two preceding numbers, starting from 0 and 1. This deceptively simple rule generates a sequence that appears throughout nature, art, and science in ways that have fascinated mathematicians for centuries.
The sequence was named after Leonardo of Pisa, known as Fibonacci, who introduced it to Western mathematics in his 1202 book Liber Abaci through a problem about rabbit population growth. However, Indian mathematicians including Virahanka and Hemachandra had described the sequence centuries earlier in the context of Sanskrit poetry meter. The sequence appears naturally in the arrangement of leaves (phyllotaxis), the number of spirals on sunflower heads (typically 34 and 55), pine cone bracts, and nautilus shell proportions.
A common misconception is that Fibonacci numbers are just a mathematical curiosity. In practice, Fibonacci retracement levels (23.6%, 38.2%, 61.8%) are among the most widely used tools in financial technical analysis. The Fibonacci heap data structure improves Dijkstra's shortest path algorithm. Fibonacci numbers arise in the time complexity of the Euclidean GCD algorithm (consecutive Fibonacci numbers are the worst case). They also connect deeply to the golden ratio φ ≈ 1.618, which appears in aesthetics, architecture, and biology.
This calculator handles three modes: find any specific Fibonacci number F(n) up to F(1000) (a 209-digit number) using JavaScript's BigInt for exact arithmetic; check whether any positive integer is a Fibonacci number by searching the sequence; and generate complete sequences between any two indices for tables and analysis.