The Web Mercator Tile Plane

Make your own map →#30DayMapChallenge · Day 22: Projections
Hover any square to see its x/y offsets in Web Mercator meters. Each one is a zoom 3 tile — 64 of them tile the whole world as one seamless square plane. The dashed blue lines show zoom 4: every tile splits into four children each time you zoom in.
How Web Mercator works
Web Mercator EPSG:3857 treats the Earth as a sphere of radius 6,378,137 m and unrolls it onto a cylinder:
- x = R · λ (longitude in radians) — meridians are evenly spaced vertical lines
- y = R · ln(tan(π/4 + φ/2)) — parallels spread farther apart toward the poles
The origin is 0,0. Because y runs to infinity at the poles, the map is cut off at ±85.0511° — the exact latitude where the plane becomes a perfect square, ±20,037,508.34 m on each side.
Why tiles love it
A square world divides cleanly: zoom z has 2ᶻ × 2ᶻ tiles, each 256 or 512 pixels across. Tile z/x/y has children z+1/2x/2y, 2x+1/2y, 2x/2y+1 and 2x+1/2y+1 — a quadtree. A tile's bounds in meters are simple arithmetic, so servers, caches and CDNs can pre-render and serve the whole world in pieces. At z3 each tile is 5,009,377 m wide; at z20 it's about 38 m.
A bit of history
Gerardus Mercator published his projection in 1569 for sailors: it's conformal, so a straight line on the chart is a constant compass bearing (a rhumb line). Google Maps launched in 2005 with a spherical version, and MapQuest, Bing, OpenStreetMap, Mapbox and nearly everyone followed, so tiles from anyone line up. The geodesy world first refused to register it — it uses ellipsoidal WGS84 coordinates with spherical math — so the community used the unofficial code EPSG:900913 ("google" in calculator digits) until EPSG relented in 2008, first as EPSG:3785 and soon after as EPSG:3857 ("WGS 84 / Pseudo-Mercator").
Tradeoffs
- ✅ Conformal: angles and local shapes are right, so streets meet at true angles and north is always up — perfect for zoomed-in navigation, which is most of web mapping.
- ✅ Fast and simple: one formula, square tiles, an easy quadtree.
- ❌ Area is badly distorted: scale grows by 1/cos(latitude). The red shapes are all true 500 km circles on the ground; at 75° they're drawn almost 4× wider. Greenland looks as big as Africa, which is about 14× larger.
- ❌ No poles: everything above ~85° is simply cut off.
- ❌ Not quite true: spherical math on ellipsoidal coordinates means it isn't exactly conformal, and offsets in meters only equal ground meters at the equator.
- ❌ Bad for world-scale thematic maps: for choropleths and anything comparing areas, use an equal-area projection like Equal Earth instead. (Many web map libraries can now switch to a globe as you zoom out.)
Sources
- EPSG registry, EPSG:3857 WGS 84 / Pseudo-Mercator and EPSG:900913
- Web Mercator projection, Wikipedia; EPSG:3857 history, OpenStreetMap Wiki
- Battersby, Finn, Usery & Yamamoto (2014), "Implications of Web Mercator and Its Use in Online Mapping," Cartographica 49(2)
- Mercator projection, Wikipedia; Buckley, Mercator's 500th birthday, Esri
- Slippy map tilenames, OpenStreetMap Wiki; Bing Maps Tile System (quadkeys), Microsoft
- Greenland vs. Africa: Area distortion by a projection, Wolfram
- Šavrič, Patterson & Jenny (2019), "The Equal Earth map projection," International Journal of Geographical Information Science 33(3): 454–465
- Geodesic circles: Karney (2013), "Algorithms for geodesics," Journal of Geodesy 87, via pyproj
Built with Claude by Anthropic: tile math, geodesic circles and text drafted with Claude, then reviewed by me.
Web Mercator
- z3 tile (8 × 8 = 64), 5,009,377 m square
- z4 tile edge: each z3 tile splits into 4
- 500 km circle: same size on the ground
- Latitude limit ±85.0511° (y = ±20,037,508 m)
- Origin (0 m, 0 m)
Web Mercator
- z3 tile (8 × 8 = 64), 5,009,377 m square
- z4 tile edge: each z3 tile splits into 4
- 500 km circle: same size on the ground
- Latitude limit ±85.0511° (y = ±20,037,508 m)
- Origin (0 m, 0 m)