100% free · Runs 100% in your browser · Nothing is uploaded · No signup needed
The rule: F(0) = 0, F(1) = 1, and every later term is the sum of the two before it — F(n) = F(n−1) + F(n−2). For example F(20) = 6765. The sequence updates live as you type.
Your numbers are processed locally in your browser and are never sent to any server.
The Fibonacci sequence is one of the most famous number patterns in mathematics. It begins with 0 and 1, and every term after that is the sum of the two terms before it. It is named after Leonardo of Pisa, known as Fibonacci, who introduced it in his 1202 book Liber Abaci. Starting from one pair, the monthly rabbit counts ran 1, 1, 2, 3, 5, 8 — the first terms.
The whole sequence comes from one short rule, the recurrence relation: F(n) = F(n-1) + F(n-2). To find any term, add the two terms directly before it. The sequence starts with F(0) = 0 and F(1) = 1, so F(2) = 1 + 0 = 1, F(3) = 1 + 1 = 2, F(4) = 2 + 1 = 3, F(5) = 3 + 2 = 5, and F(6) = 5 + 3 = 8. Two starting values and one addition rule generate the entire infinite sequence.
The first 10 terms are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. The numbers grow slowly at first and then climb quickly — by the 20th term they reach the thousands. That accelerating growth is why the sequence models growing things so well, from rabbit populations to branching trees.
Enter how many terms you want — for example, 10, 20, or 50 — and the tool instantly lists every term from F(0) up to the term you asked for, together with the recurrence step that produced each one. You can copy the whole sequence with one click, which is handy for homework, spreadsheets, coding practice, or classroom demonstrations. Everything runs in your browser, with no sign-up and no uploads.
The first 20 terms, from F(0) to F(19), are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181. The very next term, F(20), is 6765 — check it yourself: 4181 + 2584 = 6765. Worth memorizing: 13, 21, 34, 55, and 89 appear in puzzles and maths competitions constantly.
Let us find F(10) by hand to show the recurrence in action. Building up from the start: F(2) = 1, F(3) = 2, F(4) = 3, F(5) = 5, F(6) = 8, F(7) = 13, F(8) = 21, F(9) = 34, and finally F(10) = 34 + 21 = 55. Each step needs one addition, and the sequence is the classic first example of recursion in programming: a function calling itself twice mirrors the definition exactly.
For a bigger check, take F(20) = 6765. Working forward from F(15) = 610, the next terms are F(16) = 987, F(17) = 1597, F(18) = 2584, F(19) = 4181, and F(20) = 4181 + 2584 = 6765. Further on, F(25) = 75025 and F(30) = 832040. For powers or roots of these large values, try our exponent calculator and square root calculator can help.
There is a neat shortcut for adding the first n Fibonacci numbers: the sum of the first n terms equals F(n+1) minus 1. Take the first 10 terms: 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 = 88, and the shortcut says F(11) − 1 = 89 − 1 = 88. Try it with the first 6 terms: 0 + 1 + 1 + 2 + 3 + 5 = 12, and F(7) − 1 = 13 − 1 = 12. Once you know the trick, you never have to add a long list of Fibonacci numbers one by one again.
There is a similar trick for the sum of the squares. Add the squares of the first 10 terms: 0 + 1 + 1 + 4 + 9 + 25 + 64 + 169 + 441 + 1156 = 1870, which equals F(9) × F(10) = 34 × 55 = 1870. You may also like our factorial calculator, cube root calculator, GCD calculator, and LCM calculator.
The most famous property of the Fibonacci sequence is its link to the golden ratio, the number phi (φ), approximately 1.6180339887. Divide any Fibonacci term by the term before it, and the answer gets closer and closer to phi as the numbers grow: 8 ÷ 5 = 1.6, 13 ÷ 8 = 1.625, 21 ÷ 13 ≈ 1.6154, 34 ÷ 21 ≈ 1.6190, 55 ÷ 34 ≈ 1.6176, 89 ÷ 55 ≈ 1.6182, 144 ÷ 89 ≈ 1.6180, and 233 ÷ 144 ≈ 1.6181. The ratios swing above and below phi, closing in on it with every step.
The reason is built into the recurrence itself. Because each term is the sum of the two before it, the ratio of consecutive terms must settle towards the number that satisfies x = 1 + 1/x, which is exactly (1 + √5) ÷ 2. This also gives a direct formula for the nth term, Binet's formula: F(n) = (φⁿ − ψⁿ) ÷ √5, where ψ = (1 − √5) ÷ 2, about −0.618. Our logarithm calculator shows how fast these values grow.
If you run a website, a blog, or an online store, numbers like these are only half the story — you also need reliable, affordable hosting to share your work with the world. FistHost shared hosting starts at just $0.99/month, and every annual plan includes a free domain, so you can put your project online today without a big bill. Visit FistHost to see the plans and get started in minutes.
The sequence appears in nature so often that it surprises even mathematicians. Count the spirals on a sunflower head and you will usually find 34 spirals in one direction and 55 in the other. Pinecones commonly show 8 spirals one way and 13 the other. Flower petals follow the pattern too: lilies have 3 petals, buttercups have 5, delphiniums have 8, marigolds have 13, and daisies often have 34. Each new leaf or seed appears at the golden angle of about 137.5 degrees from the last, packing seeds with the least wasted space.
In computing, the sequence is the standard first example for teaching recursion, the basis of Fibonacci search and Fibonacci heaps, and a favourite test case for measuring program speed, because computing F(30) = 832040 naively already makes over 2.7 million calls. Artists and architects have also used the golden ratio for centuries, since rectangles such as 34 by 55 look naturally balanced to the eye.
What is the 10th Fibonacci number? With the standard indexing used here, F(0) = 0 and F(1) = 1, so F(10) = 55, and the first 10 terms are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. Some textbooks start with 1, 1, 2, 3, 5, which shifts every index by one.
What is the 20th Fibonacci number? F(20) = 6765. The first 20 terms run from 0 up to F(19) = 4181, and the next term is 4181 + 2584 = 6765. Our generator lists every term on the way, so you can see the full run-up.
Is there a formula for the nth Fibonacci number? Yes — Binet's formula, F(n) = (φⁿ − ψⁿ) ÷ √5, gives any term directly without working through all the earlier ones. For everyday use, though, the recurrence F(n) = F(n-1) + F(n-2) is simpler, and it is exactly what this generator uses.
Planning to publish your own calculators, tutorials, or tools? A fast FistHost hosting plan from just $0.99/month gives you the speed and uptime your visitors expect, and with a free domain included on annual plans you can launch your own site for less than a coffee a month. Explore domains at fisthost.com/domains and hosting at FistHost — your next project could be live today.
Whether you need the first 10 terms for homework, F(20) = 6765 for a coding test, or a hundred terms to explore the golden ratio, this generator gives you the exact sequence in seconds — no sign-up, no downloads, and no maths degree required.
No reviews yet. Be the first to review this tool!
Reviews are protected by captcha and moderated before they appear.