P-Value Calculator – From a z or t Statistic, One or Two Tailed

Convert a z score or t statistic into a p-value for one- or two-tailed tests, see the critical value at your significance level, and interpret the result correctly.

Free & Instant•Version: v1.0•Formula, examples and assumptions• Frequently searched

Calculator InputsFormula v1.0

120df100,000
0.00010.05α0.5
Calculated Output

Two-tailed p = 2 × (1 − Φ(|z|)) for z tests; for t tests, p comes from the Student-t cumulative distribution with the same tail logic

p-value

0.0500
Result at α = 0.05Statistically significant: reject the null hypothesis
Critical value (two-tailed)±1.9600
Test statistic1.9600
DistributionStandard normal (z)
Upper-tail probability0.0250
Tails usedTwo
Confidence level equivalent95.00%
Significant at 0.05Yes
Significant at 0.01No

• Statistical significance is not practical importance. Report the effect size and confidence interval alongside the p-value.

Instant Browser CalculationNo Server Logging

Step-by-Step Mathematical Working

Take the absolute test statistic: |1.96| = 1.9600.
Find the probability of a value at least this extreme under the standard normal distribution: 0.024998.
Double it for a two-tailed test: p = 0.049996.
Compare with α = 0.05: the result is significant. The critical value is ±1.9600.

Formula and method

Two-tailed p = 2 × (1 − Φ(|z|)) for z tests; for t tests, p comes from the Student-t cumulative distribution with the same tail logic

The p-value is the probability of data at least as extreme as yours if the null hypothesis were true. It is not the probability that the null hypothesis is true, nor the probability that your result will replicate.

Variables

Test statistic
The z or t value calculated from your sample
df
Degrees of freedom for a t test (usually n − 1)
Tails
Two-tailed for a difference in either direction, one-tailed for a directional hypothesis

Worked example

A z score of 1.96 gives a two-tailed p of 0.0500. A t statistic of 2.0 with 10 degrees of freedom gives a two-tailed p of about 0.0734.

Who this calculator is for

Students and researchers checking a test by hand, analysts reading a study, and anyone sanity-checking software output.

Complete guide to the p-value calculator – from a z or t statistic, one or two tailed

Every figure below comes from this calculator itself. The method is Two-tailed p = 2 × (1 − Φ(|z|)) for z tests; for t tests, p comes from the Student-t cumulative distribution with the same tail logic, applied to the tool's default inputs and then stress-tested one input at a time.

What the P-Value Calculator – From a z or t Statistic, One or Two Tailed works out

P-Value Calculator – From a z or t Statistic, One or Two Tailed answers one specific question: Convert a z score or t statistic into a p-value for one- or two-tailed tests, see the critical value at your significance level, and interpret the result correctly. It is written for students and researchers checking a test by hand, analysts reading a study, and anyone sanity-checking software output.

The method is Two-tailed p = 2 × (1 − Φ(|z|)) for z tests; for t tests, p comes from the Student-t cumulative distribution with the same tail logic. The inputs are Test statistic type, Test statistic, Degrees of freedom (t only) (df), Tails, Significance level (α). With the default values - Test statistic type = z, Test statistic = 1.96, Degrees of freedom (t only) = 20 df, Tails = two, Significance level = 0.05 α - the result is p-value: 0.0500. Raising Test statistic from 1.96 to 2.16 moves the headline result from 0.0500 to 0.0311.

Working through the reported figures

Alongside 0.0500 this method reports 9 supporting quantities: Result at α = 0.05: Statistically significant: reject the null hypothesis; Critical value (two-tailed): ±1.9600; Test statistic: 1.9600; Distribution: Standard normal (z). Taken together they show which input moved the answer and by how much.

The arithmetic as executed: Take the absolute test statistic: |1.96| = 1.9600. Find the probability of a value at least this extreme under the standard normal distribution: 0.024998. Double it for a two-tailed test: p = 0.049996. Compare with α = 0.05: the result is significant. The critical value is ±1.9600. Run the same substitution yourself; a match confirms the inputs were read as you intended.

How to interpret the answer

The p-value is the probability of data at least as extreme as yours if the null hypothesis were true. It is not the probability that the null hypothesis is true, nor the probability that your result will replicate.

Applying that reading here: 0.0500 alongside result at α = 0.05 of Statistically significant: reject the null hypothesis describes one specific scenario, not a range of possibilities. Adjust the quantity that is genuinely uncertain in your case, then read both figures again.

Common mistakes to avoid

Calling a result significant because p < 0.05 without checking effect size, design and multiple comparisons. Doubling a one-tailed p when the hypothesis was directional, or halving a two-tailed p after seeing the direction. Using the z distribution when the population standard deviation is unknown and the sample is small. Reading 0.05 as a 5% chance the null hypothesis is correct.

Before you act on the result, re-read Test statistic type, Test statistic, Degrees of freedom (t only) (df), Tails, Significance level (α) and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Change Test statistic deliberately and check that the result moves the way the formula predicts - here 0.0500 should shift smoothly rather than jump.

Limitations and responsible use

Assumes the test statistic follows its reference distribution under the null hypothesis. A p-value says nothing about practical importance, and repeated testing inflates false positives.

Read the figures above as conditional on those limits rather than as a guarantee. CalculatorFlash shows the formula, the substitution and the units so the arithmetic can be checked by hand, but it cannot verify that the inputs describe your real circumstances. For a consequential decision, verify the operative figures against a primary source before relying on the answer.

Frequently asked questions

What does p = 0.03 mean?

If the null hypothesis were true, data this extreme or more would occur about 3% of the time. It is evidence against the null, not proof.

Which distribution does the p-value use?

It uses t when the standard deviation is estimated from the sample, and z when the population value is known. With large samples the two converge: above about 100 df the difference is negligible.

Should I use one or two tails?

Two-tailed unless you stated a directional hypothesis before collecting data. Changing tails after seeing results is a form of p-hacking.

What is the critical value at 5%?

1.96 for a two-tailed z test, and about 2.23 for a two-tailed t test with 10 degrees of freedom.

Related searches for this calculator

People also look for p value calculator, p value from z score, p value from t, statistical significance calculator and z test p value. Everything on this page is calculated in your browser from the formula shown above.

Related Mathematics Calculators

Explore another calculator in this subject.