This free p-value calculator turns a z or t test statistic into a p-value. Choose a left, right or two-tailed test, pick your significance level, and the tool tells you whether the result is statistically significant and shades the tail area on a live chart.
P-Value Calculator
P-value from a z or t test statistic, one or two tailed
How this p-value was found
How to Use the P-Value Calculator
- Pick z score or t score. For t, also enter the degrees of freedom.
- Enter your test statistic and choose a significance level (α), usually 0.05.
- Select the test type: two-tailed, left-tailed or right-tailed.
- Press Calculate to get the p-value and the decision.
How the P-Value Is Found
| Test type | P-value | Use it when your alternative says… |
|---|---|---|
| Left-tailed | Area to the left of the statistic | “less than” |
| Right-tailed | Area to the right of the statistic | “greater than” |
| Two-tailed | 2 × the smaller tail area | “not equal to” |
Worked Example
A two-tailed z test gives z = 2.1. Is it significant at α = 0.05?
| Step | Working | Result |
|---|---|---|
| 1. Area right of 2.1 | 1 − 0.9821 | 0.0179 |
| 2. Two tails | 2 × 0.0179 | p = 0.0357 |
| 3. Compare | 0.0357 < 0.05 | Reject H₀ |
How to Read Your Result
- p < α: the result is statistically significant. Data this extreme would be unlikely if the null hypothesis were true.
- p ≥ α: not significant. That does not prove the null hypothesis; it means the evidence is not strong enough.
- A p-value is not the chance that the null hypothesis is true.
P-values are part of inferential statistics. Need a z-score first? Use our Z-Score Calculator, or read about what a z-score is.
Frequently Asked Questions
What is a good p-value?
There is no “good” p-value on its own. Researchers compare it with a significance level chosen in advance, most often 0.05. A p-value below that level counts as statistically significant.
When should I use a two-tailed test?
Use a two-tailed test when you care about a difference in either direction, for example “the average is different from 100.” Use a one-tailed test only when your question is clearly about one direction and you decided that before seeing the data.
Why does the calculator need degrees of freedom for t?
The t distribution changes shape depending on sample size. Degrees of freedom (often n − 1 for one sample) tell the calculator which version of the curve to use.
What does “fail to reject H₀” mean?
It means your data did not provide strong enough evidence against the null hypothesis. It is not the same as proving the null hypothesis is true.
More Free Tools
Variance Calculator · Standard Error Calculator · Confidence Interval Calculator · Z-Score Calculator · Correlation Coefficient Calculator · Linear Regression Calculator · Probability Calculator · Percentage Calculator · Grade Calculator · Flip a Coin · Random Number Generator
See every tool on our free statistics and math tools page.
This calculator is for learning and everyday use. Double-check important results, and follow your teacher’s or school’s method for graded work.