InputTestHub

P-Value Calculator

Converts a z, t or chi-square statistic into a p-value, one or two-tailed, with the critical values at every usual significance level.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Needed for t and χ² only.
Enter your figures and press Calculate.
In short A p-value is the probability of getting a result at least as extreme as the one you observed, IF the null hypothesis is true. It is a statement about data given a hypothesis, and reversing those two is the most common mistake in statistics. A two-tailed z of 2 gives p = 0.0455, z = 3 gives 0.0027 — about 1 in 370 — and z = 5 gives 5.7 × 10⁻⁷, which is roughly 1 in 1.7 million. This page converts z, t and chi-square statistics, one or two-tailed, and prints the critical value at each usual threshold so you can see the same decision from both ends. Use two tails unless the direction was predicted before the data was seen; halving a p-value after looking is not a one-tailed test, it is a way of getting a smaller number. Chi-square tests are naturally upper-tailed, because departures in either direction make the statistic larger, never smaller. What a p-value is not: it is not the probability that the null hypothesis is true, not the probability the result was a fluke, and not a measure of how big or important the effect is. With a large enough sample a trivial difference produces a tiny p, which is why a p-value should always be read next to an effect size and a confidence interval. And the 0.05 line is a convention proposed as a rough working threshold, not a law — p = 0.049 and p = 0.051 are the same evidence.

How to use the P-Value Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the P-Value Calculator

The p-value for a z, t or chi-square statistic, with the critical values beside it.

What people use it for

  • Turning a test statistic from software or a textbook into a p-value.
  • Finding the critical value at a chosen significance level.
  • Checking a reported p-value against the statistic it came from.

Details

Two-tailed p at z = 1.960.05
Two-tailed p at z = 20.0455
Two-tailed p at z = 30.0027, about 1 in 370
Two-tailed p at z = 55.7 × 10⁻⁷, about 1 in 1.7 million
Critical χ² at 0.05, 1 df3.8415

The maths behind it

This tool uses For a two-tailed z test, p = 2 × Φ(−|z|). For chi-square, p is the upper-tail area beyond the statistic. Every intermediate value is shown on screen, so the result can be checked by hand.

The critical-value route and the p-value route always agree, because they are the same comparison read from opposite ends. Both are printed so either can be checked.

Where this tool stops

A p-value says nothing about effect size, data quality or whether the test was chosen after seeing the data. Testing many hypotheses and reporting the smallest p makes the number meaningless, and no correction applied afterwards fully repairs it.

Frequently asked questions

Does p = 0.03 mean there is a 3% chance the null is true?
No, and this is the central misreading. It means that IF the null were true, results this extreme would appear 3% of the time. The probability that a hypothesis is true is a different quantity and requires a prior.
Should I use one tail or two?
Two, unless the direction was specified before seeing the data and a result in the other direction would be treated as no effect at all. Switching to one tail after looking halves the p-value without adding any evidence.
Why do chi-square tests only use one tail?
Because the statistic sums squared departures, so both "too many" and "too few" make it larger. Only the upper tail corresponds to a poor fit.
My p is 0.06. Is there no effect?
It means this sample cannot distinguish the null from the alternative, which is not the same as showing there is nothing there. Report the confidence interval — it shows what effect sizes remain plausible.
Is the P-Value Calculator free?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Can you see what I put into this utility?
No. The P-Value Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the utility also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
How is the result calculated?
It uses For a two-tailed z test, p = 2 × Φ(−|z|). For chi-square, p is the upper-tail area beyond the statistic. The full working is printed under the result, so you can follow every step rather than trusting a black box.
What do I get if I try it?
Enter z = 2.5, two-tailed and the P-Value Calculator returns p = 0.0124.
When would I actually need the P-Value Calculator?
The jobs it is built for: turning a test statistic from software or a textbook into a p-value. Finding the critical value at a chosen significance level. Checking a reported p-value against the statistic it came from. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
What are the limits of the P-Value Calculator?
A p-value says nothing about effect size, data quality or whether the test was chosen after seeing the data. Testing many hypotheses and reporting the smallest p makes the number meaningless, and no correction applied afterwards fully repairs it. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the reference figures here?
Two-tailed p at z = 1.96 is 0.05. Two-tailed p at z = 2 is 0.0455. Two-tailed p at z = 3 is 0.0027, about 1 in 370. These are printed on the page itself, so you do not have to take them on trust.
Is the number rounded?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…