Question: how to calculate the distance of stars?
Answer: Astronomers estimate the distance of nearby objects in space by using a method called stellar parallax, or trigonometric parallax. Simply put, they measure a star's apparent movement against the background of more distant stars as Earth revolves around the sun.