CalcUnit Logo

How to Calculate P Value

Calculate p-value for hypothesis testing.

The Formula

One and two-tailed tests

The 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:

VariableTypeExample value
Z-ScoreInput (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

  1. 1Write down the values you know: Z-Score, Significance Level α.
  2. 2Substitute your known values into the formula: One and two-tailed tests.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 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-ScoreP-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.50.3085380.6170750001.96002.5758
10.1586550.3173110001.96002.5758
20.0227500.0455001011.96002.5758
30.0013500.0027001111.96002.5758
40.0000320.0000631111.96002.5758
50.0000000.0000011111.96002.5758
60.0000000.0000001111.96002.5758
80.0000000.0000001111.96002.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

p valuehypothesis teststatistics

Use the Interactive Calculator

Skip the manual math — get instant results with our free P Value calculator.

Open Calculator

Related Calculators