COGO Inverse (Two Points to Bearing and Distance)

From two known points, the straight-line distance and the azimuth of the line between them.

Run the calculator

Example

You enter

You get

Checked against published worked examples from: Coordinate geometry (Ghilani & Wolf, FM 5-233).

Details, formula, and sources

Scopedistance = sqrt(dN^2 + dE^2), azimuth = atan2(dE, dN) clockwise from north; dN = N2-N1, dE = E2-E1. From N5000/E5000 to N5141.42/E5141.42 the line runs 200.00 ft at azimuth 45.00 deg. Read it as a quadrant bearing by converting the azimuth. Plane geometry - no curvature or grid scale factor; the project control governs.

Formula or tabledN = N2 - N1; dE = E2 - E1; distance = sqrt(dN^2 + dE^2); azimuth = atan2(dE, dN) x 180/pi, normalized to 0-360 deg (clockwise from north).

Source and editionFirst-principles coordinate geometry (the COGO inverse) as compiled in the standard route-surveying references (Ghilani & Wolf, Elementary Surveying; FM 5-233), by name.

Free accessThe point-to-point inverse (distance and azimuth from two coordinates) is a public surveying result.

What governsEstimate. AHJ and licensed professional govern.

API field namesstart_n, start_e, end_n, end_e, distance_ft, azimuth_deg

Related tools