ERFC function
Returns the complementary error function, erfc(x) = 1 − erf(x), integrated from x to infinity.
Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac (negative x is accepted from Excel 2010; earlier versions returned #NUM!)
Excel 2007 and laterWorks in Google Sheets
Syntax
ERFC(x)| Argument | What it means | |
|---|---|---|
x | Required | The lower limit of integration (the upper limit is infinity). |
Returns: A number between 0 and 2.
How ERFC works
ERFC returns the complementary error function, 1 − erf(x). Where ERF measures the area from 0 to x, ERFC measures what is left in the tail beyond x. It is the standard function in diffusion problems: the concentration of a chemical that has soaked into a material, or the temperature inside a wall after its surface suddenly heats up, follows C/C0 = erfc(depth / (2·√(D·t))).
erfc(0) is 1 and the value falls towards 0 as x grows; for negative x it rises towards 2. Computing the tail directly is more accurate than 1-ERF(x) when x is large, because the subtraction loses precision once erf(x) is very close to 1.
Examples
1Complementary error function at 1
| A | B | |
|---|---|---|
| 1 | x | |
| 2 | 1 | 0.157299 |
Result: 0.157299
erfc(1) = 1 − erf(1) ≈ 0.157299 (formatted to 6 decimal places).
2Salt penetration into concrete
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Depth (m) | D (m²/s) | Time (s) | |
| 2 | 0.01 | 1e-09 | 86400 | 0.4468 |
Result: 0.4468
With a diffusion coefficient of 1E-9 m²/s, after one day (86,400 s) the relative concentration 1 cm below the surface is erfc(0.01 / (2·√0.0000864)) ≈ 0.4468 (formatted to 4 decimals): about 45% of the surface level.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | x is non-numeric text. | Check the input. |
#NUM! | In Excel 2007 and earlier, x was negative. | Use 2-ERFC(ABS(x)) in old versions. |
Tips
- Prefer ERFC(x) to
1-ERF(x)for large x; it keeps precision in the tail. - The normal right-tail probability for z is
ERFC(z/SQRT(2))/2, the same as1-NORM.S.DIST(z,TRUE).
Google Sheets
ERFC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
ERFC in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | FEJLFUNK.KOMP |
| Dutch | FOUT.COMPLEMENT |
| Finnish | VIRHEFUNKTIO.KOMPLEMENTTI |
| German | GAUSSFKOMPL |
| Hungarian | HIBAF.KOMPLEMENTER |
| Italian | FUNZ.ERRORE.COMP |
| Norwegian (Bokmål) | FEILFK |
| Polish | KOMP.FUNKCJA.BŁ |
| Portuguese (Brazil) | FUNERROCOMPL |
| Portuguese (Portugal) | FUNCERROCOMPL |
| Russian | ДФОШ |
| Spanish | FUN.ERROR.COMPL |
| Swedish | FELFK |
| Turkish | TÜMHATAİŞLEV |