What a trendline does and when you need one

A trendline is a straight or curved line that Google Sheets draws through your data points to show the overall direction they're moving. If you have sales figures going up month by month, a trendline makes that upward pattern visible at a glance. If website traffic bounces around but generally climbs, the trendline cuts through the noise and shows the climb.

You add a trendline to a chart you've already created in Google Sheets — not to raw data in cells. The trendline appears on top of your existing bars, dots, or line graph. It's useful when you want to spot patterns in messy data, predict where numbers might go next, or show someone else what the overall trend actually is beneath the day-to-day variation.

Key Takeaways

  • You must create a chart first in Google Sheets before you can add a trendline to it.
  • Right-click any data point on your chart, select "Add trendline", and Google Sheets draws the line automatically.
  • You can change the trendline type from linear to polynomial, exponential, or logarithmic depending on what your data looks like.
  • The R² value tells you how well the trendline actually fits your data — closer to 1 means a better fit.

Create your chart before adding the trendline

You need a chart already in your sheet. If you don't have one yet, select the data you want to chart (including headers), click Insert in the menu, then click Chart. Google Sheets creates a default chart. You can adjust the chart type, colors, and labels now or after you add the trendline — it doesn't matter.

Once your chart is on the sheet, you're ready to add the trendline. The chart doesn't have to be perfect yet. You can still change almost everything about it after the trendline is in place.

Add a trendline in four steps

Step 1: Click on the chart to select it. You'll see a blue border around the chart and a three-dot menu appear in the top right corner.

Step 2: Right-click on any data point (a dot, bar, or point on the line inside the chart). A small menu appears with several options.

Step 3: Click Add trendline. Google Sheets draws a straight line through your data and opens the trendline options panel on the right side of the screen.

Step 4: Leave the settings as they are, or adjust them (see the next section). Click anywhere outside the chart to close it and see your finished result.

Understand the trendline options panel

When you add a trendline, a panel opens on the right labeled "Series". Near the bottom, you'll see a dropdown that says Linear. This is the trendline type. Linear works for most situations — it's a straight line that shows whether your data is generally going up, down, or staying flat.

If your data curves instead of moving in a straight line, click the dropdown and try Polynomial (for data that dips and rises), Exponential (for data that accelerates sharply), or Logarithmic (for data that rises quickly at first then levels off). Most people stick with Linear unless they have a specific reason to change it.

Below the type dropdown, you can check the box next to Show R² to display a number on your chart. This R² value ranges from 0 to 1 and tells you how well the trendline fits your actual data. A value of 0.95 means the trendline explains 95% of the variation in your data — a very good fit. A value of 0.5 means the trendline is less reliable. If your R² is very low, your data may not follow a clear trend, or you may need to try a different trendline type.

Adjust the trendline appearance

In the same panel where you chose the trendline type, scroll down to find Format. Click it to change the line color, thickness, or style (solid, dotted, or dashed). These changes are purely visual and don't affect what the trendline represents.

You can also add a label to your trendline by checking the Show label box. Google Sheets can display the equation of the line (useful if you want to predict future values) or just a generic label. Choose whichever helps your audience understand the chart.

Fix common trendline mistakes

If you right-click on the chart and "Add trendline" doesn't appear, you clicked on the chart background instead of a data point. Click directly on a bar, dot, or line within the chart itself, not on the white space around it.

If your trendline looks wrong — maybe it's nearly flat when your data clearly rises, or it's curved when you expected straight — check the trendline type. Go back to the Series panel on the right, click the type dropdown, and try Polynomial or Exponential. Also make sure you're looking at the right data series if your chart has multiple series (multiple sets of bars or lines).

If you want to remove the trendline, right-click it directly and select Delete. You can add a new one anytime without affecting the chart itself.

Frequently Asked Questions

Can I add more than one trendline to the same chart?

Yes, if your chart has multiple data series (for example, sales for Product A and sales for Product B on the same chart). Right-click each series separately and add a trendline to each one. Each trendline can have its own type and appearance.

What does the equation on the trendline mean?

The equation (like y = 2x + 5) describes the trendline mathematically. You can use it to estimate what the next data point might be. If x is the month number and y is sales, you can plug in the next month's number to predict sales. This works best when the R² value is high (above 0.8).

Why does my trendline look jagged or broken?

You're probably looking at a line chart where the data points themselves are connected by lines. The trendline should be smooth and separate from those connecting lines. If it looks wrong, make sure you selected the right trendline type in the Series panel. Polynomial trendlines can look curved or jagged depending on your data.

Can I move or resize the trendline?

No — the trendline's position and length are calculated automatically based on your data. You can only change its appearance (color, thickness, style) or delete it and create a new one with different settings.