Skip to content

Trapezoidal Rule Calculator

Approximate a definite integral with the trapezoidal rule from sampled function values. Enter the limits, the number of subintervals, and the values f(x₀)…f(xₙ) to get the area estimate and the step size.

Inputs

Results

Enter a value to see results.

\begin{aligned} \int_a^b f(x)\,dx &\approx \frac{h}{2}\left[f(x_0) + 2f(x_1) + \cdots + 2f(x_{n-1}) + f(x_n)\right] \\ &= \frac{?}{2}\bigl[\,2\,(1, 0.94, 0.78, 0.64, 0.5)_{\text{sum}} - f(x_0) - f(x_n)\,\bigr] \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?