Rectangular
j runs over the same range for every i: n × n = n² terms.
Evaluate Σᵢ Σⱼ f(i, j) over a rectangle or triangle, with row sums and a heat map.
Enter your values below to get started.
In the triangle j ≤ i, j runs from the “j from” value up to i; the “j to” box is not used.
In the triangle j ≥ i, j runs from i up to the “j to” value.
f = 1 counts the pairs (i, j) in the region.
If f(i, j) = g(i)·h(j) on a rectangle, the answer equals (Σ g)(Σ h).
A double sum calculator evaluates a sum with 2 sigma signs, Σi Σj f(i, j), by adding f over every pair (i, j) in a region. Enter the term f(i, j), the limits of the outer index i and the inner index j, and pick a rectangle or a triangular region (j ≤ i or j ≥ i). The calculator returns the exact value, the inner sum for each row, a check with the order swapped, and a heat map of all the terms.
A double sum is a sum of the terms f(i, j) over 2 indices, written with 2 sigma signs: the outer sum over i and the inner sum over j. The double sum Σi=13 Σj=14 (i + j) adds 12 terms, one for each cell of a 3 × 4 grid, and equals 54.
Read a double sum from the inside out: for each fixed i, add f(i, j) over all j to get a row total, then add the row totals over i. A rectangle with m values of i and n values of j holds m × n terms.
The double sum calculator fixes each value of i, adds f(i, j) over the j range for that row, then adds the row totals. It repeats the sum in the other order (columns first) as a check, and adds rational terms as exact fractions.
Rectangle: j from c to d for every i. Triangle: j stops at i or starts at i.
For i = a, a + 1, …, b, add f(i, j) over j. These are the row totals.
Add the row totals to get the double sum.
Add the columns first for a check and colour every term in the heat map.
There are 3 main double sum formulas: the product rule for separable terms, the sum rule, and the count of terms in a region. The product rule turns m × n terms into 2 single sums.
Example: Σi=110 Σj=110 ij = 55 × 55 = 3,025.
For m = 3, n = 4: 3 × 4 × 9 / 2 = 54.
There are 5 common types of double sums, named by their region: rectangular, lower triangular (j ≤ i), strictly triangular (j < i), upper triangular (j ≥ i) and diagonal (j = i). The region decides the limits of the inner sum and the number of terms.
j runs over the same range for every i: n × n = n² terms.
Σj=1i: n(n + 1)/2 terms, the pairs with j ≤ i.
Σj=1i−1: n(n − 1)/2 terms, all pairs with j < i.
Σj=in: n(n + 1)/2 terms, the pairs with j ≥ i.
Only j = i: a double sum that collapses to the single sum Σ f(i, i).
To calculate a double sum by hand, evaluate the inner sum for each value of the outer index, then add those results. Here is Σi=13 Σj=14 (i + j):
To change the order of a double sum, describe the same region with j as the outer index and rewrite the inner limits; the value does not change. On a rectangle the limits stay the same. On a triangle they swap:
For finite sums the swap is always allowed, since addition is commutative. Guido Fubini proved the matching result for double integrals in 1907; infinite double series need absolute convergence for the swap. Example: Σi=15 Σj=1i j = 35, and Σj=15 j(5 − j + 1) = 5 + 8 + 9 + 8 + 5 = 35.
Type f(i, j), pick the region, enter the limits of i and j and press Calculate. The result shows the exact value and the number of terms; the tabs hold the row-by-row steps, the heat map and a table of inner sums.
Use i and j, for example i^2*j or 1/(i+j).
Rectangle, triangle j ≤ i, or triangle j ≥ i.
Whole numbers for i from/to and j from/to (one j limit is set by i in a triangle).
Each cell is a term; the right edge shows each row total.
Double sums total any table of numbers that has rows and columns. There are 5 common uses:
Common double sums and their exact values. Click a row to load it.
| Double sum | Terms | Value | Calculator |
|---|---|---|---|
| 12 | 54 | ||
| 9 | 36 | ||
| 100 | 3,025 | ||
| 10 | 10 | ||
| 10 | 20 | ||
| 6 | 6 | ||
| 9 | 149/60 | ||
| 16 | 225 |
Try each one, then reveal the answer or solve it in the calculator.
Evaluate the double sum over a 2 × 3 rectangle.
Evaluate with the product rule.
Count the terms of the triangle.
Evaluate the antisymmetric double sum.
Count the pairs with j ≥ i for n = 4.
Evaluate the triangular double sum.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
A double sum is a sum over 2 indices, Σ<sub>i</sub> Σ<sub>j</sub> f(i, j), that adds f once for every pair (i, j) in a region. Σ<sub>i=1</sub><sup>3</sup> Σ<sub>j=1</sub><sup>4</sup> (i + j) = 54.
Evaluate the inner sum over j for each fixed i, then add those row totals over i. For a separable term g(i)h(j) on a rectangle, multiply the 2 single sums instead.
Yes, a finite double sum can always be added in either order. On a triangle the limits change: Σ<sub>i=1</sub><sup>n</sup> Σ<sub>j=1</sub><sup>i</sup> becomes Σ<sub>j=1</sub><sup>n</sup> Σ<sub>i=j</sub><sup>n</sup>.
No, only when the term splits as g(i)·h(j) and the region is a rectangle. Σ Σ ij over 3 × 3 is 6 × 6 = 36, but Σ Σ (i + j) over 3 × 4 is 54, not 60.
A rectangular double sum with m values of i and n values of j has m × n terms. The triangle j ≤ i with i from 1 to n has n(n + 1)/2 terms.
A double sum has exactly 2 sigma signs. A nested sum can have 3 or more levels, such as Σ<sub>i</sub> Σ<sub>j</sub> Σ<sub>k</sub>, where each inner limit can depend on the outer indices.
The heat map draws one cell per term f(i, j), with rows for i and columns for j. Darker cells hold larger values, and the number at the end of each row is the inner sum for that i.
Yes, any whole numbers work. Σ<sub>i=−1</sub><sup>1</sup> Σ<sub>j=−1</sub><sup>1</sup> ij = 0, since (−1 + 0 + 1)² = 0.
A double sum adds f(i, j) over a grid or a triangle of index pairs, and the double sum calculator does it row by row, checks it column by column and draws every term. Split separable terms into 2 single sums, use the sum rule for i + j, and swap the order with rewritten limits when the inner sum is easier the other way.
Not sure how to attack your double sum? Answer the questions below.