Nth Fibonacci Number Calculator
Find the nth Fibonacci number.
Result
How it is calculated
The Fibonacci sequence starts 1, 1, 2, 3, 5, 8, … and each term is the sum of the two before it: F(n) = F(n−1) + F(n−2), with F(1) = F(2) = 1. This tool counts from 1, so n = 1 gives 1 and n = 10 gives 55; there is no F(0) input. The engine does not use a closed-form formula: it starts with 0 and 1 and adds step by step n − 1 times, so each answer is exact for the position you ask. Accepted n is a whole number from 1 to 90; decimals are cut to a whole number and anything outside the range returns nothing. Every result from n = 1 to 90 is exact, with no floating-point loss.
Worked example
Ask for the 20th Fibonacci number. The sequence runs 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1,597, 2,584, 4,181 and then the 20th term is the sum of the previous two: 2,584 + 4,181 = 6,765. The tool shows 6,765 for n = 20. The ratio of the 20th term to the 19th is 6,765 / 4,181 ≈ 1.618, which is close to the golden ratio.
Common mistakes
- Counting from F(0) = 0. Here the first term is 1 and n = 10 gives 55. A source that starts with a leading 0 treats the same number as one position later.
- Assuming the answer comes from Binet's formula with a rounded golden ratio. The tool adds the terms, which stays exact for the allowed range.
- Entering n above 90 or a negative number and expecting a result; the tool returns nothing for values outside 1 to 90.
- Confusing the position with the value: n = 20 asks for the 20th number in the sequence, not for a number below 20.
About this calculator
This calculator finds the nth Fibonacci number — from the sequence where each number is the sum of the two before it (1, 1, 2, 3, 5, 8, 13...) — by adding the terms step by step (no closed-form formula) for any position n from 1 to 90.
Computer science students use it as a classic exercise in recursion, memoization and algorithmic complexity, and math enthusiasts use it to explore where the sequence shows up in nature, art and the golden ratio.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
A neat sanity check is the ratio of neighbouring terms. Run n = 20 and n = 21, then divide: 10,946 ÷ 6,765 is about 1.61803, already very close to the golden ratio. If your textbook or code starts at F(0) = 0, the numbering still matches this tool for every n from 1 upward, so F(10) is 55 in both. Where do you run into Fibonacci numbers, in coursework, code or design?