Latitude and Longitude Explained

A practical explainer of the coordinate system behind every map and geocoder: what the numbers mean, how much distance each decimal place represents, and the datum and axis-order mistakes that move points by meters or by continents.

Every geocoder, GPS receiver and web map ultimately speaks the same language: a pair of angles called latitude and longitude. They look simple, but most of the bugs we see in location data come from misreading them: swapped axes, too few decimal places, or coordinates from different datums mixed in one table. This guide explains what the numbers actually measure and how to handle them safely.

The graticule: a grid of angles

Latitude and longitude form a grid over the Earth called the graticule. It has two families of lines:

  • Parallels are circles of equal latitude running east–west. The largest is the equator (0°); they shrink toward the poles until they become single points at 90° N and 90° S.
  • Meridians are half-circles of equal longitude running from pole to pole. The prime meridian (0°) passes through Greenwich, London. The modern reference meridian used by GPS lies roughly 100 meters east of the historic telescope that originally defined it, which is why a phone standing on the painted line at the Royal Observatory does not read exactly 0°.
A globe showing parallels of latitude, meridians of longitude, the equator, the prime meridian and a sample point at 30 degrees north, 30 degrees east 90° N 90° S 30° N, 30° E Equator = 0° latitude Latitude: −90° (S) to +90° (N) Prime meridian = 0° longitude Longitude: −180° (W) to +180° (E) Horizontal lines: parallels Curved lines: meridians Grid spacing: 30°
The graticule seen from above the equator. Parallels are drawn every 30° of latitude and meridians every 30° of longitude; the highlighted point sits where the 30° N parallel meets the 30° E meridian.

Latitude measures how far north or south a point is. Strictly, the geodetic latitude used by GPS is the angle between the equatorial plane and a line perpendicular to the Earth's ellipsoid at that point. Longitude measures how far east or west a point is, as the angle between the prime meridian's plane and the meridian through the point.

Ranges and signs

In decimal form, the hemisphere is carried by the sign:

CoordinateRangePositiveNegative
Latitude−90 to +90North of the equatorSouth of the equator
Longitude−180 to +180East of GreenwichWest of Greenwich

So the Burj Khalifa in Dubai, at about 25.1972° N, 55.2742° E, is written 25.1972, 55.2742, while the Sydney Opera House, at about 33.857° S, 151.215° E, is -33.857, 151.215. A missing minus sign does not produce a small error. It reflects the point into the opposite hemisphere, thousands of kilometers away. Some older systems express longitude from 0 to 360 instead; 200° in that convention is −160° in the usual one.

Two quick sanity checks catch many bad records: a latitude outside ±90 is impossible, and a value that is exactly 0, 0 (a point in the Gulf of Guinea sometimes nicknamed "Null Island") is almost always a failed lookup rather than a real location.

How far is one degree?

Because latitude and longitude are angles, the ground distance they represent depends on where you are.

Latitude: roughly constant

Parallels are evenly spaced, so one degree of latitude is always about 111 km. On the WGS84 ellipsoid it ranges from about 110.6 km at the equator to about 111.7 km near the poles, because the Earth is slightly flattened. One minute of latitude is about 1.85 km, which is why the nautical mile was defined as 1,852 m, and one second is about 31 m.

Longitude: shrinks with latitude

Meridians converge at the poles, so the east–west length of a degree of longitude scales with the cosine of the latitude:

km per degree of longitude ≈ 111.32 × cos(latitude)

Worked example at 25° N (roughly the latitude of Dubai, Riyadh or Miami): cos 25° = 0.9063, so one degree of longitude is about 111.32 × 0.9063 ≈ 100.9 km. In practice that means two Dubai addresses that differ by 0.01° of longitude are about 1.0 km apart east–west, while two that differ by 0.01° of latitude are about 1.1 km apart north–south. At 60° N (Oslo, Helsinki) cos 60° = 0.5, and a degree of longitude falls to about 55.8 km.

Bar chart of the length of one degree of longitude: about 111.3 km at the equator, 100.9 km at 25 degrees, 78.8 km at 45 degrees, 55.8 km at 60 degrees and 19.4 km at 80 degrees Length of 1° of longitude (WGS84) 0° 111.3 km 25° 100.9 km 45° 78.8 km 60° 55.8 km 80° 19.4 km
East–west length of one degree of longitude at different latitudes (north or south). One degree of latitude stays close to 111 km everywhere.

This is also why you cannot compute distance with Pythagoras on raw degrees: a "square" 0.1° × 0.1° cell is about 11.1 km tall but only about 5.6 km wide at 60° N. For real distances use a great-circle or ellipsoidal formula, as our distance calculator does with the haversine and Vincenty methods.

Decimal places and precision

Each extra decimal place in a decimal-degree value divides the step size by ten. The table shows the ground size of one unit in the last decimal place:

Decimal placesStep (degrees)Latitude (anywhere)Longitude at 25°Longitude at 60°Good enough for
10.1≈ 11.1 km≈ 10.1 km≈ 5.6 kmRegion, large city
20.01≈ 1.1 km≈ 1.0 km≈ 560 mTown, district
30.001≈ 111 m≈ 101 m≈ 56 mNeighborhood, large site
40.0001≈ 11 m≈ 10 m≈ 5.6 mBuilding, parcel
50.00001≈ 1.1 m≈ 1.0 m≈ 0.56 mEntrance, parking bay
60.000001≈ 11 cm≈ 10 cm≈ 6 cmSurvey-grade work

Two practical rules follow. First, five or six decimal places are plenty for almost any business use; a phone's GPS fix is typically good to a few meters under open sky and noticeably worse between tall buildings, so seven or more decimals describe noise, not position. Second, trimming to two or three decimals is a real loss: 25.20, 55.27 could be anywhere in a cell roughly a kilometer across. Store full precision and round only for display.

Datums: why the same numbers can mean different places

A latitude/longitude pair only identifies a location relative to a datum: a defined ellipsoid (the mathematical shape of the Earth) plus how it is anchored to the real planet. The same numbers in two datums can point to spots meters or even tens of meters apart.

  • WGS84 is the global datum used by GPS, by web maps and by OpenStreetMap. Its ellipsoid has a semi-major axis of 6,378,137 m and a flattening of 1/298.257223563, and it is registered as EPSG:4326.
  • Local and older datums were fitted to one country or continent. In the conterminous United States, coordinates in the older NAD27 datum and the newer NAD83 can differ by roughly 10 to 100 meters, according to the USGS. In Great Britain, OSGB36 latitudes and longitudes differ from WGS84 by tens of meters, and Ordnance Survey publishes transformation guidance for converting between them.
  • Modern regional datums such as NAD83 or ETRS89 are close to WGS84, typically within a meter or two, but they drift apart slowly over time because they are tied to tectonic plates.

For geocoding the lesson is simple. Results from OpenStreetMap-based services are WGS84, so make sure any coordinates you compare them with are WGS84 too. If a dataset came from a national survey or a legacy GIS, check its metadata for the datum and transform it properly. Do not just relabel it.

Lat, lon or lon, lat?

There is no universal agreement on which number comes first, and swapped axes are probably the most common coordinate bug.

  • Human-facing convention: latitude first. Most map interfaces, GPS units and spoken coordinates give lat, lon, which matches the ISO 6709 standard.
  • GeoJSON: longitude first. RFC 7946 defines a position as [longitude, latitude], matching mathematical x, y order. WKT (POINT(55.2742 25.1972)) is usually x, y as well.
  • Libraries differ. Leaflet's L.latLng takes latitude first; MapLibre GL and OpenLayers expect longitude first.

The failure is rarely obvious. Swap the Burj Khalifa's coordinates and 55.2742, 25.1972 is still a valid lat/lon pair. It lands in eastern Lithuania. When you import data, plot a few known points on a map before trusting the rest, and name your fields lat and lon explicitly instead of relying on position. If any "latitude" exceeds 90 in absolute value, the columns are almost certainly reversed.

Using coordinates with geocoding

A geocoder turns text into these numbers, and a reverse geocoder turns them back into text; our guide to forward vs reverse geocoding covers the difference. Everything above applies to the output. Keep the precision the service returns, record that it is WGS84, and remember that a result for a large feature such as a city is a representative point, not the whole area. For areas, use a bounding box instead of a single coordinate. You can try both directions with the address to coordinates and coordinates to address tools.

Key takeaways

  • Latitude runs from −90 to +90 and longitude from −180 to +180; negative means south or west.
  • One degree of latitude is about 111 km everywhere; one degree of longitude is about 111.32 × cos(latitude) km, or about 100.9 km at 25° N.
  • Five decimal places resolve about a meter; store full precision and round only for display.
  • Coordinates are only meaningful with a datum. GPS and OpenStreetMap use WGS84, and older local datums can differ by tens of meters.
  • GeoJSON is [lon, lat], most user interfaces are lat, lon, so always check the order.