Degrees of Freedom Calculator

Pick a test, enter the sample sizes, and get the degrees of freedom, including the Welch–Satterthwaite approximation for unequal variances.

TestDegrees of freedom
One-sample / paired tn − 1
Two-sample t (pooled)n₁ + n₂ − 2
Correlationn − 2
Chi-square independence(r − 1)(c − 1)
Goodness of fitk − 1
One-way ANOVAk − 1 and N − k
Regression with p predictorsp and N − p − 1