The effect of molecular structure on density has been examined in high molecular weight esters (molecular weight 300-900), having varying degrees of branching. Densities were calculated from an empirical equation, which agrees well with the experimental values (error +/-1.5%), irrespective of branching. Since density is related to molecular packing and hence to the molecular rotation, in n-alkanes, the glass transition temperature (T(g)) and density both increase with molecular weight, and hence T(g) is directly related to the density. The esters exhibit a complex behavior. In linear esters the T(g) decreases with molecular weight which is explained from group contribution and molecular interactions. In the +-branched esters, however, T(g) decreases with molecular weight until the molecular weight reaches 600 and increases sharply thereafter. The Y-branched esters show an intermediate behavior. The dependence of T(g) on molecular weight has been explained from the segmental motion.