Trapezoidal data integration

Integrate sampled data with per-interval trapezoid areas and a cumulative total.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Iᵢ=(xᵢ₊₁−xᵢ)(yᵢ+yᵢ₊₁)/2

Default interval areas 0.5, 2.5 and 6.5 sum to 9.5.

Use 2–50 points with strictly increasing horizontal coordinates; not an exact curve integral.

Frequently asked questions

How does trapezoidal integration treat negative y?

Signs are preserved, so area below the axis subtracts from the total. This is not absolute area.

Must integration sample spacing be uniform?

No. Strictly increasing x values are sufficient; each interval uses its actual width.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors