Abstract: For magnetic gears (MGs) employed in flywheel and synchronous condenser energy storage systems (ESS), this paper introduces a method to maximize torque density under stress constraints.