Fibonacci Sequence Generator

Generate the Fibonacci sequence up to N terms or up to a maximum value.

Terms

20

Largest value

4,181

Golden ratio

≈ 1.618034

nF(n)F(n)/F(n−1)
00
111.000000
211.000000
322.000000
431.500000
551.666667
681.600000
7131.625000
8211.615385
9341.619048
10551.617647
11891.618182
121441.617978
132331.618056
143771.618026
156101.618037
169871.618033
171,5971.618034
182,5841.618034
194,1811.618034

Related Tools

0 comments

How it works

Enter the number of terms you want, or a maximum value to stop at. The tool generates the Fibonacci sequence starting from 0 and 1, where each subsequent number is the sum of the two before it. It displays the full sequence in a table with term index, value, and ratio to the previous term (which converges toward the golden ratio φ ≈ 1.618). All calculation runs locally in your browser.


              F(n) = F(n−1) + F(n−2), F(0)=0, F(1)=1
            

Common use cases

  • Looking up a specific Fibonacci number for a math problem or puzzle.
  • Demonstrating the golden ratio convergence in a Fibonacci sequence.
  • Generating Fibonacci numbers for use in algorithm design or data structure sizing.

Frequently asked questions

What is the golden ratio?

The ratio of consecutive Fibonacci numbers converges to φ ≈ 1.6180339887, the golden ratio. This appears throughout nature, art, and architecture.

How many terms can I generate?

JavaScript numbers stay precise up to about F(78). Beyond that, numbers exceed integer precision. The tool handles up to 80 terms accurately.