Error Function Calculator - erf(x) and erfc(x) Values

Use this error function calculator to evaluate erf(x) and the complementary erfc(x) for any real argument, with the normalized Gaussian integral as the backing formula.

Updated: June 16, 2026 • Free Tool

Error Function Calculator

Enter any real number. The error function accepts negative values too: erf(-x) = -erf(x).

Results

erf(x)
0
erfc(x) 0

What Is the Error Function Calculator?

The error function calculator turns a single real argument x into the value of erf(x) and its complement erfc(x), so you can read the normalized Gaussian integral at any x without integrating exp(-t^2) by hand. It is built for the kind of work that comes up in a statistics class, a heat-transfer derivation, a diffusion calculation, or a confidence-interval check on a standard normal sample.

  • Statistics and confidence intervals: Translate a z-score into a two-sided probability using erf(x / sqrt(2)) without keeping a normal table in your head.
  • Physics and heat-equation problems: Evaluate the closed-form solutions to the diffusion and heat equations, which use erf at the spatial argument directly.
  • Probability tail estimates: Read erfc(x) directly when you only care about the small tail beyond |x| under the standard Gaussian.
  • Homework and formula checks: Confirm a hand-computed value against a high-precision reference at common points like 0, 0.5, 1, 1.5, 2, and 3.

erf is a special function, not an elementary one, so there is no closed form for it in terms of the four basic operations. The defining integral is the cleanest description, and the calculator evaluates a numerical approximation that matches the values in NIST tables to four decimal places.

Because erf is odd, erf(-x) = -erf(x), the same numerical approximation works for negative arguments. The complementary erfc(x) = 1 - erf(x) is computed at the same time, so the two values always sum to exactly 1 to the displayed precision.

Because erf is the rescaled normal CDF, the Normal Distribution Calculator is the natural next step when you also need full probability density and tail values.

How the Calculator Works

The calculator uses the standard integral definition of erf and a published numerical approximation to evaluate erf(x) for any real x. It then returns the complementary value as 1 - erf(x), so the two outputs always add up to 1 to the displayed precision.

erf(x) = (2/sqrt(pi)) * integral from 0 to x of exp(-t^2) dt | erfc(x) = 1 - erf(x)
  • x: The real argument you enter. Negative values are allowed and use the symmetry erf(-x) = -erf(x).
  • exp(-t^2): The Gaussian kernel inside the integral. It is symmetric about t = 0 and peaks at t = 0 with value 1.
  • sqrt(pi): The normalization constant. The factor 2/sqrt(pi) rescales the Gaussian area so that erf(x) approaches 1 as x grows.

The defining integral makes erf easy to read off a plot. erf(0) is 0 because the integral limits coincide, erf(1) is roughly 0.8427 because exp(-t^2) is large across most of [0, 1], and erf(2) is roughly 0.9953 because almost the entire Gaussian mass sits inside [-2, 2].

The numerical routine behind the form uses a high-precision polynomial approximation that is accurate across the whole real line, so the displayed 4-decimal value matches the NIST DLMF tables for any x in the range you are likely to type.

erf at x = 1

Argument x = 1.

erf(1) = (2/sqrt(pi)) * integral from 0 to 1 of exp(-t^2) dt ≈ 0.8427. erfc(1) = 1 - 0.8427 ≈ 0.1573.

erf(1) ≈ 0.8427, erfc(1) ≈ 0.1573.

This is the canonical reference point used in heat-equation solutions and statistics tables; about 84.27% of the Gaussian mass between 0 and 1 is captured.

According to Wikipedia (Error function), erf is defined as erf(x) = (2/sqrt(pi)) * integral from 0 to x of exp(-t^2) dt, with erfc(x) = 1 - erf(x)

When a z-score from a hypothesis test is what you actually need, the Critical Value Calculator turns a confidence level into a critical z value without re-deriving erf.

Key Concepts Behind erf

Four ideas explain why erf is shaped the way it is and why it shows up in so many probability and physics formulas.

Gaussian Kernel

The integrand exp(-t^2) is a bell-shaped curve symmetric about 0. Its total area is sqrt(pi), which is exactly the constant used to normalize erf into the (-1, 1) range.

Odd Symmetry

erf(-x) = -erf(x) because the Gaussian is symmetric and the integral flips sign when the lower and upper limits swap. This means the whole erf curve is determined by its values for x >= 0.

Probability Interpretation

For a standard normal variable Z, P(|Z| <= x * sqrt(2)) = erf(x). erf is therefore the rescaled normal CDF difference, which is why erf and the normal distribution show up together in statistics.

Taylor Series

erf(x) = (2/sqrt(pi)) * (x - x^3/3 + x^5/10 - x^7/42 + ...). The series converges for all real x, which is the basis for the numerical approximations used in software and calculators.

These four ideas are enough to read any result. If you know the value of erf at a non-negative x, you have it for negative x by odd symmetry, and you have erfc(x) by the complement rule.

Because erf gives the two-sided normal probability directly, the P-Value Calculator is the natural tool when you need a numerical p-value for a test statistic.

How to Use This Calculator

Four short steps take you from a real number x to both erf and the complementary value.

  1. 1 Enter the argument: Type a real number into the x field. The default of 1 is a useful starting point that returns the well-known erf(1) ≈ 0.8427 reference value.
  2. 2 Read erf(x): The first result is the value of erf at x, always between -1 and 1. Use it when you need the cumulative Gaussian integral rescaled into the erf range.
  3. 3 Read erfc(x): The second result is 1 - erf(x), so it is the tail probability when the integration range is [x, infinity). For x at or above 2, erfc gets very small and is best read off a high-precision tool.
  4. 4 Cross-check with the normal distribution: If you came from a z-score, remember that Phi(z) - 0.5 = 0.5 * erf(z / sqrt(2)). Plug z / sqrt(2) into x to read the two-sided probability at the same time.

Example: a one-tailed z-test at z = 1.96 needs 1 - Phi(1.96) ≈ 0.025. Since Phi(z) - 0.5 = 0.5 * erf(z / sqrt(2)), you can read the result from this calculator with x = 1.96 / sqrt(2) ≈ 1.385, then halve the difference from 0.5.

For ANOVA and variance ratio work where the tail is the F-distribution rather than the Gaussian, the F-Distribution Calculator sits next to this erf tool in the same family of calculators.

Benefits of Using This Calculator

What you actually get when you use this tool instead of evaluating the integral by hand or scanning a table.

  • Two function values from one input: erf(x) and erfc(x) come out of the same x, so you do not have to remember whether to look up the main or the complementary entry in a table.
  • Works for any real x: Negative arguments are handled by the odd symmetry, and large positive arguments return values very close to 1 (or 0 for erfc) without overflowing the displayed precision.
  • Matches NIST DLMF to four decimals: The numerical routine matches the values tabulated in the NIST Digital Library of Mathematical Functions to four decimal places across the typical range of x.
  • Live recalculation as you type: Every change to x updates both results immediately, which is useful when you are iterating through a problem and want to see how the curve moves.
  • Clean link to the normal distribution: erf is the building block of the standard normal CDF, so the result connects directly to confidence intervals and p-values without a separate conversion step.

For students and engineers who only need four-decimal accuracy, the calculator removes the need to keep a printed table or a separate software package open while you are working through a problem.

If your probability question is about counts and rates instead of the Gaussian tail, the Poisson Distribution Calculator covers the discrete Poisson case with the same one-form workflow.

Factors That Affect Your Results

A few practical things decide which output to read, what to expect as x grows, and how to interpret erf in a probability context.

erf vs erfc

Use erf(x) when the question is about the cumulative Gaussian probability in [-x, x], which is the form needed for two-sided confidence intervals and symmetric probability statements. Use erfc(x) when the question is about the upper tail from x to infinity, which is the form needed for one-sided p-values, threshold probabilities, and reliability calculations. Both are computed in the same pass, so the choice is purely about which form of the answer the problem asks for.

Sign of x

Negative x flips the sign of erf(x) by odd symmetry, and erfc(-x) = 2 - erfc(x). Many textbook problems restrict x to non-negative values, but the calculator accepts any real number.

Magnitude of x

For small |x|, erf(x) ≈ (2/sqrt(pi)) * x. For x > 2, erf(x) is within a few percent of 1 and erfc(x) drops below 0.005, so four-decimal output is no longer enough for tail probabilities below 1e-3. For x < -2 the picture is mirrored by odd symmetry, with erf(x) approaching -1 and erfc(x) growing above 1 toward 2 rather than toward 0.

  • The numerical approximation is tuned for typical x values in the (-3, 3) range. Outside that range the rounded four-decimal output may hide a meaningful tail, so use a higher-precision tool for very small erfc values.
  • The calculator reports erf and erfc only; the inverse functions erf-inverse(x) and erfc-inverse(x) require a different numerical routine and are not included here.

These caveats are the same ones that apply to any tabulated erf value. They matter most when the problem depends on the small tail, which is where the rounded four-decimal display loses information.

According to Wolfram MathWorld, erf(1) = 0.8427007929 and erf is the cumulative integral of the standard Gaussian exp(-t^2)

According to NIST Digital Library of Mathematical Functions, erf is the normalized Gaussian integral and DLMF Chapter 7 is the standard reference for its series, asymptotics, and numerical values

For the same kind of tabulated special-function work on a different family of functions, the Bessel Function calculator returns J_n(x) for the first kind of Bessel functions at integer order and real argument, and is a peer of this erf tool in the math and conversion family.

Error function calculator showing erf(x) and erfc(x) values from a single real input, with tabulated reference points from 0 to 3.
Error function calculator showing erf(x) and erfc(x) values from a single real input, with tabulated reference points from 0 to 3.

Frequently Asked Questions

Q: What is the error function?

A: The error function erf(x) is the special function defined as (2/sqrt(pi)) times the integral of exp(-t^2) from 0 to x. It maps the real line into (-1, 1) and shows up in probability, the heat equation, and diffusion problems.

Q: What is the complementary error function (erfc)?

A: The complementary error function is defined as erfc(x) = 1 - erf(x). It is the same Gaussian area as erf, but starting at x and going to infinity, so it is useful for tail probabilities in the standard normal distribution.

Q: What is erf of 0, 1, 2, and 3?

A: The standard tabulated values are erf(0) = 0, erf(1) ≈ 0.8427, erf(2) ≈ 0.9953, and erf(3) ≈ 1 to four decimal places. The complementary values are 1, 0.1573, 0.0047, and 0 respectively.

Q: Why is the error function important in statistics?

A: For a standard normal variable Z, the probability that |Z| is at most x * sqrt(2) equals erf(x). That link is why erf appears in confidence intervals, p-values, and many distribution calculators.

Q: How is the error function related to the normal distribution?

A: The error function is the rescaled cumulative normal distribution. If Phi(z) is the standard normal CDF, then Phi(z) - 0.5 = 0.5 * erf(z / sqrt(2)), so erf is a closed form for normal tail and two-sided probabilities.

Q: Can the error function be written as a Taylor series?

A: Yes. erf(x) = (2/sqrt(pi)) * (x - x^3/3 + x^5/10 - x^7/42 + ...). The series converges for all real x, and the first few terms already give a useful approximation for |x| below 1.