Skip to content
ihateDesmos

Integral of e^(−x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of e^(−x²)
(√π/2) erf(x) + C

The integral of e^(−x²) has no formula in elementary functions. It is written using the error function: (√π/2) erf(x) + C. But the definite integral over the whole number line is exactly √π.

−3−2−11230.51.00
Open in calculator
y=e−x2
in blue.

How to integrate e^(−x²)

Method: error function.

  1. 1
    No combination of powers, exponentials, logs and trig functions has e^(−x²) as its derivative. Liouville’s theorem proves this.
  2. 2
    So we name the integral: erf(x) = (2/√π) ∫₀ˣ e^(−t²) dt.
  3. 3
    That gives ∫e^(−x²) dx = (√π/2) erf(x) + C.
  4. 4
    Over the whole line, squaring the integral and switching to polar coordinates gives ∫₋∞^∞ e^(−x²) dx = √π.

What it means

This is the Gaussian, the shape behind the normal distribution, and every normal probability is a value of this integral. It is why statistics relies on tables and numerical methods, and why normal CDFs have no simple formula.

The integral from −∞ to ∞

Computed numerically: √π, which is about 1.77245. A direct numerical integration of e^(−x²) gives 1.77245, which agrees.

−3−2−1123−0.20.20.40.60.811.2

Table of values

The running total of area from 0 to x, computed numerically.

Running integral from 0
xe^(−x²)∫ from 0 to x
−20.0183156−0.882081
−10.367879−0.746824
010
10.3678790.746824
20.01831560.882081

Common mistakes

  • Trying substitution with u = x². It fails, because there is no factor of x for du.
  • Writing −e^(−x²)/(2x). Differentiating that doesn’t give the original.

Frequently asked questions

What is the integral of e^(−x²)?
It has no formula in elementary functions. It can be written as (√π/2) erf(x) + C, and any definite integral can be computed numerically.
What is the integral of e^(−x²) from −∞ to ∞?
√π, which is about 1.77245.
Why can’t e^(−x²) be integrated?
It can be integrated, but its antiderivative can’t be written with elementary functions. This was proved by Joseph Liouville in the 1800s. It is defined by a named function instead: erf.
What is the integral of e^(−x²) from −∞ to ∞?
√π ≈ 1.77245. It is known as the Gaussian integral.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator