Skip to main content
Calcimator

Fibonacci Calculator

Calculate the nth Fibonacci number, its predecessor, and the golden ratio approximation F(n)/F(n-1).

About this calculator

The Fibonacci sequence starts at F(0) = 0 and F(1) = 1, and every later term is the sum of the two before it, so this calculator gets F(n) by walking that addition forward one step at a time from the start rather than by any closed-form shortcut. Position 10, the default, takes nine additions to reach 55; position 78, the field's upper limit, still runs the identical loop just 78 times, which is why the ceiling exists at all — 78 is roughly where the running total approaches the largest integer JavaScript can represent exactly, and one more step would start losing precision silently rather than throwing an error. Alongside F(n) the tool reports F(n) divided by F(n-1), the ratio of consecutive terms, which is a genuinely famous fact rather than an arbitrary extra output: as n grows, that ratio settles in on the golden ratio, roughly 1.618, and by n in the twenties the calculator's own rounding to five decimal places can no longer tell the ratio apart from that limiting value.

Entering a non-whole number like 7.8 is accepted and simply floored to 7 before the loop begins, so the position field behaves like an integer selector even though nothing in the input configuration enforces that directly. What this tool does not do is compute any Fibonacci number beyond the 78-position cutoff, and it does not offer the closed-form Binet formula as an alternative computation path even though that formula exists and would reach the same answer without iterating.

Inputs

Results

F(n)

55

F(n)/F(n-1) (→ φ)

1.61765

F(n-1)34
How to Use This Calculator
  1. Enter Position (n).
  2. Review F(n) and F(n)/F(n-1) (→ φ).
  3. Use F(n-1) to inform your decision.
  4. Use the chart to visualize the results and explore different scenarios by adjusting inputs.

How the result changes with Position (n)

Position (n)F(n)F(n)/F(n-1) (→ φ)
551.66667
7.5131.625
156101.61804
2575,0251.61803

What each input means

Position (n)
Position in the Fibonacci sequence (0-78, limited to safe integer range)

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Position (n) = 10 = 1 input(s) provided
  2. Calculate F
    F
    55 = 55
  3. Calculate F(n)/F(n-1)
    F(n)/F(n-1)
    1.61765 = 1.61765

Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does the position field stop at 78?

Fibonacci numbers grow fast enough that F(79) and beyond start to exceed the largest integer JavaScript can represent without losing precision. Capping the position at 78 keeps every result this calculator returns exactly correct rather than silently rounded.

What does the F(n)/F(n-1) ratio approaching phi actually mean?

As the position increases, the ratio of each Fibonacci number to the one before it gets closer and closer to the golden ratio, about 1.61803. By around position 25 the five-decimal rounding this calculator uses can no longer distinguish the ratio from that limiting value.

What happens if I enter a decimal position like 7.8?

It is floored to 7 before the sequence is built, so F(7.8) and F(7) return the exact same values. The position field does not reject non-integer input; it simply treats the fractional part as if it were never entered.

Does the calculator use the closed-form Binet formula?

No. It builds F(n) by iterating the addition rule forward from F(0) and F(1) one step at a time, rather than evaluating the golden-ratio-based closed-form expression that can reach the same answer without a loop.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.