Skip to content
Omnikalc

t-distribution: p-value from t, and critical values

Get the p-value of a t statistic for any degrees of freedom, one or two-tailed, the critical t for a significance level, and the density and cumulative probability.

Updated on
Your inputs

Value out of range

Value out of range

Results

p-value

0.05306

Not significant: p is at or above α, so the data do not reject the null hypothesis
Critical t at α for this test
2.1314
Cumulative probability P(T ≤ t)
0.97347
Density at t
0.049912
Normal (z) critical value, for comparison
1.9600

Student’s t distribution

The t distribution describes the ratio of an estimate’s error to its estimated standard error when the data are normal and the standard deviation is estimated from the sample. It looks like the normal distribution but with heavier tails, which reflect the extra uncertainty of small samples. Its shape depends on the degrees of freedom (df); as df grows, it approaches the standard normal distribution.

What the calculator gives

  • the p-value of a t statistic, two-tailed, right-tailed or left-tailed;
  • the critical t for a chosen significance level, as in a printed t table;
  • the cumulative probability P(T ≤ t) and the density at t;
  • the matching normal critical value, for comparison.

Example

A test gives t = 2.1 with 15 degrees of freedom:

  • two-tailed p ≈ 0.053: just above 0.05;
  • critical t at α = 0.05, two-tailed: 2.131;
  • the normal distribution would give 1.96, showing how much wider the t distribution is with few degrees of freedom.

Common critical values (two-tailed, α = 0.05)

df Critical t
1 12.706
2 4.303
5 2.571
10 2.228
20 2.086
30 2.042
60 2.000
∞ 1.960

Where the degrees of freedom come from

  • one-sample or paired t-test: n − 1;
  • two-sample t-test with pooled variance: n₁ + n₂ − 2; with Welch’s correction, a fractional value from the Welch–Satterthwaite formula;
  • regression coefficient: n − p − 1, where p is the number of predictors;
  • Pearson correlation test: n − 2.

Formulas

The density is

f(t) = Γ((ν + 1)/2) ÷ (√(νπ) Γ(ν/2)) × (1 + t²/ν)^−(ν+1)/2

The calculator computes the cumulative probability with the regularized incomplete beta function, accurate to many digits for any degrees of freedom, including fractional ones.

Tips

  • Decide on one or two tails before looking at the data.
  • With more than about 100 degrees of freedom, t and normal critical values differ by less than 1%.
  • A p-value is not the probability that the null hypothesis is true; it is the probability of data at least this extreme if it were.

Frequently asked questions

What is the critical t for 95% confidence?

It depends on degrees of freedom: 2.228 for 10, 2.086 for 20, 2.042 for 30 and 1.960 as degrees of freedom grow without limit.

How is the t distribution different from the normal?

It has heavier tails, reflecting the extra uncertainty from estimating the standard deviation; it approaches the normal as df grows.

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

Enter t and its degrees of freedom; the two-tailed p-value is twice the area beyond |t|.

Who invented the t distribution?

William Sealy Gosset, a chemist at the Guinness brewery, who published it in 1908 under the pen name Student.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.