Skip to content
LoveToCalc

Integral calculator

Type a function to see its antiderivative — and, with bounds, the definite integral's value.

Try:

Integral

f(x) =
x²
Antiderivative F(x)
x³3+ C, for an arbitrary constant C
Rules used
  1. ∫x²dx=x³3

Trigonometry is integrated in radians, the way calculus is written.

How to use it

Which rules it uses

What you type Rule Antiderivative
x^n Power rule xⁿ⁺¹/(n + 1)
1/x The power rule’s exception ln|x|
e^x, 2^x Exponentials eˣ, 2ˣ/ln 2
sin(x), cos(x) Trigonometry, in radians −cos x, sin x
sqrt(x), root(x, 3) Root as a power 2x√x/3, 3x∛x/4
f + g, f - g, c*f Term by term F ± G, c·F
sin(2x), e^(3x + 1) Linear inner function −cos(2x)/2, e³ˣ⁺¹/3

The last row is the only substitution the calculator makes on its own: when what sits inside the function is a straight line, kx + m, it divides by k. That works for every rule in the table.

Worked examples

A polynomial. 3x^2 - 4x + 1 is integrated term by term with the power rule: 3x² becomes x³, −4x becomes −2x² and 1 becomes x. F(x) = x³ − 2x² + x + C. With bounds 0 and 2 the definite integral is F(2) − F(0) = (8 − 8 + 2) − 0 = 2. The constant C cancels in the subtraction, which is why a definite integral never needs it.

A linear inner function. sin(2x) has an antiderivative that is easy to get wrong. −cos(2x) is nearly right, but differentiate it and you get 2·sin(2x), twice too much. So the calculator divides by two: F(x) = −cos(2x)/2.

A product. x*e^x cannot be integrated with the table above. It takes integration by parts, and the calculator says it does not do that rather than guess. Give it bounds, say 0 and 1, and it still works out the value numerically: 1, marked as approximate. By hand it is (x − 1)·eˣ between 0 and 1, so 0 − (−1) = 1.

What the integral is for

The definite integral is the area between the curve and the x-axis, counted with sign:

Integrating and differentiating undo each other: differentiate the antiderivative and you get back what you typed. That is the fundamental theorem of calculus, and it is why the definite integral can be computed as F(b) − F(a).

Frequently asked questions

Does it show the steps? Yes. The panel under the answer lists each rule it used, in order, and with bounds it shows the substitution F(b) − F(a) with the numbers written out.

What does “approximate (numeric)” mean? That the rule table found no antiderivative, but the value could still be worked out by adding up the function over many small pieces (adaptive Simpson’s rule). The answer is right to many decimals, but it is an estimate and is labelled as one. When it says “exact”, the value comes from F(b) − F(a).

What can it not integrate? Products of two varying factors, such as x·eˣ, quotients of two varying expressions, and functions of anything other than a straight line, such as e^(x²) or sin(x²). It also has no rule for ln x on its own, tan x, the inverse trig functions, absolute values or factorials. In each case it says what is missing, and with bounds it still works out the value numerically.

Why is there no answer for 1/x from −1 to 1? Because 1/x is not finite at x = 0, which lies between the bounds. Putting the bounds into ln|x| gives 0, but that answer is wrong: the integral does not exist. The calculator checks the interval and says so instead. The same goes for improper integrals such as ∫₀¹ ln x dx, where it does not take the limit.

Why are angles in radians? Because the antiderivative of cos x is sin x only in radians. The same rule applies in the derivative calculator.

Last reviewed September 24, 2026 ·How pages are reviewed

The formula behind this

All math calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.