gizmobench
BrowseDaily

T Distribution Calculator

Enter degrees of freedom and a t value to calculate the lower cumulative probability (CDF), upper tail, and two-sided p value. Switch to Critical value to find a quantile from a probability. The curve shades the selected area, and the reference table lists common critical values.

df 10t = 2.228139Two-sidedShaded: both tails
df 10   t = 2.228139

lower       P(T <= t)      0.975000
upper       P(T >= t)      0.025000
two-sided   P(|T| >= |t|)  0.050000
density     f(t)           0.042385

inverse
  df 10, one-sided 0.95   ->   t = 1.812461
You have
Read as

You have a t value and the degrees of freedom, and you want the area under the curve.

Two-sided p
0.050000
Lower CDF
0.975000
df
10
t
2.228139

Two-sided counts both tails beyond |t|, P(|T| >= |t|), which is twice the upper tail at |t|. The other two are on the stage above, because the convention is the thing that gets mixed up: a two-sided 0.05 and a one-sided 0.05 are different cuts of the same curve.

  • df 10, t = 2.228139two-sided
    p = 0.050000
  • df 10, t = 2.228139upper tail
    p = 0.025000
  • df 10, p = 0.95inverse, one-sided
    t = 1.812461
Accuracy. Densities, tail probabilities and quantiles for the Student t distribution at the degrees of freedom you set, computed numerically to the precision shown. Lower, upper and two-sided are three different answers to three different questions, so the page labels which one is on screen rather than leave you to infer it. Degrees of freedom below 0.0001 or above 1000000, and a probability at or outside 0 and 1, are rejected by name. Accuracy was measured over 294 reference cases; the FAQ describes the measured range and error bounds. Inverse probabilities must fit a browser number and lie strictly between 0 and 1. Tail outputs smaller than the smallest double, about 5e-324, are computed and printed from their logarithms rather than collapsing to zero.

Critical values of the t distribution

Each column is the t value with that much area in one tail. Double the heading for the two-sided probability: the one-sided 0.025 column is the familiar two-sided 0.05, which at 10 degrees of freedom is 2.228139. Every cell here is computed by the calculator above.

dfone-sided 0.10one-sided 0.05one-sided 0.025one-sided 0.01one-sided 0.005
13.0776846.31375212.70620531.82051663.656741
21.8856182.9199864.3026536.9645579.924843
31.6377442.3533633.1824464.5407035.840909
41.5332062.1318472.7764453.7469474.604095
51.4758842.0150482.5705823.3649304.032143
61.4397561.9431802.4469123.1426683.707428
71.4149241.8945792.3646242.9979523.499483
81.3968151.8595482.3060042.8964593.355387
91.3830291.8331132.2621572.8214383.249836
101.3721841.8124612.2281392.7637693.169273
111.3634301.7958852.2009852.7180793.105807
121.3562171.7822882.1788132.6809983.054540
131.3501711.7709332.1603692.6503093.012276
141.3450301.7613102.1447872.6244942.976843
151.3406061.7530502.1314502.6024802.946713
161.3367571.7458842.1199052.5834872.920782
171.3333791.7396072.1098162.5669342.898231
181.3303911.7340642.1009222.5523802.878440
191.3277281.7291332.0930242.5394832.860935
201.3253411.7247182.0859632.5279772.845340
211.3231881.7207432.0796142.5176482.831360
221.3212371.7171442.0738732.5083252.818756
231.3194601.7138722.0686582.4998672.807336
241.3178361.7108822.0638992.4921592.796940
251.3163451.7081412.0595392.4851072.787436
261.3149721.7056182.0555292.4786302.778715
271.3137031.7032882.0518312.4726602.770683
281.3125271.7011312.0484072.4671402.763262
291.3114341.6991272.0452302.4620212.756386
301.3104151.6972612.0422722.4572622.749996
321.3085731.6938892.0369332.4486782.738481
351.3062121.6895722.0301082.4377232.723806
401.3030771.6838512.0210752.4232572.704459
451.3006491.6794272.0141032.4121162.689585
501.2987141.6759052.0085592.4032722.677793
601.2958211.6706492.0002982.3901192.660283
801.2922241.6641251.9900632.3738682.638691
1001.2900751.6602341.9839722.3642172.625891
1201.2886461.6576511.9799302.3578252.617421
2001.2857991.6525081.9718962.3451372.600634
5001.2832471.6479071.9647202.3338292.585698
10001.2823991.6463791.9623392.3300832.580755

Common questions

How do I calculate a p value from a known t statistic?
Select Probability and enter the t statistic and degrees of freedom from your test. Read as selects Lower, Upper, or Two-sided. At 10 degrees of freedom and t = 2.228139, the upper tail is 0.025000 and the two-sided p value is 0.050000. This converts an existing statistic; it does not calculate a t statistic from sample data or perform the test for you.
Is my p value one-sided or two-tailed?
Lower means P(T <= t), the area to the left of t. Upper means P(T >= t), the area to the right. Two-sided, also called two-tailed, means P(|T| >= |t|), both tails beyond the magnitude of t. That is twice the upper tail at |t|, including when the entered t is negative.
How do I find a percentile or inverse t value?
Select Critical value, choose Lower, and enter the cumulative probability as a decimal or percentage. A 95th percentile uses 0.95 or 95%. At 10 degrees of freedom it gives t = 1.812461. Upper instead takes the area to the right of the cutoff, while Two-sided takes the combined area in both outer tails.
What is the critical t value for a 95% confidence interval?
Select Critical value, choose Two-sided, and enter 0.05, the area outside a 95% interval. At 10 degrees of freedom, the positive cutoff is 2.228139 and the negative cutoff has the opposite sign. This finds the critical multiplier; it does not calculate confidence interval endpoints from a sample mean, standard deviation, and sample size.
What degrees of freedom can I enter?
The calculator accepts whole or fractional degrees of freedom from 0.0001 through 1000000. For a one-sample t statistic, degrees of freedom are n - 1. For a pooled two-sample statistic they are n1 + n2 - 2. A Welch test can supply a fractional value such as 7.5. Enter the degrees of freedom already calculated for your statistic; this page does not derive them from sample inputs.
What do the graph, CDF, and density show?
The CDF is the lower cumulative probability, the area to the left of t. The density is the height f(t), not a probability at that exact point. The graph shades the selected lower, upper, or two-sided area. It displays at most -12 to 12; an off-scale cutoff is described in the graph label without a shaded region. It does not accept two separate interval bounds.
How do I read the t distribution table?
Each table column gives a positive critical t value for the stated one-sided tail probability. Double that probability to get the combined two-sided tail area. For a degree of freedom or probability absent from the table, the Critical value controls calculate it directly.
How accurate are the displayed probabilities and quantiles?
The numerical accuracy was measured against a 120-digit reference over 294 cases, with degrees of freedom from 0.5 to 1000000. Measured relative errors were within 1e-14 for tails, densities, and ordinary quantiles, and within 1e-13 for the deepest quantiles. Displayed results are rounded; this does not establish the same error bound for every possible input.
Can a very small tail probability still be shown?
Yes. Probabilities smaller than a double can hold, about 5e-324, are displayed from their logarithms in scientific notation. At 10 degrees of freedom, t = 1e40 still has a nonzero tail displayed. Inverse inputs must be representable and strictly between 0 and 1; an unrepresentable quantile or two-sided half-tail produces an error.
Can I copy the result?
The Copy button copies the answer and working, including full-precision numbers, to the clipboard when the browser permits it. Each case also has a Copy button. If clipboard access is blocked, a message explains how to copy the displayed text by hand. There is no file export or PDF download in this calculator.

Densities, tail probabilities and quantiles for the Student t distribution at the degrees of freedom you set, computed numerically to the precision shown. Lower, upper and two-sided are three different answers to three different questions, so the page labels which one is on screen rather than leave you to infer it. Degrees of freedom below 0.0001 or above 1000000, and a probability at or outside 0 and 1, are rejected by name.