Source: https://goodhandover.co.uk/tools/newton-raphson-calculator/

[Computer science maths](https://goodhandover.co.uk/tools/computer-science-maths/#year-3) / Year 3

🔒 Files never leave your device

# Newton–Raphson calculator

Approximate a polynomial root and inspect each Newton update and residual. Your inputs stay on your device.

## Set up your task

Ready. Processing stays in this browser.

Files and text stay on your device. [Privacy details](https://goodhandover.co.uk/privacy/).

 

## How to use Newton–Raphson calculator

Approximate a polynomial root and inspect each Newton update and residual. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.

 

- Check the example inputs: Coefficients (constant first), Starting point, Maximum iterations.

- Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.

- Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.

 

## Supported inputs and limits

Use up to 13 coefficients in ascending order. Give a real starting point from −1,000 to 1,000 and an iteration cap from 1 to 40.

 

## How it works

Newton’s method estimates a real root of a differentiable function. At the current point, use the tangent line to approximate the function. Its intersection with the horizontal axis supplies the next estimate. This produces the update x minus the function value divided by its derivative.

The convergence trace can reveal an unsuitable starting point. A zero slope prevents a nonzero residual from producing a Newton step. A small residual is evidence that the function is near zero, but its relationship to error in x depends on the shape and scale of the polynomial.

 

## Example

Run the pre-filled example. Its first result is “Root estimate: 1.41421356”.

Coefficients (constant first)

-2 0 1

Starting point

1

Maximum iterations

10

Root estimate: 1.41421356
Residual f(x): 4.5106141e-12 · Residual tolerance reached
1. x = 1.5 · f(x) = 0.25
2. x = 1.41666667 · f(x) = 0.00694444444
3. x = 1.41421569 · f(x) = 0.00000600730488
4. x = 1.41421356 · f(x) = 4.5106141e-12

 

## Questions about Newton–Raphson calculator

### Which tolerance ends the iteration early?

The method stops early when the magnitude of the polynomial value is at most 0.000000001. This criterion measures residual, and the trace shows each estimate.

### Does Newton’s method always find every root?

It follows one sequence from one starting point. The sequence can converge to one root, stall, cycle or leave the supported range.

### Change the starting value of the example to −1.

The iteration approaches the negative square root of two. The polynomial has two real roots, and the starting point changes which one is found here.

 
 

## Related tools

[Year 3: Advanced and applied maths](https://goodhandover.co.uk/tools/computer-science-maths/#year-3)

- [2 × 2 eigenvalue calculator](https://goodhandover.co.uk/tools/eigenvalue-calculator/)

- [Discrete Fourier transform calculator](https://goodhandover.co.uk/tools/dft-calculator/)

- [Gradient descent calculator](https://goodhandover.co.uk/tools/gradient-descent-calculator/)

- [Discrete convolution calculator](https://goodhandover.co.uk/tools/convolution-calculator/)

 

Last updated 24 November 2026
