Haversine formula
Statement
For a real number , let . Let and be points on a sphere of radius , with latitudes and longitudes . Let be the great-circle distance between and , and let . Then Consequently
Remarks
The proof starts from the spherical law of cosines, . Substitute for and . Then use and rearrange. The second formula follows because , where is invertible. Example: two points on the equator with give , so and .
Going deeper
For a student
The haversine form is a rewriting of the spherical law of cosines from spherical trigonometry. Its numerical weakness is the opposite case: for nearly antipodal points, the argument of is close to . A formula with , as used by Vincenty for the sphere, is accurate for all pairs. On the Earth, the spherical model gives errors up to about ; for better accuracy one solves the geodesic problem on the ellipsoid.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Great-circle distance concept
- Spherical trigonometry concept
- Haversine formula statement
Further reading
About this page
| Tag | AQADG9N8EV |
|---|---|
| URI | m2://AQADG9N8EV |
| Kind | statement, proposition |
| Writing | W0 stub |
| MSC | 51M09, 86A30 |
| Status | This copy of the site has no build data. Run m2 status AQADG9N8EV. |
| About | Great-circle distance |
| Uses | Great-circle distance, Spherical trigonometry |
| Same as | |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.