Add a trend line by right-clicking your chart and selecting the trend line option

A trend line is a straight or curved line that runs through your data points on a chart to show the overall direction or pattern. In Excel, you add it after your chart exists — not before. Right-click any data series (the dots or bars themselves, not the background), choose "Add Trend Line", and Excel draws the line for you. The line can show whether your data is rising, falling, staying flat, or following a curve.

The trend line does not change your actual data. It is a visual overlay that helps you and others see the pattern without getting distracted by ups and downs in individual data points. If you remove the trend line later, your chart and numbers stay exactly as they were.

Key Takeaways

  • Right-click the data series (the plotted points) on your chart, not the chart background or axes, to access the trend line menu.
  • Excel offers five trend line types: linear (straight line), exponential (curved upward), polynomial (wavy), power (curved), and moving average (smoothed).
  • You can display the trend line equation and R-squared value on the chart itself to show how well the line fits your data.
  • A trend line works on column charts, line charts, scatter plots, and area charts, but not on pie or doughnut charts.

The steps to add a linear trend line

Start with a chart that already contains your data. Click anywhere on the chart to select it, then right-click directly on one of the data points (a dot, bar, or column — whichever represents your data). Do not click on the background, the title, or the axis labels.

A menu will appear. Look for "Add Trend Line" or "Insert Trend Line" depending on your Excel version. Click it. A panel or dialog box opens on the right side of the screen (or as a separate window). By default, Excel selects "Linear" as the trend line type, which draws a straight line through your data. Click "Close" or press Escape to accept this and see the line on your chart.

The line now appears on your chart, running through or near your data points. If you want to remove it later, right-click the trend line itself and choose "Delete".

Choosing between different trend line types

Excel offers five types of trend lines, each showing a different pattern. Linear is the default and works best when your data rises or falls at a steady rate. Exponential curves upward and works for data that grows faster and faster over time, like bacterial growth or compound interest. Polynomial creates a wavy line and works for data that goes up and down multiple times, like seasonal sales or temperature cycles.

Power curves and works for data where the rate of change itself changes — common in physics or economics. Moving average smooths out short-term noise by averaging several data points at a time, useful when you have daily or weekly data but want to see the monthly pattern underneath.

To change the type, right-click the trend line itself (not the data points), choose "Format Trend Line", and select a different type from the panel. Excel redraws the line immediately. You can also set how many periods the moving average uses — the default is usually two or three, but you can change it to match your data's natural cycle.

Displaying the equation and R-squared value

The equation shows the mathematical formula of your trend line (for example, y = 2x + 5). The R-squared value (also called R²) tells you how well the trend line fits your actual data. An R² of 1.0 means the line passes through every point perfectly. An R² of 0.5 means the line captures about half the variation in your data. Lower values mean the trend line is less reliable as a predictor.

To show these on your chart, right-click the trend line, choose "Format Trend Line", and check the boxes for "Display Equation on chart" and "Display R-squared value on chart". The equation and number appear as text labels on your chart. You can click and drag these labels to move them if they overlap other elements.

The equation is most useful if you want to predict future values. For example, if your equation is y = 3x + 10 and you want to know the value at x = 20, you calculate 3(20) + 10 = 70. The R² value tells you how much to trust that prediction — a high R² means the prediction is probably closer to reality.

Trend lines on different chart types

Trend lines work on scatter plots (XY charts), line charts, column charts, bar charts, and area charts. They do not work on pie charts, doughnut charts, or radar charts because those chart types do not have a clear x-axis and y-axis relationship.

On a scatter plot, the trend line usually shows the relationship between two variables — for example, how house price relates to square footage. On a line chart or column chart, the trend line typically shows how a single value changes over time. The process for adding the trend line is the same regardless of chart type: right-click the data series and choose "Add Trend Line".

Formatting and removing trend lines

Once a trend line exists, you can change its appearance. Right-click the trend line itself and choose "Format Trend Line". You can change the line color, thickness, and style (solid, dashed, dotted). You can also set whether the line extends beyond your data points into the future or past — useful if you want to see where the trend would go if it continued.

To remove a trend line, right-click it and select "Delete". The chart returns to showing only the data points. You can add a new trend line at any time without affecting your original data or chart.

Common reasons a trend line might not appear

If you right-click and do not see "Add Trend Line" as an option, you probably clicked the chart background instead of the data series itself. Click directly on a data point — a dot, bar, or column. If the chart has multiple data series (multiple colors or groups), clicking one series adds a trend line only to that series.

Some chart types do not support trend lines at all. Pie charts, doughnut charts, bubble charts, and stock charts cannot use them. If your chart type does not allow trend lines, Excel simply will not show the option in the menu. Switch to a scatter plot, line chart, or column chart if you need a trend line.

Frequently Asked Questions

Can I add more than one trend line to the same chart?

Yes. If your chart has multiple data series (different colored lines or groups of bars), you can add a separate trend line to each one. Right-click each data series individually and add its trend line. Each trend line can have a different type and appearance.

What does the R-squared value really mean?

R² measures how much of your data's variation the trend line explains, on a scale from 0 to 1. An R² of 0.9 means the trend line accounts for 90% of the ups and downs in your data. An R² of 0.3 means it only accounts for 30%, so the trend line is less useful for predictions. Higher is always better.

Can I use a trend line to predict future values?

Yes, if your R² is reasonably high (usually 0.7 or above). Use the equation shown on the chart to calculate the predicted value. For example, if the equation is y = 5x + 20 and you want to predict the value at x = 10, calculate 5(10) + 20 = 70. The higher your R², the more confident you can be in that prediction.

What is the difference between a moving average and a linear trend line?

A linear trend line is a single straight line that runs through your entire dataset. A moving average smooths out short-term bumps by averaging groups of nearby points, creating a wavy line that follows your data more closely. Use moving average when you want to see the underlying pattern without the noise of daily or weekly fluctuations.

Does adding a trend line change my original data?

No. A trend line is purely visual — it appears only on the chart. Your actual data in the spreadsheet cells remains unchanged. If you delete the trend line, your data and chart stay exactly as they were.