Skip to content
GIS Basics
Comparison

EPSG:4326 vs EPSG:3857: Degrees vs Metres, and Which to Use

Published

EPSG:4326 and EPSG:3857 are the two most common coordinate reference systems in GIS and web mapping: EPSG:4326 is a geographic system that records latitude and longitude in degrees on the curved WGS 84 ellipsoid, while EPSG:3857 is a projected system (Web Mercator) that flattens those coordinates onto a square grid measured in metres for online map tiles. EPSG:4326 covers the entire planet from -180° to +180° longitude and -90° to +90° latitude, whereas EPSG:3857 runs from -20,037,508.34 m to +20,037,508.34 m on both axes and cuts off the poles at ±85.0511° latitude.

Think of EPSG:4326 as the address book and EPSG:3857 as the wallpaper. GPS receivers, GeoJSON files and web APIs store coordinates in EPSG:4326 degrees, then web map libraries project those degrees into EPSG:3857 metres on the screen so your points sit cleanly on top of Google Maps or OpenStreetMap tiles. Neither code should ever be used to measure flat distances or areas.

DegreesEPSG:4326

WGS 84 latitude and longitude

Covers -180° to +180° and -90° to +90°

MetresEPSG:3857

Web Mercator square tile grid

±20,037,508.34 m, clipped at ±85.0511° latitude

×3.98area inflation

at Oslo's latitude (59.9°N) in 3857

1 hectare on the ground measures nearly 4 ha on the grid

Two world maps side by side with the same orange circles of 800 km radius: on the left EPSG:4326, where the circles stretch east to west toward the poles; on the right EPSG:3857 Web Mercator, cut at 85.05 degrees, where the circles stay round but grow larger toward the poles.
The same 800 km ground circles plotted directly in EPSG:4326 degrees (left) and in EPSG:3857 Web Mercator metres (right). EPSG:4326 stretches shapes horizontally away from the equator; EPSG:3857 keeps local shapes round but inflates their size toward the poles.

EPSG:4326 vs EPSG:3857 at a glance

Both codes come from the EPSG Geodetic Parameter Dataset, maintained by the International Association of Oil & Gas Producers (IOGP, originally the European Petroleum Survey Group). Esri's developer documentation names 4326 and 3857 as the two most common spatial reference identifiers in web mapping. Our guide on what a CRS is explains how geographic and projected coordinate systems fit together, and you can browse any code in our CRS lookup.

FeatureEPSG:4326 (WGS 84)EPSG:3857 (Web Mercator)
Official EPSG nameWGS 84WGS 84 / Pseudo-Mercator
CRS typeGeographic 2D (on an ellipsoid)Projected (on a flat plane)
Coordinate unitsDegrees (latitude and longitude)Metres (x and y, or easting and northing)
X / longitude range-180° to +180°-20,037,508.34 m to +20,037,508.34 m
Y / latitude range-90° to +90°-20,037,508.34 m to +20,037,508.34 m (about ±85.0511° latitude)
Poles includedYes (all the way to 90°N and 90°S)No (cut off above 85.0511°N and below 85.0511°S)
Primary jobStoring and exchanging coordinates, GPS, GeoJSON, databases, APIsDisplaying basemap tiles in web maps (Google Maps, OpenStreetMap, Bing Maps)
Suitable for planar distance or area measurement?No (units are degrees, and 1° of longitude shrinks toward the poles)No (scale inflates with latitude as 1 / cos(latitude))

The same point in both coordinate systems

To see the difference in raw numbers, take the Statue of Liberty in New York Harbor:

  • In EPSG:4326: latitude 40.6892, longitude -74.0445 (angles in decimal degrees north of the equator and west of the Prime Meridian).
  • In EPSG:3857: x = -8,242,596 m, y = 4,966,606 m (projected Web Mercator metres west of the Prime Meridian and north of the equator).

Both pairs describe the exact same spot on the WGS 84 datum. You can translate any coordinate pair between the two in our coordinate converter.

What is EPSG:4326 (WGS 84)?

EPSG:4326 is the identifier for WGS 84 (World Geodetic System 1984), a geographic 2D coordinate reference system that locates points by latitude and longitude in degrees on an oblate ellipsoid. The WGS 84 ellipsoid has a semi-major axis (equatorial radius) of 6,378,137 m and an inverse flattening of 298.257223563. You can inspect the full parameter record on our EPSG:4326 reference page.

Every consumer GPS receiver computes and reports positions in WGS 84. It is also the mandatory coordinate system of GeoJSON: the IETF RFC 7946 specification published in 2016 requires all GeoJSON coordinates to be WGS 84 longitude and latitude in decimal degrees and dropped the older "crs" property altogether. Most other GIS file formats, spatial databases and REST APIs use EPSG:4326 as their default exchange format because it covers the whole Earth without seams or zone borders.

When you open an EPSG:4326 layer in desktop GIS without picking a separate map projection, the software plots longitude on the horizontal x-axis and latitude on the vertical y-axis (an equirectangular or Plate carrée view). Because a degree of longitude is about 111 km wide at the equator and shrinks to zero at the poles, drawing degrees as a flat square grid stretches high-latitude countries horizontally, as shown on the left side of the world map figure above.

What is EPSG:3857 (Web Mercator / Pseudo-Mercator)?

EPSG:3857, officially named WGS 84 / Pseudo-Mercator in the EPSG registry, is the projected coordinate reference system behind nearly all interactive web maps. Google Maps, OpenStreetMap tiles, Bing Maps and most XYZ tile services cut their basemap pyramids in EPSG:3857. You can read its full parameters on our EPSG:3857 reference page.

Web maps use EPSG:3857 rather than drawing EPSG:4326 directly for four reasons:

  1. A square world for square tiles. Web maps slice the planet into a pyramid of 256 × 256 pixel square tiles: 1 tile at zoom level 0, 4 tiles at zoom 1, 16 at zoom 2, and so on. By cutting the Mercator projection off at ±85.0511° latitude, EPSG:3857 makes the projected world an exact square measuring 40,075,016.68 m on each side (from -20,037,508.34 m to +20,037,508.34 m in both x and y).
  2. North is always straight up. Meridians are parallel vertical lines and parallels of latitude are horizontal lines everywhere on the map.
  3. Street intersections keep their right angles. Mercator preserves local angles, so when a user zooms in on a city, roundabouts look round and 90-degree street corners stay at 90 degrees regardless of latitude.
  4. Simple spherical math. Web Mercator takes WGS 84 ellipsoid latitude and longitude and feeds them into the spherical Mercator formulas, pretending the Earth is a sphere of radius 6,378,137 m rather than a slightly flattened ellipsoid.

That spherical shortcut is why the official EPSG name is Pseudo-Mercator. Because it applies spherical equations to ellipsoidal coordinates, the projection is not strictly conformal on the ellipsoid, and its north-south positions differ from a true ellipsoidal Mercator projection by up to tens of kilometres at high latitudes. In the official EPSG record, the scope of EPSG:3857 is restricted to "Web mapping and visualisation", and the remarks state that it is "not a recognised geodetic system".

Legacy codes for EPSG:3857 (900913, 3785, 102100)

Before the EPSG registry assigned code 3857, software vendors invented their own identifiers for Web Mercator. You will still meet these codes in older shapefiles, .prj files, GeoServer configurations and ArcGIS services; they all refer to the same Web Mercator grid as EPSG:3857:

  • EPSG:900913: An unofficial code (900913 spells GOOGLE in digits).
  • EPSG:3785: An earlier EPSG code for the same projection, now deprecated in favor of EPSG:3857.
  • ESRI:102100 and ESRI:102113: Esri Well-Known IDs (WKIDs) for Web Mercator.

Why you must never measure distances or areas in EPSG:3857 (or EPSG:4326)

A common mistake in GIS is loading a polygon layer in EPSG:3857 (because it came from a web service or matches the basemap) and running a flat area, length or buffer tool in metres. Because EPSG:3857 coordinate units are called "metres", the numbers look plausible at first glance, but away from the equator they are severely inflated.

In the Mercator projection, the converging meridians are pulled apart so they stay parallel all the way to the top and bottom of the map. To keep local shapes round, the projection stretches the north-south scale by the exact same factor. As a result, at any latitude φ:

  • Linear scale grows as 1 / cos(latitude)
  • Area scale grows as 1 / cos²(latitude)

At 60° latitude (near Oslo or Anchorage), cos(60°) = 0.5, so 1 metre on the ground measures 2 metres in EPSG:3857 coordinates, and 1 square metre on the ground measures 4 square metres (2 × 2) on the grid.

Horizontal bar chart of the Web Mercator (EPSG:3857) area inflation factor by city, computed as 1 divided by the square of the cosine of latitude. Quito at 0 degrees sits at 1.0x, Johannesburg at 26.2°S is 1.24x, New York at 40.7°N is 1.74x, London at 51.5°N is 2.58x, Oslo at 59.9°N is 3.98x, Reykjavik at 64.2°N is 5.26x, and Longyearbyen in Svalbard at 78.2°N reaches 23.99x.
How much EPSG:3857 inflates planar area at seven latitudes. A 1-hectare parcel on the ground measures 1.74 ha in New York, 2.58 ha in London, 3.98 ha in Oslo and nearly 24 ha in Svalbard.

The table below shows the exact length and area inflation factors (1 / cos(lat) and 1 / cos²(lat)) across seven cities from the equator to the high Arctic:

CityLatitudeLength factor in EPSG:3857Area factor in EPSG:3857
Quito0°×1.00×1.0
Johannesburg26.2°S×1.11×1.24
New York40.7°N×1.32×1.74
London51.5°N×1.61×2.58
Oslo59.9°N×1.99×3.98
Reykjavik64.2°N×2.29×5.26
Longyearbyen (Svalbard)78.2°N×4.90×23.99

The formula holds in practice: in QGIS we drew a real 1 km² square in Oslo, reprojected it to EPSG:3857 and read 3.966 km², within 0.6% of 1 / cos²(latitude) (the measurement for six cities is in our CRS guide). You can see this distortion interactively by dragging countries north and south on our true size map.

Measuring flat geometry in EPSG:4326 is just as broken, for a different reason: its units are degrees, not metres. If you ask a GIS tool for a "100" buffer on an EPSG:4326 layer, it builds a buffer with a radius of 100 degrees, a large part of the planet. And because 1 degree of longitude is about 111 km at the equator and 0 km at the poles, a "square degree" does not have a constant area anywhere on Earth.

What to use for measurements instead:

  • Reproject your layer to a local UTM zone (which you can find on our UTM zone map) or your country's official national grid before running planar buffers, lengths or areas.
  • Or use geodesic (ellipsoidal) calculations, which compute distances and areas directly on the curved WGS 84 ellipsoid regardless of how the map is drawn on screen.

Which should you use: EPSG:4326 or EPSG:3857?

Follow one simple rule across your whole workflow: store and exchange in EPSG:4326, display web tiles in EPSG:3857, and measure in a local projected CRS.

  1. Storing data in files, databases and APIs -> use EPSG:4326. Save GeoJSON files, CSV tables with coordinates, GPS tracks and global PostGIS tables in EPSG:4326. It covers the poles, has no projection distortion baked into the stored coordinates, and is the format every web mapping library expects as input.
  2. Writing code with Leaflet, MapLibre or OpenLayers -> pass EPSG:4326, let the map render in EPSG:3857. Web map libraries default their view canvas to EPSG:3857 so raster and vector tiles line up, while their API functions take coordinates in EPSG:4326 degrees and project them on the fly in the browser. (Note that Leaflet methods take [lat, lon], whereas MapLibre GL JS and GeoJSON take [lon, lat].)
  3. Displaying a project with an OpenStreetMap or Google basemap in desktop GIS -> set the project display CRS to EPSG:3857 (or a local CRS). Keeping the project canvas in EPSG:3857 avoids warping the raster text labels on web tile layers, while your vector layers remain stored in EPSG:4326 or your local grid on disk.
  4. Running buffers, distances, overlays or area calculations -> use neither. Reproject the layer to a local UTM zone or an equal-area projection first.

How to handle EPSG:4326 and EPSG:3857 in QGIS

In QGIS, every layer has its own CRS, and the project canvas has a display CRS shown in the bottom-right corner of the window (or under Project > Properties > CRS). Because QGIS reprojects layers on the fly, you can load a GeoJSON file in EPSG:4326 on top of an OpenStreetMap XYZ tile basemap in EPSG:3857 and they will line up automatically without converting any files on disk.

  1. Check each layer's CRS vs the project CRS

    Right-click your layer in the Layers panel and open Properties > Information (or Source) to see the CRS stored in the file. Look at the bottom-right corner of the main QGIS window to see the project display CRS. They do not need to match for the map to line up visually.

  2. Reproject a layer when you need to convert the coordinates in the file

    If a web service, script or analysis tool requires the file itself in the other coordinate system, use Vector > Data Management Tools > Reproject Layer (or right-click the layer and choose Export > Save Features As...), select EPSG:4326 or EPSG:3857 as the target CRS, and save a new file. This recalculates the coordinate numbers between degrees and metres.

  3. Fix layers that appear at (0, 0) off the coast of Africa

    If your layer lands at 0°N, 0°E in the Gulf of Guinea ("Null Island") or refuses to line up with the basemap, someone assigned the wrong CRS label to the file without converting the numbers. Do not run Reproject Layer. Instead, right-click the layer, choose Layer CRS > Set Layer CRS, and pick the CRS that matches the numbers actually stored inside the file (EPSG:4326 if the coordinates look like -74.04, 40.68; EPSG:3857 if they look like -8242596, 4966606).

The (0, 0) bug works like this. If a file contains EPSG:4326 degree numbers like (-74.04, 40.68) and you tell QGIS via Set Layer CRS that the file is in EPSG:3857 metres, QGIS plots the layer 74 metres west and 41 metres north of the origin (0, 0) off the coast of West Africa. Conversely, if a file contains EPSG:3857 metre numbers in the millions and you label it EPSG:4326, the coordinates exceed ±180° / ±90° and vanish off the globe.

If you are working with several layers in mixed coordinate systems, AI Agent, the QGIS plugin we build, can check each layer's CRS and reproject it from one sentence in the QGIS side panel.

Questions people ask

Do it now with our free tool

Coordinate converter

Open the free tool

Do it in QGIS by asking for it

AI Agent carries out the task you describe, in your own QGIS project. Free, no card.

Try AI Agent for free

Keep reading

Three price cards for ArcGIS Pro per year: Creator, ArcGIS Pro Basic, $700. Professional, Standard, $2,200. Professional Plus, Advanced, $4,200. US list prices read on esri.com on 2026-11-23.
ComparisonGIS Basics

ArcGIS Pro Price 2026: $700, $2,200 or $4,200

ArcGIS Pro costs $700, $2,200 or $4,200 a year in the US. One table with credits and extensions, worked totals, and the end of Single Use and Concurrent Use.

Lilien AugerLilien Auger
·