Fibonacci Sequence Calculator

Generate Fibonacci numbers, find the nth term, check if a number is Fibonacci, and explore the golden ratio. With Lucas numbers and custom sequences.

Enter n (0-78 for safe integers)
Max 50
F(20)
6,765
4 digits
Golden Ratio (φ)
1.6180339887
(1 + √5) / 2
Ratio Convergence Error
6.6978e-8
Distance from φ at last term
Conjugate (ψ)
-0.6180339887
(1 - √5) / 2
Sequence Type
Fibonacci
Starts 0, 1, 1, 2, 3...
Ratio Convergence to φ:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Term index → closeness to φ (taller = closer)
nF(n)F(n)/F(n-1)Error vs φ
00
11
211.000000006.180e-1
322.000000003.820e-1
431.500000001.180e-1
551.666666674.863e-2
681.600000001.803e-2
7131.625000006.966e-3
8211.615384622.649e-3
9341.619047621.014e-3
10551.617647063.869e-4
11891.618181821.478e-4
121441.617977535.646e-5
132331.618055562.157e-5
143771.618025758.238e-6
156101.618037143.147e-6
169871.618032791.202e-6
171,5971.618034454.591e-7
182,5841.618033811.753e-7
194,1811.618034066.698e-8
Planning notes, formulas, and examples

About the Fibonacci Sequence Calculator

The Fibonacci Sequence Calculator generates terms of the Fibonacci sequence, finds specific terms by index, tests whether a number belongs to the sequence, and explores the golden ratio convergence. The Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...) is one of the most famous patterns in mathematics, appearing in nature, art, architecture, and computer science, and it is a good way to see recursion turn into a simple pattern.

Each term is the sum of the two preceding terms: F(n) = F(n-1) + F(n-2). As n grows, the ratio of consecutive terms converges to the golden ratio φ ≈ 1.6180339887. This ratio appears in sunflower spirals, nautilus shells, the Parthenon, and modern design composition.

Enter a term number to find the corresponding Fibonacci value, or enter a number to check if it's a Fibonacci number. Generate sequences of any length and explore how quickly the ratio converges to φ.

When This Page Helps

Use this calculator when you want fast answers for sequence generation, nth-term lookup, or a quick Fibonacci membership check. It is useful for math classes, coding exercises, and any context where you want the sequence and golden-ratio behavior without doing the recurrence manually or writing extra code. That is especially handy when you need the numbers immediately for an example, proof, or program test.

How to Use the Inputs

  1. Enter a term number n to find F(n) — the nth Fibonacci number.
  2. Or enter a number to check if it's a Fibonacci number and find its position.
  3. Set the number of terms to generate in the sequence table.
  4. Toggle between standard Fibonacci (0,1) and Lucas numbers (2,1) or custom starts.
  5. Explore the golden ratio convergence in the ratio column.
  6. Use presets for common applications like Agile story points or nature examples.
Formula used
F(n) = F(n-1) + F(n-2), with F(0) = 0, F(1) = 1. Binet's formula: F(n) = (φⁿ - ψⁿ) / √5, where φ = (1+√5)/2 ≈ 1.618, ψ = (1-√5)/2 ≈ -0.618. Fibonacci check: n is Fibonacci iff 5n²+4 or 5n²-4 is a perfect square.

Example Calculation

Result: F(20) = 6,765

The 20th Fibonacci number is 6,765. The ratio F(20)/F(19) = 6765/4181 ≈ 1.61803 — already very close to the golden ratio φ = 1.6180339887..

Tips & Best Practices

  • F(n) has approximately 0.209×n digits — F(1000) has about 209 digits.
  • The sum of the first n Fibonacci numbers equals F(n+2) - 1.
  • Every 3rd Fibonacci number is even, every 5th is divisible by 5, every 4th by 3.
  • Fibonacci numbers mod m are periodic (Pisano period) — useful in competitive programming.
  • The golden ratio appears in Agile story points: 1, 2, 3, 5, 8, 13, 21 — a modified Fibonacci scale.
  • GCD(F(m), F(n)) = F(GCD(m, n)) — a beautiful number theory result.

The Golden Ratio in Art and Design

Artists and architects have used the golden ratio for millennia. The Parthenon's facade fits a golden rectangle. Leonardo da Vinci's Vitruvian Man exhibits φ proportions. Modern designers use golden ratio grids for layouts, typography scaling (body text × 1.618 = heading size), and logo design. Apple's logo and the Twitter bird reportedly incorporate golden ratio geometry.

Fibonacci in Financial Trading

Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) are popular technical analysis tools. Traders believe price corrections often reverse near these levels derived from Fibonacci ratios. While the mathematical basis is the golden ratio, the effectiveness is debated — some argue it works as a self-fulfilling prophecy because many traders watch the same levels.

Computational Approaches

Simple recursion computes F(n) in O(2ⁿ) time (exponential). Memoization or iteration achieves O(n). Matrix exponentiation or Binet's formula can compute F(n) in O(log n). For very large n, the fast doubling method uses: F(2n) = F(n)[2F(n+1) - F(n)] and F(2n+1) = F(n+1)² + F(n)² to achieve O(log n) with arbitrary-precision integers.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The golden ratio φ = (1+√5)/2 ≈ 1.6180339887. It's the limit of F(n+1)/F(n) as n approaches infinity. Rectangles with sides in a 1:φ ratio are considered aesthetically pleasing and appear throughout nature and design.