Site icon Codanics

P-Value Calculator

P-Value Calculator: free online tool by Codanics that runs in your browser
Statistics

P-Value and Critical Value Calculator for z, t, Chi-Square, F and r

Got a test statistic from a paper or your software and need the exact p-value? Or need the critical value without hunting through tables? Pick the distribution, enter the numbers and see the shaded area on the curve.

100% freeNo sign-upRuns in your browser
P-Value Calculator🔒 Your data never leaves your device

How to use the P-Value Calculator

  1. Choose Statistic → p-value to get a p-value, or α → critical value for the cut-off from a statistics table.
  2. Select the distribution (z, t, χ², F or r) and enter the degrees of freedom. For r, enter the sample size n.
  3. Choose two-tailed (most tests) or one-tailed. χ² and F tests are right-tailed by nature.
  4. Enter your test statistic or α. The result and the shaded curve update as you type.

What is a p-value?

A p-value is the probability of getting a result at least as extreme as yours if the null hypothesis were true. A small p-value (for example below 0.05) means your data would be surprising under the null hypothesis, so you reject it. A p-value is not the probability that the null hypothesis is true, and it says nothing about how big or important an effect is. Report an effect size alongside it.

Which distribution do I need?

TestStatisticDegrees of freedom
z-test, large-sample proportionsz–
t-tests, regression coefficientstn − 1, n₁ + n₂ − 2, or Welch df
Chi-square testsχ²(rows − 1)(columns − 1), or k − 1
ANOVA, regression F-testFdf between, df within
Pearson correlationrenter n (df = n − 2)

How accurate is it?

The calculator uses the regularized incomplete beta and gamma functions, the same mathematics used inside R, SPSS and Excel’s T.DIST and CHISQ.DIST functions. Results agree with R to at least six decimal places, including very small p-values.

Need the whole test, not just the p-value? Try the t-test, chi-square or correlation calculators.
Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

Frequently asked questions

How do I get a p-value from a t value?

Choose the t distribution, enter the degrees of freedom and your t value, and keep two-tailed selected unless you had a directional hypothesis. For example, t(20) = 2.1 gives p = .049 (two-tailed).

What is the critical value of t at 0.05?

It depends on the degrees of freedom. For a two-tailed test at α = 0.05 it is 2.228 with 10 df, 2.086 with 20 df, 2.042 with 30 df, and approaches 1.960 as df grows. Use the critical value tab for any df.

Should I use a one-tailed or two-tailed p-value?

Two-tailed is the default in almost all research. Use one-tailed only when you stated the direction before collecting data, and never switch after seeing the results just to get p < .05.

Why can't χ² and F tests be two-tailed here?

Chi-square and F statistics are squared quantities, so large values in the right tail already capture differences in any direction. They are evaluated in the right tail.

How do I write very small p-values?

In APA style, write p < .001 for anything smaller than 0.001 rather than the exact value. Never write p = .000.

Is anything sent to a server?

No. All calculations run in your browser.

More free tools

See all Codanics tools →

Made by Dr. Muhammad Aammar Tufail, Codanics. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the YouTube comments. Results are for learning and planning; check important analyses with a statistician or your supervisor.
Exit mobile version