Fibonacci Calculator

The Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21 …) appears with surprising frequency in nature — sunflower seed spirals, nautilus shells, and tree branching patterns — and forms the basis of the golden ratio (φ ≈ 1.618). In computing, Fibonacci numbers benchmark recursive algorithms and dynamic programming. In financial markets, Fibonacci retracement levels (23.6%, 38.2%, 61.8%) are widely used in technical analysis. This calculator generates sequences, finds the nth term via Binet's formula, and verifies whether a given number belongs to the sequence.

star 4.8

Fibonacci Calculator calculator

pattern Fibonacci Calculator
1-based position (max 78 for safe integers)
Golden Ratio (φ)
1.6180339887...
F(n)/F(n-1) approaches φ as n increases
The Pattern
F(n) = F(n-1) + F(n-2)
Where F(1) = 1, F(2) = 1
calculate Result
F(10)
55
F(n)/F(n-1)
1.6176...
Approaching golden ratio (φ)
Sequence
1, 1, 2, 3, 5, 8, 13, 21, 34, 55
Did You Know?
• Fibonacci appears in nature: flower petals, pinecones, shells
• Used in art, architecture, and financial trading

lightbulb Tips

  • F(n) = F(n-1) + F(n-2)
  • F(1) = F(2) = 1
  • φ ≈ 1.618 (golden ratio)
  • Sum = F(n+2) - 1

pattern Reference

Fibonacci Sequence
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...
Key Values
F(10) = 55F(15) = 610 F(20) = 6,765F(30) = 832,040
Golden Ratio
φ = (1+√5)/2 ≈ 1.618034

How to Use the Fibonacci Calculator

calculate

Choose Calculation

Find nth term, generate sequence, check if Fibonacci, or calculate sum.

edit

Enter Position/Number

Input the position n or number to check.

visibility

View Results

See the Fibonacci number, sequence, or verification.

The Formula

Fibonacci numbers form a sequence where each term is the sum of the two preceding terms, starting with 1, 1.

F(n) = F(n-1) + F(n-2), where F(1) = F(2) = 1

lightbulb Variables Explained

  • F(n) The nth Fibonacci number
  • φ Golden ratio ≈ 1.618033988749895
  • Binet F(n) = (φⁿ - ψⁿ)/√5

tips_and_updates Pro Tips

1

The Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

2

Each number is the sum of the two before it: F(n) = F(n-1) + F(n-2)

3

The ratio of consecutive Fibonacci numbers approaches the golden ratio (φ ≈ 1.618)

4

Fibonacci numbers appear in nature: flower petals, pinecones, shells

5

A number is Fibonacci if 5n² + 4 or 5n² - 4 is a perfect square

6

The sum of first n Fibonacci numbers equals F(n+2) - 1

Calculate Fibonacci numbers, generate sequences, check if a number is Fibonacci, and explore the golden ratio connection. See step-by-step solutions.

The Fibonacci Sequence

Starting with 1, 1, each subsequent number is the sum of the previous two.

This creates the famous sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...

Golden Ratio Connection

As Fibonacci numbers grow, the ratio between consecutive terms approaches the golden ratio φ ≈ 1.618.

This ratio appears throughout nature, art, and architecture.

What Is a Fibonacci Number and How Does the Sequence Work?

A Fibonacci number is any term in the sequence where each value equals the sum of the two before it, beginning 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. The rule is F(n) = F(n-1) + F(n-2), with the two seed values F(1) = F(2) = 1.

Named after the 13th-century Italian mathematician Leonardo of Pisa, known as Fibonacci, the sequence was popularized in his 1202 book Liber Abaci through a rabbit-population puzzle.

As Wolfram MathWorld notes, it is one of the most studied integer sequences in mathematics, catalogued as sequence A000045 in the OEIS.

How to Calculate the Nth Fibonacci Number Using Binet's Formula

To find the nth Fibonacci number directly without listing every prior term, use Binet's formula: F(n) = (φⁿ − ψⁿ) / √5, where φ = (1 + √5)/2 ≈ 1.6180339887 is the golden ratio and ψ = (1 − √5)/2 ≈ −0.6180339887.

Because |ψ| is less than 1, ψⁿ shrinks toward zero, so F(n) is simply the nearest integer to φⁿ/√5. For example, φ¹⁰/√5 ≈ 55.004, which rounds to F(10) = 55.

NIST's Digital Library of Mathematical Functions (DLMF) documents this closed form alongside related Lucas-number identities.

What Is the 10th Fibonacci Number?

The 10th Fibonacci number is 55 when the sequence is indexed starting at F(1) = 1. Counting the terms in order gives 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, so the tenth entry is 55.

Indexing matters: some references, including parts of the OEIS listing, start at F(0) = 0, which shifts every position by one and would make the tenth listed value 34.

This calculator uses the common 1-based convention F(1) = F(2) = 1. Always confirm whether a source counts from F(0) or F(1) before comparing answers.

How to Check Whether a Number Is a Fibonacci Number

A positive integer N is a Fibonacci number if and only if 5N² + 4 or 5N² − 4 is a perfect square. This test comes from the algebraic structure behind Binet's formula and lets you verify membership without generating the whole sequence.

Take N = 13: 5 × 13² − 4 = 5 × 169 − 4 = 841 = 29², a perfect square, so 13 is Fibonacci.

By contrast, N = 20 fails both checks (5 × 400 + 4 = 2004 and 5 × 400 − 4 = 1996 are not squares), so 20 is not a Fibonacci number.

Khan Academy covers the perfect-square reasoning that underpins this identity.

How to Find the Sum of the First N Fibonacci Numbers

The sum of the first n Fibonacci numbers equals F(n+2) − 1, a tidy identity that avoids adding terms one by one. For the first 10 numbers, 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 = 143, which matches F(12) − 1 = 144 − 1 = 143.

Two related identities are also worth knowing:

  • the sum of the first n odd-indexed terms equals F(2n)
  • the sum of squares F(1)² + … + F(n)² equals F(n) × F(n+1)

Wolfram MathWorld lists these summation formulas among the sequence's classic closed-form results.

Fibonacci Numbers and the Golden Ratio Explained

The ratio of consecutive Fibonacci numbers converges to the golden ratio φ ≈ 1.6180339887 as the terms grow. Early ratios oscillate around φ: 55/34 ≈ 1.6176 and 89/55 ≈ 1.6182, tightening with each step.

This happens because Binet's formula makes φⁿ the dominant term. According to Encyclopaedia Britannica, φ satisfies the equation φ² = φ + 1, so φ ≈ 1.618 and its reciprocal 1/φ ≈ 0.618 differ by exactly 1.

The same constant appears in the pentagon's diagonals and in logarithmic spirals, which is why Fibonacci ratios recur across geometry and design.

Real-World Uses of Fibonacci Numbers

Fibonacci numbers appear in far more than textbooks.

  • In nature, sunflower seed heads, pinecone scales, and nautilus shells arrange along Fibonacci-related spirals that pack efficiently, a phenomenon documented by Encyclopaedia Britannica.
  • In computer science, they benchmark recursion and dynamic programming — the same way a factorial calculator does for the other classic recursive definition — and appear in Fibonacci heaps and search algorithms.
  • In finance, traders use Fibonacci retracement levels (23.6%, 38.2%, 61.8%) derived from ratios of the sequence.
  • Agile software teams even use a Fibonacci-style scale (1, 2, 3, 5, 8, 13) for story-point estimation because the widening gaps reflect growing uncertainty in larger tasks.

Common Mistakes When Calculating Fibonacci Numbers

Several common errors trip people up:

  • The most frequent error is index confusion: mixing the F(0) = 0 convention with the F(1) = 1 convention shifts every term by one position and produces answers that are off by a step.
  • A second pitfall is trusting Binet's formula for very large n on a standard calculator, where floating-point rounding can produce the wrong nearest integer; iterative addition or big-integer arithmetic stays exact.
  • Others incorrectly assume every large number is Fibonacci without applying the 5N² ± 4 perfect-square test, or forget that 1 appears twice at the start.
  • Finally, remember that no negative counting index gives a term below F(1) in this tool.

Frequently Asked Questions

sell

Tags