Newton's Method Calculator (Newton-Raphson)

Find a root of f(x) with Newton's method from a starting guess — every iteration xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ) shown until it converges.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Type expressions with x as the variable: + − * / ^, brackets, sqrt, sin, cos, tan, ln, log (base 10), exp, abs, pi, e. Implicit multiplication works (3x, 2(x + 1)). Newton's method converges very fast near a simple root but can jump away from a bad starting point or where f′(x) ≈ 0.

Example

Example: f(x) = x² − 2 from x₀ = 1 converges to 1.4142135623731 (√2) in 6 iterations.

Assumptions

f′(x) is found numerically (central difference).

Frequently Asked Questions

Why does Newton's method fail sometimes?

If the derivative is zero or the guess is far from the root, the tangent line can send the next guess far away. Try a starting value closer to the root.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile