Numerical Integration Calculator

Calculate the area below the curve and determine the centroid using this numerical integration calculator. All you have to do is to add the samples/data points i.e. x and y-values in the table below and click the Integrate button below. The calculator will use the trapezoidal and the Simpson's rule to calculate the area below the curve given by the entered samples.

Each x-value shall be unique and in a rising order i.e. the lowest first and the highest one last.

Both methods requires 2 or more points. Simpson's rule requires an even number of intervals i.e. and odd number of points. This calculator accounts for this in case of odd number of intervals by using the trapezoidal rule on the first N-2 intervals and on the last N-2 intervals where N is the number of data points.

Input samples as x and y-values

x-value y-value