Skip to content
D DocNectar

Free P-Value Calculator

Calculate a p-value from a z or t test statistic, for one-tailed or two-tailed hypothesis tests.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

A p-value measures how likely your observed test statistic (or something more extreme) would be if there were truly no effect — and finding it requires the right distribution formula depending on whether you're working with a z-score or a t-statistic.

This calculator finds the p-value for a z or t test statistic, for one-tailed or two-tailed tests.

How it works

Enter your test statistic, choose z-test or t-test (with degrees of freedom for a t-test), and choose one-tailed or two-tailed. For a z-test, the calculator uses the standard normal distribution's cumulative probability. For a t-test, it uses the mathematical relationship between the Student's t-distribution and the regularized incomplete beta function.

  1. Enter test statistic (z or t).
  2. Enter test type.
  3. Enter degrees of freedom (t-test only).
  4. Enter tails.
  5. Click Calculate to see your results.

Examples

t = 2.228, df = 10, two-tailed

A t-statistic of 2.228 with 10 degrees of freedom, two-tailed, gives a p-value of almost exactly 0.05 — this is the classic textbook critical value for that significance level.

Who should use it

  • Finding the p-value for a hypothesis test in a statistics course.
  • Checking a p-value from a research paper or statistical software output.

Industry applications

  • Statistics and research methodology education
  • Scientific research and data analysis

Advantages

  • Supports both z-tests and t-tests from a single calculator.
  • Uses the exact mathematical relationship to the incomplete beta function for t-tests, not a rough table lookup.

Limitations

  • Requires you to already have a computed test statistic — it doesn't calculate the test statistic itself from raw sample data.

Common mistakes to avoid

  • Using a two-tailed p-value when your hypothesis was actually specifically directional (one-tailed), or vice versa — this changes the p-value by a factor of 2.
  • Forgetting to enter degrees of freedom for a t-test, which is required for the t-distribution formula.

Best practices

  • Decide whether your test is one-tailed or two-tailed before looking at your data, not after — choosing based on which gives a "better" result is a form of bias.

Tips

  • As degrees of freedom get very large, the t-distribution approaches the normal distribution — so a t-test and z-test with the same statistic will give nearly identical p-values for large samples.

Frequently asked questions

Yes, with no signup and no limit on how many tests you run.
Use a z-test when the population standard deviation is known or the sample size is very large; use a t-test (with degrees of freedom equal to sample size minus one, in the common one-sample case) when working with a smaller sample and an estimated standard deviation.
Using the common 0.05 threshold, a p-value below that suggests the result is unlikely to have occurred by chance alone under the null hypothesis, so it's typically called "statistically significant" at that level.
Use a two-tailed test when you care about a difference in either direction (most common default); use a one-tailed test only when your hypothesis specifically predicts an effect in one particular direction.

Get new calculators and guides in your inbox

No spam — just new tools like P-Value Calculator and practical guides.

Favorites