Newton's Method Calculator

One Newton step from x01.5000
f(x1) - how far from zero0.2500
Steps to converge (within one millionth)4
True root (square root of 2)1.4142
How this was calculated
  1. Newton's method finds the root of f(x) = x^2 - 2, whose root is the square root of 2: each step is x1 = x0 - f(x0) / f'(x0), and f'(x) = 2x.
  2. From 1.0000: f(1.0000) = -1.0000, f'(1.0000) = 2.0000, so x1 = 1.0000 - -1.0000 / 2.0000 = 1.5000.
  3. At the new guess f(1.5000) = 0.2500, and repeating the step from 1.0000 reaches the root to within one millionth in 4 steps - the true root is 1.4142, and the method roughly doubles the correct digits each step once it is close.

This Newton's method calculator applies the iteration x1 = x0 - f(x0) / f'(x0) to find a root of a function, and it shows each step so you can follow the arithmetic. A simple way to see how it works is the function f(x) = x^2 - 2, whose root is the square root of 2; here f'(x) = 2x. Start from 1, and one Newton step lands on 1.5000; the root, 1.4142, is reached to within one millionth in 4 steps. Start from 2, and one step also lands on 1.5000, with the root again reached in 4 steps. Start from 1.4, and one step lands on 1.4143, with the root reached in 2 steps. The starting guess cannot be zero, because the derivative 2x is zero there and the step divides by it.

Newton's method is the accepted standard for this kind of root-finding because of how quickly it converges: once it is close to the root, it roughly doubles the correct digits each step, as the examples above show. The calculator gives you the formula, the step-by-step workings, worked examples and sources, so you can check every number rather than take a final answer on trust. Whether you are studying calculus, checking a homework problem or comparing starting guesses, the page lays out the method plainly and shows how the choice of x0 affects how many steps you need.

Worked examples

Start at 1

From 1, one Newton step lands on 1.5000, and the root is reached in 4 steps. (1)

One Newton step from x01.5000
f(x1) - how far from zero0.2500
Steps to converge (within one millionth)4
True root (square root of 2)1.4142

Start at 2

From 2, one Newton step also lands on 1.5000, and the root is reached in 4 steps. (2)

One Newton step from x01.5000
f(x1) - how far from zero0.2500
Steps to converge (within one millionth)4
True root (square root of 2)1.4142

Start at 1.4

From 1.4, one Newton step lands on 1.4143, and the root is reached in 2 steps. (1.4)

One Newton step from x01.4143
f(x1) - how far from zero2.041 × 10^-4
Steps to converge (within one millionth)2
True root (square root of 2)1.4142

What Newton's method does

Newton's method is a way of finding where a function equals zero by turning a curve into a straight line, over and over. The idea is simple: stand at a guess, draw the tangent line to the curve at that point, and follow the line down to where it crosses the axis. That crossing becomes the next guess. Then draw a new tangent there and repeat. Each pass replaces the curve by its tangent line and follows the tangent to the axis, so the guess keeps moving until it stops moving — meaning it has settled on a root. This is why the newton method calculator is the workhorse root-finder of numerical analysis: it is short to state, fast in practice, and built from nothing more than the function and its derivative.

The standard example makes the mechanics concrete. To find the root of f(x) = x^2 - 2, note that this root is the square root of 2. Each step follows the rule x1 = x0 - f(x0) / f'(x0), and here f'(x) = 2x. Start from 1: one Newton step lands on 1.5000. From 2, one step also lands on 1.5000. From 1.4, one step lands on 1.4143. The true root is 1.4142, so you can watch the guesses close in on it.

The speed is the striking part. From 1, the root of x^2 - 2 is reached to within one millionth in 4 steps. From 2, the root is reached in 4 steps as well. From 1.4, it is reached in 2 steps. Once the method is close, it roughly doubles the correct digits each step. That doubling is what makes Newton's method so valuable: a handful of steps can take a rough guess to a highly accurate answer, which is why it appears throughout numerical work.

There is one rule you cannot break. The starting guess cannot be zero, because the derivative 2x is zero there and the step divides by it. The formula asks you to divide by f'(x0), so a guess where the derivative vanishes gives no valid step. In practice, a reasonable starting point and a function with a well-behaved derivative are all you need to get the iteration moving toward the root.

Working through the x^2 - 2 example by hand is the quickest way to see the pattern before trusting a tool. Pick a starting value, apply the step rule, and watch the guesses: 1.5000, then closer, then closer still, until the number stops changing. That stop is the answer.

Newton's method follows the tangent line to the axis, then repeats until the guess stops moving. For f(x) = x^2 - 2, the root is the square root of 2: from 1 or from 2, one step lands on 1.5000 and the root is reached to within one millionth in 4 steps; from 1.4, one step lands on 1.4143 and the root is reached in 2 steps. The true root is 1.4142. The starting guess cannot be zero, because f'(x) = 2x is zero there and the step divides by it.

One step, worked by hand

Newton's method is easiest to understand when you run a single step by hand. Take the function f(x) = x^2 - 2. Its root is the square root of 2, and the update rule is x1 = x0 - f(x0) / f'(x0). Since f'(x) = 2x, each step subtracts the function's value divided by twice the current guess. A newton method calculator automates this loop, but doing one pass yourself shows exactly why it converges so quickly.

Start with x0 = 1. Then f(1) = 1 - 2 = -1 and f'(1) = 2. The step is x1 = 1 - (-1)/2 = 1.5000. Starting from 2 gives the same landing point: f(2) = 2 and f'(2) = 4, so x1 = 2 - 2/4 = 1.5000. Two very different guesses, one step each, and both arrive at 1.5000. From there, the root is reached to within one millionth in 4 steps.

Now start closer, at x0 = 1.4. Here f(1.4) = 1.96 - 2 = -0.04 and f'(1.4) = 2.8, so x1 = 1.4 - (-0.04)/2.8 = 1.4143. The true root is 1.4142, so that single step already gives four correct digits. From 1.4, the root is reached in 2 steps. This is the pattern the method is known for: once the guess is close, it roughly doubles the number of correct digits each step.

The two examples also show the method's limits. The starting guess cannot be zero, because the derivative 2x is zero there and the step divides by it. A guess of 1 or 2 is safe and still gets to the root in 4 steps, but a guess of 1.4 gets there in 2. The closer you start, the less work the method does.

Working one step by hand makes the arithmetic concrete: subtract f(x0) divided by f'(x0), then repeat with the new value. The 1.5000 and 1.4143 results are the same numbers a newton method calculator produces, and checking them yourself is a good way to confirm you understand the update before trusting any tool.

  • From x0 = 1: f(1) = -1, f'(1) = 2, so x1 = 1 - (-1)/2 = 1.5000; root reached to within one millionth in 4 steps.
  • From x0 = 2: f(2) = 2, f'(2) = 4, so x1 = 2 - 2/4 = 1.5000; root reached in 4 steps.
  • From x0 = 1.4: f(1.4) = -0.04, f'(1.4) = 2.8, so x1 = 1.4 - (-0.04)/2.8 = 1.4143; root reached in 2 steps.
  • True root: 1.4142. Close to it, the method roughly doubles the correct digits each step.
Never start at x0 = 0: f'(0) = 2(0) = 0, and the step divides by that derivative.

How fast it converges

Near a root, Newton's method converges quadratically. That term does not mean the error is squared in some vague sense; it means the number of correct digits roughly doubles with each step once the guess is close. A guess with two correct digits tends to produce about four on the next step, then about eight, then about sixteen. This is why a newton method calculator can often report an accurate root after only a handful of iterations, and why the method is a standard choice when speed matters.

The example built into this page makes the doubling visible. Newton's method finds the root of f(x) = x^2 - 2, whose root is the square root of 2. Each step is x1 = x0 - f(x0) / f'(x0), and f'(x) = 2x. Start from 1, and one Newton step lands on 1.5000. From there the root is reached to within one millionth in 4 steps. Starting from 2, one Newton step also lands on 1.5000, and the root is reached in 4 steps. Starting from 1.4, one Newton step lands on 1.4143, and the root is reached in 2 steps. The true root is 1.4142, so that single step from 1.4 already carries the answer to four decimal places.

The pattern is what quadratic convergence predicts. From 1.4, the guess was already close, so one step nearly finished the job and a second step confirmed it. From 1 or 2, the first step had more ground to cover, but once the iterate was near the root the correct digits began to double, which is how 4 steps from 1 reach one millionth. The method roughly doubles the correct digits each step once it is close. This is also why the iteration count stays small even when the accuracy target is tight: each step buys substantially more precision than the one before.

Quadratic convergence is a local property, not a global promise. It describes behavior once the guess is near the root. Far away, a step can overshoot, stall, or wander, and the doubling pattern may not appear until the iterate settles close to the answer. The starting guess also cannot be zero, because the derivative 2x is zero there and the step divides by it. A newton method calculator handles the arithmetic of each step, but the speed you see depends on where you start and how quickly the iterates enter the region where the digits begin to double.

From 1.4, one step lands on 1.4143 against a true root of 1.4142 — and the root is reached in 2 steps. That is quadratic convergence at work: close in, each step roughly doubles the correct digits.

When it fails

Newton's method is powerful, but it is not guaranteed to work. The step formula is x1 = x0 - f(x0) / f'(x0), and that division by the derivative is the source of most trouble. When the derivative is zero, the step divides by zero and the method cannot continue. A newton method calculator will normally flag this case rather than return a meaningless number, but it is worth understanding why it happens before you rely on the output.

The clearest example comes from f(x) = x^2 - 2, whose root is the square root of 2. Here f'(x) = 2x, so the derivative is zero exactly at x = 0. That means the starting guess cannot be zero — the step would divide by 2x evaluated at zero, and the calculation breaks down immediately. A zero derivative elsewhere on the curve causes the same problem: the tangent line is horizontal, it never crosses the x-axis, and there is no next point to move to. A bad starting guess is a related failure. Newton's method only behaves predictably when it begins close enough to the root it is meant to find; start far away or on the wrong side of a horizontal tangent, and the steps can wander, overshoot, or cycle without settling.

Functions with no real root defeat the method for a different reason. If f(x) never equals zero for real x, there is no root to converge to, and the sequence of guesses has nothing to approach. Even when a real root exists, the method can still fail from a poor starting point — the tangent at your first guess may point toward a different root, or toward no root at all. The behavior depends on the function and the guess, not on the calculator.

When the method does work, the results are striking. From a starting guess of 1, one Newton step lands on 1.5000, and the root is reached to within one millionth in 4 steps. From 2, one step also lands on 1.5000, and the root is reached in 4 steps. From 1.4, one step lands on 1.4143, and the root is reached in 2 steps. The true root is 1.4142, and once the method is close, it roughly doubles the correct digits each step. That speed is why the failures above matter: the method rewards a good start and punishes a careless one.

Before trusting a result, check that the derivative is nonzero at your starting guess, that the function actually has a real root in the region you care about, and that the steps are converging rather than jumping around. If the calculator reports a division by zero or a sequence that will not settle, the problem is usually one of these three cases, not an error in the arithmetic.

The starting guess cannot be zero for f(x) = x^2 - 2: the derivative 2x is zero there, and the Newton step divides by it.

FAQs

What is one Newton step from 1 for x squared minus 2?

Starting at x0 = 1, the function value is 1 minus 2, which is -1, and the derivative is 2 times 1, which is 2. The step subtracts -1 divided by 2, giving x1 = 1.5000. So one Newton step from 1 lands at 1.5000, closer to the square root of 2.

How many steps does it take from 1?

Starting from 1, Newton's method takes 4 steps to reach the root to within one millionth. Each step roughly doubles the number of correct digits, so the estimate tightens quickly. After those 4 steps, the result is accurate to within one millionth of the true root of x squared minus 2.

What is the square root of 2?

The square root of 2 is 1.4142 to four decimal places. Newton's method applied to x squared minus 2 converges to this value, and starting from 1 it reaches the root to within one millionth in 4 steps. The calculator displays the converged estimate for the root you enter.

How does Newton's method work?

Each step follows the tangent line to the axis: x1 = x0 - f(x0)/f'(x0). You evaluate the function and its derivative at the current guess, divide the function value by the derivative, and subtract that from the guess. Repeating this process moves the estimate toward a root of the function.

Why can the starting guess not be zero?

Because f'(x) = 2x is zero there, and the step divides by the derivative. For x squared minus 2, the derivative at zero is zero, so the formula x1 = x0 - f(x0)/f'(x0) would divide by zero. Choose a starting guess where the derivative is not zero.

How fast does Newton's method converge?

Quadratically near the root - the correct digits roughly double each step. That is why starting from 1 for x squared minus 2 reaches the root to within one millionth in only 4 steps. This fast convergence holds near the root when the derivative is not zero and the starting guess is reasonable.

Sources

Related calculators

Quadratic Equation Calculator
Solve ax² + bx + c = 0 with the quadratic formula: both roots, the discriminant, the vertex and the axis of symmetry — with a substitution check.
Derivative Calculator (Polynomial)
Differentiate a cubic polynomial term by term with the power rule and read off the slope and function value at any point — the tangent line, quantified.
Factorial Calculator
Exact factorials up to 170! computed with arbitrary-precision integers — no scientific-notation rounding — with the digit count and trailing zeros (Legendre's formula) explained.