AppCrib
Everyday Tools

How to Find the P-Value for a T-Test From a T-Statistic

Launch·Published by AppCrib··
PvalrTest statistic in, p-value out. 30 seconds.

How do I find the p-value for a t-test given a t-statistic and degrees of freedom?

Feed the t-statistic, the degrees of freedom, and your tail direction (one-tailed left, one-tailed right, or two-tailed) into the Student's T cumulative distribution function. For a two-tailed test the p-value is 2 * min(CDF(t, df), 1 - CDF(t, df)). For a right-tailed test it is 1 - CDF(t, df). For a left-tailed test it is CDF(t, df). That's the whole calculation. What most students actually need next is the sentence that says whether the result is statistically significant at their chosen alpha, and Pvalr writes that sentence for you.

If you want to skip the math and just get the answer, open Pvalr, pick the T distribution, enter your t-statistic and df, choose your tail direction, and read the p-value plus a plain-English interpretation on the same screen.

What you need before you calculate

A t-test p-value calculation needs three inputs.

The t-statistic comes out of your test of choice. For a one-sample t-test it is (x̄ - μ₀) / (s / √n). For an independent two-sample t-test it is the difference of means divided by the pooled standard error. Your lab software, spreadsheet, or textbook should already give you this number.

The degrees of freedom depend on the test. For a one-sample t-test, df = n - 1. For an independent two-sample t-test with equal variance assumed, df = n₁ + n₂ - 2. Welch's t-test uses a fractional df formula that your software will output directly.

The tail direction is one-tailed (left or right) if your hypothesis predicts a specific direction, or two-tailed if you are testing whether a difference exists in either direction. If you are not sure which to pick, use two-tailed. It is the conservative default and the most common choice in coursework.

Once you have those, any p-value calculator can do the rest.

Why a plain-English interpretation matters more than the number

A p-value of 0.0312 is a number. By itself it tells you nothing. You need to compare it to your significance level (alpha) to know whether to reject the null hypothesis, and you need to write a clean sentence about it in your results section.

Most free p-value tools stop at the number. GraphPad QuickCalcs, which is the reference most biomedical coursework points students to, gives you a raw p-value with no interpretation. Students paste the value into their lab report and then freeze at the "what does this mean" step.

Pvalr renders a second line underneath the p-value. When p < alpha, it reads: *"Your result is statistically significant at the alpha = 0.05 level (p = 0.0312). There is sufficient evidence to reject the null hypothesis."* When p ≥ alpha, it says the opposite with equal clarity. It also prints a smaller caveat note reminding you what a p-value does and does not measure. Low p-values point to rare-under-null outcomes, not to effect size or practical significance. You can copy the sentence into your write-up with a clear conscience.

One-tailed vs two-tailed, briefly

A two-tailed test asks: is the true parameter different from the null value, in either direction? A one-tailed test asks a sharper question: is it greater than (right-tailed) or less than (left-tailed) the null value?

Use two-tailed when you genuinely do not know which side of the null you expect the result to fall on. This is the default for most coursework. Use one-tailed when your hypothesis is directional and was written that way before you looked at the data. Preregistered directional hypotheses, dose-response studies, and some A/B tests often justify a one-tailed test.

One practical note: GraphPad's QuickCalcs only does two-tailed tests. If you need one-tailed you have to calculate it by hand (divide the two-tailed p by two, assuming your direction matches the observed effect) or use a different tool. Pvalr supports all three tail directions and swaps the result live when you change the toggle.

Setting your alpha

Alpha is the significance threshold you decided on before running the test. The default in most fields is 0.05. Clinical trials and high-stakes replication work often use 0.01. Genomics and other settings with many simultaneous tests drop to 0.001 (a Bonferroni-style correction pulls alpha down). Some exploratory or pilot studies use 0.1, where a higher false-positive rate is acceptable.

Pvalr ships with preset buttons for 0.001, 0.01, 0.05, and 0.1, and accepts any custom value between 0.001 and 0.1. Change alpha and the significance determination updates without recomputing the p-value, because alpha only affects the threshold comparison, not the probability itself.

A worked example

You ran a one-sample t-test on exam scores from a class of 20 students. Your t-statistic is 2.41. Degrees of freedom = 20 - 1 = 19. You are running a two-tailed test at alpha = 0.05.

  1. Open Pvalr and pick the T distribution.
  2. Enter t = 2.41 and df = 19.
  3. Select two-tailed.
  4. Leave alpha at 0.05 (or tap the 0.05 preset).

The result reads p = 0.0263 with the interpretation: *"Your result is statistically significant at the alpha = 0.05 level (p = 0.0263). There is sufficient evidence to reject the null hypothesis."* Copy the sentence into your lab report and move on.

If you change the tail direction to right-tailed, the p-value updates to 0.0131 in place. If you change alpha to 0.01, the number stays the same but the interpretation flips to "not statistically significant at the alpha = 0.01 level." That real-time behavior is the whole point: you can answer "what if" questions about your test without reloading or retyping.

Does Pvalr send my data anywhere?

No. Every calculation happens in your browser using the Student's T CDF from a client-side math library. There is no account, no server round-trip, and nothing to log out of. Close the tab and no trace of your inputs survives. The PRD and the privacy page both make this explicit.

What Pvalr does not do

Pvalr is a focused tool, not a full statistics suite. It does not accept raw data (you bring the t-statistic), does not run a test-selection wizard, and does not output effect size, confidence intervals, or APA-formatted results. Those are real needs and they are on the v2 roadmap, but they are out of scope for a tool whose job is to answer one question quickly and get out of the way.

If you need raw data input, Social Science Statistics has it with a 2010-era interface. For APA formatting, DataStatPro is the right stop. If your priority is a plain-English interpretation on a modern mobile-first layout with one-tailed support across the four standard distributions, Pvalr is the fastest way to get there.

Try it

Open Pvalr, enter your t-statistic, and read the interpretation. Under thirty seconds from page load to a sentence you can paste into a lab report. Bookmark it for next semester.

Pvalr
Test statistic in, p-value out. 30 seconds.
Try Pvalr