How to Calculate P Value
Calculate p-value for hypothesis testing.
The Formula
One and two-tailed testsThe p value formula uses the mathematical relationship: One and two-tailed tests. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the p value formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Z-Score | Input (you provide) | 1.96 |
| Significance Level α | Input (you provide) | 0.05 |
| P-Value (one-tailed) | Result (calculated) | — |
| P-Value (two-tailed) | Result (calculated) | — |
| Significant at 95%? | Result (calculated) | — |
| Significant at 99%? | Result (calculated) | — |
| Significant at Your Alpha (1 = yes, 0 = no) | Result (calculated) | — |
| Critical Z (95%) | Result (calculated) | — |
| Critical Z (99%) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Z-Score, Significance Level α.
- 2Substitute your known values into the formula: One and two-tailed tests.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive P Value Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: z-score = 1, with the other inputs at the typical values from the variables table above. Substituting into the formula gives p-value (one-tailed) = 0.158655, p-value (two-tailed) = 0.317311, significant at 95%? = 0, significant at 99%? = 0, significant at your alpha (1 = yes, 0 = no) = 0, critical z (95%) = 1.9600, critical z (99%) = 2.5758. These numbers are solved by the same engine that powers the P Value calculator, so you can reproduce them exactly by entering the same inputs there.
| Z-Score | P-Value (one-tailed) | P-Value (two-tailed) | Significant at 95%? | Significant at 99%? | Significant at Your Alpha (1 = yes, 0 = no) | Critical Z (95%) | Critical Z (99%) |
|---|---|---|---|---|---|---|---|
| 0.5 | 0.308538 | 0.617075 | 0 | 0 | 0 | 1.9600 | 2.5758 |
| 1 | 0.158655 | 0.317311 | 0 | 0 | 0 | 1.9600 | 2.5758 |
| 2 | 0.022750 | 0.045500 | 1 | 0 | 1 | 1.9600 | 2.5758 |
| 3 | 0.001350 | 0.002700 | 1 | 1 | 1 | 1.9600 | 2.5758 |
| 4 | 0.000032 | 0.000063 | 1 | 1 | 1 | 1.9600 | 2.5758 |
| 5 | 0.000000 | 0.000001 | 1 | 1 | 1 | 1.9600 | 2.5758 |
| 6 | 0.000000 | 0.000000 | 1 | 1 | 1 | 1.9600 | 2.5758 |
| 8 | 0.000000 | 0.000000 | 1 | 1 | 1 | 1.9600 | 2.5758 |
How each result changes as z-score changes, holding the other inputs constant.
Practice Problems
1. Z = 1.96 (classic 95% threshold): Z-Score 1.96, Significance Level α 0.05 — work it out, then check the answer.
Answer: With Z-Score 1.96, Significance Level α 0.05, the results are P-Value (one-tailed) 0.024998, P-Value (two-tailed) 0.049996, Significant at 95%? 1, Significant at 99%? 0, Significant at Your Alpha (1 = yes, 0 = no) 1, and 2 more more results.
2. Plug in Z-Score 3.22, Significance Level α 0.01. What is the answer?
Answer: Entering Z-Score 3.22, Significance Level α 0.01 gives P-Value (one-tailed) 0.000641, P-Value (two-tailed) 0.001282, Significant at 95%? 1, Significant at 99%? 1, Significant at Your Alpha (1 = yes, 0 = no) 1, and 2 more more results.
Frequently Asked Questions
What is the formula for p value?
The formula is: One and two-tailed tests. Calculate p-value for hypothesis testing.
What values do I need to calculate p value?
You need z-score, significance level α. The calculator produces p-value (one-tailed), p-value (two-tailed), significant at 95%?, significant at 99%?, significant at your alpha (1 = yes, 0 = no), critical z (95%), critical z (99%) from those inputs.
What is the p value when z-score is 1?
With z-score = 1, the result is p-value (one-tailed) = 0.158655, p-value (two-tailed) = 0.317311, significant at 95%? = 0, significant at 99%? = 0, significant at your alpha (1 = yes, 0 = no) = 0, critical z (95%) = 1.9600, critical z (99%) = 2.5758. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free P Value calculator.
