For stars a few thousand light-years away the standard method exploits an optical effect called parallax. Hold a pen in your hand and watch its tip as you move your head from side to side: it appears to move relative to objects in the background. Move it further away and it appears to move less. The same is true of stars, whose distance can be calculated by observing their shifting position seen at different points in the Earth’s orbit.