Some questions about terrain are not answered by a map. How steep is the climb on this proposed trail, really, and where exactly does it get steep? Does this ridgeline block the view, or the signal, from that tower site? Where along this pipeline route does the ground fall away? Each is a question about a line, and the tool that answers it is the elevation profile: a chart that unrolls the terrain along a path into a graph, distance horizontal, elevation vertical, so gradient, total climb, and the shape of the ground become numbers and curves instead of impressions. QGIS has a dedicated Elevation Profile panel for exactly this, documented by the project as introduced in QGIS 3.26, which profiles not just DEM rasters but mesh and point cloud layers too. This guide sets one up, teaches you to read the curve like a professional, and shows how to get the numbers out.
Home / GIS and Open Map Data for Beginners
QGIS Elevation Profile: Read the Terrain Along Any Line You Draw

Photo: Yaroslav Shuraev / Pexels
Let the Ground Testify: The Elevation Profile Checklist
Check off each step as you finish it. Your progress stays on this page.
0 of 8 complete
0% done
What the Profile Panel Does
The Elevation Profile panel is a docked chart that listens to a line you draw. You sketch a temporary profile line across the map, or supply a line from a layer, and the panel samples the elevation sources beneath it, plotting elevation against cumulative distance. The chart is live: change the line, change a source's settings, and the curve redraws. Its inputs are broader than a classic DEM profile: raster elevation layers, mesh layers such as terrain models, and point clouds can all contribute curves, and several sources can be profiled simultaneously, which makes comparisons, before and after a design surface, existing ground against a survey, a first-class operation rather than a chore. The panel also exposes the controls that decide what the curve means: the sampling tolerance that governs how point-based sources are averaged along the line, axis ranges you can lock for honest comparisons, and export of the chart and its underlying data. If the hillshade is the terrain's portrait, the profile is its cross-section: less beautiful, more quantitative, and the right tool whenever a decision rides on gradient.
Set Up the Terrain
A profile is only as good as its elevation source, so begin there. Load a DEM covering your line's full length; if the line runs off the raster's edge, the curve simply stops having data, which the chart shows as a gap rather than an error, so check extents first. Public DEM sources are covered in our guide to downloading data from The National Map. In the profile panel, add the DEM as a profile layer and confirm it is the active elevation source; a layer merely present in the project is not automatically sampled. Then draw: the panel's capture tool lets you click a polyline across the map, right-clicking to finish, and the curve appears. Two setup checks separate a trustworthy profile from a decorative one. First, units: distance and elevation inherit the project's measurement settings and the data's CRS, so a degrees-based project will produce a confused axis; work in a projected CRS for profiling, as with all measurement in QGIS. Second, vertical exaggeration: the chart's axes auto-scale, which can make a gentle slope look alpine; note the actual axis ranges before interpreting steepness, and lock them when comparing profiles, because the same curve at two exaggerations is two different arguments.

Draw the Line, Read the Curve
Reading a profile is a learnable literacy. The horizontal axis is distance from the line's start, so orient yourself: mark the features you pass, the road crossing at kilometer two, the saddle at kilometer five, either by hovering the chart, which highlights the corresponding position on the map, or by comparing against the map directly. The curve's vocabulary: a steady slope is a straight diagonal; a cliff or a road cut is a near-vertical step; a summit is a peak with descent on both sides; a saddle is a local dip between two rises; a bench is a flat interruption in a slope. From the curve, the working numbers fall out: total ascent and descent accumulate the up and down along the whole line, maximum gradient is the steepest segment, which for a trail or an access road is usually the number the whole exercise exists to find, and it lives wherever the curve tilts hardest, not at the highest point. Read the profile in both directions if the journey will be traveled both ways; a descent that reads as relief on the chart is tomorrow's climb. The panel reports statistics for the curve, and hovering gives point values, so a claim like "the gradient stays under ten percent except for one ramp at kilometer three" can be read off, checked, and quoted.
Add Layers and Refine
The panel grows more valuable as you add to it. Profile a second source, a proposed design surface, a second DEM of different resolution, a point cloud of a surveyed corridor, and the curves overlay, making differences visible: where the design cuts, where it fills, where two data sources disagree and one of them must be wrong. Tolerance is the refinement that matters most for point clouds and meshes: it sets how far either side of the line samples are gathered, widening the net for sparse data and narrowing it for precision. Sub-profiles and distance markers help on long lines, and the chart's axes can be fixed to round ranges so a series of profiles across a site shares one honest scale. A word on data quality: a profile inherits its DEM's resolution and vertical accuracy, and a smooth curve drawn from a coarse DEM is a smooth fiction over rough ground. Match the source to the decision: regional DEMs for route corridors and viewshed sketches, survey-grade data for construction. The panel will draw either with equal confidence; the judgment is yours.
Export and Use the Numbers
A profile earns its keep when it leaves QGIS. The panel exports the chart as an image for reports and presentations, and the profile's sampled data can be taken out as a table of distance and elevation pairs, which is the form engineers and spreadsheets want: from it, gradients per segment, total climb, and cut-and-fill style summaries are simple arithmetic. Save the profile line itself as a layer in the project, so the chart is reproducible and a colleague can redraw exactly your section rather than an approximation of it. In reports, always publish the profile with its axis ranges stated and its elevation source named; a curve without a source is an assertion, and terrain data varies enough between sources that the citation is part of the result. Used this way, the profile panel closes the loop that the map opens: the hillshade shows you the country's shape, the profile measures the slice of it you actually intend to cross, build on, or defend in a meeting.
Profiles in Practice: Four Decisions They Settle
The panel earns its place in real projects through a short list of recurring arguments it ends. Trail and route design is the everyday case: a proposed path's profile exposes the one ramp that excludes wheelchairs, the climb distribution that makes a ride miserable in the last kilometer rather than the first, and the places a bench or a switchback belongs, all before anyone walks it with a wheel. Line of sight is the second: while a full viewshed analysis answers visibility over an area, a profile along the exact sight line between a tower and a receiver, or a driver and a junction, answers the specific question with the terrain's own cross-section, and a mid-line ridge standing in the profile is a verdict no meeting can argue with. Drainage and earthworks form the third: a road or pad profile reveals where water will pond against the design, where cut slopes grow unreasonable, and how a route's elevation relates to the streams it crosses. The fourth is communication: a single profile chart, honestly axed and sourced, explains a route to a client, a council, or a walking group faster than any map, because it speaks in the body's own units, effort against distance. Notice the common thread: each decision is about a line through terrain, argued from a cross-section. Keep the panel open in any project where lines matter, and those arguments get shorter, because the ground itself has been given a way to testify.
Profiles of Temporary Lines: The Sketch Habit
One underused habit deserves promotion before we close: profile lines you have no intention of keeping. The panel responds to any line you draw, which makes it a thinking instrument, not just a reporting one. Sketch three candidate alignments for a path and profile all three in a minute; the terrain votes immediately, and two candidates die at the sketch stage where dying is free. Drop a line across a valley to test a bridge site, along a proposed fence to find its gates' natural saddles, or from a turbine pad to the road to feel the access problem. Temporary profiles answer the questions meetings speculate about, in the units that end speculation. Keep the winners by saving their lines into a scratch layer with honest names, delete the losers, and the project accumulates a small museum of considered alternatives, which is what good design documentation actually is. The elevation profile, treated this way, stops being the chart you make at the end of a project and becomes the sketchpad you think with throughout it, the ground's cross-section available at the speed of curiosity.
Related Guides
The closest companions to this guide are the GIS and open map data guides below. Each one picks up a thread this page starts:
- How to Draw a Polygon in QGIS: Digitizing a Boundary That Closes Cleanly: Drawing a polygon is the moment a QGIS user stops consuming maps and starts making them: a field boundary, a study area, a zoning line, traced...
- QGIS: How to Georeference an Image, From Scan to GeoTIFF: Georeferencing teaches a dumb picture, a scanned map, an old aerial photo, a floor plan, where it lives on Earth, so QGIS can drape it over real data.
- How to Add a Basemap in QGIS: XYZ Tiles in Two Minutes: A blank QGIS canvas is hard to work on; a basemap underneath your data gives every layer a location, a scale, and a sanity check.
- LiDAR in QGIS: Native Point Clouds From LAS to 3D: Where high-resolution terrain comes from: the point cloud the profile is drawn across.
Frequently Asked Questions
Where is the Elevation Profile tool in QGIS?
It is a panel, opened from the View menu's panels, documented as introduced in QGIS 3.26. Add an elevation layer such as a DEM to its layer list, draw a profile line with its capture tool, and the chart plots elevation against distance along your line.
What data can the profile panel use?
Raster DEMs, mesh layers, and point clouds can all serve as elevation sources, and several can be profiled at once for comparison. The line itself can be drawn temporarily or taken from a line layer in the project.
Why does my profile stop partway along the line?
Usually the line runs beyond the elevation layer's extent, where there is no data to sample; the chart shows a gap rather than inventing values. Extend the DEM coverage or shorten the line to the data you actually have.
How do I find the steepest gradient on a route?
Draw the profile and look for where the curve tilts hardest; gradient is rise over distance along that segment, and the panel's point readouts and statistics let you quantify it. Remember to check the axis scaling first, since auto-scaled axes exaggerate or flatten slopes visually.
Can I export the profile data?
Yes. The chart exports as an image for reports, and the sampled distance and elevation values can be exported as data for spreadsheets and further calculation. Save the profile line as a layer too, so the exact section can be reproduced later.
Photo credits: Yaroslav Shuraev (Pexels); Magda Ehlers (Pexels). Photos are served from this site; follow the credit to the library page for the original.