Skip to content
D DocNectar

Free Lagrange Error Bound Calculator

Compute the Lagrange error bound for a Taylor polynomial approximation, given the (n+1)th derivative's maximum value.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

The Lagrange error bound puts a hard, guaranteed ceiling on how far a Taylor polynomial of degree n can possibly be from the true function value at a given point — without needing to know the exact function value at all. This matters enormously in numerical computing and calculus: whenever a calculator, computer, or physics model approximates a complicated function (like sine, cosine, eˣ, or ln(x)) using a truncated polynomial for speed, the Lagrange error bound is what proves mathematically how many decimal places of accuracy that approximation can be trusted to.

How it works

Enter M (an upper bound on the absolute value of the function's (n+1)th derivative, over the entire interval between the center a and the target point x), the center of expansion a, the target point x, and the polynomial's degree n. The calculator applies the Lagrange error bound formula: |Rₙ(x)| ≤ M/(n+1)! × |x−a|ⁿ⁺¹. Intuitively, this formula comes directly out of the remainder term in Taylor's theorem — it says the "leftover" error after truncating a Taylor series at degree n behaves like the NEXT term in the series would (using the (n+1)th derivative and an (n+1)th power), just with a worst-case upper bound (M) substituted in place of the exact but generally unknown derivative value.

  1. Enter m — max value of the (n+1)th derivative on the interval.
  2. Enter center of expansion (a).
  3. Enter target point (x).
  4. Enter degree of the Taylor polynomial (n).
  5. Click Calculate to see your results.

Examples

M = 1, a = 0, x = 0.5, n = 3

Bound = 1/4! × |0.5−0|⁴ = 1/24 × 0.0625 ≈ 0.0026.

M = 2, a = 0, x = 1, n = 4

Bound = 2/5! × |1−0|⁵ = 2/120 × 1 ≈ 0.0167.

M = 0.5, a = 2, x = 2.2, n = 2

Bound = 0.5/3! × |2.2−2|³ = 0.5/6 × 0.008 ≈ 0.00067.

Who should use it

  • Determining how many Taylor series terms are needed for a target accuracy.
  • Calculus coursework on Taylor polynomials and series convergence.
  • Validating numerical approximation error in scientific computing.

Industry applications

  • Calculus education
  • Numerical analysis and scientific computing

Advantages

  • Gives a rigorous, provable worst-case guarantee rather than just an empirical estimate.
  • Directly tied to the standard Taylor remainder theorem taught in calculus courses.

Limitations

  • Requires knowing (or reasonably bounding) the (n+1)th derivative's maximum, which can be difficult for complicated functions.
  • Can be a very loose (overly pessimistic) bound if M isn't tightly estimated.

Common mistakes to avoid

  • Using n instead of n+1 in the factorial or the exponent — both must use n+1, one more than the polynomial's degree, not the degree itself.
  • Choosing an M that only bounds the derivative AT a or AT x, rather than over the ENTIRE interval between them, which can understate the true worst-case error.
  • Treating the computed bound as the exact error value rather than an upper limit that the true error might fall well short of.

Best practices

  • Always bound the (n+1)th derivative over the FULL interval between a and x, not just at the endpoints.
  • Choose the smallest valid M you can justify, since an unnecessarily large M produces an overly pessimistic (loose) error bound.
  • Remember the bound is most useful and tightest for x close to the center a — expect looser bounds and slower convergence far from the center.

Tips

  • Need the actual harmonic-series-style sum estimate instead? See the Harmonic Number Calculator.

Frequently asked questions

M is typically found by bounding the (n+1)th derivative of the function over the entire interval between a and x — often by finding that derivative's maximum absolute value there, sometimes using calculus (checking critical points) or a known property of the function (like the fact that every derivative of sine or cosine is bounded by 1).
It guarantees the TRUE error (the difference between the actual function value and the Taylor polynomial's approximation) is no larger in absolute value than the computed bound — the actual error could be smaller, but it can never exceed this ceiling.
Because |x−a| is typically less than 1 in well-behaved approximation problems, raising it to a higher power (n+1) makes it smaller, while the factorial (n+1)! in the denominator grows extremely fast — both effects combine to shrink the bound as n increases, which is exactly why adding more Taylor series terms generally improves accuracy.
The bound can actually grow as n increases in that case, since raising a number greater than 1 to a higher power makes it bigger, not smaller — Taylor polynomials are most reliable and accurate close to the center of expansion, and this is one of the mathematical reasons why.
No — it's a worst-case upper limit (an inequality, ≤), not the precise value. The true error is very often noticeably smaller than this bound, especially if M was estimated conservatively (larger than the derivative's true typical size).
If the computed Lagrange error bound approaches zero as n grows toward infinity (for a fixed x), that proves the Taylor polynomial's approximation gets arbitrarily close to the true function value, which is exactly the definition of the series converging to that function at x.

Get new calculators and guides in your inbox

No spam — just new tools like Lagrange Error Bound Calculator and practical guides.

Favorites