Updated on April 23rd, 2026

Fibonacci Calculator

Created By Jehan Wadia

Calculation Mode
Select calculation mode
When checked, F(0)=0, F(1)=1. When unchecked, F(1)=1, F(2)=1.
Input
Integer from -500 to 500. Negative indices use F(-n) = (-1)^(n+1) × F(n).
Click or drag a .txt/.csv file with one index per line
Upload a file with one integer per line to compute F(n) for each.
Results Summary

Introduction

The Fibonacci sequence is one of the most famous patterns in math. It starts with 0 and 1, and each number after that is the sum of the two numbers before it: 0, 1, 1, 2, 3, 5, 8, 13, 21, and so on. This simple rule creates a sequence that shows up everywhere — in nature, art, architecture, and computer science. As the numbers grow, the ratio between one Fibonacci number and the one before it gets closer and closer to the golden ratio (φ ≈ 1.618), a special value that appears throughout geometry and design.

This Fibonacci Calculator lets you find any Fibonacci number up to the 500th index, generate full sequences, or compute values across a custom range. You can look up a single value using the Nth Value mode, list out multiple terms with the Sequence mode, or set a start and end point using Range Sequence mode. The calculator handles negative indices too, using the negafibonacci identity where F(−n) = (−1)^(n+1) × F(n). It supports both zero-indexed notation (where F(0) = 0) and one-indexed notation (where F(1) = 1), so you can match whichever convention you prefer.

Beyond just giving you the answer, this tool shows a step-by-step breakdown of how each value is computed, displays useful properties like digit count and parity, and visualizes how the sequence grows with interactive charts. You can also see exactly how the ratio of consecutive terms converges toward the golden ratio. For larger tasks, upload a file with a list of indices to compute Fibonacci values in batch, and download your results as a CSV file for further use.

How to Use Our Fibonacci Calculator

Enter a position number or range, and this calculator will find the matching Fibonacci number, show step-by-step work, display the full sequence, and reveal how close each ratio gets to the golden ratio.

Calculation Mode: Pick how you want to calculate. Choose Nth Value to find a single Fibonacci number at a specific position. Choose Sequence to list a set number of Fibonacci terms starting from the beginning. Choose Range Sequence to see every Fibonacci number between two index positions you pick.

Zero-indexed (F(0) = 0): Check this box if you want counting to start at 0, where F(0) = 0 and F(1) = 1. Uncheck it if you prefer 1-indexed counting, where F(1) = 1 and F(2) = 1. This changes how the calculator reads your input position.

Thousands Separators: Check this box to add commas to large numbers so they are easier to read. Uncheck it if you want the raw number with no commas.

Auto-calculate as I type: Check this box if you want results to update right away as you type. Leave it unchecked if you prefer to press the Calculate button when you are ready.

Enter Index (n) — Nth Value Mode: Type the position of the Fibonacci number you want to find. You can enter any whole number from −500 to 500. Negative numbers use the negafibonacci rule, where F(−n) = (−1)^(n+1) × F(n).

Number of Terms (N) — Sequence Mode: Type how many Fibonacci numbers you want to see, starting from the beginning of the sequence. You can enter any whole number from 1 to 500.

Start Index (n₁) and End Index (n₂) — Range Mode: Type the first and last index positions for your range. Both values must be whole numbers from −500 to 500, and the start index must be less than or equal to the end index.

Batch Input (optional): Upload a .txt or .csv file with one index number per line to calculate many Fibonacci values at once. Each number in the file must be a whole number from −500 to 500, and the file can hold up to 1,000 values.

Calculate / Reset: Press the Calculate button to run your inputs and see results. Press Reset to clear everything and return all settings to their defaults.

Understanding Fibonacci Numbers

The Fibonacci sequence is one of the most famous patterns in math. It starts with 0 and 1, and each number after that is the sum of the two numbers before it. So the sequence goes: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, and so on forever. The rule is simple: pick any two side-by-side numbers, add them together, and you get the next one. Mathematicians write this rule as F(n) = F(n−1) + F(n−2).

How This Fibonacci Calculator Works

This calculator gives you three ways to explore Fibonacci numbers. Nth Value mode finds a single Fibonacci number at any position you choose, from −500 to 500. Sequence mode lists out as many Fibonacci numbers in a row as you want, up to 500 terms. Range Sequence mode lets you pick a start index and an end index and shows every Fibonacci number between them. You can also upload a file with a list of positions to compute them all at once.

Negative Fibonacci Numbers (Negafibonacci)

Most people only learn about Fibonacci numbers starting at 0 and going forward, but the sequence also extends backward into negative indices. This is called the negafibonacci extension. The formula is F(−n) = (−1)n+1 × F(n). For example, F(−6) = −8, F(−5) = 5, F(−4) = −3. Notice that every other value is negative. This calculator handles negative indices automatically.

The Golden Ratio Connection

When you divide any Fibonacci number by the one before it, the answer gets closer and closer to a special number called the golden ratio, written as φ (phi). The golden ratio equals approximately 1.6180339887. For small Fibonacci numbers, the ratio is rough. By the time you reach F(10)/F(9), which is 55/34, you already get 1.6176 — very close to φ. The larger the numbers, the more exact it becomes. This calculator shows you this convergence in a chart so you can watch the ratio settle into φ. If you need to work with ratios in other contexts, our Ratio Calculator can help.

Zero-Indexed vs. One-Indexed

There are two common ways to number the Fibonacci sequence. In zero-indexed counting, the sequence starts at F(0) = 0, so F(1) = 1, F(2) = 1, F(3) = 2, and so on. In one-indexed counting, F(1) = 1, F(2) = 1, F(3) = 2. The only real difference is that everything shifts by one position. Most mathematicians and programmers use zero-indexing, but some textbooks use one-indexing. This calculator lets you pick whichever style you prefer using the toggle at the top.

Why Fibonacci Numbers Matter

Fibonacci numbers show up in many places beyond math class. In nature, the number of petals on many flowers follows the Fibonacci sequence — lilies have 3, buttercups have 5, daisies often have 34 or 55. Pinecones, sunflower seed heads, and seashell spirals all follow patterns tied to Fibonacci numbers and the golden ratio. In computer science, Fibonacci numbers appear in algorithms, data structures, and coding problems. In finance, traders use Fibonacci ratios to predict where stock prices might find support or resistance. The Permutation Calculator and Combination Calculator are other tools where Fibonacci numbers frequently arise in combinatorial counting problems. Additionally, Fibonacci numbers are closely tied to factorials in various identities and to concepts in prime factorization, since Fibonacci primes are an active area of research.

How Large Fibonacci Numbers Are Computed

For small values, you can find Fibonacci numbers by simple addition, step by step. But F(500) has over 100 digits, making brute-force addition slow. This calculator uses a method called fast doubling, which computes F(n) in O(log n) steps instead of n steps. It relies on two identities: F(2k) = F(k) × [2·F(k+1) − F(k)] and F(2k+1) = F(k)² + F(k+1)². The calculator also uses BigInt arithmetic to handle numbers with hundreds of digits without losing any precision. If you need to work with large numbers in other formats, our Scientific Notation Calculator can help express them more compactly. For exploring the exponent operations that underpin the fast doubling method, or for verifying digit counts using logarithms, those tools are also available.


Frequently Asked Questions

What is the Fibonacci sequence?

The Fibonacci sequence is a list of numbers that starts with 0 and 1. Each number after that is made by adding the two numbers before it. So it goes 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, and so on. The pattern never ends.

What is the formula for Fibonacci numbers?

The formula is F(n) = F(n−1) + F(n−2). This means any Fibonacci number equals the sum of the two Fibonacci numbers right before it. The starting values are F(0) = 0 and F(1) = 1.

What is the largest Fibonacci number this calculator can find?

This calculator can find Fibonacci numbers from index −500 to 500. F(500) has 105 digits. The tool uses BigInt math, so it gives you the exact number with no rounding, no matter how large it gets within that range.

How do I find the 100th Fibonacci number?

Select Nth Value mode, make sure zero-indexed is checked, and type 100 in the index box. Press Calculate. The result is 354,224,848,179,261,915,075. If you use one-indexed mode instead, type 100 and the calculator adjusts automatically.

What does zero-indexed vs one-indexed mean?

With zero-indexed, counting starts at 0, so F(0) = 0 and F(1) = 1. With one-indexed, counting starts at 1, so F(1) = 1 and F(2) = 1. The Fibonacci values are the same — only the position labels shift by one.

Can this calculator handle negative Fibonacci indices?

Yes. Negative indices use the negafibonacci rule: F(−n) = (−1)^(n+1) × F(n). For example, F(−6) = −8 and F(−5) = 5. Just type a negative number in the index box and the calculator does the rest.

What is the golden ratio and how does it relate to Fibonacci numbers?

The golden ratio (φ) is about 1.6180339887. When you divide any Fibonacci number by the one before it, the answer gets closer and closer to φ as the numbers grow. This calculator shows you this convergence with a chart and exact ratio values.

What is the fast doubling method?

Fast doubling is a quick way to compute large Fibonacci numbers. Instead of adding one step at a time, it uses two formulas — F(2k) = F(k) × [2·F(k+1) − F(k)] and F(2k+1) = F(k)² + F(k+1)² — to jump ahead. This finds F(n) in about log₂(n) steps instead of n steps.

How do I generate a list of the first 20 Fibonacci numbers?

Click the Sequence mode button, type 20 in the "Number of terms" box, and press Calculate. The calculator will show a table with all 20 terms, their digit counts, and the ratio between each pair of consecutive values.

What is Range Sequence mode used for?

Range Sequence mode lets you pick a start index and an end index, and it shows every Fibonacci number between those two positions. For example, setting start to 10 and end to 20 shows F(10) through F(20). This is useful when you only need a specific section of the sequence.

How does the batch file upload work?

You can upload a .txt or .csv file with one index number per line. The calculator computes the Fibonacci value for every index in the file. Each number must be between −500 and 500, and the file can have up to 1,000 values.

Can I download my results?

Yes. When viewing a sequence or range, click the Download CSV button to save a file with the index, Fibonacci value, digit count, and ratio for each term. You can also click Copy Sequence to copy the data to your clipboard.

Why are some Fibonacci values marked as negative in the table?

Negative values appear when you use negative indices. The negafibonacci rule makes every other value in the negative index range come out negative. The calculator marks these with an orange "neg" badge so they are easy to spot.

Are any Fibonacci numbers prime?

Yes, some Fibonacci numbers are prime. Examples include 2, 3, 5, 13, 89, and 233. For values under 100,000, this calculator checks and tells you if the result is prime. Fibonacci primes are still an active area of math research.

How many digits does a large Fibonacci number have?

The number of digits grows steadily. F(100) has 21 digits, F(200) has 42 digits, and F(500) has 105 digits. You can estimate the digit count using the formula: digits ≈ n × log₁₀(φ) + 1, where φ is the golden ratio. The calculator shows the exact digit count for every result.

What does the convergence to golden ratio chart show?

This chart plots the ratio F(n)/F(n−1) for each term in your sequence. You can see how the ratio starts off rough for small numbers and quickly settles close to φ ≈ 1.618. A dashed line shows the exact value of φ so you can see how close each ratio gets.

What happens if I enter 0 as the index?

In zero-indexed mode, F(0) = 0. In one-indexed mode, entering 0 is not valid since counting starts at 1. The calculator will show an error if the input falls outside the allowed range for your chosen indexing style.


Related Calculators

Arithmetic Sequence Calculator

Visit Arithmetic Sequence Calculator