Use this free p value calculator to turn a test statistic into a p-value. Enter your t-statistic and degrees of freedom, and see whether your result is statistically significant.
P-value Calculator
Turn a z or t statistic into an exact p-value — left, right or two-tailed — using the real t distribution, not a normal approximation.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · P-value Result
Calculated locally in your browser
—
Name
—
Test statistic (z or t)
—
Degrees of freedom (t test only)
—
Test type
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
A p-value is the probability, if the null hypothesis were true, of a test statistic at least as extreme as the one observed. Enter a z statistic to use the standard normal curve, or a t statistic with its degrees of freedom to use the t distribution, then choose left, right or two tails to get the exact probability.
- z = 1.96 gives two-tailed p = 0.05 exactly on the normal curve
- t with df 10 needs |t| = 2.228 for two-tailed p = 0.05
- p is not the probability that the null hypothesis is true
Two-tailed critical values (p = 0.05)
Reference values for this calculator.
| Distribution | Critical |statistic| |
|---|---|
| z (normal) | 1.960 |
| t, df = 30 | 2.042 |
| t, df = 10 | 2.228 |
| t, df = 4 | 2.776 |
| t, df = 2 (p = 0.01) | 9.925 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Enhancement: implements the t distribution properly with the regularised incomplete beta function (continued-fraction), verified against published t-tables — df 10 at t = 2.228 gives two-tailed p = 0.05 — instead of approximating t with z, which understates p on small samples.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Textbook z boundary
statistic = 1.96, df = 10, testType = z, tail = two
| Calculation | Steps |
|---|---|
| CDF at statistic 1.96 = 0.975 p-value (two tail) = 0.05 Compare with α: p < 0.05 → reject the null hypothesis at the 5% level | p = 0.05 — Test: z statistic 1.96; Tail: Two-tailed; Significant at α = 0.05?: Yes |
Result
Example 2
t-table anchor, df 10
statistic = 2.228, df = 10, testType = t, tail = two
| Calculation | Steps |
|---|---|
| CDF at statistic 2.228 = 0.975 p-value (two tail) = 0.05 Compare with α: p ≥ 0.05 → not significant at the 5% level | p = 0.05 — Test: t, df = 10 statistic 2.228; Tail: Two-tailed; Significant at α = 0.05?: No |
Result
Example 3
Right-tailed z for a growth claim
statistic = 2.5, df = 10, testType = z, tail = right
| Calculation | Steps |
|---|---|
| CDF at statistic 2.5 = 0.9938 p-value (right tail) = 0.0062 Compare with α: p < 0.05 → reject the null hypothesis at the 5% level | p = 0.0062 — Test: z statistic 2.5; Tail: Right-tailed; Significant at α = 0.05?: Yes |
Result
How to use this calculator
Step 1
Compute your test statistic (z or t) from your data first.
Step 2
Choose z for large samples or known population σ; t otherwise.
Step 3
For a t test, enter the degrees of freedom.
Step 4
Pick the tail that matches your alternative hypothesis — chosen before seeing data.
Step 5
Compare p with your significance level α (commonly 0.05).
Frequently asked questions
What does a p-value actually mean?
The probability of seeing a statistic at least as extreme as yours if the null hypothesis were true. It is not the probability that the null hypothesis is true, and not the probability your result is a fluke in plain terms.
Why is my t p-value larger than the z p-value for the same statistic?
The t distribution has heavier tails to allow for estimating σ from a small sample, so the same statistic is less surprising under t. As df grows, t approaches z.
One-tailed or two-tailed?
Two-tailed unless you pre-registered a directional alternative. Choosing the tail after seeing the sign of the result doubles your false-positive risk.
Is p = 0.049 “significant” and 0.051 not?
The 0.05 line is a convention, not a cliff in evidence. Report the exact p-value and an effect size with a confidence interval alongside it.
Can a p-value be exactly 0?
No — it can be extremely small and round to 0.0000. Report it as p < 0.001 (or similar) rather than p = 0.
About this calculator
A p-value is the probability under the null hypothesis of obtaining a test statistic at least as extreme as the observed one, in the direction of the alternative. The p-value answers one narrow question: if nothing were going on (the null hypothesis), how often would chance alone produce a result this extreme? Small p means the data would be surprising under the null — it says nothing directly about how large or important an effect is, and nothing about the probability that either hypothesis is true.
The p-value answers one narrow question: if nothing were going on (the null hypothesis), how often would chance alone produce a result this extreme? Small p means the data would be surprising under the null — it says nothing directly about how large or important an effect is, and nothing about the probability that either hypothesis is true.
The choice of distribution matters. With small samples the t distribution’s heavier tails correctly make the same statistic less significant than the normal curve would; using z on n = 8 quietly overstates significance. This calculator uses the genuine t CDF, verified against textbook critical values.
Turn a z or t statistic into an exact p-value — left, right or two-tailed — using the real t distribution, not a normal approximation. The choice of distribution matters. With small samples the t distribution’s heavier tails correctly make the same statistic less significant than the normal curve would; using z on n = 8 quietly overstates significance. This calculator uses the genuine t CDF, verified against textbook critical values.
How to calculate it yourself
Step 1
State H₀ and H₁ and fix α and the tail before calculating.
Step 2
Compute the test statistic from your data (this tool starts here).
Step 3
Find the CDF of the statistic under the null distribution.
Step 4
Left tail: p = F(s). Right tail: p = 1 − F(s). Two-tailed: double the smaller tail.
Step 5
Reject H₀ only if p < α, and report the effect size too.
Real-life examples
A/B test readout
A product team’s two-sample t-test on conversion gives t = 2.10 with 58 degrees of freedom; the analyst checks the two-tailed p-value before calling the variant a winner.
CDF at statistic 2.1 = 0.98 p-value (two tail) = 0.0401 Compare with α: p < 0.05 → reject the null hypothesis at the 5% level
p = 0.0401. Statistically significant at the 5% level (association only — not proof of causation or size of effect).
Lab measurement check
A technician tests whether a scale reads high: z = −1.40 against the certified weight, using the left tail because the concern is one-directional and was stated in advance.
CDF at statistic -1.4 = 0.0808 p-value (left tail) = 0.0808 Compare with α: p ≥ 0.05 → not significant at the 5% level
p = 0.0808. Not statistically significant at the 5% level; the data are compatible with the null hypothesis.
Ideas & use cases
- Sanity-check published results: enter a paper’s t and df to confirm its reported p-value before citing it.
- Plan sample sizes honestly: see how large a statistic you would need at your df for p < 0.01, then judge whether your study can plausibly produce it.
- Teach the t-versus-z gap: run the same statistic both ways at df 5 and df 100 to see the small-sample penalty appear and vanish.
Limitations & sources
- Takes a precomputed statistic only; it does not run the underlying t-test, ANOVA or chi-square test from raw data, and it does not adjust for multiple comparisons.
Sources: Standard normal CDF (Abramowitz & Stegun 26.2); t-distribution CDF via regularised incomplete beta function (Numerical Recipes, betacf); critical values cross-checked against published t-tables
