Queendom Tools

Vincenty Formula Calculator

Vincenty's formulae solve the two basic problems of geodesy on an ellipsoid. The inverse problem gives the ellipsoidal distance and the azimuths between two points; the direct problem gives the end point from a start point, an azimuth and a distance. This calculator follows the 1975 equations of T. Vincenty as printed in section 5.1.3 of the ICSM GDA2020 Technical Manual V1.8, computed in double precision on the GRS80 or WGS84 ellipsoid.

It is meant for surveyors, GIS analysts, pilots and developers who need a quick check of a line on the ellipsoid or of their own code. Coordinates are decimal degrees, north and east positive. Distances can be entered and shown in metres, kilometres, statute miles of 1609.344 m or nautical miles of 1852 m, and azimuths are given in decimal degrees and in degrees, minutes and seconds.

Calculator

Point 1
Point 2 (inverse problem)
Azimuth and distance (direct problem)

Results update as you type.

Inverse results

Distance — m
Distance — km
Forward azimuth at point 1 —° —
Reverse azimuth, from point 2 back to point 1 —° —

Direct results

Latitude of point 2 —° —
Longitude of point 2 —° —
Reverse azimuth, from point 2 back to point 1 —° —

How to use the calculator

  1. Choose the problem: inverse for the distance and azimuths between two points, or direct for the end point reached from a start point, an azimuth and a distance.
  2. Choose the ellipsoid, GRS80 or WGS84, and the distance unit: metres, kilometres, statute miles or nautical miles. The unit also sets the unit of the distance shown in the results.
  3. Enter the latitude of point 1, from -90 to 90°, and its longitude, from -180 to 180°, in decimal degrees with north and east positive. The poles are allowed.
  4. For the inverse problem, enter the latitude and longitude of point 2. For the direct problem, enter the azimuth at point 1 in degrees, any value, reduced to 0 to 360° so that 400° acts as 40°, and a distance of 0 or more.
  5. Read the results, which update as you type; Calculate recomputes them. A field that is empty, not a number or out of range shows a message under it and the results show dashes.

Frequently asked questions

Which ellipsoids can I use?

GRS80, with a = 6378137 m and 1/f = 298.257222101, and WGS84, with a = 6378137 m and 1/f = 298.257223563 as defined in NIMA TR8350.2. Both share the same semi-major axis and differ only in flattening.

What does “No solution, the points are nearly antipodal” mean?

The inverse method finds lambda by iteration and stops when it changes by less than 10⁻¹² radian. If lambda exceeds pi in absolute value, or 1000 loops pass without that, no distance is given. This happens for points almost opposite each other, for example from latitude 0, longitude 0 to latitude 0.5, longitude 179.7, or to latitude 0, longitude 180. From the same start to latitude 0.5, longitude 179.5 the iteration still converges, after about 180 loops.

What is the reverse azimuth?

It is the azimuth at point 2 plus 180°, so it gives the direction from point 2 back to point 1. Like the forward azimuth at point 1, it is shown from 0 to 360°, in decimal degrees and in degrees, minutes and seconds.

How can I check the results?

Use the ICSM example from Flinders Peak (latitude -37.9510334167, longitude 144.4248678889) to Buninyong (latitude -37.6528211389, longitude 143.9264955278) on GRS80. The inverse problem gives 54972.2711 m, which ICSM prints as 54972.271 m, a forward azimuth of 306° 52′ 05.37″ and a reverse azimuth of 127° 10′ 25.07″.

Source: T. Vincenty, Survey Review 176 (1975), and the ICSM GDA2020 Technical Manual V1.8, section 5.1.3.