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
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
- Calculus Volume 1, §4.9 Newton's Method (Examples 4.46 and 4.48) — OpenStax
- NIST Digital Library of Mathematical Functions, §3.8 Nonlinear Equations (Newton's rule) — NIST
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