What Is WGS84? The GPS Datum and Ellipsoid Explained

Published

Every latitude and longitude only makes sense relative to a model of the Earth. WGS84 (World Geodetic System 1984) is the model used by GPS, by phones, by web maps and by almost every coordinate you will find online, including all the tools on this site. When you see 40.712776, -74.005974 for New York City Hall, that pair is a WGS84 position.

This guide explains what WGS84 defines, the difference between a datum, an ellipsoid and the geoid, and why a coordinate from an older map can land in the wrong place.

The WGS84 ellipsoid

The Earth is not a perfect sphere. Its rotation makes it bulge at the equator and flatten at the poles. Geodesists approximate it with an ellipsoid (an oblate spheroid): an ellipse spun around the polar axis.

The WGS84 ellipsoid is defined by two numbers:

ParameterValue
Semi-major axis a (equatorial radius)6,378,137 m
Inverse flattening 1/f298.257223563
Semi-minor axis b (polar radius, derived)about 6,356,752 m

The polar radius is therefore about 21 km shorter than the equatorial radius. Our distance calculator uses this ellipsoid for its most accurate (Vincenty) results, and the same parameters underlie the UTM converter.

Datum, ellipsoid and geoid: what is the difference?

These three words are often mixed up. They describe different things:

In short: the ellipsoid is the simple shape used for horizontal positions, and the geoid is the lumpy surface used for "height above sea level".

Why GPS uses WGS84

WGS84 is an Earth-centred datum: its origin is placed at the Earth's centre of mass. That makes it suitable for satellites, which orbit around that centre, and for the whole planet rather than one region. The GPS system broadcasts satellite orbits in WGS84, so every GPS receiver computes WGS84 positions first. WGS84 has been refined several times since 1984 to keep it aligned with the latest international reference frame; for everyday use these updates are invisible.

Why coordinates on other datums differ

Before satellites, most countries built their own regional datums, each with an ellipsoid chosen to fit their territory and anchored to a survey point on the ground. Examples include:

Because these datums use different ellipsoids and different centres, the same latitude and longitude numbers point to slightly different places on the ground. Depending on the datum and the region, the difference can be from a few metres to tens or even a few hundred metres. Modern regional datums such as NAD83 in North America and ETRS89 in Europe were designed to stay close to WGS84; for most non-survey uses they agree to within a metre or so, though the gap grows slowly over time with plate motion.

If you copy coordinates from an old map, a land record or a legacy GPS setting, check the datum note first. Converting between datums requires a proper transformation; simply relabelling the numbers is not enough.

Ellipsoidal height vs height above sea level

A GPS receiver natively measures ellipsoidal height: the height above the WGS84 ellipsoid. People normally want orthometric height, the height above mean sea level (the geoid). The two are related by:

height above sea level ≈ ellipsoidal height − geoid height

where the geoid height (also called geoid undulation) is the distance from the ellipsoid up to the geoid at that place. Because the geoid can be tens of metres above or below the ellipsoid, an unconverted GPS height can be off by the same amount. Most phones and GPS units apply a built-in geoid model, but not all apps show which height they display.

Our elevation tool reports height above sea level from a terrain model, not GPS height. For a practical walk-through, see how to find the elevation of your house.

WGS84 (EPSG:4326) vs Web Mercator (EPSG:3857)

GIS software identifies coordinate systems with EPSG codes. Two you will meet often:

EPSG:4326EPSG:3857
NameWGS84 geographicWGS84 / Pseudo-Mercator ("Web Mercator")
UnitsDegrees of latitude and longitudeMetres on a flat map (x, y)
Typical useGPS, data exchange, coordinates you type or shareTiles of online maps such as Google Maps and OpenStreetMap
CoverageWhole globeAbout 85° S to 85° N; the poles are cut off

Web Mercator takes WGS84 latitude and longitude and projects them as if the Earth were a sphere, which is fast for drawing map tiles but distorts areas strongly toward the poles. That is why Greenland looks so large on web maps. The coordinates shown to you, and those you type into a search box, remain WGS84 degrees. Do not paste EPSG:3857 metre values into a latitude/longitude field, or the other way round.

Distances and areas should never be measured directly on Web Mercator. The distance tools on this site compute on the WGS84 ellipsoid instead, and the area calculator uses a sphere with the same surface area as that ellipsoid.

Common mistakes

Frequently asked questions

What does WGS84 stand for?

WGS84 stands for World Geodetic System 1984. It is the global reference system used by GPS, defining the shape of the Earth and the origin and axes that latitude, longitude and height are measured from.

Is EPSG:4326 the same as WGS84?

EPSG:4326 is the code for latitude and longitude in degrees on the WGS84 datum. When a file or web service says EPSG:4326, it means plain WGS84 geographic coordinates.

Why does my GPS height differ from the height on a map?

GPS measures height above the WGS84 ellipsoid, while maps show height above mean sea level, which follows the geoid. The two surfaces can be tens of metres apart, so phones and receivers apply a geoid model to convert.

Are Google Maps coordinates WGS84?

The latitude and longitude that Google Maps shows and accepts are WGS84 values. The map image itself is drawn in Web Mercator (EPSG:3857), which is a projection of those WGS84 coordinates onto a flat map.