In this work, optimal closed-loop test design for control is studied. Simple design formulas are derived based on the asymptotic theory of Ljung. The control scheme used is internal model control (IMC) and the design constraint is the power of the process output or that of the reference signal. The test signal is applied at the setpoint. The results give clear guidelines for closed-loop identification applications.