Fixed Point Iteration Calculator

x after 25 iterations0.73907
Exact fixed point0.73909
Absolute error1.38 x 10^-5
Convergence factor |g'(x*)|0.674
How this was calculated
  1. Fixed-point iteration rewrites the equation as x = g(x) and repeats x_(n+1) = g(x_n); here g(x) = cos(x) and the start is x0 = 1.
  2. The first iterates are x1 = 0.5403, x2 = 0.85755, x3 = 0.65429, closing in on the fixed point in a oscillating pattern.
  3. After 25 iterations x = 0.73907, within 1.38 x 10^-5 of the exact fixed point 0.73909.
  4. The convergence factor |g'(x*)| = 0.674 is below 1, so the iteration converges linearly and each step multiplies the error by roughly that factor.

The Fixed Point Iteration Calculator lets you enter a starting value and a function written in the form x = g(x), then runs the iteration x(n+1) = g(x(n)) and reports each step until the values settle. It shows you the fixed point the sequence approaches and the error at each pass, so you can see convergence happening rather than just take a final number on faith. For example, iterating x = cos(x) from 1 reaches 0.73907 in 25 steps, within 1.38 x 10^-5 of the Dottie number 0.73909. Iterating x = e^(-x) from 0.5 reaches the omega constant 0.56714 with an error of only 4.77 x 10^-8 after 25 steps, and iterating x = 1 + 1/x from 1 reaches the golden ratio 1.61803 with an error of 8.02 x 10^-11.

Fixed point iteration is the accepted standard for this kind of calculation because its behavior is predictable and easy to check. Each iteration multiplies the error by roughly the convergence factor |g'(x*)|, which must be below 1 for convergence. The measured factors here are 0.674 for cos(x), 0.567 for e^(-x) and 0.382 for 1 + 1/x, and the smaller the factor, the faster the error shrinks. The method also explains the shape of the results: a negative derivative at the fixed point, as with cos(x), makes the iterates alternate around the limit. This page shows the formula, step-by-step workings, worked examples and sources so you can follow every stage of the calculation yourself.

Worked examples

Dottie number from cos(x), x0 = 1

(cos(x) · 1 · 25)

x after 25 iterations0.73907
Exact fixed point0.73909
Absolute error1.38 x 10^-5
Convergence factor |g'(x*)|0.674

Omega constant from e^(-x), x0 = 0.5

(e^(-x) · 0.5 · 25)

x after 25 iterations0.56714
Exact fixed point0.56714
Absolute error4.77 x 10^-8
Convergence factor |g'(x*)|0.567

Golden ratio from 1 + 1/x, x0 = 1

(1 + 1/x · 1 · 25)

x after 25 iterations1.61803
Exact fixed point1.61803
Absolute error8.02 x 10^-11
Convergence factor |g'(x*)|0.382

How fixed-point iteration works

Fixed-point iteration turns an equation into a repeated substitution. If you can rewrite your problem as x = g(x), then any value x* that satisfies this equation is called a fixed point of g. The method starts from a guess x_0 and applies the rule x_(n+1) = g(x_n) over and over. Each result becomes the input for the next step. A fixed point iteration calculator simply automates this loop, so you can watch the sequence of values and see whether they settle toward a limit.

A concrete example makes the process clear. The equation x = cos(x) has a unique solution, the Dottie number, which is 0.73909 to five decimal places. Start the iteration at x_0 = 1. The next value is cos(1), then cos of that result, and so on. After 25 steps the sequence reaches 0.73907, which is within 1.38 x 10^-5 of the Dottie number. The iterates do not creep up to the limit from one side: because the derivative of cos(x) at the fixed point is negative, they alternate around it, overshooting first on one side and then on the other while the swings shrink.

Whether the sequence converges at all depends on the slope of g near the fixed point. Each iteration multiplies the error by roughly the convergence factor |g'(x*)|, and that factor must be below 1 for convergence. For cos(x) the factor is 0.674, so the error shrinks by about a third each step. Two other classic cases behave the same way. Iterating x = e^(-x) from 0.5 reaches the omega constant 0.56714 with an error of only 4.77 x 10^-8 after 25 steps, using a convergence factor of 0.567. Iterating x = 1 + 1/x from 1 reaches the golden ratio 1.61803 with an error of 8.02 x 10^-11, using a factor of 0.382. The smaller the factor, the faster the error falls away.

In practice, the size of |g'(x*)| tells you what to expect before you run a single step. A factor close to 1 means slow, creeping convergence; a factor near 0 means the iterates lock on quickly. A factor of 1 or more means the error does not shrink, and the method fails to converge from nearby starting points. This is why the same fixed-point iteration calculator can look brilliant on one function and useless on another: the rule x_(n+1) = g(x_n) is identical, but the derivative at the fixed point decides the outcome.

Rule of thumb: each step multiplies the error by about |g'(x*)|. Below 1 the error shrinks; at or above 1 it does not.

Worked examples: three famous constants

A fixed point iteration calculator is easiest to trust when you can check its output against values you already know. Three famous constants make good test cases because each is the fixed point of a simple function, and each converges at a different speed. In all three examples below, the iteration runs for 25 steps.

Start with the Dottie number, 0.73909. It is defined as the solution of x = cos(x). Iterating from a starting value of 1 reaches 0.73907 in 25 steps, which is within 1.38 x 10^-5 of the true value. The convergence factor here is 0.674. Because the derivative of cos(x) at the fixed point is negative, the iterates alternate around the limit, landing slightly above and then slightly below 0.73909 as they close in. That oscillation is expected behavior, not a sign that something has gone wrong.

Next is the omega constant, 0.56714, the fixed point of x = e^(-x). Starting from 0.5, the iteration reaches the omega constant with an error of only 4.77 x 10^-8 after 25 steps. Its convergence factor is 0.567, noticeably smaller than the cosine case, which is why the same 25 steps buy far more accuracy. Each iteration multiplies the error by roughly the convergence factor |g'(x*)|, and that factor must stay below 1 for the iteration to converge at all.

Finally, the golden ratio, 1.61803, is the fixed point of x = 1 + 1/x. Iterating from 1 reaches the golden ratio with an error of 8.02 x 10^-11, the smallest error of the three examples. The convergence factor is 0.382, the smallest of the three as well, so the error shrinks fastest here. Reading the three cases side by side shows the pattern clearly: the smaller the convergence factor, the fewer steps you need for a given level of accuracy.

These examples also show why a fixed point iteration calculator should report the error at each step rather than only the final value. A run that looks stalled may simply be oscillating around the limit, as with cos(x), while a run that looks fast is usually one with a small convergence factor, as with 1 + 1/x. Comparing your own results against 0.73909, 0.56714 and 1.61803 is a quick way to confirm the tool is behaving as expected.

  • Dottie number, x = cos(x) from 1: reaches 0.73907 in 25 steps, within 1.38 x 10^-5 of 0.73909; convergence factor 0.674; iterates alternate around the limit.
  • Omega constant, x = e^(-x) from 0.5: reaches 0.56714 with an error of 4.77 x 10^-8 after 25 steps; convergence factor 0.567.
  • Golden ratio, x = 1 + 1/x from 1: reaches 1.61803 with an error of 8.02 x 10^-11; convergence factor 0.382.
Each iteration multiplies the error by roughly the convergence factor |g'(x*)|, which must be below 1 for convergence. The three factors here are 0.674, 0.567 and 0.382 — smaller means faster.

The convergence factor

The convergence factor is the number that tells you how fast a fixed point iteration closes in on its answer. When you iterate x = g(x), each step multiplies the current error by roughly |g'(x*)|, the absolute value of the derivative of g at the fixed point x*. For the iteration to converge at all, that factor must be below 1. The closer it is to 0, the faster the error shrinks, and a fixed point iteration calculator can use this factor to predict how many steps you will need before the answer is accurate enough.

The three classic examples make the difference easy to see. For x = cos(x), the convergence factor is 0.674. For x = e^(-x), it is 0.567. For x = 1 + 1/x, it is 0.382. All three are below 1, so all three converge, but they do not converge at the same speed. After 25 steps, iterating x = cos(x) from 1 reaches 0.73907, which is within 1.38 x 10^-5 of the Dottie number 0.73909. Iterating x = e^(-x) from 0.5 reaches the omega constant 0.56714 with an error of only 4.77 x 10^-8 after the same 25 steps. The golden-ratio iteration, x = 1 + 1/x, started from 1, reaches 1.61803 with an error of just 8.02 x 10^-11.

The smallest factor belongs to the fastest iteration. With a factor of 0.382, the error in the golden-ratio iteration is cut to a bit more than a third of its previous size at every step, so repeated multiplication drives it down very quickly. That is why it is already exact to 8.02 x 10^-11 after 25 steps, while the cosine iteration, with its larger factor of 0.674, is still only within 1.38 x 10^-5. The omega constant's iteration sits in between, with a factor of 0.567 and an error of 4.77 x 10^-8. Same number of steps, very different accuracy, and the convergence factor explains the gap.

One more detail matters for how the numbers behave along the way. A negative derivative at the fixed point, as with cos(x), makes the iterates alternate around the limit, hopping from one side to the other instead of approaching from a single direction. The size of the error still shrinks by about the convergence factor each time, but the sign flips. When you use a fixed point iteration calculator, watch both the size of the factor and its sign: the size sets the speed, and the sign tells you whether the sequence will settle smoothly or oscillate as it closes in.

Rule of thumb: each iteration multiplies the error by roughly |g'(x*)|. A factor of 0.382 shrinks error faster than 0.567, which in turn beats 0.674 — and any factor of 1 or more means no convergence at all.

When iteration fails

Fixed point iteration only converges when the iteration function is contractive near the solution. Each iteration multiplies the error by roughly the convergence factor |g'(x*)|, which must be below 1 for convergence. When |g'| exceeds 1 at the fixed point, the error grows instead of shrinking, and the sequence diverges — often running off toward infinity or settling into a cycle rather than a limit. A fixed point iteration calculator makes this easy to see: run a few steps and watch whether successive values close in or spread apart. If the gaps widen, no amount of extra iterations will rescue the run.

The sign of the derivative also shapes the path. A negative derivative at the fixed point, as with cos(x), makes the iterates alternate around the limit — jumping from one side to the other while still closing in. The size of the factor sets the pace. The convergence factors are 0.674 for cos(x), 0.567 for e^(-x) and 0.382 for 1 + 1/x, so the last of these closes in fastest. The contrast shows in the results: iterating x = cos(x) from 1 reaches 0.73907 in 25 steps, within 1.38 x 10^-5 of the Dottie number 0.73909. Iterating x = e^(-x) from 0.5 reaches the omega constant 0.56714 with an error of only 4.77 x 10^-8 after 25 steps. Iterating x = 1 + 1/x from 1 reaches the golden ratio 1.61803 with an error of 8.02 x 10^-11. Same number of steps, wildly different accuracy — all because of the size of |g'|.

When a rearrangement converges too slowly, or not at all, the standard trick is to rewrite the equation x = g(x) into an equivalent form with a smaller derivative at the fixed point. Algebraic rearrangement — adding and subtracting terms, or solving for x in a different way — can turn a factor above 1 into one below it. The fixed point itself does not move; only the speed and stability of the approach change. This is why the same root can be stubborn under one arrangement and easy under another, and why trying a second rearrangement is often the quickest fix.

Newton's method is the special case engineered to make the factor zero. It is built so that the derivative of its iteration function vanishes at the solution, which is what produces its characteristic rapid final approach. Ordinary fixed point iteration merely asks for a factor below 1; Newton's method drives that factor to zero at the root. In practice, that means a plain iteration may need many steps to gain a few digits, while a well-built method can gain them much faster once it is close. A fixed point iteration calculator is most useful when it shows both the iterates and the factor, so you can tell whether the method is converging, crawling, or failing outright.

Practical signs that iteration is failing: the values grow without bound, they oscillate with growing amplitude, or they repeat in a cycle. Any of these points to |g'| at or above 1 near the fixed point. Before adding iterations, check the derivative and consider a different rearrangement.

Rule of thumb: convergence needs |g'(x*)| below 1. The closer the factor is to 1, the slower the crawl; above 1, the iteration diverges.

FAQs

What is the Dottie number?

The Dottie number is the unique fixed point of cos(x). If you iterate the cosine function starting from 1, you reach 0.73907 after 25 steps, compared with the exact value of 0.73909. So repeatedly pressing cosine on a calculator set to radians drives the result toward this constant, 0.73907 at the 25-step mark.

How does fixed-point iteration work?

You rewrite the equation as x = g(x), then feed an initial guess into g and feed each result back in. For the equation involving e^(-x), starting from 0.5, 25 steps land on 0.56714. Each pass applies the same function to the previous value, so the sequence of numbers either settles toward the fixed point or drifts away.

When does fixed-point iteration converge?

It converges when the absolute value of g'(x*) is less than 1 near the fixed point. The examples on this page have factors of 0.674, 0.567 and 0.382. All three are below 1, so each iteration pulls the estimate closer to the fixed point. A factor above 1 would push the iterates away instead.

How fast is the convergence?

The convergence is linear: the error shrinks by the factor each step. That is why the 0.382 case reaches an error of 8.02 x 10^-11. Because the error is multiplied by the same factor on every pass, a smaller factor means faster progress, and a factor close to 1 means slow, creeping convergence.

Why do the cos(x) iterates alternate?

Because g'(x*) is negative for cos: the factor is -0.674 in sign, so each step overshoots to the other side. A negative factor flips the sign of the error on every pass, so the iterates bounce above and below the fixed point rather than approaching it from one direction. The magnitude still shrinks each time.

Can fixed-point iteration find the golden ratio?

Yes. Using x = 1 + 1/x starting from 1 gives 1.61803 in 25 steps, which is the golden ratio to five decimals. The iteration applies the same rule to each result, and the sequence settles on the fixed point of that equation, matching the golden ratio value to the precision shown.

Sources

Related calculators

Newton's Method Calculator
One step of Newton's method on f(x) = x squared minus 2, with the value at the new guess and how many steps it takes to reach the square root of 2.
Bisection Method Calculator
Bisection method root finding for a cubic over a bracket, with the guaranteed error bound, final bracket and f(root) after a fixed number of iterations.
Secant Method Calculator
Root of a cubic polynomial by the secant method from two starting guesses, with the root estimate, residual f(root), last step size and iteration count.