Bisection Method Calculator

Find a root by repeatedly halving a bracket.

Math and PercentUpdated 2026-11-202 min read
Bisection Method Calculator
Root estimate
...
Residual...
Final bracket...

What it does

The bisection method is one of the simplest ways to find a root of a continuous function. It starts from two points where the function has opposite signs and repeatedly cuts the interval in half, keeping the half that still brackets a sign change.

MIT OpenCourseWare notes on numerical analysis describe the method as a direct consequence of continuity. If f(a) is positive and f(b) is negative, a root must lie between them, and discarding the half without a sign change preserves that guarantee.

University of Wisconsin lecture notes connect the same idea to Bolzano's theorem and note that bisection is a good choice when only continuity is known, even though it converges more slowly than Newton's method.

This tool offers three built in functions, a bracket and an iteration count. It reports the final bracket, the midpoint as the root estimate and the function value there.

The method cannot find even multiplicity roots where the function touches zero without changing sign.

How to use

  1. Choose one of the three built in functions.
  2. Enter endpoints where the function values have opposite signs.
  3. Enter the number of iterations, up to 200.
  4. Read the root estimate in the main result.
  5. Check the final bracket, which shrinks by half each step.
  6. Look at the residual to see how close the function value is to zero.

Formula

Given f(a) f(b) < 0, set m = (a + b)/2. Replace a with m if f(a) f(m) <= 0, otherwise replace b with m.
f
A continuous function on the chosen interval.
a, b
Endpoints with opposite function signs.
m
Midpoint tested at each iteration.
residual
Absolute value of f at the final estimate.

The engine stops early if the function value is essentially zero or the bracket is smaller than 1e-14. It rejects a bracket whose endpoints have the same sign.

Worked example

Example: the square root of two

Function f(x) = x² - 2 with bracket [1, 2] and 30 iterations.

  1. f(1) = -1 and f(2) = 2, so the signs differ and a root is bracketed.
  2. The first midpoint is 1.5, where f is 0.25, so the root lies in [1, 1.5].
  3. Each later step halves the remaining interval while keeping a sign change.
  4. After 30 steps the bracket is about [1.41421356, 1.41421356].
  5. The midpoint is 1.4142135619, close to the square root of two.
  6. The tool reports root 1.4142135619 with residual near -1.3e-9.

Reference table

First bisection steps for the worked example
StepBracketMidpointf(midpoint)
0[1, 2]1.50.25
1[1, 1.5]1.25-0.4375
2[1.25, 1.5]1.375-0.1094
3[1.375, 1.5]1.43750.0664

Limits

  • Only the three built in functions are available.
  • The initial bracket must have opposite signs.
  • Even multiplicity roots cannot be bracketed this way.
  • Results are shown to ten decimal places.

Common mistakes

  • Choosing endpoints where f has the same sign.
  • Expecting quadratic convergence, which belongs to Newton's method.
  • Using too few iterations for high precision work.
  • Assuming a sign change guarantees exactly one root in the interval.
  • Entering a noncontinuous function, which the guarantee does not cover.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the first midpoint for bracket [1,2]?

1.5, since (1+2)/2 = 1.5.

Why must f(a) and f(b) have opposite signs?

Continuity then guarantees a root between them.

How does the bracket width change each step?

It is halved.

Questions

What is the bisection method?

A root finding method that repeatedly halves an interval containing a sign change.

Is it guaranteed to converge?

Yes, if the function is continuous and the initial bracket is valid.

Why is it slow?

The error only halves each step, giving linear convergence.

Can it find any root?

Only roots where the function changes sign within the bracket.

How is it different from Newton's method?

It needs no derivative and is more reliable, but slower.

What does the residual mean?

The magnitude of f at the reported root estimate.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.