Newton's Method Calculator

Find a root of a polynomial with Newton's method from a starting guess: an iteration table, the root, and warnings when the method fails.

1, 0, −3, 1 means x³ − 3x + 1. Use 0 for a missing power. Up to degree 20. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.
Pick a value near the root you want; a sketch or a sign change helps.
1 to 100. Stops early once xₙ stops changing.

Results

Root found
x ≈ 1.53208888624
Root (number)
1.5321
Check: f(root)
0
Should be 0 or tiny (rounding).
Newton steps used
6
Iterations: xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ)
n | xₙ | f(xₙ) | f′(xₙ) | xₙ₊₁ 0 | 2 | 3 | 9 | 1.666666667 1 | 1.666666667 | 0.6296296296 | 5.333333333 | 1.548611111 2 | 1.548611111 | 0.06804021723 | 4.19458912 | 1.532390162 3 | 1.532390162 | 0.001218139881 | 4.044658825 | 1.532088989 4 | 1.532088989 | 4.169583673 × 10⁻⁷ | 4.041890014 | 1.532088886 5 | 1.532088886 | 4.851674618 × 10⁻¹⁴ | 4.041889066 | 1.532088886
Function and derivative
f(x) = x³ − 3x + 1 f′(x) = 3x² − 3

How it’s calculated

Newton's method finds a root of f(x) = 0 by repeatedly following the tangent line down to the x-axis. From a guess xₙ, the tangent meets the axis at

xₙ₊₁ = xₙ − f(xₙ) / f′(xₙ)

Near a simple root the number of correct digits roughly doubles every step. It can also fail: if f′(xₙ) = 0 the tangent is flat and the step is undefined; a poor starting guess can send the iterates off to infinity or into a cycle (OpenStax's example f(x) = x³ − 2x + 2 from x₀ = 0 bounces 0, 1, 0, 1, …). The calculator detects these and tells you. It stops when xₙ stops changing (to full double precision) or after the maximum number of iterations.

Example: f(x) = x³ − 3x + 1 with x₀ = 2, so f′(x) = 3x² − 3. x₁ = 2 − f(2)/f′(2) = 2 − 3/9 = 1.666666667; x₂ ≈ 1.548611111; x₃ ≈ 1.532390162; x₄ ≈ 1.532088989; x₅ ≈ 1.532088886, after which the digits stop changing: the root is x ≈ 1.532088886.

Frequently asked questions

How do I choose the starting guess?

Pick a value close to the root you want. Evaluate f at a few points and look for a sign change, or sketch the graph. Different starting guesses can lead to different roots.

Why did Newton’s method fail?

Common reasons: f′(xₙ) = 0 (horizontal tangent), a starting point that sends the iterates away from every root, a cycle, or a polynomial with no real roots at all (like x² + 1). Try another starting guess, or use the bisection method, which always works once you have a sign change.

How fast does Newton’s method converge?

Near a simple root it converges quadratically: the error is roughly squared each step. At a repeated root (such as x² at 0) it slows to halving the error each step.

Is this the same as the Newton–Raphson method?

Yes. Newton’s method and the Newton–Raphson method are two names for the same iteration.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator