StatGardenREF. DESK
Calculators/Maths/Fibonacci sequence
Maths

Fibonacci sequence calculator

The nth Fibonacci number, the sequence around it and the sum so far.

What this calculator does

Fibonacci sequence works out the nth Fibonacci number, the sequence around it and the sum so far. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaF(0)=0, F(1)=1, F(n)=F(n−1)+F(n−2); sum of F(0)..F(n) = F(n+2) − 1

The inputs explained

FieldWhat to enter
Term index n (F(0), F(1), …)A number. Starts at 10.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with term index n (f(0), f(1), …)

Every other input is held at the calculator’s starting values while term index n (f(0), f(1), …) varies. Select any row to load that scenario into the calculator.

How the answer changes with term index n (f(0), f(1), …)
Term index n (F(0), F(1), …)F(5)Previous few termsSum of F(0) through F(5)
551, 1, 2, 3, 512
7.5213, 5, 8, 13, 2154
10558, 13, 21, 34, 55143
1561089, 144, 233, 377, 6101,596
206,765987, 1,597, 2,584, 4,181, 6,76517,710
30832,040121,393, 196,418, 317,811, 514,229, 832,0402,178,308