Fibonacci Calculator

Calculate any Fibonacci number or generate a Fibonacci sequence instantly with exact integer arithmetic.

Fibonacci sequence calculator
Choose a single position or generate the first several terms.

About the Fibonacci calculator

The Fibonacci sequence is an ordered list of integers in which each term after the first two equals the sum of the two terms immediately before it. Using the common modern convention, the sequence begins 0, 1, 1, 2, 3, 5, 8, 13, and continues without end. The value at position n is written F(n), with F(0) equal to 0 and F(1) equal to 1. This calculator follows that zero-based convention, so position 10 produces 55. Choose Nth Fibonacci number when you need one exact term. The calculator uses an iterative recurrence rather than a rounded decimal approximation, and JavaScript big integers preserve every digit even for positions far beyond the range of ordinary floating-point numbers. Choose First N numbers when you want to inspect the progression from F(0) onward. Sequence generation is limited to 100 displayed terms so the result remains readable, while the single-position mode supports much larger positions. Fibonacci numbers appear throughout mathematics and computer science. They provide classic examples for recurrence relations, induction, dynamic programming, algorithm analysis, and generating functions. Consecutive positive terms also produce ratios that approach the golden ratio, approximately 1.6180339887. This convergence is not exact at a finite position, but the approximation improves rapidly as the terms increase. The sequence is also related to Pascal's triangle, tiling problems, branching patterns, and many counting arguments. The calculator deliberately starts at zero because that indexing aligns naturally with the recurrence and is widely used in programming. Some school texts instead label 1 as both the first and second term. Those books describe the same numerical pattern with shifted position labels, so always check the convention before comparing an answer. For example, this tool reports F(6) as 8, while a one-based list may call 8 the sixth displayed positive term. To verify a result manually, start with 0 and 1 and repeatedly add the latest two values. For F(7), the additions create 1, 2, 3, 5, 8, and finally 13. This simple rule makes the sequence approachable for students while its deeper properties remain useful in number theory, combinatorics, finance models, and algorithm design.

Fibonacci calculator examples

InputOutputExplanation
Position 10F(10) = 55Zero-based indexing counts 0 as position zero.
Position 20F(20) = 6765Each term is the sum of the preceding pair.
First 8 terms0, 1, 1, 2, 3, 5, 8, 13The generated list starts with F(0).

How to use the Fibonacci calculator

  1. Choose Nth Fibonacci number for one term or First N numbers for a sequence.
  2. Enter a nonnegative whole number in the labeled field.
  3. Select Calculate to generate the exact integer result.
  4. Use Reset to clear the input and begin another calculation.

Fibonacci calculator FAQ

Does the Fibonacci sequence start with 0 or 1?

Both conventions appear in textbooks, but this calculator starts with F(0) equal to 0 and F(1) equal to 1. The values are the same sequence even when another source shifts the position labels.

How is a Fibonacci number calculated?

After the starting values 0 and 1, add the previous two terms to obtain the next term. Repeating that recurrence generates every Fibonacci number exactly.

What is the connection to the golden ratio?

The ratio of consecutive positive Fibonacci numbers approaches the golden ratio as positions increase. It is an approximation at every finite position, not an exact equality.

Can this calculator handle large Fibonacci positions?

Yes, single positions through 10,000 are calculated with exact big-integer arithmetic. The answer may contain thousands of digits, so displaying it can take more space.

Why is sequence generation limited to 100 terms?

The limit keeps the page responsive and the comma-separated output practical to read. Use single-position mode when you need an exact term beyond that displayed range.