Integral Calculator

Enter a function of x and this tool solves its integral step by step — indefinite (with + C) or definite between two bounds. It handles polynomials, sin(x), cos(x), e^x, 1/x and ln(x) analytically, and falls back to a clearly labelled numeric result (Simpson's rule) for anything else.

Try an example:

How it works

Type a function of x — for example 3x^2 + 2x + 1, sin(x), 1/x or e^x — choose indefinite or definite, and press “Solve integral”. The tool splits the function into terms, integrates each term with the matching rule, shows every step, and combines the results. For a definite integral it evaluates the antiderivative at both bounds. Functions it cannot integrate analytically are solved numerically with Simpson's rule and clearly labelled as numeric.

Frequently asked questions

Which functions can it integrate exactly? Polynomials (any power of x), constants, sin(x), cos(x), e^x, 1/x and ln(x), and sums of those. Anything else is solved numerically with Simpson's rule and labelled as a numeric result.

What is the numeric fallback? Simpson's rule with 1000 intervals: it estimates the area under the curve between your bounds. It is an approximation, so the page always labels it as numeric.

Is my function uploaded anywhere? No. Everything is calculated in your browser — your function never leaves your device.

This tool is independent and is not affiliated with VibeShipped.