According to the Carothers equation number-average degree of polymerization  is given by
where  is the extent of the reaction and   is the average functionality of reaction mixture. For the gel  can be considered to be infinite, thus the critical extent of the reaction at the gel point is found as
If   is greater or equal to  , gelation occurs.