To create an elevation chart in Excel, you need a series of distance and elevation values, then insert a Scatter chart with smooth lines (or a Line chart) and format the vertical axis to show elevation. Excel has no built-in "elevation" chart type, but a scatter or line chart with the right data layout produces a clean profile. The steps below use Excel for Windows and Mac; labels can differ slightly by version and region.
What You'll Need
- Excel 2016 or later (Microsoft 365, 2019, 2021) on Windows or Mac. The web version works but has fewer formatting options.
- A two-column data table: cumulative distance in one column and elevation in the other. Distance can be in miles, kilometers, or meters; elevation in feet or meters. Keep units consistent.
- Optional: a GPS track export (GPX, CSV) or manually recorded elevation points. If you have a GPX file, convert it to CSV first using a free converter or your GPS app's export feature.
Step-by-Step
- Lay out your data. In a blank worksheet, put headers in row 1: A1 = "Distance", B1 = "Elevation". Starting in row 2, enter your first distance value (usually 0) and its elevation. Continue down the rows in order of increasing distance. Do not leave blank rows inside the data range.
- Select the data range. Click A1 and drag to the last elevation cell, or press Ctrl+A (Windows) / Command+A (Mac) if the table is the only data on the sheet. Include the headers so Excel labels the axes.
- Insert a Scatter chart. Go to the Insert tab, find the Charts group, click the Scatter icon, and choose "Scatter with Smooth Lines" (the one with curved lines and no markers). A chart appears on the sheet. If you prefer straight segments between points, choose "Scatter with Straight Lines." A Line chart also works, but Scatter is better because it treats distance as a numeric axis.
- Check the axes. The horizontal axis should show distance and the vertical axis should show elevation. If they are swapped, right-click the chart, choose Select Data, and confirm that the Distance column is set as the X values and Elevation as the Y values. Use the Edit button for each series to fix the ranges.
- Format the vertical axis. Right-click the vertical axis and choose Format Axis. Set the Minimum and Maximum bounds to sensible values (for example, 0 to 5000 feet) so the profile fills the chart area. Set Major unit to a round number such as 500. Close the pane.
- Format the horizontal axis. Right-click the horizontal axis, choose Format Axis, and set the Minimum to 0 and the Maximum to your total distance. Set Major unit to a round interval (1 mile, 5 km). This prevents Excel from adding empty space before the start or after the end.
- Add axis titles. Click the chart, then the green plus sign (Chart Elements) and tick Axis Titles. Type "Distance" under the horizontal title and "Elevation" beside the vertical title. Include units, e.g., "Distance (mi)" and "Elevation (ft)".
- Add a chart title. In the same Chart Elements menu, tick Chart Title and type a descriptive name such as "Trail Elevation Profile."
- Adjust the line and fill. Right-click the line and choose Format Data Series. Set the line color and width. To shade the area under the curve, right-click the series, choose Change Series Chart Type, and pick "Area" for that series if you want a filled profile. Alternatively, keep the line and add a light fill using the Fill options in Format Data Series.
- Remove clutter. Delete gridlines if they distract (Chart Elements > Gridlines), and turn off the legend if you have only one series. Move the chart to its own sheet if needed: right-click the chart, choose Move Chart, and select New sheet.
- Save and reuse. Save the workbook as .xlsx. To reuse the chart for another route, copy the sheet, replace the data, and the chart updates automatically because it is linked to the range.
Common Mistakes
- Using a Line chart with text categories. If the distance column is formatted as text, Excel spaces points evenly instead of by distance. Format the column as Number before charting.
- Leaving blank rows. Blank rows split the series and create gaps. Delete or fill them.
- Swapped X and Y. Elevation on the horizontal axis produces a sideways profile. Fix the series assignments in Select Data.
- Axis bounds left on Auto. Excel may start the elevation axis at a high value, flattening the profile. Set the minimum to 0 or a round number below your lowest point.
- Mixing units. Distance in miles with elevation in meters is fine if labeled, but mixing feet and meters in the same column is not. Convert first.
- Too many data points. A GPX track with thousands of points can slow the chart. Thin the data by keeping every 5th or 10th row if the chart lags.
Tips
- Sort by distance before charting. Out-of-order rows create a zigzag line.
- Use a Scatter chart with straight lines for technical profiles; smooth lines look better for presentations but can overshoot sharp peaks.
- Add a second series for a second route and use the legend to compare profiles on one chart.
- Set the chart area to a fixed size (Format Chart Area > Size) so multiple profiles look consistent in a report.
- If you need a filled profile, an Area chart with a numeric X axis works, but Scatter with a shaded fill is more flexible.
- Keep a copy of the raw data on a separate sheet so formatting changes do not affect it.
Troubleshooting
- The chart is empty or shows one point. Check that the data range includes all rows and that the distance column is numeric. Select the range again and reinsert the chart.
- The line goes backward. The distance values are not sorted ascending. Sort the table by the Distance column and refresh the chart.
- The vertical axis starts too high. Right-click the axis, Format Axis, and set Minimum to 0 or a value below your lowest elevation.
- Axis labels show decimals. In Format Axis, set Number format to 0 decimal places.
- The chart does not update after editing data. Confirm the chart's source range still covers the edited cells. If you inserted rows above the range, extend the range in Select Data.
- Excel crashes or lags with a large GPX export. Reduce the row count (delete every other row) or use a PivotChart to summarize. Save before making large changes.
Frequently Asked Questions
Can I create an elevation chart from a GPX file directly in Excel?
Not directly. Excel cannot open GPX files. Export the track to CSV using your GPS app or a free converter, then import the CSV (Data > From Text/CSV) and chart the distance and elevation columns.
What is the difference between a Scatter chart and a Line chart for elevation?
A Scatter chart plots distance as a numeric X axis, so points are spaced according to actual distance. A Line chart treats the X values as categories and spaces them evenly, which distorts the profile if your points are unevenly spaced.
How do I add a filled area under the elevation line?
Right-click the data series, choose Change Series Chart Type, and select Area for that series. Or keep the line and use Format Data Series > Fill to add a light color under the curve.
Can I show two elevation profiles on one chart?
Yes. Add a second pair of distance and elevation columns, then add the second series via Chart Design > Select Data > Add. Use the legend to label each route.
Why does my chart show a flat line?
The vertical axis bounds are likely set too wide. Right-click the vertical axis, Format Axis, and set the Minimum and Maximum close to your actual elevation range.
Does the Excel web version support these chart types?
Yes, Scatter and Line charts are available in Excel for the web, but advanced formatting such as custom axis bounds and series fill may be limited. For full control, use the desktop app.