Ruler
Measured length
Fractal dimension
Steps

More information about the coastline paradox

Coastline paradox

How long is a coast? Walk a ruler along it from point to point and count the steps. Then take a ruler half as long and do it again: the coast comes out longer, because the short ruler follows bays and capes that the long one cut across. On a smooth shore the lengths settle down; on a fractal coast they keep growing, however far you shrink the ruler. Shrink it step by step, plot every length on a log–log chart, and the slope of the line gives the coast's fractal dimension. Measure a coast the way Lewis Fry Richardson did: walk a ruler of fixed length along it, from point to point, and count the steps. Move the Ruler slider to make the ruler shorter and the coast gets longer, because a short ruler follows every bay and cape that a long one cuts across. Press Play to shrink the ruler step by step and plot each length on the log–log chart; the slope of the line through the points gives the fractal dimension. Box counting covers the coast with a grid of boxes instead and counts the boxes it passes through. Choose a random island and its roughness, a rugged coast like Britain's, the Koch snowflake, a circle, or draw your own coast on the map. New island draws another one.

How it works

  1. Choose a coast: a random island with the roughness you set, a rugged coast like Britain's, the Koch snowflake, a circle, or draw your own on the map. Or pick a real island, such as Great Britain, Ireland, Iceland or Madagascar, measured at its true size.
  2. Move the Ruler slider and watch the ruler walk around the coast; the tiles show the ruler, the measured length and the number of steps.
  3. Press Play to shrink the ruler step by step and plot each length on the log–log chart, with a fitted line from the third point on.
  4. Read the fractal dimension from the slope, compare it with the known value, and switch to box counting to measure it another way.

Shorter ruler, longer coast

Around 1950 Lewis Fry Richardson compared the lengths that neighbouring countries gave for their shared borders and found that they disagreed by up to 20 percent: Spain gave 987 km for its border with Portugal, Portugal 1,214 km. The reason is the ruler. Step a pair of dividers of length ε along a wiggly line and you cut across every bend smaller than ε. Halve ε and you follow more of them, so the measured length grows. On a smooth curve that growth stops and the lengths approach the true length; on a coast it does not.

Richardson's law and the fractal dimension

Richardson plotted the logarithm of the length against the logarithm of the ruler and found straight lines: L(ε) = F·ε^(1 − D). A smooth curve has D = 1, so its line is flat. For the west coast of Britain he found D ≈ 1.25, for the land frontier of Germany 1.15, and for the coast of South Africa, one of the smoothest in the atlas, 1.02. In 1967 Benoît Mandelbrot read D as a fractal dimension in his paper How long is the coast of Britain?, one of the founding texts of fractal geometry.

Ruler walk and box counting

The ruler walk is Richardson's own method: from a point on the coast, step to the first point further along that is exactly one ruler away, and count the steps. Box counting lays a grid of squares of side s over the map and counts the squares the coast passes through; for a fractal the count grows like s^(−D), so the slope on a log–log chart gives D directly. Both give about 1.26 for the Koch snowflake, whose exact dimension is log 4 / log 3 ≈ 1.262, and the random island is built for the dimension its Roughness sets.

Frequently asked questions

What is the coastline paradox?

The observation that a coastline has no well-defined length. Measured with a shorter ruler it comes out longer, because the ruler follows smaller bays and headlands, and on a fractal coast this goes on at every scale. A coast's length therefore only means something together with the ruler that measured it.

How long is the coast of Britain?

It depends on the ruler. With a 200 km ruler the main island of Great Britain measures about 2,400 km, with a 50 km ruler about 3,400 km, and detailed maps give 12,000 km and more. Richardson's data give a fractal dimension of about 1.25 for the west coast, so every halving of the ruler adds about 19 percent: 2^0.25 ≈ 1.19.

What does the fractal dimension of a coast mean?

It says how fast the length grows as the ruler shrinks: L ∝ ε^(1 − D). A smooth line has D = 1 and its length stops changing. A coast with D = 1.25 gets about 19% longer every time the ruler is halved, and a curve with D close to 2 is so crinkled that it almost fills an area. The Fractal dimension tile shows the slope fitted to the chart.

Why does the fit use only the shorter rulers?

The longest rulers are almost as large as the island: they turn it into a rough polygon of a few steps and say little about its wiggles. The fit uses the rulers up to a quarter of the island's width, drawn as full dots; the paler dots on the left are measured and shown but left out of the line.

Is a real coastline infinitely long?

Not in practice. Below some scale the fractal picture stops: rocks, sand grains and in the end molecules, and the tide moves the shore anyway. Over the scales that matter on maps, from metres to hundreds of kilometres, coasts behave like fractals, which is why their published lengths differ so much. The generated coasts here are fractal down to the finest detail drawn.

Can I use the map in a design?

Yes. Save gives a PNG, and the pencil opens the picture in the PictorX photo editor with the background, the sea, the land, the coastline, the rulers and the chart on layers of their own. In the editor itself it is under Apps ▸ Fractals ▸ Coastline Paradox. Everything is drawn in your browser.

Coastline Paradox: how do I record a video?

Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device. Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner. The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF. You can add one of three music tracks: calm, bright or beat.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Go to Editor