# Degrees of Freedom Calculator for Sample T-Test

The number of independent ways a dynamic system can move without breaking any limitations applied on them is the number of degrees of freedom. In this calculator, the degree of freedom for one sample and two sample t-tests are calculated based on number of elements in sequences.

The number of independent ways a dynamic system can move without breaking any limitations applied on them is the number of degrees of freedom. In this calculator, the degree of freedom for one sample and two sample t-tests are calculated based on number of elements in sequences.

Code to add this calci to your website

#### One Sample T-Test Formula:

d = n_{1} - 1
#### Two Sample T-Test Formula:

df = (n_{1} + n_{2}) - 2
**Where,**
df = Degree of Freedom
n_{1} = Total Number in Sequence 1
n_{2} = Total Number in Sequence 2
The DF is calculated separately for one sample and two sample t-test.