Quick answer

Enter non-negative n, read F(n) under "n-th term (Fn)". Supports 0≤n≤500 with comma-separated large outputs.

Formula

  • F(0)=0
  • F(1)=1
  • Iterative BigInt in browser

Introduction

A Fibonacci calculator should do one job well: return F(n) for the index you provide, using a clear indexing rule and exact integer arithmetic.

Our tool lives at the top of the home page so you can calculate first and read background sections later. That order matches how most visitors use the site during homework or quick code checks.

If you are new to the underlying rule, read what the Fibonacci sequence is before you trust any output.

When you need rows of values instead of a single term, combine this tool with the Fibonacci sequence examples tables for the first 10 and 20 indices.

The sections below describe the input field, result panel, clear button, limits, and sample calculations you can repeat in seconds.

What this calculator computes

The calculator returns one term F(n) per request. It does not plot charts, retracement levels, or golden spirals.

Indexing follows F(0)=0 and F(1)=1. If your course uses a list that starts 1, 1, 2 without zero, shift n before you type.

Computation uses an iterative BigInt loop in JavaScript. That keeps results exact for every supported n.

Nothing is sent to a server. The page is static; the math runs locally after the page loads.

Logic behind the scenes

  • Parse n as a non-negative integer
  • Loop with two BigInt variables
  • Format with commas for display

Validation rejects empty input, decimals, negatives, and values above the cap.

The cap at n=500 balances responsiveness with the size of Fibonacci integers in a browser tab.

The same recurrence you see in coursework is what the loop implements: each step adds the previous two BigInt values.

For manual alternatives, build a short table from F(0) and F(1) and compare your final row with the tool.

Using the calculator step by step

  1. Scroll to the hero The panel is labeled with n and sits under the main H1.
  2. Type n Use whole numbers such as 0, 7, or 40.
  3. Read Fn The large line under "n-th term (Fn)" updates as you type.
  4. Use Clear Reset the field without refreshing the page.
  5. Compare tables Scroll to examples on the home page for small n.

Three quick checks

n=0 should show 0. n=1 should show 1. These bases catch indexing mistakes early.

n=20 should show 6,765 with comma formatting. That value is a common exam reference point.

n=30 should show 832,040. If your manual list disagrees, re-count the index rather than assuming the tool is wrong.