Engineering function

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)
ArgumentWhat it means
xRequiredThe 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

B2fx=ERFC(A2)
AB
1x
210.157299

Result: 0.157299

erfc(1) = 1 − erf(1) ≈ 0.157299 (formatted to 6 decimal places).

2Salt penetration into concrete

D2fx=ERFC(A2/(2*SQRT(B2*C2)))
ABCD
1Depth (m)D (m²/s)Time (s)
20.011e-09864000.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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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 as 1-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.

LanguageFunction name
DanishFEJLFUNK.KOMP
DutchFOUT.COMPLEMENT
FinnishVIRHEFUNKTIO.KOMPLEMENTTI
GermanGAUSSFKOMPL
HungarianHIBAF.KOMPLEMENTER
ItalianFUNZ.ERRORE.COMP
Norwegian (Bokmål)FEILFK
PolishKOMP.FUNKCJA.BŁ
Portuguese (Brazil)FUNERROCOMPL
Portuguese (Portugal)FUNCERROCOMPL
RussianДФОШ
SpanishFUN.ERROR.COMPL
SwedishFELFK
TurkishTÜMHATAİŞLEV