A series of ring expansion reactions of PO-containing molecules have been developed for the synthesis of medium-sized ring cyclic phosphonate esters and phosphonamidates. The reactivity trends initially appear to be counter-intuitive, compared with more well established ring expansion reactions of lactam derivatives, but are explained by considering the differences in heteroatom bonding to P and C respectively.