The Mathematics of Map Projections

the mathematics of map projections cover image

To the casual observer, a map is a piece of art or a practical tool. To a cartographer, software engineer, or mathematician, a map is a complex formula—a systemic transformation of a three-dimensional surface onto a two-dimensional plane. This transformation is known as a map projection.

Because the Earth is roughly a sphere (an oblate spheroid, to be precise), flattening it without distortion is mathematically impossible. This isn't just a practical limitation; it is a fundamental law of differential geometry, proven by Carl Friedrich Gauss in his 1828 Theorema Egregium. Therefore, every map ever made is a mathematical compromise. Here is a look at the math that makes mapping possible.

The Unavoidable Distortions

When projecting a sphere onto a plane, you must sacrifice at least one (and usually more) of the following spatial properties:

You cannot have a map that is both perfectly conformal (preserves shape) and equivalent (preserves area). The mathematics simply do not allow it.

the mathematics of map projections inline visualization

The Three Families of Projections

Most map projections are constructed by conceptually placing a geometric shape over the globe, "shining a light" from within the Earth to project the landmasses onto the shape, and then unrolling the shape into a flat plane. These "developable surfaces" fall into three main mathematical families:

1. Cylindrical Projections

Imagine wrapping a cylinder of paper around the Equator. The projection formulas translate latitude and longitude into X and Y coordinates on this cylinder.

The mathematics of the famous Mercator projection are specifically designed to be conformal. To preserve angles, the Mercator formula exponentially increases the Y-axis scale as latitude increases toward the poles. The formula for the Y coordinate is: Y = R * ln(tan(π/4 + latitude/2)). Because the tangent function approaches infinity as you reach 90 degrees (the poles), the map stretches infinitely tall, which is why the poles can never actually be shown on a Mercator map.

2. Conic Projections

Instead of a cylinder, imagine placing a party hat (a cone) over the North Pole. The cone intersects the globe at one or two specific lines of latitude, known as standard parallels.

Conic projections (like the Lambert Conformal Conic) are incredibly accurate for mid-latitude regions that are wider east-to-west than north-to-south (like the United States or Europe). The math ensures that distortion is practically zero along the standard parallels and only increases slightly as you move away from them. This is why aviation charts almost exclusively use conic equations.

3. Azimuthal (Planar) Projections

Place a flat piece of paper directly touching the globe at a single point (e.g., the North Pole). Azimuthal projections are mathematically calculated by projecting straight lines from a perspective point (either the center of the Earth, the opposite pole, or infinity) onto the plane.

The beauty of the azimuthal projection is that distance and direction from the center point to any other point on the map are mathematically perfect. If the map is centered on New York, a straight line drawn to Tokyo represents the exact shortest path (great circle route) an airplane would fly.

The Rise of Compromise Projections

Since we cannot perfectly preserve both area and shape, modern cartographers often rely on mathematical compromises—pseudo-cylindrical projections that don't try to be perfect at anything, but try to minimize distortion across all metrics so the map "looks right."

The Winkel Tripel projection (used by National Geographic) uses complex arithmetic means. It averages the coordinates of a cylindrical projection and an azimuthal projection to create a map with gently curving longitude lines and minimized area distortion. The math is incredibly complex, requiring iterative numerical methods to plot, which is why it only became popular after the invention of computers.

Web Mercator: The Math of the Modern Internet

When Google launched Google Maps, they adopted a slightly modified version of Mercator known as Web Mercator (EPSG:3857). The math simplifies the Earth from an oblate spheroid to a perfect sphere for the projection calculation.

Why did they do this? Because a spherical Mercator projection maps the Earth into an exact square (if you cut off the map at 85.05 degrees latitude north and south). An exact square is mathematically perfect for the binary logic of computers. It allows the map to be divided into a grid of 256x256 pixel tiles. At zoom level 0, the world is 1 tile. At zoom level 1, it is 4 tiles. At zoom level 2, it is 16 tiles. This base-2 quadtree mathematics makes the zooming and panning you experience on your phone lightning fast.

Conclusion

Cartography is the beautiful intersection of geography and calculus. Every map you look at is a visual representation of a specific mathematical algorithm, designed to solve a specific problem—whether that's sailing a ship across an ocean, flying an airplane on the shortest route, or efficiently rendering pixels on a smartphone screen.

J

Joel

Joel is a creator at Vedratic. Passionate about geography, interactive learning, and effective project planning. Learn more about our team.

Advertisement

Keep Reading