# Geocaching Coordinates Distance & Bearing Solver

Solve the exact distance and compass bearing between two GPS coordinates, or project a new waypoint using the Haversine formula.

---

- **Canonical URL:** https://dothecalculation.com/calculators/geocaching-distance-bearing-calculator
- **Category:** Hobbies & Leisure Utilities
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology

---

## Project waypoints and calculate geodetic distances

Solve distance and bearing between coordinates, or project new waypoints using the Haversine formula.

- Haversine spherical distance solver
- Great-circle bearing calculations
- DD, DDM, and DMS coordinate formats

## Spherical Trigonometry and Geodetic Distance

Calculating distances and bearings on Earth requires spherical trigonometry because the Earth is roughly spherical. The shortest distance between two points on a sphere is a great-circle distance.

To calculate this, we use the Haversine formula, which computes the great-circle distance between two points on a sphere given their longitudes and latitudes. Let the coordinates of point 1 be \((\phi_1, \lambda_1)\) and point 2 be \((\phi_2, \lambda_2)\), where \(\phi\) represents latitude and \(\lambda\) represents longitude in radians. Let the differences be \(\Delta \phi = \phi_2 - \phi_1\) and \(\Delta \lambda = \lambda_2 - \lambda_1\). The haversine function \(\text{hav}(\theta) = \sin^2(\theta/2)\) is applied to formulate the spherical distance: \(a = \sin^2(\Delta \phi / 2) + \cos(\phi_1)\cos(\phi_2)\sin^2(\Delta \lambda / 2)\), then \(c = 2 \times \operatorname{atan2}(\sqrt{a}, \sqrt{1-a})\).

The geodetic distance \(d\) is then computed as the product of the Earth's mean radius \(R\) (approximately 6,371,000 meters or 3,959 miles) and the central angle \(c\): \(d = R \times c\). This formula is highly accurate for geocaching purposes, with errors under 0.5% due to the Earth's slight ellipsoidal flattening.

## Great-Circle Bearings and Directional Navigation

The bearing (or azimuth) is the horizontal angle from true north, measured in degrees clockwise from 0° to 360°, indicating the direction of travel from point 1 to point 2 along the great-circle path. Unlike planar geometry where the heading between two points remains constant, the bearing along a great-circle path changes continuously during travel.

To find the initial bearing angle \(\theta\) (in radians) from the starting coordinate to the target, we use the following trigonometric ratio: \(y = \sin(\Delta \lambda) \times \cos(\phi_2)\) and \(x = \cos(\phi_1)\sin(\phi_2) - \sin(\phi_1)\cos(\phi_2)\cos(\Delta \lambda)\), giving \(\theta = \operatorname{atan2}(y, x)\).

To convert \(\theta\) from radians to degrees, multiply by \(180/\pi\). If the result is negative, normalize the compass angle by adding 360° to ensure the bearing lies within the range \([0^{\circ}, 360^{\circ})\).

## Waypoint Projection Mathematics

Waypoint projection is a common puzzle technique in geocaching. Given a starting point \((\phi_1, \lambda_1)\), a distance \(d\), and an initial compass bearing \(\theta\) (in radians), the geocacher must compute the destination coordinates \((\phi_2, \lambda_2)\).

The projected latitude \(\phi_2\) is solved using the spherical law of cosines: \(\phi_2 = \arcsin\left( \sin(\phi_1)\cos(d/R) + \cos(\phi_1)\sin(d/R)\cos(\theta) \right)\).

The projected longitude \(\lambda_2\) is calculated relative to the starting point: \(\lambda_2 = \lambda_1 + \operatorname{atan2}\left( \sin(\theta)\sin(d/R)\cos(\phi_1),\ \cos(d/R) - \sin(\phi_1)\sin(\phi_2) \right)\). After calculation, the longitude \(\lambda_2\) is normalized to ensure it stays within the range \([-180^{\circ}, 180^{\circ}]\) using modulo operations.

## How to Use This Calculator

Choose Project mode to find a destination point from a starting coordinate, distance, and bearing, or Solve mode to find the distance and bearing between two known coordinates. Enter your starting latitude and longitude (and, in Solve mode, the second point's latitude and longitude), plus the distance and unit, then read the result in decimal degrees (DD), degrees decimal minutes (DDM), and degrees minutes seconds (DMS) formats.

## Worked Example: Solving Distance and Bearing Between Two NYC Points

In Solve mode, using two nearby Manhattan-area coordinates (40.7128, -74.0060) and (40.7128, -73.9940), the calculator returns a distance of about 1,011.4 meters (3,318.3 feet, or 0.628 miles) and an initial bearing of approximately 90.0° — due east, as expected since both points share the same latitude.

In Project mode, starting from (40.7128, -74.0060) and projecting 1,000 meters at a 90° bearing produces a destination of approximately 40.712799, -73.994135 — confirming the two modes are consistent inverses of each other for nearby points.

## Related Calculators

For puzzle-cache waypoint offsets specifically, see the [Geocaching Waypoint Projection Calculator](/calculators/geocaching-projector-calculator), which focuses on the single-point projection use case with DD/DDM output.

## Coordinate Formatting and Geocaching Workflows

In the field, geocachers encounter three primary formats for representing coordinate positions, and being able to convert between them is essential:

• Decimal Degrees (DD): e.g., 40.7128° N, 74.0060° W. Standard for web mapping applications (like Google Maps) and programmatic databases.

• Degrees Decimal Minutes (DDM): e.g., N 40° 42.768' W 074° 00.360'. The default format for traditional GPS devices, physical compass navigators, and Geocaching.com listings.

• Degrees Minutes Seconds (DMS): e.g., 40° 42' 46" N, 74° 00' 22" W. Used primarily in historical maps, maritime navigation, and geological surveys.

Converting from DD to DDM is done by taking the fractional part of the degrees and multiplying by 60. For example, 40.7128 becomes 40° and 0.7128 * 60 = 42.768 minutes, yielding 40° 42.768'. To convert to DMS, take the fractional part of the minutes (0.768) and multiply by 60 to get seconds: 0.768 * 60 = 46.08 seconds, yielding 40° 42' 46.08".

## Frequently asked questions

### What is waypoint projection?

Waypoint projection is the process of calculating a new set of coordinates from a starting point by traveling a specified distance along a specific compass bearing (direction).

### What is the Haversine formula?

The Haversine formula is a mathematical equation used to calculate the great-circle distance between two points on the surface of a sphere using their latitude and longitude coordinates.

### What is a compass bearing?

Bearing is the horizontal angle from true north, measured clockwise from 0° to 360°. For example, North is 0°, East is 90°, South is 180°, and West is 270°.

### What coordinate format is standard for Geocaching.com?

Geocaching.com uses Degrees Decimal Minutes (DDM) as its standard format, which displays coordinates in the format: N 40° 42.768' W 074° 00.360'.

### What is the difference between Decimal Degrees (DD) and Degrees Minutes Seconds (DMS)?

Decimal Degrees (DD) represents coordinates as a simple decimal number (e.g. 40.7128). Degrees Minutes Seconds (DMS) breaks the decimal down into degrees, minutes (1/60th of a degree), and seconds (1/60th of a minute) (e.g. 40° 42' 46" N).

### Why does Earth's shape cause minor errors in spherical navigation formulas?

Earth is not a perfect sphere but an oblate spheroid, which is slightly flattened at the poles. While spherical equations like Haversine have errors under 0.5%, highly precise navigational equipment uses ellipsoidal models like WGS84.

### What is a great-circle path?

A great-circle path (or orthodrome) is the shortest possible path between two points on the surface of a sphere. Because the surface is curved, this path appears curved on flat maps.

### How do you convert nautical miles to meters for geocaching projections?

One nautical mile is defined as exactly 1,852 meters. To convert nautical miles to meters, multiply the value by 1,852.

### How is longitude normalized after projection?

Longitude is normalized so it falls between -180 and +180 degrees. If the projection wraps past the 180th meridian (International Date Line), the calculation wraps the value back around.

### How do geocachers use waypoint projection in Multi-Caches?

Many Multi-Caches require the finder to visit a physical landmark, read a clue (such as a number on a sign), and use that number as the distance or bearing to project the final cache location.

## Related concepts

- **Great-circle navigation lines** — Shortest paths across spherical and ellipsoidal bodies.
- **Compass bearings and magnetic declination** — True North vs. Magnetic North coordinate alignments.
- **Coordinate system transformations** — Converting DD, DDM, and DMS notations.

## Related guides

- [Understanding Calculator Formulas: How DTC Turns Inputs into Results](https://dothecalculation.com/blog/site-guides/understanding-calculator-formulas) — Understand how Do The Calculation formulas are presented, what the explanation blocks mean, and how to verify calculator logic before using a result in a real decision.

## Related calculators

- [Geocaching Waypoint Projection Calculator](https://dothecalculation.com/calculators/geocaching-projector-calculator) — Project new geocaching waypoint coordinates, exact latitude and longitude, from a starting point using bearing and distance.
- [Wood Shrinkage & Seasonal Movement Calculator](https://dothecalculation.com/calculators/wood-shrinkage-radial-calculator) — Model exact wood shrinkage and seasonal dimensional changes based on relative humidity, temperature, and wood species type.
- [Crochet Blanket Size & Yardage Calculator](https://dothecalculation.com/calculators/crochet-blanket-dimensions-calculator) — Calculate the yarn yardage, skein count, and finished blanket weight based on your stitch density, gauge, and yarn class.
- [Model Rocket Aerodynamic Drag & Apogee Calculator](https://dothecalculation.com/calculators/model-rocket-drag-apogee-calculator) — Simulate rocket flight to calculate peak altitude, apogee, drag coefficient, and maximum velocity using numerical integration.
- [Photography Exposure Value & Reciprocity Calculator](https://dothecalculation.com/calculators/photography-exposure-value-calculator) — Calculate Exposure Value (EV) and EV100, and compensate for film reciprocity failure during very long exposures in photography.
- [RC Battery C-Rating & Continuous Current Calculator](https://dothecalculation.com/calculators/rc-battery-c-rating-calculator) — Calculate safe continuous discharge limits, average throttle current, and expected flight runtime for your LiPo battery.

---

_This calculator is for educational and planning purposes. Always verify measurements, conversions, and material requirements before making purchases or physical builds._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/geocaching-distance-bearing-calculator). Quote freely with attribution and a link to this page._
