Free to Use

Fibonacci Calculator

Generate Fibonacci sequences, check if a number belongs to the sequence, or find the Nth Fibonacci term. Explore the beauty of this famous mathematical pattern.

Fibonacci Sequence Examples

๐Ÿ“Š Example 1: Generate First 10 Fibonacci Numbers

Input N = 10

Sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34

Each term is the sum of the two preceding terms: F(0)=0, F(1)=1, F(2)=0+1=1, F(3)=1+1=2, and so on.

๐Ÿ” Example 2: Check if 144 is a Fibonacci Number

Input number = 144

Result: โœ… Yes, 144 is a Fibonacci number!

144 is F(12) in the Fibonacci sequence. It is also a perfect square (12ยฒ) and is part of a Fibonacci pair with 89 (before) and 233 (after).

#๏ธโƒฃ Example 3: Find the 20th Fibonacci Number

Input N = 20

Result: F(20) = 6765

The 20th Fibonacci number is 6765. The golden ratio ฯ† โ‰ˆ 1.618, and 6765 รท 4181 (the previous term) โ‰ˆ 1.618, demonstrating the golden ratio convergence.

Understanding the Fibonacci Sequence

The Fibonacci sequence is one of the most famous number patterns in mathematics. It begins with F(0) = 0 and F(1) = 1, and each subsequent term is the sum of the two preceding terms: F(n) = F(nโˆ’1) + F(nโˆ’2).

F(0) = 0, F(1) = 1
F(n) = F(nโˆ’1) + F(nโˆ’2) for n โ‰ฅ 2
Each term is the sum of the two terms before it.

First 20 Fibonacci Numbers

n F(n) n F(n)
001055
111189
2112144
3213233
4314377
5515610
6816987
713171597
821182584
934194181

The Golden Ratio Connection

As the Fibonacci sequence progresses, the ratio of consecutive terms F(n)/F(nโˆ’1) approaches the golden ratio ฯ† (phi), approximately 1.6180339887... This ratio appears throughout nature, art, and architecture โ€” in the spiral patterns of shells, the arrangement of leaves on stems, the proportions of the human face, and in masterpieces like the Parthenon and Leonardo da Vinci's works.

ฯ† = (1 + โˆš5) / 2 โ‰ˆ 1.6180339887...
The golden ratio โ€” the limit of consecutive Fibonacci term ratios.

A Brief History

The sequence was introduced to Western mathematics in 1202 by Leonardo of Pisa, better known as Fibonacci, in his book Liber Abaci. However, the sequence had been described earlier in Indian mathematics as early as the 6th century. Fibonacci used the sequence to model the growth of a rabbit population under ideal conditions โ€” starting with one pair of rabbits that each month produces a new pair, with each new pair becoming productive after one month.

Properties of Fibonacci Numbers

๐Ÿ”ข Binet's Formula

The Nth Fibonacci number can be computed directly using Binet's formula: F(n) = (ฯ†โฟ โˆ’ ฯˆโฟ) / โˆš5, where ฯˆ = (1โˆ’โˆš5)/2.

๐Ÿ” Divisibility

If m divides n, then F(m) divides F(n). For example, F(3)=2 divides F(6)=8, F(9)=34, and F(12)=144.

๐Ÿงฎ Cassini's Identity

F(nโˆ’1) ร— F(n+1) โˆ’ F(n)ยฒ = (โˆ’1)โฟ. This elegant identity relates three consecutive Fibonacci numbers.

๐ŸŒฟ Nature's Pattern

Fibonacci numbers appear in the branching of trees, the petal counts of flowers (lilies have 3, roses have 5), pine cone spirals, and the shell of the nautilus.

๐Ÿ“Š
Generate Sequence
Generate the first N Fibonacci numbers in order, displayed in a clean table or list format with position labels.
๐Ÿ”
Check Any Number
Enter any number to instantly determine if it's part of the Fibonacci sequence, with the closest Fibonacci neighbors.
#๏ธโƒฃ
Nth Fibonacci Term
Find the exact Fibonacci number at any position N (up to N=100) with step-by-step computation.
๐Ÿ“š
Golden Ratio Explorer
See how the ratio of consecutive Fibonacci terms converges to the golden ratio ฯ† โ‰ˆ 1.618.

What is the Fibonacci Sequence?

The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones. It starts with 0 and 1, and continues infinitely: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ... This simple rule produces a sequence with remarkable mathematical properties and connections to the natural world.

Mathematically defined as F(0) = 0, F(1) = 1, and F(n) = F(nโˆ’1) + F(nโˆ’2) for n โ‰ฅ 2, the Fibonacci sequence is a classic example of a recursive sequence. It appears in fields ranging from computer science (recursive algorithms, data structures) to biology (phyllotaxis, population genetics) and finance (Fibonacci retracements in technical analysis).

Why Use This Calculator?

Our Fibonacci Calculator offers three powerful modes: Generate Sequence (get the first N numbers), Check Number (verify if a number is in the sequence and find its neighbors), and Nth Fibonacci (find the exact value at any position). Whether you're a student learning about sequences, a teacher demonstrating mathematical patterns, or a developer working with algorithms, this tool provides instant, accurate results.

How to Check if a Number is Fibonacci

A number x is a Fibonacci number if and only if 5xยฒ + 4 or 5xยฒ โˆ’ 4 is a perfect square. This is known as the Fibonacci square test or Gessel's test. Our calculator uses this mathematical test along with generating Fibonacci numbers up to the input value to provide a definitive answer, plus the closest Fibonacci neighbors above and below.

Applications of the Fibonacci Sequence

The Fibonacci sequence extends far beyond pure mathematics. Here are some of its most fascinating real-world applications:

๐ŸŒป Nature & Biology

Sunflowers have spirals of 34, 55, or 89 seeds โ€” all Fibonacci numbers. Pinecones show 8 clockwise and 13 counterclockwise spirals. The nautilus shell's logarithmic spiral relates to the golden ratio.

๐Ÿ“ˆ Financial Markets

Traders use Fibonacci retracement levels (23.6%, 38.2%, 61.8%, 78.6%) based on the golden ratio to identify potential support and resistance levels in stock and forex markets.

๐Ÿ’ป Computer Science

Fibonacci heaps are a type of data structure used in Dijkstra's shortest path algorithm. The Fibonacci search technique and Fibonacci coding are used in data compression and optimization.

๐ŸŽจ Art & Architecture

The golden ratio ฯ† โ‰ˆ 1.618, derived from Fibonacci, appears in the design of the Parthenon, the Great Pyramid of Giza, and in works by Leonardo da Vinci. The Fibonacci spiral creates aesthetically pleasing compositions.

Frequently Asked Questions

Who discovered the Fibonacci sequence?
The sequence was introduced to Western mathematics by Leonardo of Pisa (Fibonacci) in his 1202 book Liber Abaci. However, it was known to Indian mathematicians much earlier โ€” the scholar Pingala (c. 200 BCE) described a related pattern in his work on Sanskrit prosody, and Virahanka (c. 700 CE) described the sequence explicitly.
What is Binet's formula for Fibonacci numbers?
Binet's formula allows direct computation of the Nth Fibonacci number without iterating through all previous terms:

F(n) = (ฯ†โฟ โˆ’ ฯˆโฟ) / โˆš5

where ฯ† = (1 + โˆš5)/2 โ‰ˆ 1.618 (the golden ratio) and ฯˆ = (1 โˆ’ โˆš5)/2 โ‰ˆ โˆ’0.618. For large n, F(n) โ‰ˆ ฯ†โฟ/โˆš5, which shows that Fibonacci numbers grow exponentially.
How is the golden ratio related to Fibonacci numbers?
As you go further in the Fibonacci sequence, the ratio of consecutive terms F(n)/F(nโˆ’1) gets closer and closer to the golden ratio ฯ† โ‰ˆ 1.6180339887.... For example, F(10)/F(9) = 55/34 โ‰ˆ 1.6176, and F(20)/F(19) = 6765/4181 โ‰ˆ 1.6180. This convergence is extremely rapid โ€” by F(20), the ratio matches ฯ† to four decimal places. The golden ratio is the unique positive number that satisfies ฯ† = 1 + 1/ฯ†.
Can large numbers be Fibonacci numbers?
Yes! The Fibonacci sequence grows exponentially, so large numbers can be Fibonacci numbers. To check if a large number is a Fibonacci number, we use the mathematical test: a number x is Fibonacci if and only if 5xยฒ + 4 or 5xยฒ โˆ’ 4 is a perfect square. Our calculator can check numbers up to very large values using this method alongside sequence generation.
What are some interesting properties of the Fibonacci sequence?
Some fascinating properties include: (1) Every third Fibonacci number is even; (2) Every fourth Fibonacci number is divisible by 3; (3) Every fifth Fibonacci number is divisible by 5; (4) The sum of the first N Fibonacci numbers equals F(N+2) โˆ’ 1; (5) The sum of the squares of the first N Fibonacci numbers equals F(N) ร— F(N+1); (6) Consecutive Fibonacci numbers are coprime (their greatest common divisor is 1); (7) F(m) divides F(n) if and only if m divides n.
Where do Fibonacci numbers appear in nature?
Fibonacci numbers appear with surprising frequency in nature: Flowers โ€” lilies have 3 petals, buttercups have 5, delphiniums have 8, marigolds have 13, and asters have 21, 34, or 55 petals. Pinecones โ€” the spirals typically run in 8 and 13 directions. Sunflowers โ€” seeds form spirals of 34, 55, or 89. Fruit โ€” bananas have 5 or 8 sections, and pineapples have scales arranged in 5, 8, 13, or 21 spirals. Tree branching โ€” the number of branches often follows Fibonacci numbers.