HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Spherical Trigonometry on the Celestial Sphere
  1. 1Great circles, small circles and the celestial sphere
  2. 2The cosine and sine rules for spherical triangles
  3. 3The angular distance between two stars
  1. Space Science and Astronomy
  2. /Spherical Trigonometry on the Celestial Sphere
  3. /The angular distance between two stars

Course 1.1·Lesson 3 of 3

The angular distance between two stars

Two stars and the celestial pole make a spherical triangle. Its sides from the pole are 90∘−δ190^\circ - \delta_190∘−δ1​

Lesson 3 of 3Show all lessonsHide
Spherical Trigonometry on the Celestial Sphere
  1. 1Great circles, small circles and the celestial sphere
  2. 2The cosine and sine rules for spherical triangles
  3. 3The angular distance between two stars

Try the code and the simulations beside the lesson.

How far apart are two stars?

Hold your hand at arm's length. The width of a fist is about 10∘10^\circ10∘ of sky. Observers use it to say that Orion's belt is about 3∘3^\circ3∘ long. But to give an exact value, we need the coordinates of the stars and the cosine rule.

The triangle with the pole

A spherical triangle used to find the angular distance between two stars. Its top corner is the north celestial pole P. Two great-circle arcs run down from P, one to star X1 and one to star X2. The arc from P to X1 is labelled 90 degrees minus delta 1, and the arc from P to X2 is labelled 90 degrees minus delta 2. The angle at P between the two arcs is labelled the difference of the right ascensions, alpha 1 minus alpha 2. The third side, from X1 to X2, is labelled theta, the angular distance. The celestial equator is drawn as a curve below the two stars.

Take two stars, X1X_1X1​ at (α1,δ1)(\alpha_1, \delta_1)(α1​,δ1​) and X2X_2X2​ at (α2,δ2)(\alpha_2, \delta_2)(α2​,δ2​), and the north celestial pole PPP.

  • The arc PX1PX_1PX1​ runs along a circle of right ascension. It is 90∘−δ190^\circ - \delta_190∘−δ1​.
  • The arc PX2PX_2PX2​ is 90∘−δ290^\circ - \delta_290∘−δ2​.
  • The angle at PPP between the two arcs is the difference of the right ascensions, Δα=α1−α2\Delta\alpha = \alpha_1 - \alpha_2Δα=α1​−α2​, changed to degrees.

The side X1X2X_1X_2X1​X2​ is the angular distance θ\thetaθ. The cosine rule gives

cos⁡θ=cos⁡(90∘−δ1)cos⁡(90∘−δ2)\displaystyle \cos\theta = \cos(90^\circ - \delta_1)\cos(90^\circ - \delta_2)cosθ=cos(90∘−δ1​)cos(90∘−δ2​)
+sin⁡(90∘−δ1)sin⁡(90∘−δ2)\displaystyle \quad + \sin(90^\circ - \delta_1)\sin(90^\circ - \delta_2)+sin(90∘−δ1​)sin(90∘−δ2​)
×cos⁡Δα\displaystyle \quad \times \cos\Delta\alpha×cosΔα

which becomes

cos⁡θ=sin⁡δ1sin⁡δ2\displaystyle \cos\theta = \sin\delta_1\sin\delta_2cosθ=sinδ1​sinδ2​
+cos⁡δ1cos⁡δ2cos⁡Δα\displaystyle \qquad + \cos\delta_1\cos\delta_2\cos\Delta\alpha+cosδ1​cosδ2​cosΔα

The formula works for stars in either hemisphere, if southern declinations are negative.

Hours to degrees

Right ascension is given in hours, minutes and seconds of time. The full circle is 24 h=360∘24\ \text{h} = 360^\circ24 h=360∘, so

1 h=15∘,1 min=15′\displaystyle 1\ \text{h} = 15^\circ, \quad 1\ \text{min} = 15'1 h=15∘,1 min=15′
1 s=15′′\displaystyle 1\ \text{s} = 15''1 s=15′′

Declination is given in degrees, arcminutes and arcseconds.

Worked example: the two brightest stars of Gemini

Take Castor at α=7 h 34.6 min\alpha = 7\ \text{h}\ 34.6\ \text{min}α=7 h 34.6 min, δ=+31.89∘\delta = +31.89^\circδ=+31.89∘ and Pollux at α=7 h 45.3 min\alpha = 7\ \text{h}\ 45.3\ \text{min}α=7 h 45.3 min, δ=+28.03∘\delta = +28.03^\circδ=+28.03∘.

  1. The angle at the pole. Δα=10.7 min\Delta\alpha = 10.7\ \text{min}Δα=10.7 min of time =10.7×15′=160.5′=2.675∘= 10.7 \times 15' = 160.5' = 2.675^\circ=10.7×15′=160.5′=2.675∘.
  2. The two terms. sin⁡31.89∘sin⁡28.03∘=0.24826\sin 31.89^\circ\sin 28.03^\circ = 0.24826sin31.89∘sin28.03∘=0.24826 and cos⁡31.89∘cos⁡28.03∘cos⁡2.675∘=0.74865\cos 31.89^\circ\cos 28.03^\circ\cos 2.675^\circ = 0.74865cos31.89∘cos28.03∘cos2.675∘=0.74865.
  3. The distance. cos⁡θ=0.99691\cos\theta = 0.99691cosθ=0.99691, so θ=4.50∘\theta = 4.50^\circθ=4.50∘.
  4. Check with a flat sky. For close stars, θ2≈(Δαcos⁡δm)2+(Δδ)2\theta^2 \approx (\Delta\alpha\cos\delta_m)^2 + (\Delta\delta)^2θ2≈(Δαcosδm​)2+(Δδ)2, where δm=29.96∘\delta_m = 29.96^\circδm​=29.96∘ is the mean declination. This gives (2.318∘)2+(3.86∘)2=4.50∘\sqrt{(2.318^\circ)^2 + (3.86^\circ)^2} = 4.50^\circ(2.318∘)2+(3.86∘)2​=4.50∘. The two agree.

Notice the digits in step 3. Had we rounded cos⁡θ\cos\thetacosθ to 0.9970.9970.997, we would get 4.44∘4.44^\circ4.44∘, an error of more than 1′1'1′ in every 1∘1^\circ1∘. Near cos⁡θ=1\cos\theta = 1cosθ=1 a tiny change in the cosine is a large change in the angle.

Small distances need care

When θ\thetaθ is small, cos⁡θ\cos\thetacosθ is very close to 111, and rounding spoils the answer, as step 3 showed. Two cures are used.

  • Keep many digits, as a computer does.
  • Use the haversine form, where hav x=sin⁡2(x/2)\text{hav}\,x = \sin^2(x/2)havx=sin2(x/2):
hav θ=hav(Δδ)\displaystyle \text{hav}\,\theta = \text{hav}(\Delta\delta)havθ=hav(Δδ)
+cos⁡δ1cos⁡δ2 hav(Δα)\displaystyle \qquad + \cos\delta_1\cos\delta_2\,\text{hav}(\Delta\alpha)+cosδ1​cosδ2​hav(Δα)

It contains no number close to 111, so it stays accurate for close pairs.

The same triangle on the Earth

Replace the pole of the sky by the North Pole, declination by latitude ϕ\phiϕ, and right ascension by longitude λ\lambdaλ. The triangle gives the great-circle distance between two places:

cos⁡θ=sin⁡ϕ1sin⁡ϕ2\displaystyle \cos\theta = \sin\phi_1\sin\phi_2cosθ=sinϕ1​sinϕ2​
+cos⁡ϕ1cos⁡ϕ2cos⁡Δλ\displaystyle \qquad + \cos\phi_1\cos\phi_2\cos\Delta\lambda+cosϕ1​cosϕ2​cosΔλ

The sine and cosine rules in the same triangle give the initial course, the direction in which to set off, measured from north through east. A ship on a great circle must change its course all the way along.

Put both stars on the equator, with declinations 0∘0^\circ0∘. What is the distance for Δα=6\Delta\alpha = 6Δα=6 h? Now raise both to +80∘+80^\circ+80∘. Why is the distance so much smaller for the same Δα\Delta\alphaΔα?

Practise with new numbers

Try it in Python

The program finds the three sides of the Summer Triangle, made by Vega, Deneb and Altair, and the angles at its corners.

Predict first. Which side is the longest? Then run it. Check with Show the answer.

1. Add up the three angles. How much larger than 180∘180^\circ180∘ is the sum?

2. Replace Deneb with Sadr, at RA 20.370 h and Dec 40.257. How does the triangle change?

Common mistakes

  • Forgetting to change hours to degrees. Δα\Delta\alphaΔα in the formula must be in degrees: multiply hours by 151515.
  • Using the flat sky for wide pairs. Pythagoras works only for stars close together.
  • Rounding cos⁡θ\cos\thetacosθ too soon. Near θ=0\theta = 0θ=0 keep many digits, or use the haversine form.
  • Dropping the sign of a southern declination. sin⁡δ\sin\deltasinδ is negative south of the equator.

Remember these

  • cos⁡θ=sin⁡δ1sin⁡δ2+cos⁡δ1cos⁡δ2cos⁡Δα\cos\theta = \sin\delta_1\sin\delta_2 + \cos\delta_1\cos\delta_2\cos\Delta\alphacosθ=sinδ1​sinδ2​+cosδ1​cosδ2​cosΔα.
  • The triangle is pole, star, star, with sides 90∘−δ90^\circ - \delta90∘−δ and the angle Δα\Delta\alphaΔα at the pole.
  • 1 h=15∘1\ \text{h} = 15^\circ1 h=15∘, 1 min=15′1\ \text{min} = 15'1 min=15′, 1 s=15′′1\ \text{s} = 15''1 s=15′′.
  • On the Earth, use latitude and longitude in the same formula.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Two stars have the same right ascension. Their declinations are +20∘+20^\circ+20∘ and −15∘-15^\circ−15∘. How far apart are they?
  1. A star is at declination +70∘+70^\circ+70∘. How far is it from the north celestial pole, and from the south celestial pole?
  1. Two stars at declination +60∘+60^\circ+60∘ differ in right ascension by 121212 h. How far apart are they?
  1. Why is the flat formula θ2=Δδ2+(Δα)2\theta^2 = \Delta\delta^2 + (\Delta\alpha)^2θ2=Δδ2+(Δα)2 wrong even for close stars near the pole?

References

  • J. Meeus, Astronomical Algorithms (2nd edition, Willmann-Bell), Chapter 17, Angular Separation.
  • W. M. Smart, Textbook on Spherical Astronomy (6th edition, Cambridge University Press), Chapter 2, The celestial sphere.

Enroll free in Spherical Trigonometry on the Celestial Sphere

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A star atlas gives these positions. Betelgeuse: α = 5 h 55.2 min, δ = +7.41°…Hard · High School (11–12) · by StemPy Lab
An aircraft flies the shortest route from Delhi, at latitude 28.61° N and longitude 77.21° E, to…Advanced · High School (11–12) · by StemPy Lab
In the north, two stars of the Plough (Big Dipper), Merak and Dubhe, point to Polaris…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Spherical Trigonometry on the Celestial Sphere
← The cosine and sine rules for spherical trianglesNext →

Discussion (0)

Log in to join the discussion.

Loading…

and
90∘−δ290^\circ - \delta_290∘−δ2​
, and the angle at the pole is
Δα\Delta\alphaΔα
. The cosine rule then gives the angular distance
θ\thetaθ
between the stars.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Angular distances in codePython Lab · by StemPy Lab

Question Sets (1)

Spherical Trigonometry: Concept Check10 questions · by StemPy Lab

Notes (1)

Spherical Trigonometry on the Celestial Sphere: Quick RevisionNote · by StemPy Lab