This calculator finds a root of a function, a value of x where the function equals zero, using Newton's method, one of the fastest and most widely used numerical techniques in mathematics. Many equations cannot be solved with a neat formula, so we turn to iterative methods that start from a guess and improve it step by step until they home in on the answer. Newton's method, also called Newton-Raphson, is the classic example: from a starting point it follows the tangent line of the curve down to where it crosses the x-axis, uses that as the next guess, and repeats. When it works, it converges remarkably quickly, often doubling the number of correct digits with each step. It powers root-finding inside calculators, computer algebra systems, engineering software and machine learning. This tool lets you apply it to your own function. You enter the function f(x) using ordinary mathematical syntax, a starting guess, and the number of iterations, and the calculator runs Newton's method, returning the root it converges on, the value of the function there, which should be very close to zero, and the number of iterations actually used. It estimates the derivative numerically, so you do not need to provide it. The results update as you type. Use it to solve equations that have no algebraic solution, to check a root, or to learn how iterative methods work. A couple of practical notes: the method needs a reasonable starting guess and can fail or jump to a different root if the guess is poor or the derivative is near zero, so if the result looks wrong, try a different starting point. Functions can use operations like x squared, square roots and trigonometric functions.
Newton's method: next x = x - f(x)/f'(x), using a numerical derivative. Needs a good starting guess; try another if it does not converge. Use JS syntax (x*x, sqrt(x), sin(x)).
From the starting guess, Newton's method computes the function and its derivative, then steps to where the tangent line crosses the x-axis: the next x is the current x minus the function divided by its derivative. The derivative is estimated numerically. The step repeats until successive guesses barely change or the iteration limit is reached.
To solve x squared minus 2 equals zero, enter the function with a starting guess of 1. Newton's method quickly converges on about 1.41421356, the square root of 2, in only a few iterations, and the function evaluated there is essentially zero, confirming it is a root.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
© 2019 to 2026 Calculate.co.nz. All rights reserved.