What is the trapezoidal rule?
A numerical integration method that approximates the area under a curve with trapezoids.
Use equal-width trapezoids on [a, b] for f(x)=x², or integrate a list of y-values with spacing h.
Select f(x)=x² with a, b, n — or paste ordered y-values with step h.
How to use Trapezoidal Rule Calculator, plus the formulas and logic behind the results.
The trapezoidal rule averages left and right Riemann sums, equivalent to connecting sample points with straight segments.
T = (Δx/2) [y₀ + 2y₁ + … + 2yₙ₋₁ + yₙ]Δx = (b − a)/n (equal spacing)Trapezoid tips
Samples f at equal nodes or uses provided y-values, then applies the composite trapezoidal weights.
Requires at least two sample points. Error decreases like O(1/n²) for smooth f.
Common questions about this calculator and how to use the results.
A numerical integration method that approximates the area under a curve with trapezoids.
When you already have tabulated function values at equal spacing h.
At least two (the two endpoints of one trapezoid).
Usually yes for smooth functions, similar to averaging left and right sums.
Yes for this composite formula.
Yes.