Limit Sum Calculator

Limit of a Riemann sum as n → ∞: turn a sum into an integral or an integral into a sum.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter an integral or the term of a sum

Enter your values below to get started.

Examples:
Direction
f(x) =
Use x as the variable: x^2, sin(x), e^x, sqrt(x), 1/x.
Sample point
Σ
Use i for the index and n for the number of terms, for example i^2/n^3 or 1/(n+i).
Index range
Reset restores the default values.

Tips for this calculator

Switch the direction at the top: the calculator shows only the fields that the chosen direction needs.

Write products with * or by juxtaposition: 2i/n means 2·i/n.

Limits a and b accept pi, e and fractions like 1/2.

If the partial sums grow about 10× per row, the term is missing a 1/n factor and the limit is ∞.

A limit sum calculator evaluates the limit of a Riemann sum as the number of rectangles n goes to infinity. Enter a definite integral to see it written as lim Σ f(xi)Δx, or enter a sum term T(i, n) such as (2/n)(1 + 2i/n)² to get its limit as a definite integral, with partial sums at n = 10, 100, 1,000, 10,000 and 100,000, a convergence chart and every step.

What is a Limit Sum?

A limit sum is the value that a Riemann sum approaches as the number of rectangles n grows without bound, and for an integrable function that value is the definite integral. Bernhard Riemann used this limit to define the integral in 1854.

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi) Δx,Δx=b−an\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(x_i)\,\Delta x, \qquad \Delta x = \frac{b-a}{n}

For f(x) = x² on [1, 3] with right endpoints, the sums are 10.75 at n = 4, 9.48 at n = 10, 8.7468 at n = 100 and 8.674668 at n = 1,000. They close in on the limit 26/3 ≈ 8.6667.

InteractiveRight-endpoint rectangles closing in on the area

How Does the Limit Sum Calculator Work?

The limit sum calculator matches the sum to the pattern Σ f(a + iΔx)Δx, computes the matching definite integral, and confirms the value with partial sums from n = 10 to n = 100,000. The 2 directions work as follows.

  • Integral → limit: from f, a and b, the calculator writes Δx = (b − a)/n and xi for the chosen sample point, then evaluates the integral with Simpson's rule (or tanh-sinh quadrature when f is undefined at an endpoint).
  • Limit of a sum → value: with t = i/n, the term T(i, n) behaves like h(t)·(1/n), so the limit equals ∫₀¹ h(t) dt. The calculator evaluates that integral and checks it against the Richardson estimate 2S20,000 − S10,000.
  • Divergence check: if the partial sums grow about 10× per row (for example Σ i/n), the result is ∞.
InteractiveRead Δx, a, b and f from a limit of a sum

Limit of a Riemann Sum Formula

The limit of a right Riemann sum is limn→∞ Σi=1n f(a + i(b − a)/n) · (b − a)/n, and it equals ∫ab f(x) dx. Each piece of the sum names one piece of the integral.

lim⁡n→∞∑i=1nf ⁣(a+(b−a) in)⏟f(xi)b−an⏟Δx=∫abf(x) dx\lim_{n\to\infty}\sum_{i=1}^{n} \underbrace{f\!\left(a + \frac{(b-a)\,i}{n}\right)}_{f(x_i)}\underbrace{\frac{b-a}{n}}_{\Delta x} = \int_a^b f(x)\,dx
  • Δx = (b − a)/n: the factor c/n outside f gives the width b − a = c.
  • xi = a + iΔx: the constant added to iΔx inside f gives a.
  • Left endpoints: replace i with i − 1 (or run i from 0 to n − 1).
  • Midpoints: replace i with i − ½.
InteractivePartial sums Sₙ for n = 1 to 256

Does the Sample Point Change the Limit?

No, for a continuous function every choice of sample point gives the same limit; only the speed of convergence changes. Left, right, midpoint and random points all squeeze to ∫ab f(x) dx.

InteractiveLeft, right, midpoint and random sample points

How to Evaluate a Limit Sum by Hand

To evaluate a limit sum by hand, expand the term, apply the closed forms for Σ1, Σi and Σi², simplify to a fraction in n, and let n → ∞. Here is lim Σ (2/n)(1 + 2i/n)², the right sum of x² on [1, 3].

  1. Expand: (2/n)(1 + 4i/n + 4i²/n²).
  2. Sum each part: (2/n)[n + (4/n)·n(n + 1)/2 + (4/n²)·n(n + 1)(2n + 1)/6].
  3. Simplify: 2 + 4(n + 1)/n + 4(n + 1)(2n + 1)/(3n²).
  4. Let n → ∞: 2 + 4 + 8/3 = 26/3 ≈ 8.6667.
InteractiveStep through a limit sum by hand

    Summation Formulas for Limit Sums

    3 closed forms solve most polynomial limit sums: Σi = n(n + 1)/2, Σi² = n(n + 1)(2n + 1)/6 and Σi³ = [n(n + 1)/2]². After the substitution, only the highest powers of n survive the limit.

    lim⁡n→∞∑i=1ni2n3=lim⁡n→∞(n+1)(2n+1)6n2=26=13=∫01x2 dx\lim_{n\to\infty}\sum_{i=1}^{n}\frac{i^2}{n^3} = \lim_{n\to\infty}\frac{(n+1)(2n+1)}{6n^2} = \frac{2}{6} = \frac{1}{3} = \int_0^1 x^2\,dx

    The fraction is 0.46875 at n = 4, 0.385 at n = 10 and 0.33835 at n = 100. In general, lim Σ ik/nk+1 = 1/(k + 1), the integral of xk on [0, 1].

    Interactive(n + 1)(2n + 1) / 6n² approaching 1/3

    How Fast Does a Riemann Sum Converge?

    Left and right sums of a smooth function converge like 1/n, and midpoint sums converge like 1/n², so 10× more terms gives 1 more correct digit with endpoints and 2 more with midpoints. The calculator's table shows the gap at each n.

    • Right sums of x² on [1, 3]: error 0.8133 at n = 10 and 0.0801 at n = 100.
    • Midpoint sums of x² on [1, 3]: error −0.00667 at n = 10 and −0.0000667 at n = 100.
    • Endpoint singularities: for ∫₀¹ 1/√x dx the right sums converge only like 1/√n, still to 2.
    Interactivelog₁₀ error vs. n for right and midpoint sums

    Common Mistakes with Limit Sums

    • Wrong interval: in Σ (2/n)(1 + 2i/n)², the interval is [1, 3], not [0, 2]; a = 1 is the constant inside f.
    • Dropping Δx: Σ (1 + 2i/n)² without 2/n grows like n and has no finite limit.
    • Double-counting the width: f gets xi, not iΔx alone, unless a = 0.
    • Stopping at a fixed n: S100 = 8.7468 is an estimate; the limit is the exact 26/3.
    • Unbounded f: Σ (1/n)(n/i) = Σ 1/i diverges; ∫₀¹ 1/x dx has no finite value.
    InteractiveTrue or false: limit sums
    1. lim Σ (3/n)e^(3i/n) equals ∫₀³ eˣ dx.

    2. Left and right sums of a continuous function can have different limits.

    3. lim Σ i/n has a finite value.

    4. lim Σ 1/(n + i) equals ln 2.

    5. Midpoint sums converge faster than right sums for smooth functions.

    Score: 0 / 5

    How to Use the Limit Sum Calculator

    Pick a direction, enter either f(x) with a and b or the term T(i, n), and press Calculate. The result card shows the limit; the tabs show the steps, a table of partial sums and a convergence chart.

    InteractiveLoad a ready-made limit sum

    Each button fills the calculator and runs it.

    1. Choose a direction

      Integral → limit of a sum, or limit of a sum → value.

    2. Enter the input

      f(x), a, b and a sample point, or a term such as (3/n)*e^(3i/n).

    3. Set the index range

      i = 1 to n for right sums, i = 0 to n − 1 for left sums.

    4. Read the table

      Sₙ at n = 10, 100, 1,000, 10,000 and 100,000 with the gap to the limit.

    Real-Life Applications of Limit Sums

    Limit sums turn many small pieces into one exact total, the idea behind every formula for area, volume, work and probability. 4 common uses:

    • Computing π: 4 × lim Σ √(1 − xi²)Δx = π, the area of a unit circle.
    • Physics: distance is the limit of Σ v(ti)Δt, and work is the limit of Σ F(xi)Δx.
    • Probability: a continuous probability is the limit of Σ p(xi)Δx over a range.
    • Numerical software: finite sums with large n approximate integrals that have no closed form, such as ∫ e−x² dx.
    InteractiveEstimate π with midpoint strips under a quarter circle

    Limit Sum Examples

    Common limits of Riemann sums with the matching integral and value.

    Limit Sum Examples
    Limit of the sumIntegralValueS₁₀₀Calculator
    lim⁡∑2n(1+2in)2\lim\sum \tfrac{2}{n}\left(1+\tfrac{2i}{n}\right)^2∫13x2 dx\int_1^3 x^2\,dx26/3 ≈ 8.66678.7468
    lim⁡∑πnsin⁡πin\lim\sum \tfrac{\pi}{n}\sin\tfrac{\pi i}{n}∫0πsin⁡x dx\int_0^\pi \sin x\,dx21.99984
    lim⁡∑3ne3i/n\lim\sum \tfrac{3}{n}e^{3i/n}∫03ex dx\int_0^3 e^x\,dxe³ − 1 ≈ 19.085519.3733
    lim⁡∑1nin\lim\sum \tfrac{1}{n}\sqrt{\tfrac{i}{n}}∫01x dx\int_0^1 \sqrt{x}\,dx2/3 ≈ 0.66670.67146
    lim⁡∑i2n3\lim\sum \tfrac{i^2}{n^3}∫01x2 dx\int_0^1 x^2\,dx1/3 ≈ 0.33330.33835
    lim⁡∑in2\lim\sum \tfrac{i}{n^2}∫01x dx\int_0^1 x\,dx1/20.505
    lim⁡∑i3n4\lim\sum \tfrac{i^3}{n^4}∫01x3 dx\int_0^1 x^3\,dx1/40.255025

    Popular Limit Sum Problems

    Work each one by hand, then reveal the answer or solve it in the calculator.

    1. Evaluate lim Σ (2/n)(2i/n)³ for i = 1 to n.

      \lim_{n\to\infty}\sum_{i=1}^{n}\frac{2}{n}\left(\frac{2i}{n}\right)^3
      Show answer\int_0^2 x^3\,dx = 4
    2. Evaluate lim Σ e^(i/n)/n for i = 1 to n.

      \lim_{n\to\infty}\sum_{i=1}^{n}\frac{e^{i/n}}{n}
      Show answere - 1 \approx 1.7183
    3. Evaluate lim Σ 1/(n + i) for i = 1 to n.

      \lim_{n\to\infty}\sum_{i=1}^{n}\frac{1}{n+i}
      Show answer\ln 2 \approx 0.6931
    4. Write ∫₀² (x² + 1) dx as a limit of right Riemann sums and evaluate it.

      \int_0^2 (x^2+1)\,dx
      Show answer\lim\sum\left[\left(\tfrac{2i}{n}\right)^2+1\right]\tfrac{2}{n} = \tfrac{14}{3}
    5. Evaluate lim Σ (π/2n)cos(πi/2n) for i = 1 to n.

      \lim_{n\to\infty}\sum_{i=1}^{n}\frac{\pi}{2n}\cos\frac{\pi i}{2n}
      Show answer\int_0^{\pi/2}\cos x\,dx = 1
    6. Evaluate lim Σ (1/n)√(1 − (i/n)²) for i = 1 to n.

      \lim_{n\to\infty}\sum_{i=1}^{n}\frac{1}{n}\sqrt{1-\left(\frac{i}{n}\right)^2}
      Show answer\frac{\pi}{4} \approx 0.7854

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a limit sum calculator?

    A limit sum calculator is an online tool that finds the limit of a Riemann sum as n → ∞. It converts a sum into a definite integral or an integral into a limit of sums, and shows the partial sums converging.

    How do you find the limit of a Riemann sum?

    Match the sum to Σ f(a + iΔx)Δx: the factor c/n is Δx, so b − a = c, and the constant inside f is a. Then evaluate ∫ₐᵇ f(x) dx, or expand the sum with closed forms for Σi and Σi² and let n → ∞.

    How do you convert a limit of a sum to an integral?

    Set Δx = (b − a)/n and xᵢ = a + iΔx. For lim Σ (2/n)(1 + 2i/n)², Δx = 2/n and xᵢ = 1 + 2i/n, so the limit is ∫₁³ x² dx = 26/3.

    Is the limit of a Riemann sum always the definite integral?

    Yes, for any Riemann-integrable function, such as a continuous or piecewise continuous function on [a, b]. For an unbounded function such as 1/x on [0, 1], the sums have no finite limit.

    Does the limit depend on left, right or midpoint sums?

    No, for an integrable function every choice of sample point gives the same limit. Midpoint sums converge faster, with an error proportional to 1/n² instead of 1/n.

    What is the limit of Σ i²/n³?

    The limit is 1/3. The sum equals (n + 1)(2n + 1)/(6n²), which tends to 2/6 = 1/3, the value of ∫₀¹ x² dx.

    Why does a limit sum diverge?

    A sum diverges when its terms lack a 1/n width factor, as in Σ i/n = (n + 1)/2, or when f is unbounded on the interval, as in the right sums of 1/x on [0, 1].

    Can the calculator handle a sum that starts at i = 0?

    Yes, choose i = 0 to n − 1 under Index range. That range gives left Riemann sums, and the limit is the same integral.

    How accurate is the calculator's limit?

    The limit comes from Simpson's rule on the matching integral, accurate to about 10 significant digits for smooth functions, and is checked against partial sums up to n = 100,000.

    Conclusion

    A limit sum is the definite integral in disguise, and the limit sum calculator turns Σ f(xi)Δx into ∫ab f(x) dx and back, with partial sums that show the convergence. Read Δx from the c/n factor, read a from the constant inside f, and check the closed forms for Σi, Σi² and Σi³ when you work by hand.

    Not sure which method fits your limit? Answer the questions below.

    InteractiveWhich way should you evaluate this limit sum?