What it is and when to use it
The Newton-Raphson method is an iterative root-finding technique: starting from a guess x₀, it repeatedly follows the tangent line of the function down to where that tangent crosses zero, using that crossing point as the next, usually better, guess. For a differentiable function this converges very fast — quadratically, meaning the number of correct digits roughly doubles each iteration — provided the starting guess is reasonably close to a root and the derivative isn't near zero there.
Use this calculator whenever you need to solve a quadratic (or approximate root of any smooth function you can linearize this way) without factoring by hand, when you want to see how sensitive convergence is to the starting guess, or when teaching or reviewing numerical methods coursework. It's especially useful for equations that don't factor into nice integers, where the quadratic formula would otherwise be the only option.
Formula and method
For a function f(x) with derivative f′(x), each iteration computes:
xn+1 = xn − f(xn) / f′(xn)
Here f(x) = ax² + bx + c is the quadratic defined by your a, b, c inputs, and f′(x) = 2ax + b is its derivative. The calculator repeats this update until either the change between successive guesses drops below your tolerance (converged) or it reaches Max Iterations without converging, at which point it also checks whether the derivative got dangerously close to zero (a "derivative stall," which happens near a turning point of the parabola where the tangent line is nearly horizontal and the next guess can shoot far away).
Worked example
With the calculator's own defaults — a=1, b=−5, c=6, initial guess x₀=3.5, tolerance 0.000001, max 20 iterations — the target function is f(x) = x² − 5x + 6 = (x−2)(x−3), which has two real roots at x=2 and x=3.
- Iteration 1: x = 3.5 − 0.75/2 = 3.125
- Iteration 2: x = 3.125 − 0.140625/1.25 = 3.0125
- Iteration 3: x = 3.0125 − 0.012656/1.025 ≈ 3.000152
- Iteration 4: x ≈ 3.0000000488
- Iteration 5: the change from the previous guess drops below the 0.000001 tolerance, so it stops
Final result: Estimated Root = 3.00000000, Iterations Used = 5, Residual |f(x)| ≈ 0.000e+0, Convergence Status = Converged — matching what the calculator returns for those exact inputs. Note it converges to x=3, not x=2, because the starting guess 3.5 sits closer to (and on the same side of the vertex as) the root at 3.
Common mistakes and how to interpret results
- Starting too close to a local extremum. If x₀ lands where f′(x) ≈ 0 (the parabola's vertex, at x = −b/2a), the tangent line is nearly flat and the next guess can jump far from any root or trigger the "derivative stall" status shown as Convergence Status.
- Assuming it always finds every root. Newton-Raphson finds one root per run, whichever one the starting guess happens to converge toward. A quadratic has up to two real roots — try a second starting guess on the opposite side of the vertex to find the other one.
- Setting tolerance too loose or too tight. A tolerance like 0.1 can report "converged" many iterations before the answer is actually precise; an extremely tight tolerance (below floating-point precision, roughly 1e-15) may never be satisfied and will run to Max Iterations instead.
- Ignoring a non-zero residual. Iterations Used stopping doesn't guarantee a near-zero Residual |f(x)| — if the method hit "Max iter / derivative stall" rather than "Converged," check the residual value directly before trusting the root.
Frequently Asked Questions
Why does Newton-Raphson converge so much faster than bisection?
What happens if I pick a starting guess exactly at the vertex of the parabola?
Can this calculator find complex roots?
How many iterations should I expect for a well-chosen starting guess?
Related calculators
- Secant Method Root Finder Calculator — a derivative-free alternative that approximates the slope from two prior guesses.
- Discriminant Calculator — check whether a quadratic has real roots before running Newton-Raphson.
- Polynomial Roots Calculator — solve quadratic and cubic equations directly without iteration.
- Newton Forward Interpolation Calculator — a related Newton-family numerical method for estimating values between data points.
Common Tip Percentages
| Service | Typical Tip Range | Notes |
|---|---|---|
| Restaurant (sit-down) | 15–20% | 20%+ for exceptional service |
| Food delivery | 10–20% | Consider extra for long distances |
| Taxi / rideshare | 10–20% | More for assistance with luggage |
| Hotel housekeeping | $2–5/night | Leave daily, not just at checkout |
| Barber / hair salon | 15–20% | On pre-discount total |
| Pizza delivery | 10–15% or $3–5 minimum | Higher in bad weather |
General Household Budget Ratios (50/30/20 Rule)
| Category | % of Net Income | Examples |
|---|---|---|
| Needs | 50% | Rent, groceries, utilities, insurance |
| Wants | 30% | Dining out, entertainment, hobbies |
| Savings / Debt | 20% | Emergency fund, retirement, extra payments |
Common Measurement Conversions for Everyday Use
| Quantity | US / Imperial | Metric Equivalent |
|---|---|---|
| 1 cup | 8 fl oz | 237 mL |
| 1 pint | 16 fl oz | 473 mL |
| 1 quart | 32 fl oz | 946 mL |
| 1 gallon | 128 fl oz | 3.785 L |
| 1 lb | 16 oz | 453.6 g |
| 1 ft | 12 in | 30.48 cm |