Skip to content
LoveToCalc

Theorem — what does that mean?

Bisection method: number of iterations

Each step halves the interval, so the error after n steps is (b − a)/2ⁿ, and the number of steps for a tolerance follows from a logarithm.

In Swedish: Bisektionsmetoden: antal iterationer

Bisection method: number of iterations

The relation

ε=b−a2n

After n halvings of [a, b] the root is within (b − a)/2ⁿ of the midpoint; solve for n to see how many steps a tolerance needs.

Solve for
Solved for n

n=log2(b−aε)

n=10

n is approximately the logarithm of ((2 minus 1) divided by 9.766 times 10 to the power of minus 4) to base 2, is approximately the logarithm of (1 divided by 9.766 times 10 to the power of minus 4) to base 2, equals the logarithm of (1,024) to base 2, equals 10. Round up: 10 steps are needed.

Working4 steps

Practice questions

You are given

  • ε=0.125
  • b=1
  • a=0

What the theorem says

Starting from [a, b], the n-th midpoint is within ε of the root. Solving for n gives n = log2((b − a)/ε). The card does this and, beside the answer, rounds up, because a fractional step is not a step.

Worked example: x³ + 4x² − 10 on [1, 2]

How many steps give an error below 0.001? Here b − a = 1:

Check: 1/210 = 0.000 977 is below 0.001, while 1/29 = 0.001 95 is not.

A second example: six decimals

On [0, 1] with ε = 10−6: n = log2(106) = 19.93, so 20 steps. Each additional decimal digit costs about 3.3 steps, since log2(10) = 3.32.

Common mistakes

Frequently asked questions

Does the count depend on the function? No. The bound depends only on the interval and the tolerance, as long as f is continuous and changes sign. How close f(c) is to 0 can be a different matter.

Is it counted from 0 or 1? Here the first midpoint is step 1, with error at most (b − a)/2. Some books count the starting interval as step 0 and shift n by one.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
εb−a2n2−12109.766 × 10⁻⁴
ab−ε·2n2−9.766 × 10⁻⁴·2101
ba+ε·2n1+9.766 × 10⁻⁴·2102
nlog2(b−aε)log2(2−19.766 × 10⁻⁴)10

Last reviewed October 11, 2026 ·How pages are reviewed

CalculusAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.