Math calculators

Double Integral Calculator

Updated Aug 1, 2026 By Jehan Wadia
Rate Formulas
Integral Setup
Sets sensible default variable names.
Single symbol, e.g. x, u, θ.
Single symbol, e.g. y, v, r.
Omit the differentials (dx, dy). Use ^ for powers, * for multiplication, and functions such as sin, cos, tan, ln, log, exp, sqrt, abs, atan.
Limits of integration
Interpreted as:
Preferred Integration Method
Selected strategy: Auto-detect.

Final Answer
Exact:
Approximate:
Inner Integral Profile
Step-by-Step Solution

Introduction

A double integral adds up a function over a flat region. You do it in two steps: integrate the inside variable first, then the outside one. This double integral calculator does both steps for you and shows the work.

Type your function, like x*y^2. Pick definite and add the four limits, or pick indefinite and skip them. Then press Calculate. You get an exact answer, a decimal answer, and a clear step-by-step solution. For single-variable problems, the Integral Calculator is the simpler tool to reach for.

You can also switch the order of integration, work in Cartesian or polar coordinates, and use your own variable names. The graph tab draws a 3D surface of your function and a 2D picture of the region you are integrating over, so you can see what the math means. If you want to explore surfaces on their own, try the 3D Graphing Calculator. There is a math keyboard for symbols like π and √, sample problems to try, and a "Check My Answer" box that tells you if your own answer is right.

How to use our Double Integral Calculator

Type in your function, pick your two variables, and add your limits. The calculator shows the exact answer, a decimal answer, step-by-step work, and graphs of the surface and the region.

Coordinate system: Pick Cartesian (x, y), Polar (r, θ), or General. This sets the default variable names for you. For polar, remember to put the extra r in your function yourself.

Outer variable: Type the letter that gets integrated last, like x. Use one symbol only.

Inner variable: Type the letter that gets integrated first, like y. It must be different from the outer variable.

Integrand: Type the function only, such as x*y^2 or sin(x)*cos(y). Do not type dx or dy. Use ^ for powers and * for times. Trig values can be checked quickly with the Trig Calculator.

Show Keyboard: Click this to tap math keys like √, π, sin, and fractions right into the box you last clicked.

Camera button: Upload a picture of your integral, then type what you see into the box and apply it to the integrand.

Limits of integration: Choose Definite to add four bounds and get a number. Choose Indefinite to skip bounds and get an antiderivative plus C.

Inner lower bound: Type where the inner variable starts. This one may use the outer variable, like 0 or 1-x.

Inner upper bound: Type where the inner variable stops. It may also use the outer variable, like x^2.

Outer lower bound: Type the number where the outer variable starts. It must be a constant, like 1 or pi/2.

Outer upper bound: Type the number where the outer variable stops. It must be a constant too.

Preferred integration method: Leave it on Auto-detect, or pick a method like substitution, parts, or partial fractions if your class needs it. If a rational integrand needs polynomial division first, the Long Division Calculator and Synthetic Division Calculator can help you set it up.

Calculate: Click to solve. You get the exact answer, the decimal answer, the steps, and the plots.

Switch Integration Order: Click to flip dy dx into dx dy. The calculator rewrites the bounds when it can.

Clear All: Click to reset every field back to the starting example.

Check My Answer: Type your own answer, like 85/8 or pi/3, and click Verify to see if it matches. The Fraction Calculator is handy if you need to tidy up your fraction first.

What Is a Double Integral?

A double integral adds up a function over a flat region instead of just along a line. You write it as ∫∫ f(x, y) dy dx. If f(x, y) is a height, the double integral gives the volume between the surface and the region below it. If f(x, y) = 1, it gives the area of the region. For simple shapes you can skip the calculus and use the Area Calculator or the Volume Calculator instead.

How Double Integrals Work

You solve a double integral in two rounds, one variable at a time. This idea is called Fubini's theorem.

  1. Inner integral first. Integrate with respect to the inner variable (like y). Treat the other variable (x) as a plain number.
  2. Plug in the inner limits. Put in the top bound, then subtract the bottom bound. The answer is now a function of x only.
  3. Outer integral next. Integrate that result with respect to x.
  4. Plug in the outer limits. Top minus bottom. You now have one number.

Each round undoes a derivative, so if you are checking your antiderivative by differentiating it back, the Derivative Calculator is the fastest way to confirm it.

Limits of Integration

The order of the limits matters a lot:

  • Inner limits can be numbers or curves that use the outer variable, like y = 0 to y = x².
  • Outer limits must always be plain constants, like x = 1 to x = 2.
  • The inner limits can never contain the inner variable.

If both inner limits are numbers, the region is a rectangle. If an inner limit uses the outer variable, the region has curved or slanted edges. To find where two boundary curves cross, the System of Equations Calculator and the Quadratic Formula Calculator come in handy.

Switching the Order of Integration

Sometimes an integral is hard in one order and easy in the other. You can swap dy dx to dx dy, but you must redraw the region and rewrite the bounds. Over a rectangle, the swap is simple. Over a curved region, you must solve the boundary curve for the other variable — the Solve for X Calculator can do that rearranging for you.

Polar Coordinates

Circles, rings, and pie slices are much easier in polar form. There you use r (distance from the center) and θ (angle). One rule you cannot skip: the extra factor r, called the Jacobian. So dA becomes r dr dθ. Forgetting the r is the most common polar mistake. For plain circular regions, the Circle Area Calculator and the Arc Length Calculator give quick sanity checks.

Common Uses

Common Methods You May Need

Each round is just a single integral, so the usual tools work: the power rule, u-substitution, integration by parts, trig identities, partial fractions, and completing the square. Related helpers include the Exponent Calculator for power rules, the Log Calculator for logarithmic antiderivatives, the Factoring Calculator for partial fractions, and the Limit Calculator when a bound approaches a tricky value.

Mistakes to Watch For

  • Treating the outer variable as a variable during the inner step. It acts like a constant.
  • Matching the wrong limits to the wrong variable.
  • Using a variable in the outer limits.
  • Typing dx or dy inside the function itself.
  • Dropping the r in polar coordinates.
  • Swapping the order without changing the bounds.
  • Rounding too early — keep extra digits and use the Sig Fig Calculator only at the very end.

Formulas used

Iterated double integral over a Type I region
\int_{a}^{b}\!\!\int_{g_1(x)}^{g_2(x)} f(x,y)\,dy\,dx
Inner integral evaluated by the Fundamental Theorem of Calculus
\int_{g_1(x)}^{g_2(x)} f(x,y)\,dy = \Big[F(x,y)\Big]_{y=g_1(x)}^{y=g_2(x)} = F(x,g_2(x)) - F(x,g_1(x))
Outer integral evaluated at the outer limits
\int_{a}^{b} G(x)\,dx = \Big[H(x)\Big]_{x=a}^{x=b} = H(b) - H(a)
Composite 10-point Gauss-Legendre quadrature (numeric check)
\int_{a}^{b} f(t)\,dt \approx \frac{b-a}{2}\sum_{i=1}^{10} w_i\, f\!\left(\frac{a+b}{2} + \frac{b-a}{2}x_i\right)
Power rule with linear inner function
\int (ax+b)^{n}\,dx = \frac{(ax+b)^{n+1}}{a(n+1)} + C,\qquad \int \frac{dx}{ax+b} = \frac{1}{a}\ln\left|ax+b\right| + C
Integration by parts recursion used for x^n times exp, sin, cos
\int x^{n}e^{ax}\,dx = \frac{x^{n}e^{ax}}{a} - \frac{n}{a}\int x^{n-1}e^{ax}\,dx
Inverse-trigonometric antiderivative forms
\int \frac{dx}{A+Bx^{2}} = \frac{1}{\sqrt{AB}}\arctan\!\left(x\sqrt{\frac{B}{A}}\right) + C,\qquad \int \frac{dx}{\sqrt{A-Cx^{2}}} = \frac{1}{\sqrt{C}}\arcsin\!\left(x\sqrt{\frac{C}{A}}\right) + C
Area of the region of integration
\text{Area} = \int_{a}^{b}\left(g_2(x)-g_1(x)\right)dx

Frequently asked questions

Why does my answer say No elementary closed form found?

That means the built-in rules could not find an exact antiderivative for your function. The tool then falls back to numeric integration and shows a decimal answer instead.

The decimal is still accurate. You may also see a nearby simple fraction or a multiple of π listed as a hint.

What is the numerical cross-check under the answer?

After solving your integral by hand rules, the tool also solves it a second way using Gauss–Legendre quadrature. That is a fast numeric method.

If both answers match, you get a green check note. It is a safety net against typos and bad rules.

Can I use infinity as a limit?

No. This tool only handles finite bounds. If you type the ∞ symbol, you will get an error message.

For improper integrals, replace infinity with a large number to estimate the value, or use a limit tool.

Why did I get a negative answer?

A double integral gives signed volume. If part of your surface dips below the xy-plane, that part counts as negative.

You can also get a negative result if your upper bound is smaller than your lower bound. Check the order of your limits.

Can I type pi, e, and fractions in the bound boxes?

Yes. Type pi, e, pi/2, 1/3, or sqrt(2). The tool reads them as exact values, not rounded decimals.

Remember: outer bounds must be constants only. Inner bounds may also use the outer variable.

What is the Did you mean box for?

It shows quick fixes when your typing looks off. Examples:

  • A missing closing parenthesis
  • A misspelled function like sni(x) instead of sin(x)
  • A leftover dx or = sign

Click a suggestion and it loads and solves right away.

Why can the calculator not switch my integration order?

Some regions cannot be flipped into one single integral. They would need to be split into two or more pieces, or the boundary curve cannot be solved for the other variable.

When that happens the tool keeps your current order and tells you why.

Can I use my own variable letters like u and v?

Yes. Pick General / Custom as the coordinate system, then type any single letters you want in the outer and inner variable boxes.

The two letters must be different, and they cannot be a function name like log or sin.

What do the colors on the 3D surface mean?

The colors show the height of your function. Blue is the lowest value and red is the highest. Green and orange sit in between.

The color bar on the right lists the smallest and largest values on your region.

What does the Inner Integral Profile chart show?

It plots the value of the inner integral for each value of the outer variable.

The area under that curve equals your final double integral. It is a good way to see where most of the value comes from.

Why does the indefinite answer have only one plus C?

Strictly, each step adds its own constant. The tool folds them into one + C at the end to keep the answer clean.

The steps still show the inner constant as C₁ so you can see where it came from.

Does picking a method change my answer?

No. The answer stays the same. The method buttons only tell the solver which approach you prefer to see.

If your chosen method does not fit the function, the solver uses the rule that does and lists what it actually used in the badges.

Can I write x y without a times sign?

Yes. The parser reads xy as x*y and 2x as 2*x.

Still, typing * is safer with longer names. Always use parentheses for things like sin(x*y).

Does the camera button read my picture on its own?

No. Automatic reading is not built in. You upload the image, look at it, and type the expression you see into the box.

You can drag on the preview to zoom your eye to just the integral part, then apply it to the integrand.

How accurate is the decimal answer?

Very accurate. The tool uses a 10-point Gauss–Legendre rule on many small pieces in both directions.

For smooth functions you can trust about 8 to 10 digits. Sharp spikes or breaks in the function lower that.

How does Check My Answer handle an indefinite integral?

It tests your expression and the correct one at several sample points. If the gap between them is the same number every time, your answer is right.

That is because a different constant of integration is still correct.

Why is my preview showing an empty box shell?

The empty square means one of your fields could not be read. Look above for a red error message under the bad box.

Common causes are a missing parenthesis, an unknown letter, or a variable used in an outer bound.

What functions can I type in the integrand?

You can use sin, cos, tan, sec, csc, cot, asin, acos, atan, sinh, cosh, tanh, ln, log, exp, sqrt, cbrt, and abs.

Use ^ for powers and bars like |x-y| for absolute value.

Can I enter angles in degrees?

Yes. Type the degree symbol from the keyboard panel after a value, like 90°. The tool turns it into radians for you.

Without the symbol, all trig inputs are treated as radians.

Does this tool do triple integrals?

No. It handles two variables only. For a third variable you would need to run the inner two here, then integrate that result again by hand.

Why does my polar answer look too small?

You probably left out the r factor. In polar form, dA = r dr dθ, so you must multiply your function by r yourself.

Example: for area of a unit circle, type r, not 1.

Is this double integral calculator free to use?

Yes. It is free, needs no sign-up, and runs right in your browser. Nothing you type is sent to a server.

It works on phones, tablets, and computers.