Answer:
This can't be measured directly (as in, applying a measuring stick), so the distances are calculated in other ways. Several methods are used; for a start, for nearby stars, the star's parallax is measured. The smaller the parallax, the farther away the star is. Parallax is the apparent change in position, of a star, compared to the far-away background, as Earth moves from one side of its orbit, to the other.