Calculates on this device. File exports run online.
Contour Interval Calculator
Work out the height between contour lines from two labelled lines, pick a round interval for your own map, and find how steep the land is from the spacing of the lines. Upload an elevation grid below to get its contour lines as GeoJSON, DXF or a picture.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Work it out.
Your result
How it was worked out
How to find the contour interval
- Find two labelled contour lines next to each other. Labelled (index) lines are usually thicker.
- Type their heights and count the thin lines between them.
- Press Work it out. The interval is the height difference divided by the number of spaces (one more than the lines between).
Worked example
Labelled lines at 100 m and 200 m with 4 thin lines between: 5 spaces, so the interval is (200 − 100) ÷ 5 = 20 m, and every 5th line (100 m apart) is labelled.
Choosing an interval for a map
- Map makers use round values: 1, 2, 2.5, 5, 10, 20, 25, 50 or 100 m; US maps in feet use 1, 2, 4, 5, 10, 20, 40, 50, 80 or 100 ft.
- The tool picks the usual value that gives the number of lines nearest to the number you want over the relief (highest minus lowest height).
- Flat land needs a small interval; steep land a larger one, or the lines run together.
Slope from contour lines
- Rise = interval × the number of intervals crossed. Run = the distance on the ground, or the distance on the map × the scale.
- Slope = rise ÷ run × 100%, the angle = atan(rise ÷ run). Lines close together mean steep ground.
Contour lines from an elevation grid
- Upload an ESRI ASCII grid (.asc), a north-up GeoTIFF with one band of heights, or XYZ points on a regular grid.
- Choose the interval, the height lines start from, and which lines are index (thicker, labelled) lines.
- You get GeoJSON for GIS programs, DXF (R12, 3D polylines at their heights, layers CONTOUR and INDEX) for CAD, an SVG or PNG picture, and a CSV table of the levels.
- Coordinates stay in the reference system of the grid; empty cells (NODATA) break the lines.
Limits you should know
- The height between two lines is a straight-line estimate; the real ground can bulge or dip between them.
- Grids of up to 16 million cells are read. Compressed GeoTIFFs that Pillow cannot open (such as JPEG or ZSTD compression) need converting first.
- The tool does not find heights for a place by itself; it has no elevation data of its own.
Privacy
The calculations above are done in your browser. Only the grid file you choose in the box below is sent to the Toolvito server to trace its contours. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.