What the term tells you
Identify the procedure before interpreting the reported degrees of freedom. For a one-sample or paired t-test, check n − 1 using the number of observations or complete pairs. For a chi-square independence test, use (rows − 1) × (columns − 1). More complex models may use different or approximate degrees of freedom; consult the stated method and check that it matches the analyzed data.
Ask which constraints or fitted parameters consume independent information. In a simple sample variance that is one estimated mean, while a chi-square independence test uses the row and column counts of the table.