Bisection and Secant Root Finder

Find a root between two points with bisection and the secant method and compare how many steps each needs.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Bisection and Secant Root Finder and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Bisection and Secant Root Finder does

    Find a root between two points with bisection and the secant method and compare how many steps each needs.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter f(x) and an interval [a, b] where f changes sign. The calculator finds the root with the bisection method and with the secant method, and shows the iteration counts and residuals side by side.

Bisection

Bisection halves the interval that brackets a sign change, so it always converges but gains only one bit of accuracy per step. 30 steps give about 9 digits on an interval of length 1.

Secant

The secant method draws a line through the last two points. It converges much faster (order about 1.6) but is not guaranteed to converge. Write the function with x, + − * / ^, parentheses, and sin, cos, tan, asin, acos, atan, exp, ln, log (base 10), sqrt, abs, sinh, cosh, tanh, pi and e. Implicit multiplication such as 2x or 3(x+1) works.

Worked example

For cos x − x on [0, 1] both methods find 0.739085133; bisection needs 30 steps and the secant method 6.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What if f(a) and f(b) have the same sign?

The tool asks you to choose an interval with a sign change.

Which is more reliable?

Bisection, because it never leaves the interval.

Which is faster?

The secant method usually.

What tolerance is used?

The interval width (bisection) or step size (secant) below your tolerance.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages