<ol>
<li><p>If you know the distances of both objects to the Earth and the angular separation between them, using the law of cosines is the only reasonable option.</p>
</li>
<li><p>Suppose you know the distances of both objects to the Earth, but not the angular separation. Since you probably also know the coordinates of both stars <span class="math-container">$\alpha_1, \ \delta_1$</span> and <span class="math-container">$\alpha_2, \ \delta_2$</span>, first calculate the angular separation <span class="math-container">$\theta$</span> between the two stars using:</p>
</li>
</ol>
<p><span class="math-container">$$\cos \theta = \sin\delta_1 \sin\delta_2 + \cos\delta_1 \cos\delta_2 \cos(\alpha_1 - \alpha_2)$$</span></p>
<p>Now you know the cosine of the angle of separation <span class="math-container">$\boldsymbol{\cos \theta}$</span> and you can use the law of cosines to calculate the distance between the two objects.</p>
<p><span class="math-container">$$d=\sqrt{d_1^2+d_2^2-2 \ d_1 d_2 \cos \theta \, \, }$$</span></p>
<ol start="3">
<li>Of course, in general, if only the distances to the Earth are known, but neither the angular separation nor the coordinates, it is not possible to calculate the distance between them.</li>
</ol>
<p>Best regards.</p>
<p>PD. A related question, when objects are at cosmological distances: <a href="https://astronomy.stackexchange.com/a/53498/31201"><strong>Comoving distance between two points [(RA1, Dec1, z1) and (RA2, Dec2, z2)</strong>]</a></p>

CC BY-SA 4.0
2023-05-31T10:41:05.480Z
(Of course), your equation for the angular separation is just the law of cosines in spherical trigonometry.
PM 2Ring
CC BY-SA 4.0
2023-05-29T09:36:33.423Z
2023-05-29T10:51:41.983Z
2023-05-29T10:51:41.983Z
Albert
<p>I wanted to calculate the distance between the end points of the Orion's belt (Alnitak and Mintaka).</p>
<p>I searched in the internet and I found out their angular separation to be 2.736°.</p>
<p>Then I searched for the actual distances of the two stars from Earth; and it turned to be 1260 light years for Alnitak and 1200 light years for Mintaka.</p>
<p>Then I used the cosines law to find the actual distance between the two stars. I reached 84 light years as the answer.</p>
<p><strong>Questions</strong>:</p>
<ul>
<li>Is the cosines law a good way to find the actual distance between two celestial objects in such far distances?</li>
<li>Is there another way to find the actual distance between two celestial objects?</li>
<li>Can we find the actual distance between two celestial bodies if we don't know the angular distance between them?</li>
</ul>

CC BY-SA 4.0
2023-05-28T15:00:27.717Z
How accurate and precise do you need these distances to be? According to Wikipedia, the margin of error on [Alnitak's](https://en.wikipedia.org/wiki/Alnitak) distance from earth is ±180 light-years, and for [Mintaka](https://en.wikipedia.org/wiki/Mintaka), ±90 light years or more, so the real distance between the two stars is probably larger than 84 light-years.
notovny
<distances><angular-resolution>
How to find the distance between stars
Snack Exchange
# How to find the distance between stars

(Asked by: username_0 on 2023-05-28)

I wanted to calculate the distance between the end points of the Orion's belt (Alnitak and Mintaka).

I searched in the internet and I found out their angular separation to be 2.736°.

Then I searched for the actual distances of the two stars from Earth; and it turned to be 1260 light years for Alnitak and 1200 light years for Mintaka.

Then I used the cosines law to find the actual distance between the two stars. I reached 84 light years as the answer.

**Questions**:

* Is the cosines law a good way to find the actual distance between two celestial objects in such far distances?
* Is there another way to find the actual distance between two celestial objects?
* Can we find the actual distance between two celestial bodies if we don't know the angular distance between them?

**Tags:** distances, angular-resolution
> **Comments:**
> **username_1**: How accurate and precise do you need these distances to be? According to Wikipedia, the margin of error on [Alnitak's](https://en.wikipedia.org/wiki/Alnitak) distance from earth is ±180 light-years, and for [Mintaka](https://en.wikipedia.org/wiki/Mintaka), ±90 light years or more, so the real distance between the two stars is probably larger than 84 light-years.  

---

## 1 answers

### Answer by username_2 on 2023-05-29. Score: 4 | Accepted answer

1. If you know the distances of both objects to the Earth and the angular separation between them, using the law of cosines is the only reasonable option.
2. Suppose you know the distances of both objects to the Earth, but not the angular separation. Since you probably also know the coordinates of both stars $\alpha\_1, \ \delta\_1$ and $\alpha\_2, \ \delta\_2$, first calculate the angular separation $\theta$ between the two stars using:

$$\cos \theta = \sin\delta\_1 \sin\delta\_2 + \cos\delta\_1 \cos\delta\_2 \cos(\alpha\_1 - \alpha\_2)$$

Now you know the cosine of the angle of separation $\boldsymbol{\cos \theta}$ and you can use the law of cosines to calculate the distance between the two objects.

$$d=\sqrt{d\_1^2+d\_2^2-2 \ d\_1 d\_2 \cos \theta \, \, }$$

3. Of course, in general, if only the distances to the Earth are known, but neither the angular separation nor the coordinates, it is not possible to calculate the distance between them.

Best regards.

PD. A related question, when objects are at cosmological distances: [**Comoving distance between two points [(RA1, Dec1, z1) and (RA2, Dec2, z2)**]](https://astronomy.stackexchange.com/a/53498/31201)

> **Comments:**
> **username_3**: (Of course), your equation for the angular separation is just the law of cosines in spherical trigonometry.  

---

