Home · Everyday · Trigonometry · Error Function Calculator
Error Function Calculator
Computes the Gauss error function erf(x) and its complement, the area under a Gaussian curve used throughout probability and diffusion.
What this calculator does
Computes the Gauss error function erf(x) and its complement, the area under a Gaussian curve used throughout probability and diffusion. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The error function is defined as erf(x) = (2/√π)∫₀ˣ e^(−t²) dt, the probability that a standard normal variable falls within ±x√2 of the mean. This page evaluates it with the Abramowitz–Stegun polynomial approximation, whose absolute error is at most 1.5×10⁻⁷.
erf is an odd function, erf(−x) = −erf(x), and it saturates quickly: erf(2) ≈ 0.9953 and erf(3) ≈ 0.99998. The complement erfc(x) = 1 − erf(x) is the useful quantity for tail probabilities; for very large x, erfc underflows in floating point even though the true value is merely tiny.
Worked example
With the example inputs this page opens with (argument x 1), the result is 0.842701 — erf(x). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Argument x | erf(x) | erfc(x) = 1 − erf(x) |
|---|---|---|
| 0 | 0 | 1 |
| 0.25 | 0.276326 | 0.723674 |
| 0.5 | 0.5205 | 0.4795 |
| 0.75 | 0.711156 | 0.288844 |
| 1 | 0.842701 | 0.157299 |
| 1.5 | 0.966105 | 0.033895 |
| 2 | 0.995322 | 0.004678 |
| 2.5 | 0.999593 | 0.000407 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How is erf related to the normal distribution?
The standard normal CDF is Φ(z) = ½(1 + erf(z/√2)), so erf converts directly into cumulative probabilities for Gaussian data.
How does the Error Function Calculator work?
Computes the Gauss error function erf(x) and its complement, the area under a Gaussian curve used throughout probability and diffusion. Argument x → erf(x) · erfc(x). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Error Function Calculator need?
Argument x → erf(x) · erfc(x). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Error Function Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.