Integral Calculator
Find antiderivatives and evaluate definite integrals with the rules shown at every step. Handles the power rule, substitution, integration by parts, and numeric area when no closed form exists.
Use x as the variable. Write powers with ^, functions as sin(x) or ln(x), and e^x for the exponential.
Your result will appear here
Enter a function above or tap an example to see the antiderivative and the rules behind it.
See the rule, not just the result
Calculus marks are usually lost on method, not arithmetic. This calculator names the rule behind every line, from the power rule through substitution and integration by parts, and shades the area a definite integral actually measures so the number on screen connects to the picture.
Why use this integral calculator?
Exact answers where they exist
Results come back as fractions and standard functions, so you get (1/3)x^3 rather than 0.333x^3, and ln|x| with the absolute value kept in place.
A number even without a formula
Functions such as e^(-x^2) have no antiderivative in standard form. Adaptive Simpson integration still returns an accurate value across any interval.
Every result is checked
The antiderivative is differentiated again and compared against your function at several points before the answer is shown.
Runs entirely offline in the browser
No account, no upload, no daily limit. The parser and the integration rules are plain JavaScript on your own device.
How this Integral Calculator works
This calculator does not look your function up in a table. It reads the text you type, splits it into numbers, the variable x, operators, and named functions, and builds a small tree that mirrors the structure of the expression. Brackets, implicit multiplication such as 2x, and a leading minus in front of a power all get resolved at this stage, so -x^2 is read as minus x squared rather than the square of minus x.
The solver then walks that tree and tries the standard rules in order. Sums split into separate integrals. Constants move outside. Anything that reduces to powers of x goes through the power rule, with 1/x handled separately because raising minus one by one would divide by zero. When the inside of a function is a straight line, such as cos(3x + 1), it divides by the slope. When one factor is a constant multiple of the derivative of another part, it applies substitution. Products of a polynomial and an exponential, sine, cosine, or logarithm go through integration by parts, repeating until the polynomial runs down to a constant.
For a definite integral it evaluates the antiderivative at both limits and subtracts. It also runs adaptive Simpson integration, which subdivides the interval more finely wherever the curve bends, so functions with no closed form still return an accurate number.
Every answer is then differentiated again and compared against your function as a check. Nothing is uploaded — all of it runs in your browser.
How to use this Integral Calculator
Pick the type
Choose Antiderivative for the general result with + C, or Definite integral when you need the area between two limits.
Type the function
Use x as the variable, ^ for powers, and named functions such as sin(x), ln(x), sqrt(x), or e^x.
Read the result and the rules
The answer appears with the rule behind every step, plus a graph that shades the area a definite integral measures.
Example Usage
Integrating a product with integration by parts:
Frequently Asked Questions
What is the difference between an indefinite and a definite integral?
How do I type the function?
Why does the answer always end with + C?
What does the shaded area on the graph mean?
Why did I get a number but no antiderivative?
How accurate is the numeric result?
Can I use pi or e in the limits?
What happens if the lower limit is bigger than the upper limit?
Does it handle integration by parts and substitution?
Why does the result show ln|x| instead of ln(x)?
How do I know the answer is right?
Is anything I type uploaded?
Related Tools
Scientific Calculator
Run trigonometry, logarithm, power, and root calculations in your browser.
Unit Converter
Convert between various units of measurement.
Algebra Calculator
Solve linear and quadratic equations, simplify expressions, and work through systems of equations with the steps shown.
Pi Digit Calculator
View, copy, and download up to 10,000 digits of pi. Customize spacing and grouping for mathematical study and programming.
Percentage Calculator
Work out what percent of a number, what percent one number is of another, percentage increase and decrease, and discounts or markups. Five calculators on one page.
Compound Interest Calculator
See how savings and investments grow with compound interest. Add regular deposits, pick a compounding frequency, and read the year-by-year balance breakdown.
The Integral Calculator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

