Calculate Riemann Sum

Updated 6 Dec 2026 · By , HisaabHub · How we check

Quick answer: Riemann sum = Δx × (f(x1) + f(x2) + ... + f(xn)), where Δx = (b − a) ÷ n. For f(x) = x² on [0, 1] with n = 4 the right sum is 0.4688; the exact area is 0.3333.

Advertisement

How to calculate a Riemann sum

  1. Find Δx = (b − a) ÷ n.
  2. Pick sample points: left end, right end or midpoint of each strip.
  3. Evaluate f at each point.
  4. Add the values and multiply by Δx.
  5. Raise n to get closer to the true integral.

Roman Urdu: Riemann sum se curve ke neeche ka raqba patli patiyon se nikalte hain.

Calculate Riemann Sum table

Quick reference values you can check your own numbers against.

Calculate Riemann Sum table
n (rectangles)Left sumRight sumMidpoint sum
20.1250.6250.3125
40.21880.46880.3281
50.240.440.33
100.2850.3850.3325
500.32340.34340.3333
1000.32840.33840.3333

f(x) = x squared on [0, 1]. Exact integral = 1/3 = 0.3333.

Advertisement

Riemann sum, sum of digits and lump sums

A Riemann sum adds areas under a curve. Sum of digits adds the digits of a number (1,234 gives 10). A pension lump sum is a money calculation - try the compound interest calculator. More maths tools are on the calculators hub.

Official sources

Questions people ask

What is a Riemann sum?
It is the sum of rectangle areas used to estimate the area under a curve.
Is the left or right Riemann sum bigger?
For an increasing function the right sum is larger and the left sum is smaller than the true area.
Which Riemann sum is most accurate?
The midpoint sum is usually closest for the same n.
How do I calculate the sum of digits?
Add each digit. 4,075 gives 4 + 0 + 7 + 5 = 16.
What happens as n gets larger?
The Riemann sum approaches the definite integral.
Advertisement