Calcoid

Newton's Method Calculator

Find a root of any function f(x) with Newton's method. Enter your equation and a starting guess to watch each iteration converge to the answer.

Newton’s Method Calculator

Solve f(x) = 0. Use x as the variable. Supported: + - * / ^, parentheses, pi, e, and sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, cbrt, ln, log, exp, abs.

Root estimate

1.414214

Converged after 4 iterations. The residual or step size reached your tolerance.

Residual f(root)

0

How close f is to zero at the estimate.

Iterations used

4

Tolerance 0.0000001.

Iteration steps

nxₙf(xₙ)f’(xₙ)xₙ₊₁
01-121.5
11.50.2531.416667
21.4166670.0069442.8333331.414216
31.4142160.0000062.8284311.414214

Each row applies xₙ₊₁ = xₙ − f(xₙ) / f’(xₙ). The slope f’(x) is estimated numerically with a central difference.

Frequently Asked Questions about the Newton's Method Calculator

What is Newton's method?
Newton's method (also called Newton-Raphson) is an iterative way to find a root of an equation f(x) = 0. Starting from a guess x_n, it follows the tangent line down to the x-axis and uses that crossing as the next guess: x_{n+1} = x_n - f(x_n) / f'(x_n). Each step usually lands much closer to the root, and the calculator repeats it until f(x) is within your tolerance.
How do I use this calculator?
Enter your function in terms of x, such as x^2 - 2 or cos(x) - x, then give a starting guess and a tolerance. Click an example to load a known problem. The calculator runs the iteration and shows a table with x_n, f(x_n), the slope f'(x_n), and the next estimate for every step, plus the final root and its residual.
Do I need to enter the derivative?
No. You only enter f(x). The calculator estimates the slope f'(x) it needs at each step using a central difference, the symmetric quotient [f(x + h) - f(x - h)] / (2h) with a tiny h. This matches the exact derivative to several decimal places for smooth functions, so you do not have to differentiate by hand.
Why does it sometimes fail to converge?
Newton's method is fast but not foolproof. It can diverge if the starting guess is far from the root, oscillate between values, or stall when the slope f'(x) is near zero (a flat tangent points nowhere useful). The calculator reports these cases as diverged, flat slope, or max iterations reached. Try a starting guess closer to where you expect the root, or raise the iteration limit.
What do tolerance and max iterations control?
Tolerance is how close to zero f(x) must get before the result counts as converged; a smaller value like 0.0000001 gives more decimal places. The calculator also stops when the change between successive guesses falls within tolerance. Max iterations caps how many steps it runs (1 to 100) so a non-converging case still ends and shows you the trace.
How accurate is the root?
Near a simple root Newton's method converges quadratically, meaning the number of correct digits roughly doubles each step, so it typically reaches your tolerance in a handful of iterations. Values are rounded to six decimal places for display. The residual f(root) shown next to the answer tells you exactly how close the estimate sits to a true zero.

Related Calculators

More calculators in "Math"

See all 202 calculators in "Math"