Skip to main content

Error Function Calculator

Calculate the inverse error function erf⁻¹(y) and inverse complementary error function erfc⁻¹(y) — solve for x given erf(x) = y or erfc(x) = y. Used in probability, statistics and diffusion/heat-transfer physics.

Input

Output

Result
FunctionValue
No data yet
Was this helpful?

Guides

What does this calculator do?

Enter a value y and a choice of function, and this tool solves for x in either erf(x) = y (the inverse error function, erf⁻¹) or erfc(x) = y (the inverse complementary error function, erfc⁻¹). It's the reverse direction of the more familiar error function: instead of plugging in x to get erf(x)/erfc(x), you supply the output and solve for the input.

How to use it

  1. Choose whether you're solving erf(x) = y or erfc(x) = y.
  2. Enter y — strictly between -1 and 1 for erf⁻¹, or strictly between 0 and 2 for erfc⁻¹ (those are the only values erf/erfc ever actually produce).
  3. Read x from the result table, along with a round-trip check row that plugs x back into the forward function so you can confirm it lands back on y.

The math

erf(x) and erfc(x) have no closed-form inverse, so both are computed via the exact relationship between the error function and the standard normal distribution's quantile function Φ⁻¹ (the "probit" function):

Φ(z) = ½ · (1 + erf(z / √2))

Solving for x when erf(x) = y gives:

erf⁻¹(y) = Φ⁻¹((y + 1) / 2) / √2

and since erfc(x) = 1 − erf(x):

erfc⁻¹(y) = erf⁻¹(1 − y)

Φ⁻¹ itself is evaluated with Peter Acklam's rational approximation, accurate to a relative error under 1.15×10⁻⁹ across the full (0, 1) domain — including the extreme tails, where a lower-precision approach would lose digits.

Relation to the forward functions

If you need erf(x)/erfc(x) directly — plugging in x to get the function's value, rather than solving for x — see the Complementary Error Function Calculator, which covers that forward direction.

Example use cases

  • Probability and statistics — finding the z-score (or an erf-based equivalent) that corresponds to a given tail probability, e.g. working backward from a confidence level to a critical value.
  • Diffusion and heat transfer — solving for the depth or time in a semi-infinite diffusion/conduction problem when the concentration or temperature ratio (expressed via erfc) is already known.
  • Signal processing — recovering the argument of a Q-function or bit-error-rate formula when the error rate itself is the known quantity.

Privacy

All calculations run locally in your browser — your input is never sent to a server.

Related tools

For the forward direction — computing erf(x) and erfc(x) directly from x — see the Complementary Error Function Calculator. For general descriptive statistics, see the Statistics Calculator.

erf inverseerfc inverseinverse error functioninverse complementary error functionerf-1erfc-1quantile functionprobitnormal distributionstatistics

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/error-function-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "erf",
    "y": "0"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `error-function-calculator` tool (Error Function Calculator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/error-function-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Error Function Calculator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per callFrom 5 credits

Also available with

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.