Fibonacci Calculator
Calculate the nth Fibonacci number, view the full sequence, and get the sum. Uses iteration and the Binet formula for verification. Free, instant, and accurate.
Enter the position in the Fibonacci sequence to calculate (F(1) = F(2) = 1)
Results
F(10)
55
- First 10 Terms
- 1, 1, 2, 3, 5, 8, 13, 21, 34, 55
- Sum of First 10 Terms
- 143
- Binet's Formula Approximation
- 55
The formula
F(n) = F(n-1) + F(n-2)
- F(n)
- nth Fibonacci Number
- F(n-1)
- Previous Fibonacci Number
- F(n-2)
- Second Previous Fibonacci Number
- phi
- Golden Ratio
Worked example — Position (n) 10
F(10) = 55
How Fibonacci Calculator Works
F(n) = F(n-1) + F(n-2)
The Fibonacci sequence is a series of numbers where each number (after the first two) is the sum of the two preceding ones. Defined by the recurrence relation F(n) = F(n-1) + F(n-2) with seed values F(0) = 0 and F(1) = 1, the sequence begins: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144... The ratio of consecutive Fibonacci numbers converges to the golden ratio phi = (1 + sqrt(5))/2 ≈ 1.618, which appears throughout art, architecture, and nature.
- F(n)
- nth Fibonacci Number — The value of the Fibonacci sequence at position n. F(1) = 1, F(2) = 1, and each subsequent term is the sum of the previous two terms.
- F(n-1)
- Previous Fibonacci Number — The Fibonacci number immediately before F(n). Used in the recurrence relation to compute the next term in the sequence.
- F(n-2)
- Second Previous Fibonacci Number — The Fibonacci number two positions before F(n). Together with F(n-1), it defines the next term in the sequence.
- phi
- Golden Ratio — The golden ratio phi = (1 + sqrt(5))/2 ≈ 1.6180339887. The ratio F(n+1)/F(n) approaches phi as n increases. Binet's formula uses phi to compute F(n) directly without iteration.
Understanding the Result
The Fibonacci sequence is one of the most famous and widely observed sequences in mathematics. Named after Leonardo of Pisa (Fibonacci), who introduced it in his 1202 book Liber Abaci, the sequence starts with F(0) = 0 and F(1) = 1, and each subsequent term is the sum of the two preceding ones. This seemingly simple recurrence generates numbers with remarkable properties. One of the most fascinating is the relationship to the golden ratio phi = (1 + sqrt(5))/2.
As n grows large, the ratio of consecutive Fibonacci numbers F(n+1)/F(n) approaches phi. This connection is captured exactly by Binet's formula: F(n) = (phi^n - (-phi)^(-n)) / sqrt(5), which gives a closed-form expression for the nth Fibonacci number without iteration. For large n, the second term becomes negligible, giving the approximation F(n) = round(phi^n / sqrt(5)). The sum of the first n Fibonacci numbers has a simple closed form: sum of F(1) through F(n) = F(n+2) - 1.
Fibonacci numbers also satisfy Cassini's identity: F(n-1) x F(n+1) - F(n)^2 = (-1)^n, which is useful for proving properties of the sequence. In nature, Fibonacci numbers appear in the spiral arrangements of leaves, the branching of trees, the fruitlets of pineapples, and the scales of pinecones, where they optimize packing efficiency. The sequence is also deeply connected to the Euclidean algorithm: the worst-case number of steps occurs when the inputs are consecutive Fibonacci numbers.
How to Use
- Enter the position n (from 1 to 100) to find the nth Fibonacci number.
- View the exact value of F(n) displayed prominently.
- Scroll through the complete sequence of the first n terms, comma-separated.
- Check the sum of the first n Fibonacci numbers for patterns and relationships.
- Compare the iterative result with Binet's formula: it is evaluated in 60-digit precision here, so rounding phi^n / sqrt(5) reproduces F(n) exactly for every n up to 100.
Quick Reference
| F(1) | 1 |
| F(5) | 5 |
| F(10) | 55 |
| Golden Ratio | phi = (1 + sqrt(5))/2 ≈ 1.618 |
Frequently Asked Questions
- Where does the Fibonacci sequence appear in nature?
- Fibonacci numbers are surprisingly common in nature. Sunflower seed heads typically have 55 and 89 spirals in opposite directions (both Fibonacci numbers). Pinecones show 8 and 13 spirals. The arrangement of leaves on a stem (phyllotaxis) often follows Fibonacci angles to maximize sunlight exposure. Pineapple scales have 5, 8, 13, or 21 spirals. Even the branching of trees and family trees of honeybees follow Fibonacci patterns. This occurs because Fibonacci-based growth patterns optimize space and resource usage.
- What is Binet's formula?
- Binet's formula is a closed-form expression for the nth Fibonacci number: F(n) = (phi^n - psi^n) / sqrt(5), where phi = (1 + sqrt(5))/2 is the golden ratio and psi = (1 - sqrt(5))/2 = -1/phi. Since |psi| < 1, the psi^n term approaches 0 for large n, giving the approximation F(n) = round(phi^n / sqrt(5)). Binet's formula was discovered by Jacques Binet in 1843, though it was known to Euler, Bernoulli, and de Moivre earlier.
- What is the relationship between Fibonacci numbers and the golden ratio?
- The ratio of consecutive Fibonacci numbers F(n+1)/F(n) converges to the golden ratio phi = (1 + sqrt(5))/2 ≈ 1.618 as n increases. For example, F(10)/F(9) = 55/34 ≈ 1.6176, and F(20)/F(19) = 6765/4181 ≈ 1.6180. This convergence is rapid and alternates above and below phi. The golden ratio appears in many natural and artistic contexts and is considered aesthetically pleasing in design and architecture.
- Does F(0) = 0 or F(0) = 1?
- The modern convention sets F(0) = 0 and F(1) = 1, a convention popularized by the mathematician Edouard Lucas in the 19th century. However, some older texts start with F(1) = 1 and F(2) = 1, which is equivalent. This calculator uses the modern convention: F(0) = 0, F(1) = 1, F(2) = 1, F(3) = 2, etc. When you request position n, you get F(n) where F(1) = 1 and F(2) = 1.
- How large can n be before the numbers overflow?
- This calculator supports n from 1 to 100 and computes every term exactly with arbitrary-precision integers, so no digit is rounded. F(78) = 8,944,394,323,791,464 is the last Fibonacci number below 2^53 (about 9.007 x 10^15), the largest range in which ordinary floating-point numbers are exact; F(79) = 14,472,334,024,676,221 is the first above it. Code that uses doubles therefore goes wrong from n = 79 (it prints F(100) as 354,224,848,179,262,000,000), whereas the exact value is F(100) = 354,224,848,179,261,915,075, about 3.5 x 10^20.
Common Uses
- •Algorithm analysis: Fibonacci numbers measure the worst-case time complexity of Euclid's algorithm for GCD and appear in the analysis of Fibonacci heaps.
- •Nature: Fibonacci numbers appear in plant phyllotaxis (leaf arrangement), pinecone spirals, sunflower seed heads, and nautilus shell growth patterns.
- •Art and design: The golden ratio derived from Fibonacci numbers is used in composition, architecture, and visual design for aesthetic proportions.
- •Financial markets: Some traders use Fibonacci retracement levels (23.6%, 38.2%, 61.8%) derived from the golden ratio for technical analysis.
- •Computer science: Fibonacci numbers are used in data structures like Fibonacci heaps, in pseudorandom number generation, and as a test case for recursion and dynamic programming.
Cite this calculator
TheCalcUniverse. "Fibonacci Calculator — Find nth Term & Sequence." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/fibonacci/. Accessed October 25, 2026.
Embed this calculator on your site
You may also like
-
Mathematics
Number Sequences
Identify arithmetic, geometric, and Fibonacci sequences. Find common difference, common ratio, nth-term formula, and compute next terms.
Open calculator → -
Mathematics
Ratio Calculator
Simplify ratios, find missing values in proportions and scale dimensions, with common aspect ratio presets (16:9, 4:3, 1:1, 21:9).
Open calculator → -
Mathematics
Factorial Calculator
Calculate the factorial of any number from 0 to 170. Shows the step-by-step multiplication, digit count, and trailing zeros.
Open calculator → -
Mathematics
Prime Checker
Check if any number is prime using trial division. Find its prime factorization, count all divisors, and see step-by-step primality verification.
Open calculator → -
Mathematics
Common Denominator
Find the least common denominator (LCD) for fractions. Convert each to equivalent form using LCM step-by-step calculations and scaling factors.
Open calculator →