CHISQ.DIST
Quirk foundCategory: Statistical · Last tested 2026-09-01
Real compatibility results for the CHISQ.DIST function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-31) | Quirk found |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when CHISQ.DIST’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Quirk found | 2026-08-31 |
| 24.8.7.2 | Quirk found | 2026-08-31 |
| 25.2.0.3 | Quirk found | 2026-08-31 |
| 25.8.7.3 | Quirk found | 2026-08-31 |
Why isn't CHISQ.DIST working in LibreOffice?
CHISQ.DIST exists in LibreOffice 25.8.7.3, but it is not a drop-in match for
Excel — our executed tests found real behavioral differences (detailed in the test results on this
page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage
against the failing cases above before assuming your data is wrong.
Discovered quirks
-
=CHISQ.DIST(-1,3,TRUE) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Excel documents: "If x is negative, CHISQ.DIST returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
-
=CHISQ.DIST(0.5,0,TRUE) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Excel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.DIST returns the #NUM! error value."; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
Executed test cases
Excel for the web (executed 2026-09-01 via OneDrive recalculation)
These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(CHISQ.DIST(0.5,1,TRUE),8) | Microsoft's first documented worked example: the cumulative chi-squared distribution at x=0.5 with 1 degree of freedom | 0.52049988 | 0.52049988ProvenanceMicrosoft's page publishes this example's result as 0.52049988. Independently derived from the documented cumulative form: scipy.stats.chi2.cdf(0.5, 1) = 0.5204998778130466 -> 0.52049988 at 8 dp. Equivalently 2*Phi(sqrt(0.5)) - 1, since a chi-squared variate with 1 degree of freedom is the square of a standard normal |
Matched |
| =ROUND(CHISQ.DIST(2,3,FALSE),8) | Microsoft's second documented worked example: the chi-squared probability density at x=2 with 3 degrees of freedom | 0.20755375 | 0.20755375ProvenanceMicrosoft's page publishes this example's result as 0.20755375. Independently derived from the documented density form: scipy.stats.chi2.pdf(2, 3) = 0.2075537487102974 -> 0.20755375 at 8 dp. Equivalently x^(df/2-1)*e^(-x/2) / (2^(df/2)*Gamma(df/2)) = sqrt(2)*e^(-1)/(2^1.5*Gamma(1.5)) |
Matched |
| =ROUND(CHISQ.DIST(2,3.7,FALSE),8) | A non-integer degrees-of-freedom argument, which the documentation says is truncated | 0.20755375 | 0.20755375ProvenanceExcel documents "If deg_freedom is not an integer, it is truncated", so 3.7 must behave exactly as 3 and return the documented 0.20755375. Independently checked that this discriminates: a genuine 3.7 degrees of freedom would give chi2.pdf(2, 3.7) = 0.194519 |
Matched |
| =CHISQ.DIST(-1,3,TRUE) | A negative x value | #NUM! | #NUM!ProvenanceExcel documents: "If x is negative, CHISQ.DIST returns the #NUM! error value." |
Matched |
| =CHISQ.DIST(0.5,0,TRUE) | Zero degrees of freedom | #NUM! | #NUM!ProvenanceExcel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.DIST returns the #NUM! error value." |
Matched |
| =CHISQ.DIST("abc",3,TRUE) | A non-numeric x argument | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, CHISQ.DIST returns the #VALUE! error value." |
Matched |
Google Sheets (executed 2026-08-31 via Drive import)
Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(CHISQ.DIST(0.5,1,TRUE),8) | Microsoft's first documented worked example: the cumulative chi-squared distribution at x=0.5 with 1 degree of freedom | 0.52049988 | 0.52049988ProvenanceMicrosoft's page publishes this example's result as 0.52049988. Independently derived from the documented cumulative form: scipy.stats.chi2.cdf(0.5, 1) = 0.5204998778130466 -> 0.52049988 at 8 dp. Equivalently 2*Phi(sqrt(0.5)) - 1, since a chi-squared variate with 1 degree of freedom is the square of a standard normal |
Matched |
| =ROUND(CHISQ.DIST(2,3,FALSE),8) | Microsoft's second documented worked example: the chi-squared probability density at x=2 with 3 degrees of freedom | 0.20755375 | 0.20755375ProvenanceMicrosoft's page publishes this example's result as 0.20755375. Independently derived from the documented density form: scipy.stats.chi2.pdf(2, 3) = 0.2075537487102974 -> 0.20755375 at 8 dp. Equivalently x^(df/2-1)*e^(-x/2) / (2^(df/2)*Gamma(df/2)) = sqrt(2)*e^(-1)/(2^1.5*Gamma(1.5)) |
Matched |
| =ROUND(CHISQ.DIST(2,3.7,FALSE),8) | A non-integer degrees-of-freedom argument, which the documentation says is truncated | 0.20755375 | 0.20755375ProvenanceExcel documents "If deg_freedom is not an integer, it is truncated", so 3.7 must behave exactly as 3 and return the documented 0.20755375. Independently checked that this discriminates: a genuine 3.7 degrees of freedom would give chi2.pdf(2, 3.7) = 0.194519 |
Matched |
| =CHISQ.DIST(-1,3,TRUE) | A negative x value | #NUM! | #NUM!ProvenanceExcel documents: "If x is negative, CHISQ.DIST returns the #NUM! error value." |
Matched |
| =CHISQ.DIST(0.5,0,TRUE) | Zero degrees of freedom | #NUM! | #NUM!ProvenanceExcel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.DIST returns the #NUM! error value." |
Matched |
| =CHISQ.DIST("abc",3,TRUE) | A non-numeric x argument | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, CHISQ.DIST returns the #VALUE! error value." |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(CHISQ.DIST(0.5,1,TRUE),8) | Microsoft's first documented worked example: the cumulative chi-squared distribution at x=0.5 with 1 degree of freedom | 0.52049988 | 0.52049988ProvenanceMicrosoft's page publishes this example's result as 0.52049988. Independently derived from the documented cumulative form: scipy.stats.chi2.cdf(0.5, 1) = 0.5204998778130466 -> 0.52049988 at 8 dp. Equivalently 2*Phi(sqrt(0.5)) - 1, since a chi-squared variate with 1 degree of freedom is the square of a standard normal |
Matched |
| =ROUND(CHISQ.DIST(2,3,FALSE),8) | Microsoft's second documented worked example: the chi-squared probability density at x=2 with 3 degrees of freedom | 0.20755375 | 0.20755375ProvenanceMicrosoft's page publishes this example's result as 0.20755375. Independently derived from the documented density form: scipy.stats.chi2.pdf(2, 3) = 0.2075537487102974 -> 0.20755375 at 8 dp. Equivalently x^(df/2-1)*e^(-x/2) / (2^(df/2)*Gamma(df/2)) = sqrt(2)*e^(-1)/(2^1.5*Gamma(1.5)) |
Matched |
| =ROUND(CHISQ.DIST(2,3.7,FALSE),8) | A non-integer degrees-of-freedom argument, which the documentation says is truncated | 0.20755375 | 0.20755375ProvenanceExcel documents "If deg_freedom is not an integer, it is truncated", so 3.7 must behave exactly as 3 and return the documented 0.20755375. Independently checked that this discriminates: a genuine 3.7 degrees of freedom would give chi2.pdf(2, 3.7) = 0.194519 |
Matched |
| =CHISQ.DIST(-1,3,TRUE) | A negative x value | #VALUE! | #NUM!ProvenanceExcel documents: "If x is negative, CHISQ.DIST returns the #NUM! error value." |
Mismatch |
| =CHISQ.DIST(0.5,0,TRUE) | Zero degrees of freedom | #VALUE! | #NUM!ProvenanceExcel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHISQ.DIST returns the #NUM! error value." |
Mismatch |
| =CHISQ.DIST("abc",3,TRUE) | A non-numeric x argument | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, CHISQ.DIST returns the #VALUE! error value." |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation