<p>Just to add another method. As hinted in a comment one can find the angular distance between the starts. How to find the angular distance?</p>
<p>Imagine the spherical triangle formed by the locations of the two stars and the North or South pole. Let's use the South pole in this case.  We have: 1) the angle at the pole which is the difference in RA's: 3h 18m 12s (=49.55°) - let's mark this angle with <span class="math-container">$p$</span>; 2) we have also the arcs next to this angle - their lengths are the declination differences from the declination of -90. That is 29.16° (for AlphaC) - Let's mark it with <span class="math-container">$A$</span> and 94.69° (for Barnard's) - Let's mark it with <span class="math-container">$B$</span>. Now, we are looking for the third arc - <span class="math-container">$X$</span>. the length of the third arc is basically the angular distance from the center of the Earth. According to <a href="https://en.wikipedia.org/wiki/Spherical_law_of_cosines" rel="nofollow noreferrer">Spherical law of cosines</a>:</p>
<p><span class="math-container">$$\cos (X) = \cos(A)\cos(B) + \sin(A)\sin(B)\cos(p) \Rightarrow$$</span></p>
<p><span class="math-container">$$\cos(X) = \cos(29.16°)\cos(94.69°) + \sin(29.16°)\sin(94.69°)\cos(49.55°) \Rightarrow$$</span></p>
<p><span class="math-container">$$X = 75.89°$$</span>.</p>
<p>Now, we can use the cosine theorem for the Euclidian Triangle (Earth-center, Star A, Star B). As we have 2 sides length and the angle between them which results in <strong><span class="math-container">$6.49ly$</span></strong> (using the distances from the question))</p>

CC BY-SA 4.0
2021-10-28T19:34:10.713Z
2021-10-29T21:18:26.693Z
2021-10-29T21:18:26.693Z
d_e
<p>To find the distance from one star to another, we need three things for both of the stars: their right ascensions, declinations, and the distance from Earth to those stars.</p>
<p>So, let's get those things:</p>
<p>From the <a href="https://en.wikipedia.org/wiki/Alpha_Centauri" rel="nofollow noreferrer">Wikipedia page on Alpha Centauri</a>:</p>
<p><span class="math-container">$RA = 14^h\:39^m\:36.49400^s$</span></p>
<p><span class="math-container">$DEC = -60^{\circ}\:50'\:0.23737''$</span></p>
<p><span class="math-container">$R = 4.37\:\rm{ly}$</span> (you gave 4.366, some other sources give 4.367... I'm going to stick with 4.37)</p>
<p>and for <a href="https://en.wikipedia.org/wiki/Barnard%27s_Star" rel="nofollow noreferrer">Barnard's Star</a>:</p>
<p><span class="math-container">$RA = 17^h\: 57^m\: 48.49303^s$</span></p>
<p><span class="math-container">$DEC = +04^{\circ}\: 41'\: 36.2072''$</span></p>
<p><span class="math-container">$R = 5.958 \: \rm{ly}$</span> (again, you gave a slightly different value, I'm sticking with Wikipedia for now)</p>
<p>where RA is right ascension, DEC is declination, and R is radial distance from Earth to the target star.</p>
<p>Now, by themselves, it is relatively difficult for us to obtain an actual distance. What I would do is convert these to rectangular coordinates, and then it's a matter of using the 3-d distance formula.</p>
<p>First, however, we need to convert RA and DEC into units like radians or degrees.</p>
<p>For right ascension, we can use the general formula:</p>
<p><span class="math-container">$degrees = 15  (h + \dfrac{m}{60} + \dfrac{s}{3600})$</span></p>
<p>and for declination:</p>
<p><span class="math-container">$degrees = deg + \dfrac{m}{60} + \dfrac{s}{3600}$</span></p>
<p>(when the declination is negative, however, multiply all terms in the formula by -1)</p>
<p>So, for Alpha Centauri AB, we have:</p>
<p><span class="math-container">$RA = 15  (14 + \dfrac{39}{60} + \dfrac{36.49400}{3600}) \approx 219.902^{\circ}$</span></p>
<p><span class="math-container">$DEC = -1  (60 + \dfrac{50}{60} + \dfrac{0.23737}{3600}) \approx -60.833^{\circ}$</span></p>
<p>and for Barnard's Star, we have:</p>
<p><span class="math-container">$RA = 15  (17 + \dfrac{57}{60} + \dfrac{48.49303}{3600}) \approx 269.452^{\circ}$</span></p>
<p><span class="math-container">$DEC = 04 + \dfrac{41}{60} + \dfrac{36.2072}{3600} \approx 4.693^{\circ}$</span></p>
<p>Now, to convert from spherical to rectangular coordinates, we have to define which of RA, DEC, and R can be assigned to <span class="math-container">$r$</span>, <span class="math-container">$\theta$</span>, and <span class="math-container">$\phi$</span>. R should be <span class="math-container">$r$</span> - that's pretty straightforward. Since RA can be thought of as &quot;celestial longitude&quot;, we'll assign it to <span class="math-container">$\theta$</span>, and thus declination will be <span class="math-container">$\phi$</span>.</p>
<p>To clarify, I'm defining <span class="math-container">$\phi$</span> as the angle from the xy-plane - so a <span class="math-container">$\phi$</span> of <span class="math-container">$\dfrac{\pi}{2}$</span> would mean pointing straight upwards. I know some sources define <span class="math-container">$\phi$</span> as the angle <em>complementary</em> to that angle (so, <span class="math-container">$\dfrac{\pi}{2}$</span> -
the angle from the xy-plane), but for astronomical purposes, I think the definition I'm using is more intuitive and easier to work with.</p>
<p>We can then use the conversions:</p>
<p><span class="math-container">$x = r\cos{\theta}\cos{\phi}$</span></p>
<p><span class="math-container">$y = r\sin{\theta}\cos{\phi}$</span></p>
<p><span class="math-container">$z = r\sin{\phi}$</span></p>
<p>So, for Alpha Centauri AB:</p>
<p><span class="math-container">$x = 4.37  \cos{219.902^{\circ}}  \cos{−60.833^{\circ}} \approx -1.634\: \rm{ly}$</span></p>
<p><span class="math-container">$y = 4.37  \sin{219.902^{\circ}}  \cos{−60.833^{\circ}} \approx -1.366\: \rm{ly}$</span></p>
<p><span class="math-container">$z = 4.37  \sin{−60.833^{\circ}} \approx -3.816\: \rm{ly}$</span></p>
<p>and for Barnard's Star:</p>
<p><span class="math-container">$x = 5.958  \cos{269.452^{\circ}}  \cos{4.693^{\circ}} \approx -0.057\: \rm{ly}$</span></p>
<p><span class="math-container">$y = 5.958  \sin{269.452^{\circ}}  \cos{4.693^{\circ}} \approx -5.938\: \rm{ly}$</span></p>
<p><span class="math-container">$z = 5.958  \sin{4.693^{\circ}} \approx 0.487\: \rm{ly}$</span></p>
<p>And now, finally, we can use the distance formula for 3-d:</p>
<p><span class="math-container">$d = \sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2 + (z_1 - z_2)^2}$</span></p>
<p>So, the distance between Alpha Centauri AB and Barnard's Star is:</p>
<p><span class="math-container">$d = \sqrt{(-1.643 + 0.057)^2 + (-1.366 + 5.938)^2 + (-3.816 - 0.487)^2} \approx\mathbf{6.476\,ly}$</span></p>
<p>Well, that was certainly tedious - but it's a process that you can standardize to pretty much any star, or really, any two astronomical objects:</p>
<p>First, convert RA and DEC to degrees.</p>
<p>Second, assign R, RA, and DEC to the spherical coordinates <span class="math-container">$r$</span>, <span class="math-container">$\theta$</span>, and <span class="math-container">$\phi$</span>.</p>
<p>Third, convert spherical coordinates to rectangular coordinates.</p>
<p>Lastly, use the distance formula with the two sets of <span class="math-container">$x$</span>, <span class="math-container">$y$</span>, and <span class="math-container">$z$</span> coordinates.</p>
<p>Hope this helps. :)</p>

CC BY-SA 4.0
2020-10-30T06:49:30.553Z
Nice explanation. you can even write a code about it, so that you just put the inputs and it tells you the distance.
seVenVo1d
CC BY-SA 4.0
2020-10-30T07:18:58.590Z
It's a bit less tedious if you don't convert to Cartesian coordinates, and just use the cos rule on the angular distance and the radial distances to the 2 stars.
PM 2Ring
CC BY-SA 4.0
2021-10-29T05:48:00.963Z
As d_e noticed, the *z* component of Alpha Centauri should be negative.
PM 2Ring
CC BY-SA 4.0
2021-10-29T19:21:51.910Z
@PM2Ring ahh you're right. Thank you d_e for noticing that as well - let me correct that.
sforsingh
CC BY-SA 4.0
2020-10-30T05:58:54.023Z
2021-10-29T19:24:14.327Z
2021-10-29T19:24:14.327Z
sforsingh
<p>Alpha Centauri AB is the closest star system to Earth (4.366 ly), followed closely by Barnard's star (5.988 ly). The closest star system to Alpha Centauri is Luhman 16 (3.8 ly from α Cen). So I am wondering, what is the distance from α Centauri AB to Barnard's star, and more generally, from one star to a different one (all below 10 pc)?</p>

CC BY-SA 4.0
2020-10-29T22:11:39.897Z
See this https://physics.stackexchange.com/questions/224950/how-can-i-convert-right-ascension-and-declination-to-distances
seVenVo1d
CC BY-SA 4.0
2020-10-29T22:14:10.457Z
I am not an expert in this, but think about the spherical coordinates. You have two position vectors to the stars $\vec{r_1}$ and  $\vec{r_1}$. So the distance between them is simply. $||\vec r_1 - \vec r_2||$. We know their radial distance $r$. Here the problem is that, you need to convert Right ascension and Declination to $\theta$ and $\phi$. But maybe above post helps as well.
seVenVo1d
CC BY-SA 4.0
2020-10-30T06:00:06.017Z
As Layla said, you can use the spherical trig formula in Rob's answer to find the angular distance between the 2 stars. And then you can plug that angle and the distances from Earth to the 2 stars into the [cos rule](https://en.wikipedia.org/wiki/Law_of_cosines) of plane trig to find the distance between them.
PM 2Ring
<star><distances>
What is the distance from Alpha Centauri to Barnard's Star?
WarpPrime
# What is the distance from Alpha Centauri to Barnard's Star?

(Asked by: username_0 on 2020-10-29)

Alpha Centauri AB is the closest star system to Earth (4.366 ly), followed closely by Barnard's star (5.988 ly). The closest star system to Alpha Centauri is Luhman 16 (3.8 ly from α Cen). So I am wondering, what is the distance from α Centauri AB to Barnard's star, and more generally, from one star to a different one (all below 10 pc)?

**Tags:** star, distances

> **Comments:**
> **username_1**: See this https://physics.stackexchange.com/questions/224950/how-can-i-convert-right-ascension-and-declination-to-distances  
> **username_1**: I am not an expert in this, but think about the spherical coordinates. You have two position vectors to the stars $\vec{r_1}$ and  $\vec{r_1}$. So the distance between them is simply. $||\vec r_1 - \vec r_2||$. We know their radial distance $r$. Here the problem is that, you need to convert Right ascension and Declination to $\theta$ and $\phi$. But maybe above post helps as well.  
> **username_2**: As Layla said, you can use the spherical trig formula in Rob's answer to find the angular distance between the 2 stars. And then you can plug that angle and the distances from Earth to the 2 stars into the [cos rule](https://en.wikipedia.org/wiki/Law_of_cosines) of plane trig to find the distance between them.  

---

## 2 answers

### Answer by username_4 on 2020-10-30. Score: 9 | Accepted answer

To find the distance from one star to another, we need three things for both of the stars: their right ascensions, declinations, and the distance from Earth to those stars.

So, let's get those things:

From the [Wikipedia page on Alpha Centauri](https://en.wikipedia.org/wiki/Alpha_Centauri):

$RA = 14^h\:39^m\:36.49400^s$

$DEC = -60^{\circ}\:50'\:0.23737''$

$R = 4.37\:\rm{ly}$ (you gave 4.366, some other sources give 4.367... I'm going to stick with 4.37)

and for [Barnard's Star](https://en.wikipedia.org/wiki/Barnard%27s_Star):

$RA = 17^h\: 57^m\: 48.49303^s$

$DEC = +04^{\circ}\: 41'\: 36.2072''$

$R = 5.958 \: \rm{ly}$ (again, you gave a slightly different value, I'm sticking with Wikipedia for now)

where RA is right ascension, DEC is declination, and R is radial distance from Earth to the target star.

Now, by themselves, it is relatively difficult for us to obtain an actual distance. What I would do is convert these to rectangular coordinates, and then it's a matter of using the 3-d distance formula.

First, however, we need to convert RA and DEC into units like radians or degrees.

For right ascension, we can use the general formula:

$degrees = 15 (h + \dfrac{m}{60} + \dfrac{s}{3600})$

and for declination:

$degrees = deg + \dfrac{m}{60} + \dfrac{s}{3600}$

(when the declination is negative, however, multiply all terms in the formula by -1)

So, for Alpha Centauri AB, we have:

$RA = 15 (14 + \dfrac{39}{60} + \dfrac{36.49400}{3600}) \approx 219.902^{\circ}$

$DEC = -1 (60 + \dfrac{50}{60} + \dfrac{0.23737}{3600}) \approx -60.833^{\circ}$

and for Barnard's Star, we have:

$RA = 15 (17 + \dfrac{57}{60} + \dfrac{48.49303}{3600}) \approx 269.452^{\circ}$

$DEC = 04 + \dfrac{41}{60} + \dfrac{36.2072}{3600} \approx 4.693^{\circ}$

Now, to convert from spherical to rectangular coordinates, we have to define which of RA, DEC, and R can be assigned to $r$, $\theta$, and $\phi$. R should be $r$ - that's pretty straightforward. Since RA can be thought of as "celestial longitude", we'll assign it to $\theta$, and thus declination will be $\phi$.

To clarify, I'm defining $\phi$ as the angle from the xy-plane - so a $\phi$ of $\dfrac{\pi}{2}$ would mean pointing straight upwards. I know some sources define $\phi$ as the angle *complementary* to that angle (so, $\dfrac{\pi}{2}$ -
the angle from the xy-plane), but for astronomical purposes, I think the definition I'm using is more intuitive and easier to work with.

We can then use the conversions:

$x = r\cos{\theta}\cos{\phi}$

$y = r\sin{\theta}\cos{\phi}$

$z = r\sin{\phi}$

So, for Alpha Centauri AB:

$x = 4.37 \cos{219.902^{\circ}} \cos{−60.833^{\circ}} \approx -1.634\: \rm{ly}$

$y = 4.37 \sin{219.902^{\circ}} \cos{−60.833^{\circ}} \approx -1.366\: \rm{ly}$

$z = 4.37 \sin{−60.833^{\circ}} \approx -3.816\: \rm{ly}$

and for Barnard's Star:

$x = 5.958 \cos{269.452^{\circ}} \cos{4.693^{\circ}} \approx -0.057\: \rm{ly}$

$y = 5.958 \sin{269.452^{\circ}} \cos{4.693^{\circ}} \approx -5.938\: \rm{ly}$

$z = 5.958 \sin{4.693^{\circ}} \approx 0.487\: \rm{ly}$

And now, finally, we can use the distance formula for 3-d:

$d = \sqrt{(x\_1 - x\_2)^2 + (y\_1 - y\_2)^2 + (z\_1 - z\_2)^2}$

So, the distance between Alpha Centauri AB and Barnard's Star is:

$d = \sqrt{(-1.643 + 0.057)^2 + (-1.366 + 5.938)^2 + (-3.816 - 0.487)^2} \approx\mathbf{6.476\,ly}$

Well, that was certainly tedious - but it's a process that you can standardize to pretty much any star, or really, any two astronomical objects:

First, convert RA and DEC to degrees.

Second, assign R, RA, and DEC to the spherical coordinates $r$, $\theta$, and $\phi$.

Third, convert spherical coordinates to rectangular coordinates.

Lastly, use the distance formula with the two sets of $x$, $y$, and $z$ coordinates.

Hope this helps. :)

> **Comments:**
> **username_1**: Nice explanation. you can even write a code about it, so that you just put the inputs and it tells you the distance.  
> **username_2**: It's a bit less tedious if you don't convert to Cartesian coordinates, and just use the cos rule on the angular distance and the radial distances to the 2 stars.  
> **username_2**: As d_e noticed, the *z* component of Alpha Centauri should be negative.  
> **username_4**: @username_2 ahh you're right. Thank you d_e for noticing that as well - let me correct that.  

---

### Answer by username_3 on 2021-10-28. Score: 5

Just to add another method. As hinted in a comment one can find the angular distance between the starts. How to find the angular distance?

Imagine the spherical triangle formed by the locations of the two stars and the North or South pole. Let's use the South pole in this case. We have: 1) the angle at the pole which is the difference in RA's: 3h 18m 12s (=49.55°) - let's mark this angle with $p$; 2) we have also the arcs next to this angle - their lengths are the declination differences from the declination of -90. That is 29.16° (for AlphaC) - Let's mark it with $A$ and 94.69° (for Barnard's) - Let's mark it with $B$. Now, we are looking for the third arc - $X$. the length of the third arc is basically the angular distance from the center of the Earth. According to [Spherical law of cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines):

$$\cos (X) = \cos(A)\cos(B) + \sin(A)\sin(B)\cos(p) \Rightarrow$$

$$\cos(X) = \cos(29.16°)\cos(94.69°) + \sin(29.16°)\sin(94.69°)\cos(49.55°) \Rightarrow$$

$$X = 75.89°$$.

Now, we can use the cosine theorem for the Euclidian Triangle (Earth-center, Star A, Star B). As we have 2 sides length and the angle between them which results in **$6.49ly$** (using the distances from the question))


---

