Skip to content
← Back to Remote Sensing
remote-sensingBeginner· 7 min read

DEM, DSM and DTM: Elevation Models Explained

What a Digital Elevation Model is, where DEMs come from, and how DEM, DSM and DTM differ, with a worked example and advice on checking which one a dataset really is.

What is a DEM?

A DEM (Digital Elevation Model) is a digital representation of the elevation of the Earth's surface. If you have looked at a 3D map of mountains, analyzed flood risk, calculated slope or created a terrain profile, a DEM was probably involved.

A DEM is a grid laid over the Earth's surface, with one elevation value in each cell. Together, those values describe the shape of the terrain. It is a raster, so each pixel stores an elevation value. The colors you see on a map are only a visualization of those values.

What you can derive from a DEM

A DEM can be used to derive:

  • Slope and aspect
  • Hillshade
  • Contours
  • Elevation profiles
  • Watersheds
  • Drainage networks

An example: flooding in a hilly region

Water flows from higher ground to lower ground. By analyzing a DEM you can identify high and low areas, flow direction, drainage paths, likely accumulation areas and watershed boundaries.

Where DEMs come from

DEM data can come from:

  • Satellite missions
  • Aircraft
  • LiDAR
  • Photogrammetry
  • Drone surveys

The quality of a DEM depends heavily on how it was produced.

What is a DSM?

A DSM (Digital Surface Model) represents the elevation of the Earth's surface including the objects on it, such as buildings, trees and bridges.

In a city, the ground might be at 150 m while the roof of a nearby building is at 180 m. A DSM records the building's top at about 180 m. In a forest, a DSM captures the top of the trees, while a terrain model represents the ground underneath them.

DSM data can be generated from photogrammetry, LiDAR, stereo satellite imagery and drone imagery.

A practical example: rooftop solar

Assessing rooftop solar potential needs the roofs themselves, so a terrain-only model is not enough. A DSM represents building heights and surface structures, which you can combine with other information for a more detailed analysis.

DEM vs DSM vs DTM

DEM, DSM and DTM appear constantly in GIS, and software, datasets and organizations do not always use them in the same way.

TermStands forWhat it represents
DEMDigital Elevation ModelElevation data in general. Depending on the source, it can mean a bare-earth model or a broader elevation dataset.
DSMDigital Surface ModelThe elevation of the visible surface, including buildings, trees and infrastructure.
DTMDigital Terrain ModelThe bare-earth terrain, without above-ground objects.

A simple example

Take a city where the ground is at 100 m, a building roof is at 125 m and the tree canopy is at 115 m.

ModelValue
DTM100 m
DSM125 m at the building, 115 m at the canopy
DEMEither, depending on the source

Why the distinction matters

  • For terrain slope, you want the ground surface.
  • For building heights or urban 3D structure, a DSM is more useful.
  • If you are processing drone imagery, you need to know whether your output represents terrain or visible surface.

You do not need all of these to start.

NameWhat it isGood for
QGISFree, open-source desktop GISViewing DEMs and deriving slope, aspect, hillshade and contours
GDALOpen-source library and command-line tools for geospatial dataTerrain processing and format conversion from the command line
Google Earth EngineCloud platform with a large archive of satellite dataWorking with elevation data over large areas without downloading it

Glossary

TermMeaning
DEMDigital Elevation Model, a grid of elevation values
DSMDigital Surface Model, elevation including buildings and trees
DTMDigital Terrain Model, bare-earth elevation
SlopeHow steeply the ground rises or falls
AspectThe direction a slope faces
HillshadeA shaded relief view of terrain
WatershedThe area that drains to a common point
LiDARAn active sensor using laser pulses to measure height and 3D structure
PhotogrammetryMeasuring surfaces from overlapping photographs

Test yourself

Try to answer each question before opening the answer.

1. What is a DEM, and how is it stored?

A DEM is a digital representation of the elevation of the Earth's surface. It is usually a raster where each pixel stores an elevation value.

2. Why can a DEM not tell you that an area will flood?

It only provides elevation. A flood analysis also needs other inputs, and the DEM is one component of that workflow.

3. A building roof is at 125 m and the ground is at 100 m. What do the DTM and DSM record there?

The DTM records 100 m (the ground) and the DSM records 125 m (the roof).

4. Why should you check the documentation of a dataset labelled "DEM"?

Providers use the term loosely. It may be a bare-earth model or a broader elevation dataset, so you need to check resolution, how it was generated and its vertical accuracy.

5. Name three things you can derive from a DEM.

For example slope, aspect, hillshade, contours, elevation profiles, watersheds or drainage networks.

6. Why is a terrain-only model not enough for rooftop solar assessment?

Rooftop solar needs the heights of the roofs themselves. A DSM represents building heights and surface structures, which a bare-earth model leaves out.

Quick quiz

Pick an answer for each question to see if you got it right.

1. Which model records the top of the trees in a forest?
2. Which model is the better choice for calculating terrain slope?
3. Which analysis needs a DSM rather than a terrain-only model?
4. Why is the term DEM ambiguous?
5. Which of these can be derived from a DEM?
0 of 5 answered

Key takeaways