# P Value Calculator

> Calculate a p value from your test statistic for one- or two-tailed tests and see if your result is statistically significant at 0.05 or 0.01.

URL: https://allincalculators.com/p-value-calculator/

Free & Accurate · Two-Tailed


# P Value Calculator


Compute P values from Z, t, F, Pearson r, or Chi-square statistics. Instant results — no sign-up needed.










Z


P from Z score

Standard normal distribution






Z score














t


P from t statistic

Student's t-distribution






t statistic




Degrees of freedom (df)














F


P from F ratio

Fisher–Snedecor F-distribution






F statistic




DFn — numerator df




DFd — denominator df














r


P from correlation (r)

Pearson product-moment r






Pearson r




Degrees of freedom (n − 2)














χ²


P from Chi-square (χ²)

Chi-square distribution






Chi-square value




Degrees of freedom (df)

















## P Value Significance Reference


Use the table below to interpret your P value against standard significance thresholds.




P value range | 
Significance level | 
Interpretation | 




P < 0.001 | α = 0.001 (***) | Extremely significant |

P < 0.01 | α = 0.01 (**) | Highly significant |

P < 0.05 | α = 0.05 (*) | Statistically significant |

P ≥ 0.05 | n.s. | Not statistically significant |










## How This Calculator Works


All computations run entirely in your browser using high-precision JavaScript implementations of the following distributions:

**Z (standard normal):** Two-tailed P = 2 × (1 − Φ(|Z|)), where Φ is the normal CDF approximated via the complementary error function (erfc) with 7-coefficient Horner polynomial — accurate to better than 1.5 × 10⁻⁷.

**t (Student's t):** Uses the regularized incomplete beta function Ix(a, b) via Lentz's continued fraction algorithm. Two-tailed P = Idf/(df+t²)(df/2, 1/2).

**F (Fisher–Snedecor):** P = Idfd/(dfd+dfn·F)(dfd/2, dfn/2) via the same incomplete beta implementation.

**r (Pearson correlation):** Converted to a t statistic: t = r√(df) / √(1 − r²), then evaluated against Student's t with the given df.

**Chi-square:** P = 1 − γ(df/2, χ²/2) / Γ(df/2), using the regularized incomplete gamma function computed via series expansion (small x) or Legendre's continued fraction (large x).









Table of Contents
- [1What Is a P Value?](#what-is-a-p-value)

- [2How to Use the Calculator](#how-to-use-the-calculator)

- [3Which Statistic Should I Use?](#which-statistic-should-i-use)

- [4Worked Examples](#worked-examples)

- [5How to Interpret Your P Value](#how-to-interpret-your-p-value)

- [6One-Tailed vs Two-Tailed Tests](#one-tailed-vs-two-tailed-tests)

- [7Frequently Asked Questions](#frequently-asked-questions)

- [8Related Calculators](#related-calculators)

Ran a statistical test and need to know whether your result is significant?
This p value calculator turns your test statistic into a p value, which tells you how likely a result at least this extreme would be if there were really no effect.
Compare it with your significance level, usually 0.05, to decide whether to reject the null hypothesis, and read on for clear explanations of what the number does and doesn’t mean.

## What Is a P Value?

A **p value** answers one question: if there were really no effect, how surprising would your result be?
More precisely, it’s the probability of getting a test statistic at least as extreme as the one you observed, assuming the null hypothesis is true.
A small p value means your data would be unusual if nothing were going on, which is evidence against the null hypothesis.

This p value calculator turns the test statistic from your analysis into a p value.
It works with the five statistics you’ll meet most often in a statistics course or a research paper: **Z**, **t**, **F**, **Pearson’s r** and **chi-square (χ²)**.

## How to Use the Calculator

- Pick the card that matches your test.

- Enter the test statistic and, where it’s asked for, the degrees of freedom.

- Press *Compute P value*. The result shows the p value to four decimal places, or in scientific notation if it’s very small. Stars mark the usual significance levels: * for p < 0.05, ** for p < 0.01 and *** for p < 0.001.

## Which Statistic Should I Use?

- **Z score:** large samples, or tests where the population standard deviation is known. Examples include a one-sample z test, a two-proportion test and many A/B tests. The p value is two-tailed from the standard normal distribution.

- **t statistic:** comparing means with smaller samples, such as one-sample, paired and independent t tests, and checking regression coefficients. The p value is two-tailed from Student’s t distribution with your degrees of freedom.

- **F statistic:** ANOVA and the overall test in regression. You need two degrees of freedom: between groups (DFn) and within groups (DFd). Only large values of F count as evidence, so the p value is the area in the **upper tail**.

- **Pearson r:** testing whether a correlation is different from zero, with n − 2 degrees of freedom. The calculator converts r to a t statistic, t = r√(df ÷ (1 − r²)), and reports a two-tailed p value.

- **Chi-square:** goodness-of-fit tests and tests of independence in contingency tables. Like F, only large values matter, so the p value is the **upper-tail** area.

## Worked Examples

Each of these was checked against standard statistical software.

- **Z = 1.96** gives p ≈ **0.0500**. That’s exactly why 1.96 is the famous cut-off for a 95% confidence level.

- **t = 2.5 with 10 df** gives p ≈ **0.0314**, significant at the 5% level.

- **F = 4.2 with 3 and 20 df**, for example an ANOVA comparing four groups with 24 people in total, gives p ≈ **0.0186**.

- **r = 0.45 with 18 df** (20 pairs of observations) gives p ≈ **0.0465**, so the correlation is just significant at 0.05.

- **χ² = 7.8 with 3 df** gives p ≈ **0.0503**. That’s just above 0.05, so it is *not* significant at the 5% level. A good reminder that the threshold is a line, not a cliff.

## How to Interpret Your P Value

Before you run a test, choose a **significance level**, α, usually 0.05. If p is less than α, you reject the null hypothesis and call the result statistically significant.
If p is equal to or above α, you don’t have enough evidence to reject it.

A few points that trip people up:

- **A p value is not the probability that the null hypothesis is true.** It assumes the null is true and asks how unusual the data would be.

- **Significant doesn’t mean important.** With a big enough sample, even a tiny, meaningless difference can produce p < 0.05. Always report an effect size and a confidence interval as well.

- **Not significant doesn’t mean no effect.** The study may simply have been too small to detect it.

- **Don’t go fishing.** Running many tests and reporting only the ones under 0.05 inflates false positives. If you test many hypotheses, use a correction such as Bonferroni.

## One-Tailed vs Two-Tailed Tests

A two-tailed test looks for a difference in either direction. A one-tailed test looks in one direction only, and you must decide that before you see the data.
For Z, t and r, a one-tailed p value is half the two-tailed value shown here, as long as the effect goes in the direction you predicted.
F and chi-square tests are already one-sided by nature, so their p values are used as they are.

## Frequently Asked Questions

### How do I find the degrees of freedom?

For a one-sample or paired t test, df = n − 1. For an independent t test with equal variances, df = n₁ + n₂ − 2. For a correlation, df = n − 2.
For a chi-square test of independence, df = (rows − 1) × (columns − 1).

### Why is my p value shown like 3.2e-5?

That’s scientific notation for 0.000032. Very small p values are shown this way so they don’t round down to zero.

### Can a p value be exactly zero?

No. It can be extremely small, but a test statistic always has some probability, however tiny, under the null hypothesis.

Starting from a raw score instead of a test statistic? The [Z-Score Calculator](/z-score-calculator/) turns a value, mean and standard deviation into a z-score and its p-value in one go, with the working shown.

## Related Calculators

More free tools from our **Math Calculators** collection:

- [Cubic Feet Calculator](/cubic-feet-calculator/)

- [Long Division Calculator](/long-division-calculator/)

- [Average Calculator](/average-calculator/)

- [Grade Calculator](/grade-calculator/)

- [Fraction to Decimal Calculator](/fraction-to-decimal-calculator/)

- [Fraction Calculator](/fraction-calculator/)

- [Probability Calculator](/probability-calculator/)

- [Z-Score Calculator](/z-score-calculator/)

## Link to this calculator

Teacher, blogger or student? Share this free P Value Calculator with your readers or class by pasting this code into your website:

---
The interactive calculator runs in the browser at https://allincalculators.com/p-value-calculator/
