Quickly calculate degrees of freedom for common statistical situations. Select a calculation type, enter your values, and get a clear result with the formula used.
Select a statistical method and enter the required values.
Degrees of freedom, often abbreviated as df, represent the number of independent values that can vary within a statistical calculation after accounting for estimated parameters or constraints.
The appropriate degrees of freedom depend on the statistical test being performed. Different tests use different formulas, which is why selecting the correct method is important.
Here, n represents the number of observations in the sample. This is one of the most common degrees of freedom formulas used in introductory statistics.
This calculator supports several common statistical situations. Follow these simple steps to calculate the appropriate degrees of freedom.
| Statistical Method | Formula | Variables |
|---|---|---|
| One-Sample / Paired | n − 1 | n = sample size |
| Two Independent Samples | n₁ + n₂ − 2 | n₁, n₂ = sample sizes |
| One-Way ANOVA | k − 1 | k = number of groups |
| Chi-Square Test | (r − 1)(c − 1) | r = rows, c = columns |
| Linear Regression | n − k − 1 | n = observations, k = predictors |
Suppose a researcher has a sample containing 30 observations and wants to perform a one-sample t-test.
Therefore, the test has 29 degrees of freedom. The calculated degrees of freedom can then be used to select the appropriate t-distribution for the statistical analysis.