T Distribution Calculator
The t distribution calculator gives the area under the Student t curve for a t value and degrees of freedom, or the t value for an area. With 10 degrees of freedom, t = 2.228 has 0.975 of the area to its left, 0.025 to its right and 0.05 in the two tails beyond ±2.228. The curve is symmetric about 0, so the left area at −t equals the right area at t.
t
2.228
Area to the left
0.974994
Area to the right
0.025006
Two-tailed area beyond ±t
0.050012
Density f(t)
0.042395
Working
- Left area P(T ≤ 2.228) = 0.974994 with 10 degrees of freedom
- Right area = 1 − 0.974994 = 0.025006
- Two-tailed area = 2 × min(left, right) = 0.050012
Example: t = 2.228, 10 degrees of freedom
- Area to the left = 0.9750
- Area to the right = 0.0250
- Two-tailed area = 0.0500
- Density f(t) = 0.0424
What the results mean
The left area P(T ≤ t) is the cumulative probability, the right area is its complement, and the two-tailed area is the probability of a value at least as extreme as |t| in either direction, which is the two-tailed p-value of a t test. The density f(t) is the height of the curve at t, useful for plotting. Enter a cumulative probability such as 0.975 to get the matching t value, the quantile used for confidence intervals.
The t distribution looks like the standard normal but has heavier tails, so extreme values are more likely, especially with few degrees of freedom. With df = 1 it is the Cauchy distribution, and as df grows it approaches the normal: at infinite df, the 0.975 quantile is the z value 1.960.
How it is computed
The cdf is evaluated with the regularised incomplete beta function, the density from the gamma function, and the quantile by inverting the survival function. The code is checked against the Cauchy case (df = 1, cdf at t = 1 equal to 0.75), the 0.975 quantile of 2.2281 at df = 10, and the density 0.3891 at t = 0 for df = 10.
Frequently asked questions
- What are degrees of freedom for the t distribution?
- For a one-sample t test, n − 1. For other tests the formula depends on the design.
- How do I get a p-value from t?
- Use the two-tailed area for a two-sided test, or the right or left area for a one-sided test.
- How is the t distribution different from the normal distribution?
- It has heavier tails and depends on the degrees of freedom; it approaches the normal as df grows.
- Can I get the critical value from here?
- Yes: enter the cumulative probability 1 − α ÷ 2 for a two-tailed test, for example 0.975.
Sources and references
- OpenStax Introductory Statistics 2e: A Single Population Mean using the Student t Distribution: when to use t instead of z.
- NIST/SEMATECH e-Handbook, 1.3.6.7.2: Critical values of the Student’s t distribution: published t critical values used to test the t table.
- Press et al., Numerical Recipes, section on the incomplete gamma and beta functions: the continued fractions behind the t, chi-square and F distribution functions.