T Distribution Calculator
T distribution calculator for p-values, left, right and two-tailed probabilities, critical t values and confidence intervals, with steps and df.
Published
Last updated
How the T Distribution Calculator Formula Works
The t distribution is the bell-shaped curve you use when you estimate a mean from a small sample and do not know the true standard deviation. It looks like the normal curve but has heavier tails. Its shape depends on one number, the degrees of freedom (df), which is n − 1 for a one-sample test. The more degrees of freedom, the closer it gets to the normal curve.
To turn a t value into a probability, the calculator uses the cumulative distribution function. The two-tailed probability P(|T| > |t|) equals the regularized incomplete beta function I_x(df/2, 1/2), with x = df / (df + t squared). One tail is half of that value. The density at t uses the formula with the gamma function shown above.
The critical value goes the other way. Given a tail area alpha and df, the calculator solves for the t that cuts off that area, to near double precision, so it can give values no table lists. The confidence interval mode combines the two: it finds t* for your confidence level with df = n − 1 and returns the mean plus or minus t* times s / √(n).
f(t) = Gamma((df+1)/2) / (√(df × pi) Gamma(df/2)) × (1 + t2/df)^(-(df+1)/2); P(|T| > |t|) = I_x(df/2, 1/2), x = df / (df + t2)- tstandard errors2.1The t statistic or t-score.
- dfcount18Degrees of freedom, n - 1 for one sample.
- alphaprobability0.05The tail area, such as 0.05.
- t*standard errorsThe critical value that cuts off alpha.
- s, ndata units, countSample standard deviation and sample size for the interval.
- t
- standard errors
- The t statistic or t-score.
- df
- count
- Degrees of freedom, n - 1 for one sample.
- alpha
- probability
- The tail area, such as 0.05.
- t*
- standard errors
- The critical value that cuts off alpha.
- s, n
- data units, count
- Sample standard deviation and sample size for the interval.
Using the T Distribution Calculator
Enter what do you want to find?
Choose from Probability (p-value) from a t value, Probability between two t values, Critical t from a probability (inverse t), Confidence interval for a mean.
Enter t value (t-score)
Type the figure you already have, then press Calculate.
Enter degrees of freedom (df)
Type the figure you already have, then press Calculate.
Enter tail for the headline p-value
Choose from Two-tailed, Right tail, P(T >= t), Left tail, P(T <= t).
Enter lower t value
Type the figure you already have, then press Calculate.
Enter upper t value
Type the figure you already have, then press Calculate.
Enter degrees of freedom (df)
Type the figure you already have, then press Calculate.
Enter probability in the tail (alpha), such as 0.05
Any value between 0.000001 and 0.999999.
Enter degrees of freedom (df)
Type the figure you already have, then press Calculate.
Enter which tail holds that probability?
Choose from Two-tailed (split between both tails), Right tail, Left tail.
Enter sample mean
Type the figure you already have, then press Calculate.
Enter sample standard deviation (s)
Type the figure you already have, then press Calculate.
Enter sample size (n)
Type the figure you already have, then press Calculate.
Enter confidence level (%)
Any value between 1 and 99.99.
Read the result
Press Calculate to update the result. Until you do, the last result is dimmed and marked as out of date, so you always know which numbers belong to the values in the boxes.
A Real Worked Example
A t statistic of 2.1 comes from a sample with 19 values, so df = 18. Convert it to x = 18 / (18 + 2.1 squared) = 0.80321. The two-tailed probability is the incomplete beta value I_x(9, 0.5) = 0.05009.
Each tail holds half, 0.025045. The left tail P(T ≤ 2.1) is therefore 0.974955. The two-tailed p-value of 0.0501 is just above 0.05, so the result is borderline at the 5 percent level. The density at t = 2.1 is 0.049065.
A left-tail probability from a negative t
With t = -1.8 and df = 9 the left tail P(T ≤ -1.8) is 0.052695. By symmetry that equals the right tail beyond +1.8.
The two-tailed value is double, 0.105391, and the right tail P(T ≥ -1.8) is 0.947305. The density at -1.8 is 0.083402. A one-sided test at the 5 percent level would just reject here, since 0.0527 is above 0.05 only slightly.
Probability between two t values
For df = 14, what is the probability that T falls between -1.5 and 2? The calculator finds P(T ≤ 2) = 0.967356 and P(T ≤ -1.5) = 0.077913.
The difference is 0.889443, about 88.94 percent. The same value can be found by adding the two tails and subtracting from 1: 1 − 0.032644 − 0.077913.
Critical value for alpha 0.05, two-tailed
For a two-tailed test at alpha = 0.05 with df = 10, the area 0.05 is split into 0.025 per tail. The calculator solves for the t that leaves 0.025 beyond it.
The critical value is t* = 2.2281, so the rejection region is |t| greater than 2.228. This matches the NIST table entry of 2.228 at the 0.975 column for df = 10.
Critical value for alpha 0.01, right-tailed
For a right-tailed test at alpha = 0.01 with df = 24, the whole 0.01 sits in the upper tail. The critical value is t* = 2.4922.
Any test statistic above 2.492 is significant at the 1 percent level. The check step confirms that P(T ≥ 2.4922) is 0.01 when df = 24.
A 95 percent confidence interval
A sample of n = 16 has a mean of 72 and a standard deviation of 8.5. Then df = 15 and the standard error is 8.5 / √(16) = 2.125.
For 95 percent confidence the critical value is t* = 2.1314, so the margin of error is 2.1314 × 2.125 = 4.5293. The interval runs from 67.471 to 76.529.
What Else to Know
What the T Distribution Is and When to Use It
The t distribution, also called Student's t distribution, describes a standardised sample mean when the population standard deviation is estimated from the same sample. It was published by William Sealy Gosset under the pen name Student. It is symmetric and centred on zero like the normal curve, but its tails are heavier, which allows for the extra uncertainty in a small sample.

Its shape is set by the degrees of freedom. With df = 1 the tails are very heavy. By df = 30 the curve is close to the normal one. At the 97.5th percentile the critical value is 12.71 for df = 1, 2.228 for df = 10 and 2.042 for df = 30.

Use it for t tests, for confidence intervals of a mean from a small sample, and in regression output. This calculator covers the four jobs people look for: a probability from t, a probability between two t values, a critical value from a probability, and a confidence interval.
T Distribution Calculator: P-Value, Left, Right and Two-Tailed
Enter t and the degrees of freedom and the calculator returns all three tail probabilities and the density. For t = 2.1 and df = 18 the left tail is 0.974955, the right tail is 0.025045 and the two-tailed p-value is 0.05009. The tail menu decides which one is the headline result.

Choose the tail from your hypothesis. A claim that the mean is greater calls for the right tail, a claim that it is smaller calls for the left tail, and a claim that it differs calls for both tails, which doubles the smaller one. A p-value below your significance level, often 0.05, means you reject the null hypothesis.

A t value that is negative works the same way. The t distribution is symmetric, so P(T ≤ -1.8) equals P(T ≥ 1.8). The between option adds a third question, the chance that T lands in an interval.
Critical t Value and the Inverse T Distribution
A critical value runs the calculation backwards. You give a tail probability alpha and the degrees of freedom, and the calculator returns the t that cuts off that area. This is the inverse t distribution, written t* or t(1 - alpha, df).

Three tail choices cover the usual cases. For a two-tailed test, alpha is split in half and you get plus and minus t*. For a right tail the area sits above t*, and for a left tail below it, giving a negative value. With alpha = 0.05 and df = 10 the two-tailed critical value is 2.2281, and a right-tailed alpha = 0.01 with df = 24 gives 2.4922.
The search runs to near double precision, so unusual alpha values and fractional df work the same as the round ones in a table.

T Distribution Table Values
A t table lists critical values for a handful of tail areas and degrees of freedom. It saves arithmetic when a calculator is not allowed. The first table on this page uses the same layout as the table in the NIST/SEMATECH handbook, and every one of its 600 entries was reproduced by this calculator to the three decimals NIST prints.

To read a table, go to the row for your df and the column for your one-tail area, for example 0.025 for a two-sided 95 percent interval. For df = 10 that gives 2.228. The last row of a table, labelled normal or infinity, gives the limit, 1.960.
When your df falls between rows, a table forces you to round or interpolate. The calculator gives the exact value, which is why the third table here lists the t multipliers for 90, 95 and 99 percent intervals at many df.
T Distribution Calculator for a Confidence Interval
For a mean estimated from a sample, the t confidence interval is the sample mean plus or minus t* x s / √(n), with df = n − 1. Choose the confidence interval option and enter the mean, the standard deviation, the sample size and the confidence level.

With a mean of 72, s = 8.5, n = 16 and 95 percent confidence, the calculator finds t* = 2.1314, a standard error of 2.125 and a margin of error of 4.5293. The interval is 67.471 to 76.529.
A higher confidence level or a smaller sample makes t* larger and the interval wider. The multiplier table shows how fast it falls as the sample grows. The interval assumes the data are roughly normal or the sample is reasonably large.
The T Distribution Formula and How This Is Computed
The density of the t distribution with df degrees of freedom is f(t) = Gamma((df + 1) / 2) / (√(df x pi) x Gamma(df / 2)) × (1 + t squared / df) to the power -(df + 1) / 2. Cumulative probabilities use the regularized incomplete beta function: the two-tailed probability is I_x(df / 2, 1 / 2), with x = df / (df + t squared).
The calculator evaluates the incomplete beta function with a continued fraction, which stays accurate in the far tails, and takes the log-gamma function from the Lanczos approximation. Critical values come from bisection on the two-tailed probability, repeated until the answer is stable at double precision.
We tested the results against the NIST critical-value table for df = 1 to 100, against 40-digit calculations of the same integrals, and against the worked values in Microsoft's T.DIST.2T and T.INV.2T documentation.
Limits and Related Calculators
The calculator treats the t distribution only. It does not run a full t test from raw data, pool variances or compute Welch's df for you, though it accepts a Welch df you supply. Results assume the usual conditions for the t distribution, roughly normal data or a large enough sample. Degrees of freedom above 1,000,000 are not accepted, and probabilities smaller than the double-precision floor are shown as 0.
A p-value does not measure how big or important an effect is, and a confidence interval does not say how likely a single value is.
For related work, try the percentage calculator, the grade calculator for weighted averages, and the linear interpolation calculator, useful when a table does not list your df.

Reference Tables
| df | 0.10 | 0.05 | 0.025 | 0.01 | 0.005 |
|---|---|---|---|---|---|
| 1 | 3.078 | 6.314 | 12.706 | 31.821 | 63.657 |
| 2 | 1.886 | 2.92 | 4.303 | 6.965 | 9.925 |
| 3 | 1.638 | 2.353 | 3.182 | 4.541 | 5.841 |
| 4 | 1.533 | 2.132 | 2.776 | 3.747 | 4.604 |
| 5 | 1.476 | 2.015 | 2.571 | 3.365 | 4.032 |
| 8 | 1.397 | 1.86 | 2.306 | 2.896 | 3.355 |
| 10 | 1.372 | 1.812 | 2.228 | 2.764 | 3.169 |
| 15 | 1.341 | 1.753 | 2.131 | 2.602 | 2.947 |
| 20 | 1.325 | 1.725 | 2.086 | 2.528 | 2.845 |
| 24 | 1.318 | 1.711 | 2.064 | 2.492 | 2.797 |
| 30 | 1.31 | 1.697 | 2.042 | 2.457 | 2.75 |
| 60 | 1.296 | 1.671 | 2 | 2.39 | 2.66 |
| 120 | 1.289 | 1.658 | 1.98 | 2.358 | 2.617 |
| Normal | 1.282 | 1.645 | 1.960 | 2.326 | 2.576 |
| |t| | df 5 | df 10 | df 20 | df 30 | df 100 |
|---|---|---|---|---|---|
| 1 | 0.3632 | 0.3409 | 0.3293 | 0.3253 | 0.3197 |
| 1.5 | 0.1939 | 0.1645 | 0.1492 | 0.1441 | 0.1368 |
| 2 | 0.1019 | 0.0734 | 0.0593 | 0.0546 | 0.0482 |
| 2.5 | 0.0545 | 0.0314 | 0.0212 | 0.0181 | 0.014 |
| 3 | 0.0301 | 0.0133 | 0.0071 | 0.0054 | 0.0034 |
| 4 | 0.0103 | 0.0025 | 0.0007 | 0.0004 | 0.0001 |
| df | 90% | 95% | 99% |
|---|---|---|---|
| 2 | 2.92 | 4.3027 | 9.9248 |
| 5 | 2.015 | 2.5706 | 4.0321 |
| 10 | 1.8125 | 2.2281 | 3.1693 |
| 20 | 1.7247 | 2.086 | 2.8453 |
| 30 | 1.6973 | 2.0423 | 2.75 |
| 60 | 1.6706 | 2.0003 | 2.6603 |
| 120 | 1.6577 | 1.9799 | 2.6174 |
| df | t = 0 | t = 1 | t = 2 | t = 3 |
|---|---|---|---|---|
| 1 | 0.3183 | 0.1592 | 0.0637 | 0.0318 |
| 2 | 0.3536 | 0.1925 | 0.068 | 0.0274 |
| 5 | 0.3796 | 0.2197 | 0.0651 | 0.0173 |
| 30 | 0.3956 | 0.238 | 0.0569 | 0.0068 |
| Normal | 0.3989 | 0.242 | 0.054 | 0.0044 |
| Test | Alternative hypothesis | p-value | Critical value |
|---|---|---|---|
| Left-tailed | The mean is less than the claim | P(T ≤ t) | Negative t* with area alpha on the left |
| Right-tailed | The mean is greater than the claim | P(T ≥ t) | Positive t* with area alpha on the right |
| Two-tailed | The mean differs from the claim | P(|T| ≥ |t|), twice the smaller tail | Plus and minus t* with alpha / 2 in each tail |
| Example | Inputs | Result |
|---|---|---|
| P-value from t | t = 2.1, df = 18, two-tailed | 0.05009 |
| Left tail | t = -1.8, df = 9 | 0.052695 |
| Between two t values | -1.5 to 2, df = 14 | 0.889443 |
| Critical value, two-tailed | alpha = 0.05, df = 10 | 2.2281 |
| Critical value, right-tailed | alpha = 0.01, df = 24 | 2.4922 |
| Confidence interval | mean 72, SD 8.5, n = 16, 95% | 67.471 to 76.529 |
| df | P(|T| > 1.96) | Normal value |
|---|---|---|
| 1 | 0.3003 | 0.05 |
| 2 | 0.1891 | 0.05 |
| 5 | 0.1073 | 0.05 |
| 10 | 0.0784 | 0.05 |
| 30 | 0.0593 | 0.05 |
| 100 | 0.0528 | 0.05 |
| 1000 | 0.0503 | 0.05 |
| Quantity | Excel | TI-84 | This calculator |
|---|---|---|---|
| Left-tail probability | =T.DIST(t, df, TRUE) | tcdf(-1E99, t, df) | Left tail result |
| Right-tail probability | =T.DIST.RT(t, df) | tcdf(t, 1E99, df) | Right tail result |
| Two-tailed p-value | =T.DIST.2T(ABS(t), df) | 2 x tcdf(|t|, 1E99, df) | Two-tailed result |
| Density | =T.DIST(t, df, FALSE) | tpdf(t, df) | Density at t |
| Left-tail critical t | =T.INV(area, df) | invT(area, df) | Critical value, left |
| Two-tailed critical t | =T.INV.2T(alpha, df) | invT(1 - alpha/2, df) | Critical value, two-tailed |
| Term | Meaning |
|---|---|
| t-value, t-score, t statistic | A sample mean's distance from a claimed mean in standard errors |
| Degrees of freedom (df) | For one sample, n − 1; sets how heavy the tails are |
| p-value | Probability of a t at least this extreme if the null hypothesis is true |
| Critical value t* | The t that cuts off a chosen tail area alpha |
| Alpha | The tail area, or significance level, such as 0.05 |
| Confidence level | 1 - alpha for a two-sided interval, such as 95% |
| Standard error | SD / √(n), the typical error of a sample mean |
| Mistake | What goes wrong | Fix |
|---|---|---|
| Using n instead of n − 1 for df | The critical value is too small | df = n − 1 for one sample |
| Using a one-tailed p for a two-sided claim | The p-value is half what it should be | Double the smaller tail |
| Using the normal value for a small sample | Intervals come out too narrow | Use t* with the right df |
| Mixing up alpha and confidence level | 95% confidence means alpha 0.05, not 0.95 | alpha = 1 - confidence |
| Entering the right-tail area as a left-tail area | The sign of t* flips | Pick the tail that matches your area |
| Rounding t* too early | Margins of error drift | Keep 4 decimals until the end |
Frequently Asked Questions About the T Distribution Calculator
How do I use this t distribution calculator?
Pick what you want: a probability from a t value, the probability between two t values, a critical t from a probability, or a confidence interval from sample data. Enter the degrees of freedom and the other values, then press Calculate. For t = 2.1 and df = 18 the two-tailed p-value is 0.05009.
How do I find the p-value from a t value and df?
Enter t and the degrees of freedom, and choose the tail that matches your test. For t = 2.1 and df = 18 the right-tail p-value is 0.025045, the left-tail is 0.974955 and the two-tailed p-value is 0.05009. The calculator shows all three, with the one you chose first.
How do I calculate a two-tailed p-value from t?
A two-tailed p-value is P(|T| ≥ |t|), which is twice the smaller tail. For t = 2.1 and df = 18 the right tail is 0.025045, so the two-tailed p-value is 0.05009. Pick the two-tailed option and the calculator gives it directly, with the incomplete beta function behind it.
How do I find the critical t value?
Choose the critical value option, enter alpha, the degrees of freedom and the tail. For alpha = 0.05, two-tailed, df = 10 the critical value is 2.2281, so you reject when |t| exceeds it. For alpha = 0.01, right-tailed, df = 24 it is 2.4922.
What is an inverse t distribution calculator?
It goes from a probability back to a t value, the opposite of finding a p-value. Enter an area and df and it returns the t that cuts off that area. A left-tail area of 0.975 with df = 10 gives t = 2.2281, which is the familiar 2.2281 used for a 95% two-sided interval.
What is t for 95% confidence with 10 degrees of freedom?
It is 2.2281. For a 95% two-sided interval, alpha is 0.05, so each tail holds 0.025 and the critical value is t(0.975, 10). The NIST table lists 2.228 for df = 10 at the 0.975 column, and the calculator agrees to all four decimals.
How do I use a t-distribution table?
Find the row for your degrees of freedom and the column for your tail area, for example 0.025 for a two-sided 95% interval. The entry is the critical t. For df = 10 and 0.025 the table gives 2.228. A table only holds a few areas and some df rows, while this calculator gives any value.
What is the formula for the t distribution?
The density is f(t) = Gamma((df + 1) / 2) / (√(df x pi) x Gamma(df / 2)) × (1 + t2 / df)^(-(df + 1) / 2). The cumulative probabilities use the regularized incomplete beta function I_x(df / 2, 1 / 2) with x = df / (df + t2). The calculator evaluates both numerically.
How do I find a confidence interval with the t distribution?
Find t* for the confidence level with df = n − 1, compute the standard error s / √(n), and take the sample mean plus or minus t* x SE. With mean 72, SD 8.5, n = 16 and 95%, t* = 2.1314, SE = 2.125 and the interval is 67.47 to 76.53.
How do I use the t distribution on a Casio calculator?
Many Casio graphing calculators have a distribution menu reached through the statistics menu, with t density, cumulative t and inverse t options. You enter the t value or the area and the degrees of freedom. Menus differ by model, so check your manual. This page gives the same numbers without a menu.
How do I use the t distribution on a TI-84?
Press 2nd, DISTR. Use tcdf(lower, upper, df) for probabilities, for example tcdf(2.1, 1E99, 18) for the right tail, which is 0.025045. Use invT(area, df) for the t value from a left-tail area, for example invT(0.975, 10) gives 2.2281. The calculator returns the same figures.
How do I calculate the t distribution in Excel?
Use T.DIST(t, df, TRUE) for the left tail, T.DIST.RT(t, df) for the right tail and T.DIST.2T(t, df) for the two-tailed value, with t non-negative. T.INV(area, df) and T.INV.2T(alpha, df) give critical values. T.DIST.2T(2.1, 18) returns 0.05009, the same as this page.
What are degrees of freedom in a t distribution?
Degrees of freedom control the shape of the t curve. For a one-sample t test or interval they equal the sample size minus one, because one value of freedom is used up in estimating the mean. Few degrees of freedom give heavy tails and a wide curve. Many give a curve close to the normal.
How do I find the degrees of freedom?
For one sample or paired data, df = n − 1. For two independent samples with equal variances, df = n1 + n2 − 2. For unequal variances, the Welch formula gives a non-integer df, which this calculator accepts. For regression with k predictors it is n − k - 1. Check your test's rules.
Can degrees of freedom be a decimal?
Yes. Welch's t test often gives a fractional df such as 17.4, and this calculator accepts any positive value up to 1,000,000. For instance t = 2.1 at df = 0.7 gives a two-tailed value of 0.357878, though very small df values are rarely meaningful in practice.
What is the difference between the t and normal distributions?
The t distribution has heavier tails, so extreme values are more likely, especially with small samples. P(|T| > 1.96) is 0.1073 at df = 5 against 0.05 for the normal. As df grows the two curves match: at df = 1000 the figure is 0.0503.
When should I use left, right or two tails?
Match the tail to your alternative hypothesis. Use left when you test whether the mean is lower, right when it is higher, and two when you test for any difference. Confidence intervals use two tails. When you do not know the direction in advance, the two-tailed choice is the safer default.
What does the t distribution graph look like?
It is a symmetric bell shape centred on zero, like the normal curve but with lower peaks and heavier tails. At t = 0 the density is 0.3183 for df = 1, 0.3796 for df = 5 and 0.3956 for df = 30, approaching the normal peak 0.3989. The diagrams on this page show the curves.
How accurate is this t distribution calculator?
It uses the regularized incomplete beta function with a continued fraction and solves for critical values by bisection to near double precision. We checked it against all 600 values of the NIST critical-value table and against high-precision mathematics software, and it agrees to the 3 decimals NIST prints and far beyond.
Does this t distribution calculator show steps?
Yes. The solution view shows the model, the conversion of t to the beta argument x, the two-tailed and one-tailed probabilities and the density for the probability mode. In the critical value and interval modes it shows how alpha was split, the value found and a check. A toggle hides the steps.
What is a t-score or t-value?
A t-score, t-value or t statistic measures how far a sample mean is from a claimed value, counted in standard errors: t = (sample mean - claimed mean) / (s / √(n)). A large absolute value is evidence against the claim. Enter it with the degrees of freedom to get a p-value, for example t = 2.1 and df = 18 gives 0.05009.
What happens to the t distribution as df increases?
It approaches the standard normal distribution. The 97.5th percentile falls from 12.706 at df = 1 to 2.228 at df = 10, 2.042 at df = 30 and 1.962 at df = 1000, heading for the normal value of 1.960.
References
- [1] NIST/SEMATECH. “e-Handbook of Statistical Methods: Critical Values of the Student's t Distribution.” NIST. Accessed 2026-10-07.
- [2] NIST/SEMATECH. “e-Handbook of Statistical Methods: t Distribution.” NIST. Accessed 2026-10-07.
- [3] Wikipedia contributors. “Student's t-distribution.” Wikipedia. Accessed 2026-10-07.
- [4] Microsoft. “T.DIST.2T function.” Microsoft Support. Accessed 2026-10-07.
- [5] Microsoft. “T.INV.2T function.” Microsoft Support. Accessed 2026-10-07.
Related calculators
- Amps to Kilowatts CalculatorConvert amps to kilowatts for DC, single-phase and three-phase circuits, with power factor, kVA, kWh per day or month and an optional energy cost.Open
- Binomial Distribution CalculatorBinomial distribution calculator. Enter trials, success probability and successes for exact, at most, at least and between probabilities, plus mean.Open
- Box Plot CalculatorBox plot calculator with steps: get Q1, median, Q3, whiskers, fences and outliers from data or five numbers, with a text box and whisker plot.Open
- Boyle's Law CalculatorBoyle's law calculator: solve P1 V1 = P2 V2 for pressure or volume in atm, kPa, bar, mmHg, psi, L, mL or m3, with gauge pressure and examples.Open
