We derive general equations to calculate the electrooptically induced optical phase shift in resonantly enhanced modulators. The equations are useful in designing modulator electrodes with optimal length and optimal mismatch between electrical and optical velocities. We demonstrate the existence of an optimal velocity mismatch depending on the resonant mode used.Peer Reviewe