P-Value Calculator

Convert a z-score, t-score, chi-square or F statistic into a one- or two-tailed p-value and see whether your result is significant at your chosen alpha.

P-value calculator
P-value

    Working

    P-values are calculated directly from the distributions, not read from tables. Chi-square and F tests are normally right-tailed. A small p-value means the result would be unlikely if the null hypothesis were true; it doesn't measure the size or importance of an effect.

    On this page

    A p-value calculator converts a test statistic into a p-value: the probability of getting a result at least as extreme as yours if the null hypothesis were true. It works with z-scores, t-scores, chi-square statistics and F-statistics, for two-tailed, right-tailed and left-tailed tests, and tells you whether the result is statistically significant at your chosen significance level.

    For example, a z-score of 1.96 gives a two-tailed p-value of 0.05. A t-score of 2.131 with 15 degrees of freedom also gives about 0.05, and a chi-square statistic of 3.841 with 1 degree of freedom gives about 0.05.

    How to use the p-value calculator

    1. Choose the type of test statistic your test produced: z, t, chi-square or F.
    2. Enter the statistic and, for t, chi-square and F, the degrees of freedom.
    3. Choose whether your alternative hypothesis is two-tailed (≠), right-tailed (>) or left-tailed (<). Chi-square and F tests are usually right-tailed.
    4. Choose the significance level α, usually 0.05, and press Calculate p-value.

    What is a p-value?

    A hypothesis test starts with a null hypothesis, usually that there’s no effect or no difference. The p-value measures how surprising your data would be if that null hypothesis were true. A small p-value, such as 0.01, means a result this extreme would happen only about 1% of the time by chance alone, which is evidence against the null hypothesis. A large p-value means the data is quite consistent with the null hypothesis.

    The p-value is not the probability that the null hypothesis is true, and it doesn’t tell you how big or important an effect is. It only describes how compatible the data is with the null hypothesis.

    Comparing the p-value with α

    Before running a test, you choose a significance level α, the risk of a false positive you’re willing to accept. The decision rule is:

    • If p < α, the result is statistically significant: reject the null hypothesis.
    • If p ≥ α, the result is not statistically significant: you don’t have enough evidence to reject the null hypothesis.

    The most common choice is α = 0.05. Fields that need stronger evidence, such as particle physics or some medical research, use much smaller values.

    One-tailed and two-tailed tests

    A two-tailed test asks whether there’s a difference in either direction, such as “the new method changes test scores”. Its p-value counts extreme results in both tails, so it’s twice the smaller tail area. A one-tailed test asks about one direction only, such as “the new method increases scores”. A right-tailed test uses the area above the statistic, and a left-tailed test the area below. Choose the direction before looking at the data; switching after seeing the results inflates the false positive rate.

    z-scoreTwo-tailed pOne-tailed p
    1.6450.100.05
    1.9600.050.025
    2.5760.010.005
    3.2910.0010.0005

    Which test statistic?

    • Z-score: large-sample tests of means or proportions where the standard deviation is known or the sample is big.
    • T-score: tests of means with small samples or an estimated standard deviation, including one-sample, two-sample and paired t-tests. Degrees of freedom are usually n − 1 for one sample.
    • Chi-square: goodness-of-fit tests and tests of independence in contingency tables. Degrees of freedom are categories − 1, or (rows − 1) × (columns − 1).
    • F-statistic: analysis of variance (ANOVA) and comparing variances or regression models. It has numerator and denominator degrees of freedom.

    Worked examples

    Z-test

    A survey finds a z-score of 2.1 for the difference between a sample proportion and a claimed value, with a right-tailed alternative. The p-value is about 0.0179, below 0.05, so the result is significant at the 5% level.

    T-test

    A one-sample t-test on 16 measurements gives t = 2.131. With 15 degrees of freedom, the two-tailed p-value is about 0.050, right on the conventional threshold. Results this close to α are best reported with the exact p-value rather than just “significant” or “not significant”.

    Chi-square test

    A test of whether a die is fair, with 6 categories and therefore 5 degrees of freedom, gives χ² = 11.07. The p-value is about 0.050. A statistic of 50 on 10 degrees of freedom would give a p-value of about 0.00000027, very strong evidence against the null hypothesis.

    F-test

    A one-way ANOVA comparing 4 groups with 24 observations in total has 3 and 20 degrees of freedom. An F-statistic of 3.49 gives p ≈ 0.035, so at least one group mean differs at the 5% level.

    The steps of a hypothesis test

    A p-value is one stage in a standard procedure. First, state the null hypothesis and the alternative, and choose α. Second, collect the data and calculate the test statistic, such as a t-score from the sample mean, standard deviation and sample size. Third, convert the statistic into a p-value using the right distribution and number of tails, which is what this calculator does. Finally, compare the p-value with α, make the decision, and report the result in context, ideally with an estimate of the effect size and a confidence interval so readers can judge its practical importance.

    P-values and confidence intervals

    P-values and confidence intervals are two views of the same information. For a two-sided test at α = 0.05, the result is significant exactly when the 95% confidence interval for the effect excludes the null value, often zero. The interval adds something the p-value can’t: a range of plausible effect sizes. An interval of 0.1 to 0.3 points tells a very different story from one of 0.1 to 30 points, even if both give the same p-value.

    Where does 0.05 come from?

    The 0.05 threshold became popular in the early twentieth century through the work of the statistician Ronald Fisher, who suggested it as a convenient benchmark rather than a strict rule. It corresponds to a z-score of about 2 for a two-tailed test. Many statisticians now encourage reporting exact p-values and avoiding a rigid significant-or-not split, since 0.049 and 0.051 represent almost identical evidence.

    Reporting your result

    A clear report gives the test, the statistic, the degrees of freedom and the exact p-value, for example “t(15) = 2.13, p = 0.050” or “χ²(5) = 11.07, p = 0.050”. For very small values, writing “p < 0.001” is standard. Pair the p-value with the size of the effect, such as a difference in means with its confidence interval, so readers can judge both whether the effect is real and whether it matters.

    Testing many hypotheses

    If you run 20 independent tests at α = 0.05 when nothing real is going on, you’d expect about one of them to look significant purely by chance. To control this, researchers adjust the threshold. The simplest method, the Bonferroni correction, divides α by the number of tests: with 10 tests, each one needs p < 0.005 to be declared significant. More refined methods, such as controlling the false discovery rate, are common in fields that run thousands of tests at once.

    Common misunderstandings

    • A p-value of 0.03 doesn’t mean there’s a 3% chance the null hypothesis is true.
    • “Not significant” doesn’t prove there’s no effect; the study may simply be too small to detect it.
    • A very small p-value doesn’t mean the effect is large or important. With huge samples, trivial differences can be highly significant.
    • Running many tests and reporting only the significant ones produces false positives. Adjust α when testing many hypotheses.

    Related calculations

    For related questions, use the z-score calculator to calculate z-scores and percentiles, or the mean, median, mode, range calculator to find the mean, median, mode and range of a list of numbers.

    Frequently asked questions

    How likely a result at least as extreme as yours would be if the null hypothesis were true. Small p-values are evidence against the null hypothesis.

    One below your chosen significance level, usually 0.05. A p-value of 0.03 is significant at the 5% level but not at the 1% level.

    About 0.05 for a two-tailed test and 0.025 for a one-tailed test.

    Use two-tailed unless you decided in advance that only one direction matters. Two-tailed tests are the standard choice in most research.

    For a one-sample t-test, n − 1. For a chi-square test of independence, (rows − 1) × (columns − 1). For one-way ANOVA, groups − 1 and total observations − groups.

    Both statistics grow larger as the data departs further from the null hypothesis, so only large values count as extreme.

    No, but it can be extremely small. The calculator shows tiny values in scientific notation.

    Strictly, significance requires p < α, so a p-value of exactly 0.05 is borderline. Report the exact value and interpret it with care.

    α is the threshold you choose before the test; the p-value is calculated from your data. You compare one with the other.

    No. It shows the result is unlikely under the null hypothesis, not that the effect is large. Report an effect size or confidence interval too.

    A way to avoid false positives when running many tests: divide α by the number of tests.

    The p-values are calculated directly from the distributions and are accurate to at least 6 significant decimal places for typical inputs.