🧮
🧮 Math & statistics

Student’s t Distribution Calculator (p-value & critical t)

Results update as you type.

Your numbers

Understanding the Student's t distribution calculator — concept and principle

A Student's t distribution calculator turns a t statistic and its degrees of freedom into one- and two-tailed p-values, and gives the critical t value for a chosen confidence level. It is the tool behind t-tests and confidence intervals for means when the population standard deviation is unknown and estimated from the sample, which is almost always the case in practice.

t distribution with 15 degrees of freedomEach tail beyond ±2.1 holds 0.0265, a two-tailed p of 0.0531; the 95% critical value is 2.131.Is t = 2.1 past the 5% line? (df = 15)critical t = ±2.131 (95%)0.02650.02650−2.12.1normal2.1 is just short of 2.131two-tailed p = 0.0531> 0.05: not significant at 5%
The t curve has fatter tails than the normal, so 2.1 falls just inside the ±2.131 cut-off.

How it is calculated

F is the t cumulative distribution function. It is computed from the regularized incomplete beta function: the two-tailed area beyond |t| equals I_x(df/2, 1/2) with x = df ÷ (df + t²). Degrees of freedom are usually n − 1 for a one-sample test, or n₁ + n₂ − 2 for a pooled two-sample test.

The principle

When you standardise a sample mean with the sample SD instead of the true σ, the extra uncertainty in s makes extreme values more likely than the normal curve predicts. William Sealy Gosset, writing as "Student" in 1908, derived the exact distribution of this ratio for normal data. It is bell-shaped and symmetric like the normal, but with heavier tails. As df grows, s becomes a reliable estimate of σ and the t distribution approaches the standard normal.

Worked example

  1. Inputs: t = 2.1, df = 15, confidence = 95%.
  2. x = 15 ÷ (15 + 2.1²) = 15 ÷ 19.41 ≈ 0.7728, and I_x(7.5, 0.5) ≈ 0.05306.
  3. Two-tailed p ≈ 0.0531; one-tailed p = 0.05306 ÷ 2 ≈ 0.0265.
  4. For 95% confidence, F(t*) = 0.975, giving critical t ≈ 2.1314.
How Two-tailed p changes with t statisticHow Two-tailed p changes with t statistic00.20.40.60.80.5251.051.572.12.623.154.2Example: 0.0530552562t statistic
Each point is the calculator re-run with only “t statistic” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
t statisticTwo-tailed p
0.5250.607256397
1.050.310341515
1.570.136108584
2.10.0530552562
2.620.0191223112
3.150.0066063591
4.20.0007729033

How to read the result

At α = 0.05 two-sided, the example is just not significant: p ≈ 0.053 > 0.05, and |t| = 2.1 is below 2.131. Critical t values at 95% fall as df rises: about 2.228 at df = 10, 2.131 at df = 15, 2.042 at df = 30, approaching 1.960. A one-tailed test is justified only if the direction was fixed before seeing the data.

Common mistakes

Keep in mind: The t distribution assumes approximately normal data or a reasonably large sample, and independent observations. A p-value is not the probability that the hypothesis is true.

Frequently asked questions

When should I use t instead of z?

Use t when σ is estimated from the sample. With large df the two give nearly the same answer.

Can df be a decimal?

Yes. Welch's unequal-variance t-test produces fractional df, and the formula works for any positive df.

Does a negative t change the p-value?

No. The distribution is symmetric, so the calculator uses |t|.

Sources: Student (W. S. Gosset), "The probable error of a mean", Biometrika 6(1), 1908 · NIST/SEMATECH e-Handbook of Statistical Methods, Section 1.3.6.6.4 t Distribution

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →