Skip to content
Calculator Tools
Calculus Calculators

Riemann Sum Calculator

Approximate the area under a curve with left, right, midpoint or trapezoidal Riemann sums, with a table of subintervals.

Enter values

Results update as you type.

Result

Riemann sum

2.65625

Exact integral
2.6666666667
Error
-0.010417
Δx
0.25

Subintervals

iIntervalHeightArea
1[0, 0.25]0.0156250.00390625
2[0.25, 0.5]0.1406250.035156
3[0.5, 0.75]0.3906250.097656
4[0.75, 1]0.7656250.191406
5[1, 1.25]1.26560.316406
6[1.25, 1.5]1.89060.472656
7[1.5, 1.75]2.64060.660156
8[1.75, 2]3.51560.878906

About the Riemann Sum Calculator

Approximate the area under a curve with left, right, midpoint or trapezoidal Riemann sums, with a table of subintervals.

Also known as: left riemann sum, right riemann sum, midpoint rule, trapezoidal rule, riemann sums.

How to use this calculator

  1. Enter f(x), a, b, subintervals n and the other fields.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

Σ f(xᵢ*)·Δx, Δx = (b − a)/n

Worked example

Using the values pre-filled in the calculator above:

  • f(x): x^2
  • a = 0
  • b = 2
  • Subintervals n = 8
  • Method: Midpoints

the calculator returns:

  • Riemann sum: 2.65625
  • Exact integral: 2.6666666667
  • Error: -0.010417
  • Δx: 0.25