Degrees of Freedom Calculator
Find degrees of freedom for one- or two-sample tests.
Degrees of freedom count the independent pieces of information in an estimate.
The math behind it
A one-sample test has n - 1 df; a two-sample t-test has n1 + n2 - 2.
Worked example
n1 30, one-sample gives df 29.
FAQ
Why n - 1?
Estimating the mean uses up one degree of freedom.