Skip to content
Kordu Tools
Math & Numbers Runs in browser Updated 30 Mar 2026

Fibonacci Generator

Generate Fibonacci sequences up to any term, check if a number is Fibonacci, and watch golden ratio convergence. BigInt support.

Enter 1 to 1,000.

,

Golden Ratio (φ)

1.6180339887

F(n)/F(n−1) converges to

1.6180340557

20 terms

nF(n)F(n)/F(n−1)
00
11
211.0000000000
322.0000000000
431.5000000000
551.6666666667
681.6000000000
7131.6250000000
8211.6153846154
9341.6190476190
10551.6176470588
11891.6181818182
121441.6179775281
132331.6180555556
143771.6180257511
156101.6180371353
169871.6180327869
1715971.6180344478
1825841.6180338134
1941811.6180340557

Formulae

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

φ = (1 + √5) / 2 ≈ 1.618034

Fibonacci test: N is Fibonacci iff 5N² ± 4 is a perfect square

Binet's formula: F(n) = (φ^n − ψ^n) / √5, where ψ = 1 − φ

Loading rating…

How to use Fibonacci Generator

  1. Choose a mode

    Select Generate Sequence to list Fibonacci terms, or Check Number to test if a specific number belongs to the sequence.

  2. Enter a value

    For generation, type how many terms you want. For checking, enter the number to test.

  3. View the sequence table

    The table shows index, Fibonacci value, and the ratio F(n+1)/F(n) converging toward the golden ratio.

  4. Watch golden ratio convergence

    The ratio column shows how quickly consecutive terms approach phi ≈ 1.6180339887.

  5. Try custom starting values

    Enter custom first and second terms to generate generalized Fibonacci sequences like the Lucas numbers.

Fibonacci Generator FAQ

What is the Fibonacci sequence?

A sequence where each term is the sum of the two before it: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89... Starting from F(0)=0 and F(1)=1.

What is the formula for the nth Fibonacci number?

Binet's formula: F(n) = (φⁿ − ψⁿ) / √5, where φ = (1+√5)/2 ≈ 1.618 and ψ = (1−√5)/2. For exact integers, iterative addition is more reliable.

How do I check if a number is Fibonacci?

A positive integer N is a Fibonacci number if and only if 5N²+4 or 5N²−4 is a perfect square.

What is the golden ratio?

The golden ratio φ ≈ 1.6180339887 is the limit of F(n+1)/F(n) as n approaches infinity. It appears in art, architecture, and nature.

How many Fibonacci numbers can this generate?

As many as you need. BigInt arithmetic provides exact results for very large terms without floating-point errors.

What are generalized Fibonacci sequences?

Sequences that follow the same F(n) = F(n−1) + F(n−2) rule but start with different initial values. Lucas numbers start 2, 1, 3, 4, 7, 11...

Where does Fibonacci appear in nature?

Spiral phyllotaxis in sunflower seeds, petal counts in flowers, and spiral proportions in shells follow Fibonacci numbers.

Is Fibonacci used in programming?

Yes — it is a classic example for recursion, memoization, and dynamic programming in computer science courses.

Can I use this for homework?

Yes. The sequence and ratio table make it easy to verify your results and spot patterns.

Is any data sent to a server?

No. All processing runs entirely in your browser. Nothing is uploaded or stored.

Background

Generate the Fibonacci sequence up to any number of terms with exact BigInt arithmetic for large values. A checker mode instantly tests whether any number belongs to the sequence using the perfect-square test. A convergence panel shows how the ratio F(n+1)/F(n) approaches the golden ratio (phi ≈ 1.6180339887) as n increases, making this tool as educational as it is practical. Custom starting values let you generate generalized Fibonacci sequences (Lucas numbers, for example). Results are displayed in a clean table with index, value, and ratio columns. Useful for math students exploring number theory, computer science students learning recursion and dynamic programming, and anyone who has spotted the Fibonacci pattern in nature, art, or architecture. All processing runs in your browser — no server calls, no account needed.

Learn more