Error Function Calculator screenshot

Error Function Calculator

Evaluate erf(x), erfc(x) and Φ(x) with the Abramowitz and Stegun approximation and a stated error bound.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Exact where arithmetic allows

Error Function Calculator

Evaluate erf(x), erfc(x) and Φ(x) with the Abramowitz and Stegun approximation and a stated error bound.

What the page prints, and what it refuses

Every figure is printed with the rule or formula that produced it, and any numerical tolerance is stated on the result rather than implied. The page refuses an input the formula does not define and names the value it read; it prints no answer it cannot support.

The calculation runs entirely in this browser tab; nothing is uploaded.

The error function is the integral of the bell curve, scaled so that erf(∞) = 1. At x = 1 it is 0.84270069, and erfc(1) is 0.15729931; the two add to exactly 1 because that is their definition.

The page also prints Φ(x), the standard normal CDF, which is (1 + erf(x/√2)) ÷ 2. The approximation is Abramowitz and Stegun 7.1.26, with absolute error below 1.5 × 10⁻⁷, so four printed decimals are safe.

Why four decimals and not fifteen

The 7.1.26 formula is a rational approximation to exp(−x²) times a polynomial in t = 1/(1 + 0.3275911x). Its absolute error is below 1.5 × 10⁻⁷, which supports four correct decimals comfortably and eight printed digits as a guide.

The page prints eight digits and states the bound, so a reader who needs more precision knows to use a different tool. It does not print fifteen digits that the method cannot support.

How to use Error Function Calculator

Enter a real x and press Run.

The result prints erf(x), erfc(x) and Φ(x), followed by the method and its error bound.

What to Expect

Best for

  • Evaluating erf or the normal CDF
  • Checking a probability against a table
  • Seeing the exact complement erfc = 1 − erf

Not ideal for

  • Precision beyond about seven decimals
  • Complex arguments
  • An inverse erf, which is a different function

What this tool keeps

  • x as entered

What may need cleanup

  • Nothing: the three values are final doubles

Common errors

  • A non-numeric x is refused by name
  • An empty input is refused with the expected format

Example use cases

  • Check erf(1)
  • Evaluate Φ(1.96)
  • See that erf and erfc sum to 1

Sample input

x = 1

Sample output

erf(1) = 0.84270069, erfc(1) = 0.15729931 and Φ(1) = 0.79793969

Who this is for

  • Statistics students
  • Readers checking a normal-table entry

Frequently asked questions

Why do erf and erfc sum to 1?

erfc is defined as 1 − erf, so the sum is 1 by definition rather than by approximation. The page computes erfc that way and says so.

How is Φ related to erf?

The standard normal CDF is Φ(x) = (1 + erf(x/√2)) ÷ 2. The page prints it from the same erf value, so the two lines cannot disagree.

Is the answer exact?

No. The page prints an approximation with a stated absolute error below 1.5 × 10⁻⁷, which is why it stops at four reliable decimals.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.