The DoF for a mechanism is defined as the number of coordinates or variables required to be specified such that the position and orientation of all the members of the mechanism can be stated as a function of time.
For determining the DoF for a mechanism we will start with assuming all the members of the mechanism free in plane and thus having three DoF each. Then we will apply constraints and DoF will reduce as the members are joined together to form mechanism.
Take the mechanism to be composed of ‘n’ members or links. Initially each link is assumed to be free and thus the mechanism has 3n DoF. One of the members is to be a base or frame link thus have zero DoF or it lost its all three DoF. The DoF left in the mechanism at this stage is 3n-3 or 3(n-1).
When the pairs of links form joints they will loose DoF. If the formed joint have 'Fi' DoF each then reduction in DoF is (3-Fi) as they were initially free (having 3 DoF). If there are 'j' number of joints then total reduction in DoF will be summation of (3-Fi) over 'j' number of joints . The net DoF for a mechanism can be given by