The Fibonacci sequence is one of the most famous number patterns in mathematics. Each term is formed by adding the two terms that come before it: the sequence starts 1, 1, 2, 3, 5, 8, 13, 21, and keeps going indefinitely. The nth Fibonacci number, written F(n), is your position in this sequence. So F(1) = 1, F(2) = 1, F(3) = 2, F(4) = 3, F(5) = 5, and so on. What makes the sequence remarkable is how it appears throughout nature, from the spiral arrangements of seeds in a sunflower to the branching of trees and the growth of shells, and how it is intimately linked to the golden ratio phi. As you go further along the sequence, the ratio of any term to the one before it gets closer and closer to phi, approximately 1.61803. By the 20th term the approximation is accurate to six decimal places, and by the 30th term it is accurate to more than twelve. You enter the position n, from 1 up to 70, and the calculator returns F(n), the complete sequence from F(1) to F(n), the ratio of the last two terms as an approximation of phi, and the number of digits in F(n). The sequence is computed iteratively to avoid floating-point rounding issues for small to medium values of n. This tool is useful for students studying sequences and series, for anyone curious about the golden ratio, and for programmers testing Fibonacci implementations. Values above n=70 can exceed the safe integer range for standard JavaScript arithmetic.
Sequence is computed iteratively. Reliable for n up to 70. Above that, JavaScript number precision may cause rounding.
The calculator builds the Fibonacci sequence iteratively: F(1) = 1, F(2) = 1, and for each subsequent term F(k) = F(k-1) + F(k-2). This avoids the rounding errors that can accumulate with Binet's closed-form formula at large n. The ratio F(n)/F(n-1) is the best rational approximation to the golden ratio phi achievable with consecutive Fibonacci numbers. The sum of the first n Fibonacci numbers equals F(n+2) minus 1, a useful identity that the calculator verifies by summing all displayed terms. Digits in F(n) are counted by converting the number to a string and measuring its length.
Using the default n = 10: the sequence is built step by step as 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. Therefore F(10) = 55. The ratio of the last two terms is 55 divided by 34 = 1.617647, already close to phi = 1.61803. The sum of all ten terms is 1+1+2+3+5+8+13+21+34+55 = 143, which also equals F(12) minus 1 = 144 minus 1 = 143.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.