Error Function Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a real number x to get the error function erf(x), its complement erfc(x), and erf(x) to 10 decimal places.
Result
erf(x)
erfc(x) = 1 − erf(x)
- erf(x) to 10 decimals
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- x (real number): enter a number.
- Read the result: erf(x); the panel also shows erfc(x) = 1 − erf(x) and erf(x) to 10 decimals.
How this calculator works
The error function is erf(x) = (2/√π) ∫₀ˣ e^(−t²) dt. It is odd (erf(−x) = −erf(x)), erf(0) = 0, and it tends to 1 as x grows.
It is computed from the standard normal distribution: erf(x) = 2Φ(x√2) − 1, where Φ is the standard normal cumulative distribution function (NIST Digital Library of Mathematical Functions, chapter 7).
The formula
| Symbol | Meaning |
|---|---|
| x (real number) | |
| erf(x) | |
normcdf(x, m, s) | the probability that a Gaussian variable with mean m and standard deviation s is at most x (mean zero and standard deviation one without m and s). |
Worked example
| x (real number) | 0.5 |
|---|
| erfc(x) = 1 − erf(x) | 0.4795 |
|---|---|
| erf(x) to 10 decimals | 0.5204998778 |
erf(x) 0.5205
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is erf(1)?
erf(1) ≈ 0.8427, so erfc(1) ≈ 0.1573.
How is the error function related to the normal distribution?
For a normal variable, the probability of falling within k standard deviations of the mean is erf(k/√2).