Fantasy map area calculator

Open your world map, pick its colors, and get the true area of each country, biome or sea on a round planet.

Drop a map image here, or open one. It stays on this device.

Works best with flat colors, cropped to the map's edges (no frame, title box or legend).

How the areas are worked out

On a whole-world map every pixel row spans the full 360° of longitude, but the ground it covers shrinks toward the poles. The area of one pixel in a row is

r² × (2π ÷ width in pixels) × (sin of the row's top latitude − sin of its bottom latitude)

where r is the planet's radius. Add the rows up and you get exactly 4πr², the whole sphere. Each color's area is the sum over its pixels. For part of a world the rows run between the edge latitudes you type; for a flat map every pixel is the same size.

A pixel counts as a color when it is within the tolerance of it, measured as a difference people can see. Blended edge pixels go to the nearer color, so a coast is split fairly between land and sea.

Example: a made-up world

The example map is 1,600 by 800 pixels with seven countries, a sea and ice caps, on a planet the size of Earth. The ice fills 23% of the pixels but only 6.5% of the surface, because it sits at the top and bottom rows. Kestrel Reach comes out at about 18.4 million km², about the size of Russia.

Questions

How do I calculate the land area of my fantasy map?

Open the map here. The page finds its main colors, or you tap each one. Mark each color as land, water or other, and set the size of your planet. Every color's area appears at once, with its share of the planet and of the land.

Why not just count pixels?

On a 2:1 world map every row is the same number of pixels wide, but rows near the poles cover far less ground. Counting pixels makes polar lands huge. Earth's land counted that way comes out at 33% of the surface; weighted by latitude it is about 29%.

What size should my planet be?

The page starts with Earth: a radius of 6,371 km (3,959 miles). If you know the distance around your world's equator, type it and choose circumference; the line under the box shows both. Area grows with the square of the size, so a planet twice as wide has four times the area.

My map is not twice as wide as it is tall. Can I still use it?

A whole-world map works at any width if its latitude lines are evenly spaced from pole to pole. If it shows part of a world, choose part of a world and type the latitude and longitude of its edges. For a flat map with a scale, choose flat map and type its width. Mercator or globe views give wrong areas.

What about borders, labels, frames and legends?

Crop off frames, title boxes and legends first; a whole-world map must reach the image edges. If one is left, the page names its color: tap Count it as Other. Thin lines and lettering that match no color are split between the colors beside them, up to the width you set. Show matched colors stripes what matched nothing.

How accurate are the areas?

The sphere maths is exact: the rows add up to the whole planet. What limits accuracy is the drawing: coastlines a few pixels off, blended colors, a small image, or a map that was not drawn in this projection. Treat the last figure or two as approximate.

Where do the real-world comparisons come from?

From the total surface area of each country, inland water included, in the UN Demographic Yearbook 2023. The page names the country closest in size, or says how many times bigger or what share of it your area is. Areas over ten times Russia are compared with Earth's whole surface.

Is my map uploaded?

No. The image is read in this browser and kept on this device along with your colors and settings, so it is there when you come back. Earlier maps stay in Your maps until you delete them.