Add a trend line by right-clicking your chart data series

To add a trend line in Excel, right-click on any data point in your chart, select Add Trend Line, and choose the type that fits your data. Excel will draw the line across your chart and show you the equation and R-squared value if you want them. The whole process takes about 30 seconds once your chart exists.

Trend lines work on most chart types — column charts, line charts, scatter plots, and area charts all support them. The trend line won't change your actual data; it's a visual overlay that shows the direction your numbers are moving. You can have multiple trend lines on the same chart if you need to compare different data series.

Key Takeaways

  • Right-click any data point in your chart, then select Add Trend Line from the menu that appears.
  • Excel offers five trend line types: linear, exponential, logarithmic, polynomial, and power — linear is the default and works for most business data.
  • Check the Display Equation on chart and Display R-squared value on chart boxes to see how well the trend line fits your data.
  • You can format the trend line's color, thickness, and style the same way you format any other chart element.

The five trend line types and when to use each one

Linear is the most common. It draws a straight line through your data and works best when your numbers go up or down at a steady rate. Use this for sales over time, temperature changes, or any data that moves in one direction without big swings.

Exponential curves upward or downward and works for data that grows or shrinks faster as time goes on — like viral spread, compound interest, or bacteria growth. Logarithmic does the opposite: it rises or falls quickly at first, then levels off. Use this for learning curves or diminishing returns.

Polynomial creates a wavy line and fits data with multiple peaks and valleys. You choose the degree (2 for one curve, 3 for two curves, and so on). Power is less common and works for relationships where one variable depends on another raised to a power — like how area scales with radius.

If you are not sure which type to use, start with linear. It is the easiest to read and works for most business charts. You can always change it later by right-clicking the trend line and selecting Format Trend Line.

How to display the equation and R-squared value

The R-squared value tells you how well the trend line fits your data. It ranges from 0 to 1, where 1 means the line matches your data perfectly and 0 means it does not fit at all. Most business data falls somewhere in between — an R-squared above 0.8 usually means the trend line is useful for spotting the overall pattern.

To show these values on your chart, right-click the trend line itself (not a data point), select Format Trend Line, and check both Display Equation on chart and Display R-squared value on chart. The equation appears in the form y = mx + b, where m is the slope and b is where the line crosses the y-axis. This equation lets you predict future values by plugging in a new x value.

If the numbers crowd your chart, you can move them by clicking and dragging. Right-click them again to change the font size or color so they stand out from your data points.

Changing the trend line's appearance

Right-click the trend line and select Format Trend Line to open the formatting panel. Under Line, you can change the color, thickness, and style (solid, dashed, dotted). Most people make the trend line a different color than the data series so it stands out — a contrasting color like red or dark blue works well on most charts.

You can also make the line thicker or thinner depending on how much emphasis you want it to have. A thicker line draws the eye to the trend, while a thinner line keeps it subtle. Dashed or dotted lines work well if you want to show a trend without making it look like actual data.

Removing or replacing a trend line

To remove a trend line, right-click it and select Delete. To replace it with a different type, right-click it, select Format Trend Line, and choose a new type from the Trend Line Options panel on the left. You do not have to delete and start over.

If you want to compare two different trend lines on the same chart, add one, format it, then add a second one to the same data series. Both will appear, and you can format each one differently. This is useful when you are deciding which type fits your data best.

Trend lines on scatter plots and multiple data series

Scatter plots are especially good for trend lines because they show individual data points clearly. Right-click any point in the series you want a trend line for — Excel will add the line only to that series, not all of them. This lets you compare trends across different groups on the same chart.

If your chart has multiple data series (for example, sales by region), you can add a separate trend line to each one. Right-click the first series, add its trend line, then right-click the second series and add a different trend line. Format each one with a different color so readers can tell them apart.

Frequently Asked Questions

Can I add a trend line to a chart I already made?

Yes. Click the chart to select it, then right-click any data point and select Add Trend Line. You do not have to rebuild the chart. If the chart is embedded in your worksheet, double-click it first to enter edit mode.

What does the R-squared value mean?

R-squared measures how closely the trend line matches your actual data points, on a scale from 0 to 1. A value of 0.9 means the line explains 90 percent of the variation in your data. Values above 0.8 are generally considered a good fit for most purposes.

Can I use the trend line equation to predict future values?

Yes. The equation shown on the chart (y = mx + b) lets you plug in a future x value and calculate what y should be. For example, if your equation is y = 2x + 10 and you want to predict the value at x = 20, the answer would be 50. This works best when the trend has been consistent and you are not predicting too far into the future.

What if my data does not fit any of the five trend line types?

Try polynomial with a higher degree (3, 4, or 5) to see if a wavy line fits better. If none of the built-in types work well, your data may not have a clear trend, or you may need to look at it differently — for example, by breaking it into separate time periods or removing outliers that skew the pattern.