Astronomers use several methods to determine the distance between stars and galaxies. These include parallax measurements for nearby stars, Cepheid variable stars and supernovae as distance indicators, and redshift measurements for galaxies, which indicate their recession velocity and, therefore, their distance.