✓ Effortless Math · Free Tool

Riemann Sum Calculator

Approximate a definite integral with left, right, midpoint, or trapezoidal sums — enter f(x), the interval, and n to see the value, the rectangles, and the steps.

Σ f(x_i) · Δx   with   Δx = (b − a)/n
f(x) a (start) b (end) n (rects)

Use x as the variable. n is the number of subintervals (1–100000). The interval needs a < b.

Results

Riemann sum
Method
Δx = (b − a)/n
Subintervals n
Approx. exact integral
Approximation error |sum − integral|

Graph

f(x)Rectangles / trapezoids

Step-by-step