Browse All Calculators

Integral Calculator

Free integral calculator with steps. Find definite and indefinite integrals, exact and decimal values and the area under a curve, with a live graph.

100% Free
No Sign-up
Instant Results
Works on Mobile

Integral Calculator

Type of integral
Integrate with respect to
a = 0
b = 3.1416
Limits can be numbers or simple expressions such as pi, pi/2, e or sqrt(2). Type inf for infinity.
Step-by-step working
  1. Write the integral: ∫ x² + sin(x) dx.
  2. Methods needed: Sum rule, power rule, trigonometric rules.
  3. Find the antiderivative: F(x) = x³/3 − cos(x).
  4. Subtract: F(π) − F(0) = π³/3 + 2 ≈ 12.33542556.
f(x)Area
∫ from 0 to π of f(x) dx =
π³/3 + 2
≈ 12.33542556
Decimal value
12.33542556
Average value
3.9264879
Total area
12.335426
Interval width
3.1415927
Rules applied
  • Sum rule: integrate each term separately and add the results.
  • Power rule: the integral of xⁿ is xⁿ⁺¹/(n + 1) for n ≠ −1.
  • Trigonometric rules: sin gives −cos, cos gives sin, and sec² gives tan.
Check your answer
  • Adaptive numerical integration gives 12.33542556, which matches the exact value.
  • Differentiating the antiderivative gives back f(x) at many sample points.
Quick note
The curve stays above the x-axis between the limits, so the integral equals the area under it.
Integral Calculator - find definite and indefinite integrals with steps and the area under a curve online on HighCalc

Integral Calculator: Definite and Indefinite Integrals with Steps

This free integral calculator finds the antiderivative of a function and, when you give it limits, the exact and decimal value of the definite integral. It handles polynomials, fractions, roots, trigonometric, exponential and logarithmic functions, and it shows the rules it used and the working. A graph shades the area under the curve so you can see what the number means.

Quick answer: the integral of x² + sin(x) from 0 to π is π³/3 + 2, which is about 12.3354. Its antiderivative is x³/3 − cos(x) + C.

What Is an Integral?

An integral adds up a quantity that keeps changing. If a function gives the speed of a car at each moment, its integral over an hour is the distance travelled. On a graph, the definite integral from a to b is the area between the curve and the x-axis. Integration is also the reverse of differentiation: the integral of a function is a new function whose derivative is the one you started with. The derivative calculator works in the opposite direction.

Definite and Indefinite Integrals

An indefinite integral has no limits and gives a family of functions that differ by a constant, which is why + C is added. A definite integral has a lower and an upper limit. It is found by taking the antiderivative, putting in the upper limit, and subtracting the value at the lower limit. The result is a number. Choose Definite or Indefinite at the top of the calculator, and the limit boxes appear only when they are needed.

Common Integration Rules

Most integrals are built from a short list of results. The power rule raises the exponent by one and divides by the new exponent. The sum rule lets you integrate a long expression one term at a time, and a number multiplying a function stays in front. When a function sits inside another one, substitution replaces the inner part with a single letter. When two different kinds of function are multiplied, integration by parts often works. Fractions made from polynomials are split into simpler pieces with partial fractions. Some examples are listed here.

FunctionIntegralMethod
xⁿxⁿ⁺¹/(n + 1) + CPower rule
1/xln|x| + CReciprocal rule
e^(2x)e^(2x)/2 + CExponential rule
sin(x)−cos(x) + CTrigonometric rule
2x e^(x²)e^(x²) + CSubstitution
x e^xx e^x − e^x + CIntegration by parts
ln(x)x ln(x) − x + CIntegration by parts
1/(x² + 1)atan(x) + CStandard form

How to Enter a Function and Limits

Type the function the way you would write it on paper. Use ^ for powers, so x squared is x^2, and write square roots as sqrt(x) and the exponential function as e^x. Functions such as sin, cos, tan and ln need brackets around their input. The shortcut buttons under the box insert common symbols for you. Limits can be plain numbers, or simple expressions like pi, pi/2 or sqrt(2). To integrate over an infinite range, type inf or -inf.

Area Under a Curve

A definite integral counts area above the x-axis as positive and area below it as negative, so the two can cancel. The calculator therefore also gives the Total area, which treats every part as positive, and the Average value of the function over the interval. These are useful in physics, engineering and economics, for example to find the total energy used, the work done by a changing force or the average cost over a period.

When There Is No Closed Form

Some functions, such as e^(−x²) or sin(x)/x, have no antiderivative that can be written with ordinary functions. For these, the indefinite integral cannot be shown, but the definite integral still has a value. Switch to Definite, enter the limits and the calculator finds the number with numerical integration. For related work, the polynomial calculator, the scientific calculator and the math solver can help with the steps around it.

How to Use This Integral Calculator

1

Choose the type

Pick Definite for a number with limits, or Indefinite for the general antiderivative.

2

Type your function

Enter it in the box, or use the shortcut buttons for powers, roots and functions.

3

Set the limits

For a definite integral, type or slide the lower and upper limits, such as 0 and pi.

4

Read the results

See the exact answer, the decimal value, the working and the shaded graph.

Features

Instant Results
The answer updates as you type
Exact and Decimal
Exact forms with a decimal check
Two Modes
Definite and indefinite integrals
Shaded Graph
See the area under the curve
Step-by-Step Working
See the rules used and every stage
Mobile Friendly
Works smoothly on phones, tablets and desktops
Frequently Asked Questions
Common questions about the Integral Calculator.
What is the difference between a definite and an indefinite integral?
An indefinite integral is a general antiderivative: a function whose derivative is the one you started with, written with a constant C because any constant can be added. A definite integral has limits, a and b, and gives a single number: the signed area between the curve and the x-axis from a to b. Use Indefinite for the formula and Definite for the number.
How do I find the integral of x² + sin(x) from 0 to π?
Find the antiderivative first: x³/3 − cos(x). Then subtract its value at the lower limit from its value at the upper limit. F(π) = π³/3 + 1 and F(0) = −1, so the integral is π³/3 + 2, which is about 12.3354. The calculator shows both the exact form and the decimal.
Which integration methods does the calculator use?
It applies the power, sum and constant multiple rules, standard forms for trigonometric, exponential and logarithmic functions, substitution, integration by parts, partial fractions for rational functions and trigonometric identities. The Rules applied box lists the ones your function needed.
Why does it say no closed-form antiderivative was found?
Some functions, such as e^(−x²) or sin(x)/x, have no antiderivative that can be written with ordinary functions, and others need methods beyond the ones built in here. A definite integral of such a function can still be found as a number, so switch to Definite, enter the limits and the calculator uses numerical integration instead.
How do I type the function and the limits?
Use ^ for powers, * or just a space for multiplication, / for division, sqrt() for square roots and e^x for the exponential. Functions need brackets, such as sin(x) or ln(x). Limits can be numbers or simple expressions such as pi, pi/2, e or sqrt(2), and you can type inf or -inf for an infinite limit.
Why can a definite integral be negative or zero?
The integral counts area above the x-axis as positive and area below it as negative. If the curve spends time on both sides, those parts cancel, and the result can be small or zero even though there is plenty of area. The Total area box adds every part as a positive amount instead.