What is the Fibonacci sequence?
The Fibonacci sequence is a list of numbers where each number is the sum of the two before it. It starts 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, and it never ends. The 10th term is 55, the previous term is 34, and 55 divided by 34 is about 1.62, close to the golden ratio. The Fibonacci numbers are one famous sequence — our sequence calculator works out the nth term and sum of any arithmetic sequence.
The sequence is named after Leonardo of Pisa, known as Fibonacci, who described it in 1202 using a puzzle about rabbits. A pair of rabbits produces a new pair each month, and the number of pairs follows the sequence. The puzzle was artificial, but the sequence turned out to appear in real places: pine cones, sunflower seeds, and the branching of trees.
This calculator takes a term number n, from 1 to 75, and gives you F(n), the previous term, and the ratio between them. The cap of 75 exists because F(75) is 2,111,485,077,978, and larger terms pass the largest integer JavaScript can represent exactly, so answers beyond that would be wrong.
How a Fibonacci calculator works
The calculator works by iteration, not recursion. It starts with the first two terms, 1 and 1, then adds them to get the third term, 2, then adds 1 and 2 to get the fourth term, 3, and keeps going until it reaches the term you asked for. Each step needs only the last two numbers, so the whole job is a short loop.
Iteration matters because the naive recursive method is enormously wasteful: computing F(50) by recursion repeats the same smaller terms billions of times. The iterative loop computes F(75) in 74 additions, instantly. That is why this page uses a loop and says so plainly — the method is part of the answer.
The golden ratio column is a bonus. Divide each term by the one before it and the answer creeps toward 1.6180339887, the golden ratio. For n = 10, 55 divided by 34 is about 1.62. For n = 20, 6,765 divided by 4,181 is about 1.62 as well, but closer to the true value. The bigger n is, the closer the ratio gets.
The term number n, explained
The term number n counts position in the sequence, starting at 1. F(1) is 1, F(2) is 1, F(3) is 2, F(4) is 3, F(5) is 5, and F(10) is 55. Some books start the sequence at 0 instead, writing F(0) = 0 and F(1) = 1, which shifts every index by one. This page uses the 1-based counting that school problems use, so F(10) is 55 here.
That indexing choice is the single biggest source of wrong answers. If a textbook says the 10th Fibonacci number is 34, it is using 0-based counting, where the list starts 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. Check which convention your problem uses before trusting a number. This page states its convention in the formula box.
The cap of 75 is a hard limit of exact integer arithmetic in a browser. F(75) is 2,111,485,077,978, which is below 9,007,199,254,740,991, the largest safe integer. F(76) is 3,416,449,090,808, still safe, but F(78) and beyond cross into territory where rounding errors appear, so 75 is kept as a safe margin.
A worked example: F(10), F(5) and F(20)
The default on this page is n = 10. Build the sequence step by step: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. The 10th term is 55, the previous term is 34, and the ratio is 55 divided by 34, which is 1.6176, shown as 1.62. That ratio is already within 0.001 of the golden ratio, 1.618.
Try n = 5. The sequence up to the 5th term is 1, 1, 2, 3, 5. So F(5) is 5, the previous term is 3, and the ratio is 5 divided by 3, which is 1.6667, shown as 1.67. The ratio is further from the golden ratio here because n is small; the approximation improves as n grows.
Try n = 20. The 20th term is 6,765, the 19th term is 4,181, and the ratio is 6,765 divided by 4,181, which is 1.6180, shown as 1.62. Compare that with the n = 10 ratio of 1.6176: the n = 20 value is closer to 1.6180339887. Each step up the sequence tightens the approximation a little more.
Where Fibonacci numbers actually appear
Nature is the most famous home of the Fibonacci sequence. Sunflower heads pack seeds in spirals that count 34, 55 or 89 in each direction. Pine cones show 8 spirals one way and 13 the other. The arrangement packs the most seeds into the least space, and the golden-ratio angle behind it is the reason the sequence shows up.
Computing uses Fibonacci numbers too. The Fibonacci search method finds a minimum faster than a plain search on some problems, and Fibonacci heaps are a data structure used in fast graph algorithms. Programmers also use the sequence as a test case: a correct iterative Fibonacci function is a standard first exercise, and a recursive one is the classic warning about wasted work.
Money and design borrow the ratio rather than the raw numbers. The golden ratio, about 1.618, guides page layouts, logo proportions and photo crops, and some traders watch Fibonacci retracement levels — 23.6%, 38.2% and 61.8% — on price charts. A ratio calculator handles the proportion side of that work, and a percentage calculator turns the retracement levels into real prices.
Fibonacci calculator vs other sequence tools
A Fibonacci calculator answers one specific sequence: each term is the sum of the two before it. An average or a percentage tool cannot do that job, because the sequence is defined by its own rule, not by a formula you can type into a general calculator. The scientific calculator on this site can add the numbers by hand, but it will not generate the sequence for you.
The closest relatives are the arithmetic and geometric sequences, where each term adds a fixed number or multiplies by a fixed number. Fibonacci is different: the step between terms changes every time, growing with the sequence itself. That growth is why F(75) is already over two trillion while the 75th term of a simple doubling sequence is far larger still.
If you need the sum of the first n Fibonacci numbers, there is a shortcut: add the first n terms and the total is F(n + 2) minus 1. The first 10 terms add up to 55 plus 34 plus the rest, which is 143, and F(12) minus 1 is 144 minus 1, which is 143. The average calculator can check the mean of any short list of terms you paste in.
Common Fibonacci mistakes
The first mistake is the indexing. F(10) is 55 with 1-based counting and 34 with 0-based counting, and mixing the two upsets every answer after the first. Always check whether your source starts at F(0) = 0 or F(1) = 1 before comparing numbers.
The second mistake is using recursion for large n. A recursive Fibonacci function that calls itself twice per term takes about 20 billion steps for F(50) and never finishes in practice. The iterative loop on this page does the same job in 49 additions. If a program hangs on Fibonacci, recursion is almost always the cause.
The third mistake is trusting the golden ratio too early. At n = 5 the ratio is 1.67, noticeably off 1.618. It takes until about n = 10 before the ratio settles to 1.62, and until n = 20 before it is right to four decimal places. Small n gives a rough ratio, not a precise one.
How to use this Fibonacci calculator
Type the term number n into the box. The default is 10, which gives F(10) = 55, a previous term of 34, and a ratio of about 1.62. The result updates live as you type, so you can walk up the sequence term by term and watch the ratio settle toward the golden ratio.
Stay within the cap of 75. Beyond that, exact integer answers stop being guaranteed in a browser, and this page would rather refuse than show a wrong number. For school work, n between 1 and 30 covers almost every problem, since F(30) is already 832,040.
Everything runs in your browser. No account, no upload, no data sent anywhere. Use it to check homework, to find a term for a design proportion, or alongside the ratio calculator when a problem mixes Fibonacci numbers with ordinary proportions.