Trapezoidal Data Integration Calculator
Approximate an integral from ordered x-and-y observations, including unequal spacing.
Your result
MATHExample values are prefilled. Results update automatically when JavaScript is available.
What this tool calculates
Approximate an integral from ordered x-and-y observations, including unequal spacing.
Inputs used: Increasing x | y samples.
On this page How it works & practical examples
How to use the Trapezoidal Data Integration Calculator
Enter x in strictly increasing order and retain the associated y values. The method treats each adjacent segment as a straight line and preserves signed areas.
The calculation
Integral ≈ Σ[(xi+1−xi)(yi+yi+1)/2]
Worked example
Samples (0,0),(1,1),(2,4) give trapezoidal integral 3 over x=0 to x=2.
Assumptions and limits
At least two samples are needed. No interpolation beyond endpoints or error bound is supplied; curved functions can differ from their piecewise-linear approximation.