Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Integral calculator, with the method named.

Type a function to get its antiderivative with steps, or add two limits for a definite integral with the exact value, a decimal and the area drawn on a graph. Each answer is checked by differentiating it back, limits at infinity are supported, and you can test your own answer. No sign-up, nothing leaves your browser.

Need a custom tool, app or website? Contact us 

Examples

Leave both limits empty for an indefinite integral. Limits can be numbers, pi, e, or inf and -inf. A closing dx, a leading ∫ and bars like |x| are understood.

Worked out in your browser. Nothing is sent anywhere.

The method

Integration, one method at a time.

01 / Methods

Methods named

Each step says what was done: power rule, substitution, parts, partial fractions or a standard form.

02 / Checked

Every answer checked

The result is differentiated back and compared with your function before it is shown. A failed check is never displayed.

03 / Limits

Definite and improper

Exact values between limits, and limits at infinity, with the area drawn on the graph.

Guide

How to find an integral, with worked examples.

An integral calculator finds the antiderivative of a function, which is a function whose derivative is the one you typed. Add two limits and it gives the area under the curve between them. This one works out the steps and names each method, so you can follow it. It covers polynomials, powers and roots, exponentials, logs, trig and inverse trig functions, hyperbolic functions, products that need integration by parts, fractions that need partial fractions, powers of sec, tan, csc and cot, square roots of quadratics, and many substitutions.

How to use the integral calculator

  1. Type the function in Function, for example x e^x. A closing dx is ignored, and multiplication can be left out.
  2. Read the line that starts "Read as" to make sure it understood your brackets.
  3. For an indefinite integral, leave Lower limit and Upper limit empty. For a definite integral, fill in both. Use numbers, pi, e, or inf and -inf.
  4. Read the answer. An indefinite integral ends in + C. A definite integral shows an exact value when one exists, with a decimal beside it.
  5. Open the steps under the answer. Use Copy answer, Copy LaTeX or Copy link to keep it.
  6. To test your own work, type your antiderivative in Check your own answer. The calculator differentiates it and compares the result with the function.

The methods, with one example each

  • Power rule. The integral of x^n is x^(n+1)/(n+1) + C for any n except −1. So the integral of x^2 is x^3/3, and the integral of 1/x is ln|x|.
  • Substitution. For x e^(x^2), let w = x^2. Then dw = 2x dx, so the integral becomes half the integral of e^w, which is e^w/2. Put x^2 back and the answer is e^(x^2)/2 + C.
  • Integration by parts. For x e^x, take u = x and dv = e^x dx. Then v = e^x and the integral is x e^x − the integral of e^x, which is x e^x − e^x + C. The calculator repeats the step when the power of x is higher, so x^2 e^x takes two rounds.
  • Partial fractions. For 1/(x^2 − 1), split it as 1/(2(x − 1)) − 1/(2(x + 1)). Each piece is a log, so the answer is (1/2) ln|x − 1| − (1/2) ln|x + 1| + C.
  • Trig identities. For sin^2(x), use sin^2 = (1 − cos(2x))/2. The integral is x/2 − sin(2x)/4 + C. A product like x sin(x) cos(x) is first turned into x sin(2x)/2, which then needs parts, giving −x cos(2x)/4 + sin(2x)/8 + C.
  • Powers of sec and tan. For sec^3(x), a reduction formula gives (sec(x) tan(x) + ln|sec(x) + tan(x)|)/2 + C. For sec^4(x), let w = tan(x): the integral is tan^3(x)/3 + tan(x) + C.
  • Repeated quadratic factors. For 1/(x^2 + 1)^2, a reduction formula gives x / (2(x^2 + 1)) + atan(x)/2 + C. With two different quadratics, such as 1/((x^2 + 1)(x^2 + 4)), the fraction is split into one piece for each.
  • Square roots of quadratics. For x^2/sqrt(1 − x^2) the answer is (asin(x) − x sqrt(1 − x^2))/2 + C. The calculator matches coefficients to reduce the top to a standard form.
  • Rational functions of sin and cos. For 1/(2 + cos(x)), the half-angle substitution w = tan(x/2) turns it into a fraction in w, and the answer is (2/sqrt(3)) atan(tan(x/2)/sqrt(3)) + C. When only even powers of sin and cos appear, w = tan(x) is used instead.
  • Exponentials. For 1/(e^x + 1), let w = e^x. The answer is x − ln(e^x + 1) + C. Hyperbolic functions are rewritten with exponentials when they have no direct rule.

Definite integrals, worked

A definite integral is F(upper) − F(lower), where F is the antiderivative. Here are five you can type in to check.

IntegralAntiderivativeWorkingValue
x^2 from 0 to 1x^3/31/3 − 01/3
sin(x) from 0 to pi−cos(x)−cos(pi) − (−cos(0)) = 1 + 12
ln(x) from 1 to ex ln(x) − x(e − e) − (0 − 1)1
e^(−x) from 0 to inf−e^(−x)0 − (−1)1
1/(x^2 + 1)^2 from 0 to 1x/(2(x^2 + 1)) + atan(x)/2(1/4 + pi/8) − 0(pi + 2)/8, about 0.6427

The e^(−x) row is an improper integral, because the upper limit is infinity. The calculator pushes the limit outwards and checks that the answer settles on a number. If it does not settle, it says the integral diverges. It also looks for places between the limits where the function blows up, such as 1/x from −1 to 1, and tells you the integral has no finite value there instead of giving a wrong number.

A jump inside the limits

Some antiderivatives are written with tan(x/2) or tan(x), which jump to infinity at certain points even when the function being integrated is smooth. The integral of 1/(2 + cos(x)) from 0 to pi is one case, because tan(x/2) is not defined at pi. Putting the limits straight into F would give a wrong number. So for finite limits the calculator also integrates numerically and compares. If the two disagree, it shows the numeric value and says why. For 1/(2 + cos(x)) from 0 to pi it shows 1.8138, which is pi/sqrt(3).

When there is no answer

Some functions have no antiderivative that can be written with the usual functions. Two famous ones are e^(x^2) and sin(x)/x. When the calculator cannot find one, it says so. If you gave limits, it still gives a numeric estimate and labels it as an estimate, not an exact answer. Some functions do have an antiderivative, but need a method this calculator does not have. Examples are a repeated quadratic together with a linear factor in the bottom, as in 1/((x^2 + 1)^2 (x + 1)), a square root of a quadratic in the bottom with a power of x, as in 1/(x^2 sqrt(x^2 + 1)), and arc functions squared, as in acos(x)^2. The special functions erf, Si and Ei are not available either, so ∫e^(−x^2) dx is reported as having no closed form.

Why there is a + C

Differentiating removes any constant, so many functions share the same derivative. x^2 + 1 and x^2 + 7 both give 2x. The + C stands for that unknown constant. A definite integral has no C, because the constant cancels when you subtract.

Checking your own answer

Type your antiderivative in Check your own answer. The calculator differentiates it, compares the result with your function at a dozen test points, and says whether it matches. A different constant is fine, and so is any other equal form, such as ln(x) + ln(2) in place of ln(2x). The test is numeric, so it tells you the two agree at those points, not that it is proved for every x.

Common problems

  • The answer can look different from a textbook and still be right. Two antiderivatives of the same function differ by a constant, and trig answers can be written in several equal forms.
  • ln|x| is shown with bars when x could be negative. When the inside can never be negative, such as x^2 + 1, the bars are dropped.
  • Write 1/(2x) with brackets. Typing 1/2x means (1/2) times x.

To check an answer, differentiate it with the derivative calculator. To see the curve, open the graphing calculator. For equations, there is the algebra calculator.

Questions

Good to know.

What is an integral?

An integral adds up many tiny pieces. An indefinite integral gives the antiderivative, and a definite integral gives the signed area between the curve and the x axis.

Does it show the steps?

Yes. It names the method used for each part, such as substitution, parts or partial fractions, and ends with a check that differentiating the answer gives back your function.

Can it do definite integrals?

Yes. Fill in both limits. It gives the exact value when it can and a decimal beside it. Limits can be pi, e, inf and -inf.

What does diverges mean?

It means the area grows without settling on a number. For example the integral of 1/x from 1 to infinity diverges, so the calculator says it has no finite value.

Why does it say no elementary antiderivative?

Some functions, like e^(x^2) and sin(x)/x, have antiderivatives that cannot be written with ordinary functions. That is a fact about the function, not a fault in the calculator.

Do I type dx?

You can, but you do not have to. A closing dx or dt is read as the variable. Otherwise the variable is chosen for you: leave Variable on Auto, or pick the letter you are integrating with respect to.

How do I check my own answer?

Type your antiderivative in Check your own answer. The calculator differentiates it and compares it with the function you typed. Any constant is accepted.

Can I copy the answer into a document?

Yes. Copy LaTeX gives the integral and its answer in LaTeX, ready for a paper or a maths editor.

Is the answer always checked?

Yes. Before an antiderivative is shown, the calculator differentiates it and compares it with your function at several points. If the check fails, nothing is shown. The engine was also compared numerically with the computer algebra system SymPy and the mpmath library on more than two hundred textbook-style integrals (checked 24 Oct 2026).

Does it handle letters other than x?

Yes. Other letters are treated as constants, so the integral of a x^2 with respect to x is a x^3/3.

Is anything sent to a server?

No. The calculation runs in your browser, and the last function you typed is kept on this device only.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch