DI Management Home > Mathematics > Chi-square calculator

Chi-square calculator


To view the graph of the χ2 distribution for your calculated values, click on the show graph button after doing the calculation.

Compute the p-value for a chi-square distribution

Recommended reading

Affiliate disclosure: we get a small commission for purchases made through the above links

(χ2 ≥ 0)
(ν an integer > 0)
   
p-value

The p-value is the area under the chi-square probability density function (pdf) curve to the right of the specified χ2 value. In Excel: p = CHIDIST(χ2,ν).

See Chi-square formulae for more details of the mathematics.

Compute the inverse of the p-value for a chi-square distribution

(0 < p ≤ 1)
(ν an integer > 0)
   

This is the value of χ2 that will give the specified p-value for the chi-square distribution. In Excel: χ2 = CHIINV(p,ν).

Table of selected percentiles

See a table of selected percentiles of the chi-square distribution computed using the Javascript calculation engine behind this page. This is the usual table we see in textbooks. You can see a comparison of our results with those given by Excel.

Other statistical calculators

Binomial distribution graph

See our Binomial distribution calculator which calculates a table of the binomial distribution for given parameters and displays graphs of the distribution function, f(x), and cumulative distribution function, F(x).

 

An aside on Post-Quantum Cryptography

Are you interested in Post-Quantum Cryptography (PQC)? Then see our pages
  • SLA-DSA A Stateless Hash-Based Digital Signature Standard now standardised as FIPS.205. We take an in-depth look at the calculations required to compute a specific SLH-DSA signature.
  • A simple lattice-based encryption scheme, the foundation of the post-quantum cryptosystem ML-KEM Module-Lattice-based Key-Encapsulation Mechanism Standard (formerly CRYSTALS-Kyber), with Python code.
  • CryptoSys PQC is a programmers library that provides support for all three NIST-approved Post Quantum Cryptography (PQC) algorithms: ML-KEM, ML-DSA and SLH-DSA. It has interfaces for C#, VB.NET, C++ (STL), Python, golang and ANSI C, and is free. Download a copy here...

References

Acknowledgements

Many thanks to Phil O'Sullivan, statistician extraordinaire, for his help and advice on this subject.

Rate this page

Contact us

To comment or provide feedback on this page, please send us a message.

This page last updated 10 March 2026.