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.

✅ No login needed100% freeRuns in your browserYour data stays on your device
P-Value Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is saved, so refreshing or leaving the page clears your work: copy or download your results first. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
  • PriceFree, no login or sign-up needed
  • Your dataProcessed in your browser, never uploaded
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published14 November 2026
  • Last updated16 November 2026

📚 How to cite this tool

This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.

Citation · APA 7th edition

Tufail, M. A. (2026). P-value calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/p-value-calculator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 14 November 2026.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

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.

Do I need to log in or create an account to use the P-Value Calculator?

No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.

How do I cite this tool in my thesis or paper?

Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). P-value calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/p-value-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.

Free guides and courses from Codanics

More free tools

See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 14 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.