What is a P-Value Calculator?
A p-value calculator turns a test statistic into a p-value: the probability, if the null hypothesis H₀ is true, of a result at least as extreme as the one you observed. Enter a z, t, chi-square (χ²), F or Pearson r statistic, pick a left-tailed, right-tailed or two-tailed test, and the calculator returns the exact p-value, shades it on the curve and, if you give α, tells you whether to reject H₀.
What the P-Value Calculator does
Choose the type of statistic, enter its value and degrees of freedom, and pick the tail. The calculator finds the p-value from the correct null distribution, shades that area on the curve, lists the left, right and two-tailed areas, and, if you give α, returns the critical value and the reject or fail-to-reject decision. A table shows the decision at six common α levels at once, and the steps show every area used.
It is the last step of any hypothesis test. Use it to calculate a p-value from a statistic you worked out by hand, when software prints a statistic without a p-value, or to check a reported result such as “t(15) = 2.24, p = .041”. People also look for it as a p value finder, a p score calculator, or a test statistic to p-value calculator; all of them mean the same thing.
No test statistic yet? Start from the data instead: compare two group means with the two-sample t-test calculator, two rates or percentages with the two-proportion z-test calculator, or counts in a table with the chi-square test calculator. Each one reports its own p-value.
How to use the P-Value Calculator
- Select the Type of test statistic: z, t, χ², F or r. The table further down shows which one your test produces.
- Enter the statistic and the fields that appear for it: Degrees of freedom (df) for t and χ², Numerator df (df₁) and Denominator df (df₂) for F, or Sample size (n pairs) for r.
- Choose the Tail. z, t and r default to two-tailed; χ² and F default to right-tailed because that is how goodness-of-fit, independence, ANOVA and regression tests work.
- Optionally enter the Significance level (α). Read the p-value, the decision and the shaded curve, and open the steps to see the probability statement and the areas used.
How to find a p-value from a test statistic
Whether you use this calculator, a printed table or software, finding a p-value always takes the same four steps. The calculator does steps 2 to 4 for you.
- Compute the test statistic from your data, for example t = (x̄ − μ₀) / (s / √n) for a one-sample t-test.
- Identify its null distribution and degrees of freedom: standard normal for z, t(df) for t, χ²(df) for chi-square, F(df₁, df₂) for F.
- Pick the tail from the alternative hypothesis: “less than” is left-tailed, “greater than” is right-tailed, “not equal to” is two-tailed.
- Find the tail area beyond the statistic with the CDF. That area is the p-value; compare it with α to decide.
P-value formulas for each tail
Let X be the statistic’s null distribution, F its cumulative distribution function (CDF) and x the observed value. Every p-value is one of these areas.
| Symbol | Meaning |
|---|---|
| x | observed value of the test statistic |
| X | random variable with the statistic’s null distribution |
| F(x) | cumulative distribution function, P(X ≤ x) |
| df, df₁, df₂ | degrees of freedom that pin down the t, χ² or F distribution |
The p-value is not the probability that H₀ is true. It is the probability of data this extreme if H₀ were true. See What Is a P-Value? Meaning, Calculation and Common Mistakes for a full explanation.
Source for these definitions: the NIST/SEMATECH e-Handbook of Statistical Methods, section 7.1.3.1.
Worked example
Same number, two distributions: t = 2.24 or z = 2.24?
Problem. A regression with 17 observations and one predictor reports a slope t statistic of 2.24 with 15 residual degrees of freedom. Find the two-tailed p-value. What would it be if 2.24 were wrongly treated as a z statistic?
- 01The slope statistic follows a t distribution with df = 15 under H₀: slope = 0.
- 02Two-tailed statement: p = 2 × P(T ≥ 2.24) with T ~ t(15).
- 03Upper-tail area: P(T ≥ 2.24) = 0.020331, so p = 2 × 0.020331 = 0.0407.
- 04As a z statistic: P(Z ≥ 2.24) = 0.012545, so p = 2 × 0.012545 = 0.0251.
Answer. The correct p-value is 0.0407, which is significant at α = 0.05 (the critical t is ±2.1314). Using the normal curve would understate the p-value by more than a third because it ignores the extra uncertainty of estimating the standard error from 17 observations.
Which distribution does my test statistic follow?
The statistic’s name usually tells you the distribution, and the test tells you the degrees of freedom. Use this table to set the calculator up, or open the single-statistic page in the last column for more detail on one distribution.
| Statistic | Null distribution | Parameters | Usual tail | Produced by | Dedicated page |
|---|---|---|---|---|---|
| z | Standard normal | none | any | z-tests for means with known σ, proportion tests, large-sample rank tests | P-value from z |
| t | Student t | df | any | t-tests, regression coefficients | P-value from t |
| χ² | Chi-square | df | right | goodness of fit, independence, one-variance tests (any tail) | P-value from χ² |
| F | F | df₁, df₂ | right | ANOVA, overall regression F, two-variance test (any tail) | P-value from F |
| r | t after conversion | n (df = n − 2) | any | Pearson correlation test of ρ = 0 | r to p-value |
What z, t, χ², F and r statistics measure
Each statistic is a different way of measuring how far the data sit from what H₀ predicts, which is why each needs its own reference curve.
- z score: the distance between an estimate and its hypothesized value in standard errors, when the standard error is known or the sample is large. See the z-score calculator.
- t score: the same distance when the standard error is estimated from the sample. Its curve has heavier tails than the normal curve, and they shrink as df grows.
- χ² statistic: a sum of squared, scaled gaps between observed and expected counts (or a scaled sample variance). It cannot be negative, and bigger means a worse fit to H₀.
- F statistic: a ratio of two variance estimates, such as between-group over within-group variance in ANOVA. Values near 1 agree with H₀.
- Pearson r: the strength of a straight-line relationship, from −1 to 1. Testing ρ = 0 converts r to a t statistic with n − 2 df.
P-value from a mean and standard deviation
A p-value needs a test statistic, so a mean and standard deviation on their own are not enough: you also need the sample size n and the value μ₀ that H₀ claims. Compute t = (x̄ − μ₀) / (s / √n) with df = n − 1, then enter t here. Use z instead when σ is the known population standard deviation.
Example: a sample of n = 36 has mean x̄ = 103 and standard deviation s = 8, and H₀ says μ = 100. Then t = 3 / (8 / √36) = 3 / 1.333 = 2.25 with df = 35, and the two-tailed p-value is 0.0308. The one-sample t-test calculator and one-sample z-test calculator do the whole test from raw numbers or summary statistics.
How strong is the evidence? A p-value chart
The calculator’s interpretation line uses the bands below. They are a reading aid, not a rule: the American Statistical Association’s 2016 statement on p-values warns that a single cut-off such as 0.05 should not decide whether a finding is real.
| p-value | Evidence against H₀ | Often written as |
|---|---|---|
| p ≤ 0.001 | Very strong | p < .001 (***) |
| 0.001 < p ≤ 0.01 | Strong | p < .01 (**) |
| 0.01 < p ≤ 0.05 | Moderate | p < .05 (*) |
| 0.05 < p ≤ 0.10 | Weak | marginal, not significant at 0.05 |
| p > 0.10 | Little or none | n.s. |
P-values in Excel, Google Sheets and on a TI-84
The same areas are available as built-in functions. The Excel formulas work unchanged in Google Sheets. Replace z, t, x, F and df with your own cells or numbers.
| Statistic and tail | Excel or Google Sheets | TI-83 / TI-84 |
|---|---|---|
| z, two-tailed | =2*(1-NORM.S.DIST(ABS(z),TRUE)) | 2 × normalcdf(|z|, 1E99, 0, 1) |
| z, left-tailed | =NORM.S.DIST(z,TRUE) | normalcdf(−1E99, z, 0, 1) |
| t, two-tailed | =T.DIST.2T(ABS(t),df) | 2 × tcdf(|t|, 1E99, df) |
| t, right-tailed | =T.DIST.RT(t,df) | tcdf(t, 1E99, df) |
| χ², right-tailed | =CHISQ.DIST.RT(x,df) | χ²cdf(x, 1E99, df) |
| F, right-tailed | =F.DIST.RT(F,df1,df2) | Fcdf(F, 1E99, df1, df2) |
Two-tailed p-values for χ² and F
The z and t curves are symmetric around 0, so a two-tailed p-value is simply twice the area beyond |statistic|. The χ² and F curves are skewed to the right and start at 0, so there is no mirror-image point. The standard fix is the equal-tail rule: compute both tail areas, take the smaller, and double it. The calculator shades that tail plus an equal area in the opposite tail.
In practice, two-tailed χ² and F p-values are needed only for tests about variances: whether one variance equals a claimed value (χ²) or whether two variances are equal (F). Goodness-of-fit, independence, ANOVA and regression tests measure “how far from H₀” in only one direction, so they are always right-tailed.
Common use cases
- Finishing any hypothesis test computed by hand, from a t-test to a chi-square test or an ANOVA.
- Checking p-values printed in papers or software against the reported statistic and degrees of freedom.
- Getting exact p-values where a printed t-table, chi-square table or F-table would only give a range.
- Getting exact p-values for a fractional df, such as a Welch t-test. Excel’s T.DIST functions truncate df to a whole number; this calculator does not.
- Teaching how the same statistic gives different p-values under different tails and distributions.
Assumptions and limitations
- The p-value is only as good as the assumption that the statistic follows the chosen distribution under H₀. Check the conditions of the original test (independence, normality, expected counts, equal variances).
- Choose the tail before looking at the data. Switching from two-tailed to one-tailed after seeing the result halves the p-value and inflates false positives.
- Running many tests and reporting only the significant ones makes small p-values meaningless; adjust α for multiple comparisons.
- A p-value measures evidence against H₀, not the size or importance of an effect. Report an effect size or a confidence interval as well.
Frequently asked questions
What is a p-value in simple terms?
How do you calculate the p-value?
How do you calculate a p-value from a chi-square (χ²) statistic?
How do I calculate a p-value on a calculator like the TI-84?
How do I know whether to use a one-tailed or two-tailed p-value?
Is a p-value of 0.05 significant?
Why are chi-square and F p-values usually right-tailed?
Can a p-value be greater than 0.5?
What does p < 0.001 mean?
Cite this page
Statculator. (2026, November 14). P-Value Calculator. Retrieved November 14, 2026, from https://statculator.com/p-values-critical-values/p-value-calculator/