Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Error Function Calculator

x (real number): enter a number. Prefilled example: 0.5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. x (real number): enter a number.
  2. 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

  1. Erf=2×normcdf⁡(x×2,0,1)−1
Symbols used in the formula
SymbolMeaning
xx (real number)
Erferf(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 decimals0.5204998778
  1. Erf=2×normcdf⁡(0.5×2,0,1)−1=0.5205

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).

Related calculators