Double Integral Calculator (Rectangular Region)

Published on: July 21, 2026
Final Answer: Free | Full Steps: Pro

This Double Integral Calculator (Rectangular Region) integrates a function of two variables over a rectangle, and shows the working line by line. The inner integral is worked out first with the outer variable held constant, which turns it into an ordinary integral. Its result is then integrated again over the remaining limits. Following the same pattern every time keeps the two integrations from being run together.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. Evaluate at the y-limits.

Formula: Double Integral over a Rectangle

This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

Useful Tips to Remember

Keep the outer variable as a constant while doing the inner integral, exactly like a partial derivative in reverse. Over a rectangle the order can be swapped and the answer stays the same. If f is a product like \(g(x)h(y)\), the double integral is the product of two single integrals. A double integral of 1 gives the area of the region.

Required knowledge

Where Are Double Integrals over Rectangles Used?

A double integral adds up a quantity spread over a region, such as volume under a surface, mass of a plate or total rainfall over an area. Engineers use double integrals to find centres of mass and moments of inertia of flat parts. In probability, the chance that two random quantities fall in a range is a double integral of their joint density. Image processing and physics also sum values over grids, which is a double integral in disguise.

  • Volume under a surface
  • Mass and centre of mass of a plate
  • Joint probabilities of two random variables
  • Total rainfall or heat over an area
  • Moments of inertia in engineering

Double Integral over a Rectangle Practice Problems

Example 1 integrates \(x y\) over \(0 \le x \le 1\), \(0 \le y \le 2\), and Example 2 integrates \(x^{2} + y\) over \(0 \le x \le 1\), \(1 \le y \le 2\). Do the inner integral first, then the outer one, and compare. For two more free worked examples, check out the Double Integral (Rectangular Region) Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. Evaluate at the y-limits.

Formula

Formula: Double Integral over a Rectangle

This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

Step 1

Step 1 - Set up the problem.

In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy\)

Step 2

Step 2 - Write the formula.

In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

Step 3

Step 3 - Integrate with respect to x.

In this problem: Treating \(y\) as a constant, integrating \(x y\) with respect to \(x\), covered in the Power Rule Integration Calculator, gives \(\frac{x^{2} y}{2}\).

\(\int x y \, dx = \frac{x^{2} y}{2}\)

Step 4

Step 4 - Evaluate at the x-limits.

In this problem: Putting the x limits in and subtracting gives \(\frac{y}{2} - 0 = \frac{y}{2}\). This is now a function of y only.

\(\left[ \frac{x^{2} y}{2} \right]_{x = 0}^{x = 1} = \frac{y}{2} - 0 = \frac{y}{2}\)

Step 5

Step 5 - Integrate with respect to y.

In this problem: Integrating \(\frac{y}{2}\) with respect to \(y\), covered in the Power Rule Integration Calculator, gives \(\frac{y^{2}}{4}\).

\(\int \frac{y}{2} \, dy = \frac{y^{2}}{4}\)

Step 6

Step 6 - Evaluate at the y-limits.

In this problem: Putting the y limits in and subtracting gives \(1 - 0 = 1\).

\(\left[ \frac{y^{2}}{4} \right]_{0}^{2} = 1 - 0 = 1\)

Final Answer

\(\int_{0}^{2} \int_{0}^{1} x y \, dx \, dy = 1\)
See Example 2 Hide Example 2

Problem

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Integrate with respect to x.
  4. Evaluate at the x-limits.
  5. Integrate with respect to y.
  6. Evaluate at the y-limits.

Formula

Formula: Double Integral over a Rectangle

This formula turns the double integral into two single integrals. Integrate with respect to x first, holding y constant, then integrate the result with respect to y.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

Step 1

Step 1 - Set up the problem.

In this problem: We are integrating f over the rectangle where x runs from a to b and y runs from c to d.

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy\)

Step 2

Step 2 - Write the formula.

In this problem: Over a rectangle the double integral is two single integrals. The inner one is done with respect to x, holding y constant, and its result is then integrated with respect to y.

\(\iint_{R} f(x, y)\,dA = \int_{c}^{d} \left( \int_{a}^{b} f(x, y)\,dx \right) dy\)

Step 3

Step 3 - Integrate with respect to x.

In this problem: Treating \(y\) as a constant, integrating \(x^{2} + y\) with respect to \(x\), covered in the Sum Rule Integration Calculator, gives \(\frac{x^{3}}{3} + x y\).

\(\int \left(x^{2} + y\right) \, dx = \frac{x^{3}}{3} + x y\)

Step 4

Step 4 - Evaluate at the x-limits.

In this problem: Putting the x limits in and subtracting gives \(\left(y + \frac{1}{3}\right) - 0 = y + \frac{1}{3}\). This is now a function of y only.

\(\left[ \frac{x^{3}}{3} + x y \right]_{x = 0}^{x = 1} = \left(y + \frac{1}{3}\right) - 0 = y + \frac{1}{3}\)

Step 5

Step 5 - Integrate with respect to y.

In this problem: Integrating \(y + \frac{1}{3}\) with respect to \(y\), covered in the Sum Rule Integration Calculator, gives \(\frac{y^{2}}{2} + \frac{y}{3}\).

\(\int \left(y + \frac{1}{3}\right) \, dy = \frac{y^{2}}{2} + \frac{y}{3}\)

Step 6

Step 6 - Evaluate at the y-limits.

In this problem: Putting the y limits in and subtracting gives \(\frac{8}{3} - \frac{5}{6} = \frac{11}{6}\).

\(\left[ \frac{y^{2}}{2} + \frac{y}{3} \right]_{1}^{2} = \frac{8}{3} - \frac{5}{6} = \frac{11}{6}\)

Final Answer

\(\int_{1}^{2} \int_{0}^{1} \left(x^{2} + y\right) \, dx \, dy = \frac{11}{6}\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.