Beyond the reach of the Wilson–Bappu effect, the next method relies on the period-luminosity relation of classical Cepheid variable stars. The following relation can be used to calculate the distance to Galactic and extragalactic classical Cepheids: