What is a spherical triangle?
A spherical triangle is the part of the surface of a sphere of radius R bounded by three arcs of great circles (circles whose centre is the centre of the sphere). Its sides a, b, c are the lengths of those arcs and its angles A, B, C are the angles between the arcs at the corners.
This calculator finds the three angles from the three sides, or the three sides from the three angles, together with the spherical excess, the area and the perimeter.
How to use it
Choose what you know in What do you know?, enter the sphere radius R and then the three sides as arc lengths along the sphere, or the three angles in degrees. Unlike a flat triangle, a spherical triangle is fixed by its three angles alone. The values you enter are shown back unchanged and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes very large and very small values out in full.
Derivation of the formulas
Divide each side by R to get the angle it spans at the centre of the sphere, \(\hat a = a/R\) and so on. The spherical law of cosines links the sides and the angles:
$$\cos\hat a = \cos\hat b\cos\hat c + \sin\hat b\sin\hat c\cos A, \qquad \cos A = -\cos B\cos C + \sin B\sin C\cos\hat a$$For numbers the calculator uses the equivalent half-angle forms, which stay accurate for very small and very large triangles. With \(s = (\hat a + \hat b + \hat c)/2\):
$$\tan\frac{A}{2} = \sqrt{\frac{\sin(s - \hat b)\sin(s - \hat c)}{\sin s\,\sin(s - \hat a)}}$$and, with \(E = A + B + C - \pi\) and \(\Sigma = (A + B + C)/2\), the half-side form
$$\tan^2\frac{\hat a}{2} = \frac{-\cos\Sigma\,\cos(\Sigma - A)}{\cos(\Sigma - B)\cos(\Sigma - C)}$$The angles of a spherical triangle add up to more than 180°. The surplus E is the spherical excess, and Girard's theorem says the area is the excess (in radians) times \(R^2\):
$$A_{\triangle} = R^2 E$$From the sides, the excess comes from L'Huilier's formula, \(\tan\frac{E}{4} = \sqrt{\tan\frac{s}{2}\tan\frac{s - \hat a}{2}\tan\frac{s - \hat b}{2}\tan\frac{s - \hat c}{2}}\), which avoids subtracting 180° from a sum of angles. A triangle with sides exists when each side is shorter than the other two together and the perimeter is shorter than a great circle, \(2\pi R\). A triangle with angles exists when the angles add up to more than 180° and each angle is larger than the sum of the other two minus 180°.
Worked example
The default is a triangle with sides 8, 9 and 10 on a sphere of radius R = 10. Its angles are about 56.807809°, 66.035579° and 78.999766°, the spherical excess is about 21.843153° and the area is about 38.123494 square units.
FAQ
Why do the angles add up to more than 180 degrees?
The surface of a sphere curves, and the surplus over 180° grows with the area of the triangle: it is the area divided by \(R^2\).
Can three right angles make a triangle?
Yes. On a sphere, the triangle with three 90° angles covers one eighth of the surface, and each side is a quarter of a great circle.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000 and each angle from 0.000001 to 179.999999 degrees. Anything outside is refused with a message naming the range.
References
I. Todhunter, Spherical Trigonometry, 5th ed., Macmillan, 1886
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018