Fibonacci Calculator

Find the nth Fibonacci number (0-1000)
Generate complete sequence up to this many terms

Result:

Calculate Fibonacci numbers and generate complete sequences with our free online Fibonacci calculator. Discover the mathematical beauty of this famous sequence and its connection to the golden ratio.

What is the Fibonacci Sequence?

The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones. Starting with 0 and 1, the sequence continues: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...

Fibonacci Formula

F(n) = F(n-1) + F(n-2)
Base cases: F(0) = 0, F(1) = 1
Binet's Formula: F(n) = (φⁿ - ψⁿ) / √5

Fibonacci Properties

Mathematical Properties
  • F(0) = 0, F(1) = 1
  • Recursive: F(n) = F(n-1) + F(n-2)
  • Golden Ratio: F(n+1)/F(n) → φ ≈ 1.618
  • Parity: F(n) is even if n is divisible by 3
  • GCD: gcd(F(m), F(n)) = F(gcd(m, n))
Growth Pattern
  • Exponential growth: F(n) ≈ φⁿ/√5
  • Doubling: Every ~4.8 terms
  • Growth rate: Approximately 61.8% per term
  • Lucas numbers: Similar sequence with different start
  • Tribonacci: Extension with three terms

Step-by-Step Fibonacci Examples

Problem: Find the 8th Fibonacci number

Step-by-step calculation:

F(0) = 0, F(1) = 1

F(2) = F(1) + F(0) = 1 + 0 = 1

F(3) = F(2) + F(1) = 1 + 1 = 2

F(4) = F(3) + F(2) = 2 + 1 = 3

F(5) = F(4) + F(3) = 3 + 2 = 5

F(6) = F(5) + F(4) = 5 + 3 = 8

F(7) = F(6) + F(5) = 8 + 5 = 13

F(8) = F(7) + F(6) = 13 + 8 = 21

Result: F(8) = 21

Observe how ratios converge to φ:

nF(n)F(n+1)F(n+1)/F(n)
1111.000000
2122.000000
3231.500000
4351.666667
5581.600000
1055891.618182
156109871.618033

Golden Ratio φ = 1.618033988...

Calculate F(10) using Binet's Formula:

Formula: F(n) = (φⁿ - ψⁿ) / √5

Where φ = (1 + √5)/2 ≈ 1.618, ψ = (1 - √5)/2 ≈ -0.618

Calculation:

F(10) = (1.618¹⁰ - (-0.618)¹⁰) / √5

F(10) = (122.97 - 0.008) / 2.236

F(10) = 122.96 / 2.236 ≈ 55

Result: F(10) = 55 (exact)

Common Fibonacci Values

Position (n) F(n) Ratio F(n)/F(n-1) Properties
00-Base case
11Base case
211.000First repeat
322.000First prime
431.500Prime
551.667Prime
681.600First even > 2
7131.625Prime
8211.6153 × 7
9341.6192 × 17
10551.6185 × 11

Fibonacci in Nature

Plant Life
  • Flower petals (3, 5, 8, 13, 21, 34)
  • Pinecone spirals
  • Sunflower seed arrangements
  • Tree branching patterns
  • Leaf arrangements (phyllotaxis)
Animal Kingdom
  • Nautilus shell chambers
  • Honeybee family trees
  • Rabbit breeding patterns
  • Spiral shells and horns
  • DNA molecule structure
Physical World
  • Galaxy spiral arms
  • Hurricane and tornado patterns
  • Crystal formations
  • Wave interference patterns
  • Mountain ridge formations

Applications of Fibonacci Numbers

Mathematics & Science
  • Number Theory: Prime testing, divisibility rules
  • Algorithm Design: Dynamic programming examples
  • Chaos Theory: Recursive system modeling
  • Physics: Quantum mechanics, crystal structures
  • Biology: Population models, genetic algorithms
Art & Design
  • Golden Rectangle: Architectural proportions
  • Art Composition: Rule of thirds, divine proportion
  • Music Theory: Harmonic ratios, rhythm patterns
  • Photography: Composition guidelines
  • Graphic Design: Layout and spacing

Computing Fibonacci Numbers

Naive Recursion
def fib(n):
    if n <= 1:
        return n
    return fib(n-1) + fib(n-2)

Time: O(2ⁿ) - Very slow
Space: O(n) - Call stack

Dynamic Programming
def fib(n):
    if n <= 1: return n
    a, b = 0, 1
    for i in range(2, n+1):
        a, b = b, a + b
    return b

Time: O(n) - Linear
Space: O(1) - Optimal

Matrix Exponentiation
def fib_matrix(n):
    # [[1,1],[1,0]]^n
    # Fast matrix power
    return matrix_power(
        [[1,1],[1,0]], n
    )[0][1]

Time: O(log n) - Fastest
Space: O(log n) - Good

Golden Ratio and Fibonacci

🌟 The Divine Proportion

The Golden Ratio (φ) emerges naturally from Fibonacci numbers:

Mathematical Definition:
  • φ = (1 + √5) / 2 ≈ 1.618033988749...
  • φ² = φ + 1 (unique property)
  • 1/φ = φ - 1 ≈ 0.618033988749...
  • Limit: F(n+1)/F(n) → φ as n → ∞
Applications:
  • Architecture: Parthenon, pyramids
  • Art: Mona Lisa, Last Supper
  • Design: Credit cards, book proportions
  • Nature: Shell spirals, flower patterns

Frequently Asked Questions (FAQ)

The sequence can start with 0 or 1, depending on convention:

  • Modern convention: F(0) = 0, F(1) = 1, F(2) = 1, F(3) = 2, ...
  • Historical convention: F(1) = 1, F(2) = 1, F(3) = 2, F(4) = 3, ...
  • Our calculator uses: F(0) = 0, F(1) = 1 (modern convention)
  • The pattern is the same: Each number is the sum of the previous two

The golden ratio appears as the limit of consecutive Fibonacci ratios:

  • As n increases: F(n+1)/F(n) approaches φ ≈ 1.618
  • Binet's Formula: F(n) = (φⁿ - ψⁿ)/√5, where ψ = -1/φ
  • Golden Rectangle: Ratio of sides equals φ
  • Golden Spiral: Created by connecting Fibonacci rectangles
  • Nature connection: Many natural patterns follow this ratio

Fibonacci numbers appear surprisingly often in natural patterns:

  • Flower petals: Lilies (3), buttercups (5), delphiniums (8), marigolds (13)
  • Seed arrangements: Sunflower centers have 21, 34, 55, or 89 spirals
  • Tree branches: Branching patterns often follow Fibonacci ratios
  • Shell spirals: Nautilus chambers grow in golden ratio proportions
  • Pinecones: Spirals going each direction are consecutive Fibonacci numbers
  • Human body: Finger ratios, facial proportions

Our calculator can handle up to F(1000), but practical limits vary:

  • F(100) ≈ 3.54 × 10²⁰ (very large but manageable)
  • F(500) ≈ 1.39 × 10¹⁰⁴ (astronomical number)
  • F(1000) ≈ 4.35 × 10²⁰⁸ (requires special handling)
  • Growth rate: Each term is approximately 1.618 times the previous
  • For estimation: Use Binet's formula F(n) ≈ φⁿ/√5

Yes! The Fibonacci sequence can be extended to negative indices:

  • Formula: F(-n) = (-1)^(n+1) × F(n)
  • Pattern: ..., 5, -3, 2, -1, 1, 0, 1, 1, 2, 3, 5, ...
  • Properties: F(-n) alternates sign based on whether n is odd or even
  • Examples: F(-1) = 1, F(-2) = -1, F(-3) = 2, F(-4) = -3
  • Applications: Useful in advanced number theory and mathematical proofs

Related Calculators


Calculator Categories

Explore our comprehensive collection of calculation tools organized by category. Find exactly what you need for math, science, finance, health, and more.

26

Categories
100+ Calculators
Instant Results
Search Calculators

All Categories

Choose from our specialized calculator categories

Algebra

Comprehensive algebra calculators for equations, roots, exponents, logarithms, and more

22 calculators
Explore Algebra
Area Converters

Convert between different area units including square feet, square meters, and acres

2 calculators
Explore Area Converters
Chemistry

<p>Chemistry can be a complex subject, but it doesn't have to be overwhelming! With our powerful ch…

1 calculator
Explore Chemistry
Construction

Construction calculators.

1 calculator
Explore Construction
Conversions

In today's interconnected world, converting units and measurements is a common task. But who has ti…

23 calculators
Explore Conversions
Cooking Converters

Convert between cooking measurement units including teaspoons, tablespoons, cups, and ounces

5 calculators
Explore Cooking Converters
Data Storage Converters

Convert between different data storage units including bytes, kilobytes, megabytes, and gigabytes

2 calculators
Explore Data Storage Converters
Energy Converters

Convert between different energy units including joules, calories, kWh, and BTU

1 calculator
Explore Energy Converters
Everyday Life

<p>In our busy daily lives, we often encounter situations that require quick calculations. Whether …

6 calculators
Explore Everyday Life
Finance

<p>Our finance calculators help you make smart choices about money. Whether you're saving up for so…

3 calculators
Explore Finance
Fractions

Comprehensive fraction calculators for all fraction operations

16 calculators
Explore Fractions
Health

<p>Keeping track of your health can be a challenge, but it doesn't have to be! With our amazing hea…

3 calculators
Explore Health
Length Converters

Convert between different length and distance units including meters, feet, inches, and miles

5 calculators
Explore Length Converters
Maths

Math can seem like a tough subject, but it doesn't have to be! With our awesome math calculator, yo…

87 calculators
Explore Maths
Percentage

Comprehensive percentage calculators for discounts, taxes, tips, and voting calculations

4 calculators
Explore Percentage
Physics Converters

Convert between physics units including acceleration, force, density, and angles

4 calculators
Explore Physics Converters
Power Converters

Convert between different power units including watts, horsepower, and BTU/hr

1 calculator
Explore Power Converters
Pressure Converters

Convert between different pressure units including PSI, bar, and atmospheres

2 calculators
Explore Pressure Converters
Speed Converters

Convert between different speed units including mph, kph, m/s, and knots

1 calculator
Explore Speed Converters
Sports

p>In the world of sports, even the slightest edge can make a big difference. Whether you're a profe…

1 calculator
Explore Sports
Statistics

Statistical calculators for data analysis, probability, and descriptive statistics

16 calculators
Explore Statistics
Temperature Converters

Convert between Celsius, Fahrenheit, and Kelvin temperature scales

3 calculators
Explore Temperature Converters
Time Converters

Convert between different time units including seconds, minutes, hours, days, and years

5 calculators
Explore Time Converters
Time and Date

<p>Keeping track of dates, times, and schedules can be a daunting task. Whether you're planning a p…

3 calculators
Explore Time and Date
Volume Converters

Convert between different volume and capacity units including liters, gallons, cups, and milliliters

8 calculators
Explore Volume Converters
Weight Converters

Convert between different weight and mass units including pounds, kilograms, ounces, and grams

4 calculators
Explore Weight Converters