Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

P-Value & Critical Value Calculator

Turn a z, t, χ², F or r statistic into a p-value, or find the critical value for any α.

Math No upload Works offline Free preview, no sign-upIncluded in your pass Pro tool Pro pass: ₹179 for 30 days

Try before you buy.

  • Free preview: a watermarked chart of the distribution and the names of each table’s first rows (up to 3), with the value you asked for, the working and every figure hidden.
  • Locked until you unlock it: download and copy.
  • Unlock: Pro pass, ₹179 for 30 days, a one-time payment that never renews.

Ways to unlock shows how to get the full result.

See passes (opens in a new tab)

Printing this result is locked in the free preview.

What do you want to find?
Common α:

Result

P-value

Next steps

About the P-Value & Critical Value Calculator

Type a test statistic — z, t, χ², F or Pearson’s r — with its degrees of freedom, choose the tail that matches your alternative hypothesis, and get the p-value: the probability, if the null hypothesis were true, of a statistic at least as extreme as yours. The page also gives both tail areas, the decision at your significance level α and a chart of the distribution with the p-value area and the rejection region shaded.

Switch to Critical value to find the cut-off for any α — two-tailed, right-tailed or left-tailed — or to Tables for complete z, t, χ², F and r tables, for every α and any number of degrees of freedom you would otherwise look up in a printed book. Probabilities are worked out from the regularized incomplete beta and gamma functions, so they stay precise far into the tails, where printed tables stop.

How to use it

  1. Choose P-value, Critical value or Tables.
  2. Pick the distribution your statistic follows and type its degrees of freedom: ν for t, k for χ², d₁ and d₂ for F, or the number of pairs n for a correlation r.
  3. Type the statistic, choose the tail (two-tailed for “≠”, right-tailed for “>”, left-tailed for “<”) and the significance level α, such as 0.05.
  4. Read the p-value, whether it is significant at α, the working and the chart; hover over or focus the curve to read the tail areas at any point.
  5. Copy the result or download the chart or a table as CSV — with a Pro pass or after unlocking this result; without one you see the free preview.

Examples

A t-test
Input
t = 2.31 with 15 degrees of freedom, two-tailed
Result
p = 0.03553 (2 × 0.0177652): significant at α = 0.05
A z-score
Input
z = 1.96, two-tailed
Result
p = 0.04999579

The familiar 5 % cut-off: 1.96 is the two-tailed critical value of z.

A chi-square test
Input
χ² = 19.18 with 6 degrees of freedom, right-tailed
Result
p = 0.003870

The contingency-table example of the NIST/SEMATECH e-Handbook, which reports p = 0.00387.

An F statistic
Input
F = 3.71 with d₁ = 3 and d₂ = 10, right-tailed
Result
p = 0.04994
A correlation
Input
r = 0.45 from n = 30 pairs, two-tailed
Result
t = 2.6664 with 28 df, p = 0.01259
A critical value
Input
Student’s t, ν = 10, two-tailed, α = 0.05
Result
t = ±2.228139

Common uses

  • Getting the exact p-value of a t, z, chi-square or F statistic from a paper, a homework question or software output that gives only the statistic.
  • Finding critical values for any α and degrees of freedom, including the ones printed tables leave out (ν = 37, α = 0.002).
  • Testing whether a correlation coefficient differs from zero, from r and the number of pairs.
  • Checking a two-tailed against a one-tailed result, or seeing the rejection region of a test on a chart.

How the p-value is computed

  • z: Φ(z) = ½·[1 + erf(z/√2)]; the right tail is 1 − Φ(z), worked out directly so that P(Z ≥ 10) = 7.62 × 10⁻²⁴ keeps its digits.
  • t with ν degrees of freedom: P(|T| ≥ |t|) = I_x(ν/2, ½) with x = ν/(ν + t²), where I is the regularized incomplete beta function (NIST DLMF §8.17). One tail is half of it.
  • χ² with k degrees of freedom: P(χ² ≤ x) = P(k/2, x/2), the regularized lower incomplete gamma function (NIST DLMF §8.2); the right tail is Q(k/2, x/2).
  • F with d₁ and d₂ degrees of freedom: P(F ≤ x) = I_y(d₁/2, d₂/2) with y = d₁x/(d₁x + d₂).
  • Pearson’s r from n pairs: t = r·√(n − 2)/√(1 − r²), which follows a t distribution with n − 2 degrees of freedom when the true correlation is zero.

The distributions are those of the NIST/SEMATECH e-Handbook (t, chi-square, F). Each tail is computed from its own formula, never as 1 minus a number close to 1, and a p-value too small for a computer’s numbers (below about 10⁻³⁰⁸) is shown from its logarithm instead of as 0.

One-tailed or two-tailed?

Use the tail your alternative hypothesis points to, chosen before you see the data. For “the mean differs from 50” (≠) use two-tailed: extreme values in either direction count against the null hypothesis, so the p-value is twice the area beyond |t|. For “the mean is greater than 50” (>) use right-tailed, and for “less than” (<) left-tailed.

Chi-square tests of independence and goodness of fit, and F tests in ANOVA and regression, are right-tailed: only large values of the statistic count against the null hypothesis. A two-tailed χ² or F p-value — twice the smaller tail — belongs to tests of one variance or of two variances against “not equal”.

Critical values and printed tables

A critical value cuts off an area α in the rejection region: for a two-tailed t-test at α = 0.05 with 10 degrees of freedom it is t = ±2.228 (2.5 % in each tail), and you reject the null hypothesis when |t| ≥ 2.228. A p-value and a critical value always agree: p ≤ α exactly when the statistic falls in the rejection region.

The Tables view rebuilds the classic tables in full: t (ν = 1 to 30 and up to ∞, one-tailed α from 0.25 to 0.0005 with the two-tailed equivalents), χ² (k = 1 to 100, areas from 0.995 to 0.001), F for six values of α (d₁ and d₂ from 1 to ∞) and critical values of r for n = 3 to 1,000. They agree with the printed tables of the NIST/SEMATECH e-Handbook; in the few cells where the last digit differs — F(0.01; 2, 1) is exactly 4999.5, printed there as 4999.52 — the printed figure is the one that is off.

What a p-value does not tell you

The statement on p-values of the American Statistical Association lists the usual misreadings. A p-value says how incompatible the data are with the null hypothesis; it is not the probability that the null hypothesis is true, and it does not measure the size or the importance of an effect — a tiny, unimportant difference gives a tiny p-value in a large enough sample. Report the effect size and a confidence interval with it, and decide on more than whether p falls below 0.05.

Limitations

  • Degrees of freedom can be any number from 0.1 to 10,000,000, with decimals (Welch’s t-test gives them). Beyond that t, χ² and F are practically their normal limits.
  • Results carry 13 to 15 significant digits for the usual degrees of freedom and about 10 above 100,000; the page shows 4 to 8 of them.
  • The calculator turns a statistic into a probability. It cannot check the assumptions of the test that produced the statistic — normal data for a t-test, large enough expected counts for a χ² test, independent observations.
  • The r test is the one for Pearson’s correlation; for Spearman’s rank correlation it is an approximation that is fine from about 10 pairs.

Privacy

Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

Frequently asked questions

What do I get without a pass?

Without a pass, P-Value & Critical Value Calculator shows a watermarked chart of the distribution and the names of each table’s first rows (up to 3), with the value you asked for, the working and every figure hidden. Until you unlock it, the result can’t be downloaded or copied. A Pro, Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.

How do I find the p-value from a t-statistic?

Choose Student’s t, type t and the degrees of freedom (n − 1 for a one-sample or paired test, n₁ + n₂ − 2 for the pooled two-sample test, or the Welch value) and pick the tail. For t = 2.31 with 15 degrees of freedom the two-tailed p-value is 0.03553 and the right-tailed one is 0.01777.

What is the difference between a one-tailed and a two-tailed p-value?

A one-tailed p-value counts only results more extreme in the direction of the alternative hypothesis; a two-tailed one counts both directions, so for z and t it is twice the one-tailed value. z = 1.96 gives 0.025 one-tailed and 0.05 two-tailed.

What is the critical value of z or t for 95 % confidence?

For a two-sided 95 % interval or a two-tailed test at α = 0.05, z = 1.959964 (1.96) and t = 2.228 with 10 degrees of freedom, 2.042 with 30 and 1.984 with 100. A one-sided 95 % bound uses z = 1.645. Choose Critical value to get any of them.

Why is the chi-square p-value right-tailed?

In tests of independence and goodness of fit, χ² grows as observed counts move away from the expected ones, so only large values are evidence against the null hypothesis; a small χ² means a close fit. The p-value is therefore the area to the right of your χ².

Can a p-value be exactly 0?

No, but it can be extremely small: the right-tail area beyond t = 100 with 1,000 degrees of freedom is about 2.66 × 10⁻⁵²³, far below what most software can store, which is why programs print 0 or “< 2.2e−16”. The calculator works with the logarithm in that range, so it still shows the digits.

What does p < 0.05 mean?

That a statistic at least as extreme as yours would occur less than 5 % of the time if the null hypothesis were true, so at the 5 % significance level you reject the null hypothesis. It does not mean there is a 95 % chance that your hypothesis is right.

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.