Fibonacci Number Calculator

Find the nth Fibonacci and Lucas number exactly, with the golden ratio approximation.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Fibonacci Number Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Fibonacci Number Calculator does

    Find the nth Fibonacci and Lucas number exactly, with the golden ratio approximation.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter n from 0 to 5000. The calculator gives F(n) exactly, the number of digits, the nth Lucas number, the ratio F(n) ÷ F(n−1) next to the golden ratio φ, and the first terms of the sequence.

Definition

F(0) = 0, F(1) = 1 and F(n) = F(n−1) + F(n−2). Lucas numbers start 2, 1, 3, 4, 7 with the same rule. The ratio of consecutive Fibonacci numbers approaches φ = (1 + √5) ÷ 2 = 1.6180339887…

Exactness

Values are computed with big integers. F(n) and L(n) are shown in full for n below 400; for larger n (up to 5000) the digit count and the first 30 digits are shown.

Worked example

F(50) = 12,586,269,025, which has 11 digits. L(50) = 28,143,753,123 and F(50)/F(49) = 1.61803398875.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is F(0)?

0.

How large can n be?

Up to 5000; the full value is shown below 400.

What is the golden ratio?

φ = 1.6180339887…, the limit of F(n+1) ÷ F(n).

What are Lucas numbers?

A related sequence starting with 2 and 1.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages