Astronomers use a number of different length
units for different objects. The length unit used is typically determined by two criteria:
#the unit should create manageable numbers
#the unit should be easily derivable from observation
The distances are closely related to the
cosmic distance ladder.
Units used for various astronomical distances
The distances to distant galaxies are typically not quoted in distance units at all, but rather in terms of
redshift. The reasons for this are that converting redshift to distance requires knowledge of the
Hubble constant which was not accurately measured until the early
21st century, and that at cosmological distances, the curvature of
space-time allows one to come up with multiple definitions for distance. For example, the distance as defined by the amount of time it takes for a light beam to travel to you is different from the distance as defined by the apparent size of an object.