What is a spherical rectangle?
A spherical rectangle is a region on a sphere of radius R bounded by four arcs of great circles, with opposite sides of equal length and four equal angles. On a sphere such a figure cannot have right angles: each of its four angles is larger than 90 degrees.
This calculator finds the angle at each corner, the spherical excess, the area, the diagonal and the perimeter from the sphere radius and the two side lengths.
How to use it
Enter the sphere radius R and the two side lengths a and b, measured as arc lengths along the sphere. The two sides together must be shorter than half a great circle, πR. 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
Put the centre of the rectangle at the north pole of a unit sphere. Its two lines of symmetry are great circles, so the corners are \((\pm u, \pm v, w)\). With \(\hat a = a/R\) and \(\hat b = b/R\), the side lengths give \(\cos\hat a = 1 - 2u^2\) and \(\cos\hat b = 1 - 2v^2\), so
$$u = \sin\frac{\hat a}{2}, \qquad v = \sin\frac{\hat b}{2}, \qquad w = \sqrt{1 - u^2 - v^2}$$The corners exist exactly when \(u^2 + v^2 \lt 1\), which is the same as \(\hat a + \hat b \lt \pi\). The diagonal joins \((u, v, w)\) to \((-u, -v, w)\):
$$\sin^2\frac{\hat d}{2} = \sin^2\frac{\hat a}{2} + \sin^2\frac{\hat b}{2}$$The diagonal cuts the rectangle into two triangles with sides \(\hat a, \hat b, \hat d\); the law of cosines in one of them gives the corner angle \(\theta\):
$$\cos\theta = -\tan\frac{\hat a}{2}\tan\frac{\hat b}{2}$$The four angles exceed the 360° of a flat quadrilateral by \(E = 4\theta - 2\pi\), and as for triangles the area is \(R^2 E\):
$$A = 4R^2 \arcsin\left(\tan\frac{\hat a}{2}\tan\frac{\hat b}{2}\right)$$For a small rectangle the tangents are close to \(\hat a/2\) and \(\hat b/2\), so the area approaches ab and the angles approach 90°.
Worked example
The default is a rectangle with sides a = 6 and b = 4 on a sphere of radius R = 10. Each corner angle is about 93.595123°, the diagonal is about 7.281654 units long and the area is about 25.098691 square units.
FAQ
Why are the corners not right angles?
On a sphere the angles of any closed figure made of great-circle arcs add up to more than in the plane. With four equal angles, each one is larger than 90°.
Why must the sides be shorter than half a great circle together?
As a + b approaches πR the corner angle approaches 180°, the four corners reach one great circle and the rectangle fills a whole hemisphere; beyond that no rectangle exists.
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. 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