Algebra & Calculus

Sampled Data Trapezoid & Simpson Integral Calculator

Estimate a signed integral and interval-average value from ordered coordinate/value samples.

How the calculation works

Trapezoid integral = sum [(x(i+1)−x(i)) × (y(i)+y(i+1))/2]. For equally spaced samples with an even number of intervals, Simpson 1/3 integral = h/3 × [first + last + 4×odd-index interior values + 2×even-index interior values]. Interval mean is integral divided by total X span.

Worked example

Example inputs — Strictly increasing sample X coordinates: 0 1 2; Corresponding sampled Y values: 0 1 4; Quadrature rule: trapezoid. Expected results — Estimated signed integral: 3 X×Y; Estimated interval-average Y: 1.5 Y.

Assumptions and limits

Numerical educational calculation with finite real inputs. Rounding, ill-conditioning and the stated model domain can limit accuracy; this does not manipulate arbitrary symbolic expressions. At least two and at most 10000 samples. Simpson 1/3 requires an odd number of equally spaced samples, within a relative spacing tolerance. Missing structure between samples cannot be recovered; a positive result is a signed integral, not necessarily total absolute area.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.