How to Add a Trendline in Google Sheets

Trendlines turn raw chart data into something actionable. Instead of eyeballing whether sales are climbing or temperatures are leveling off, a trendline draws the pattern mathematically — giving you a visual signal that's grounded in the actual numbers. Google Sheets makes this reasonably straightforward, but the options go deeper than most people realize.

What a Trendline Actually Does

A trendline (sometimes called a line of best fit) is a calculated line overlaid on a chart that represents the general direction of your data over time or across a variable. It smooths out noise and shows the underlying trend.

Google Sheets calculates trendlines using statistical methods baked into the chart editor. You're not drawing a line manually — the app fits the line to your data points using the trendline type you select.

This is most useful in:

  • Time-series data (monthly revenue, weekly traffic, daily temperatures)
  • Scatter plots showing the relationship between two variables
  • Any dataset where direction and rate of change matter more than individual values

Step-by-Step: Adding a Trendline in Google Sheets

1. Build a Chart First

Trendlines live inside charts, so you need one before you can add anything.

  • Select your data range
  • Go to Insert → Chart
  • Google Sheets will auto-suggest a chart type — trendlines work best with line charts, scatter charts, and bar/column charts

2. Open the Chart Editor

Once your chart is inserted, double-click it to open the Chart Editor panel on the right side of the screen.

If the panel doesn't appear, click the three-dot menu in the top-right corner of the chart and select Edit chart.

3. Navigate to the Series Settings

  • Click the Customize tab in the Chart Editor
  • Scroll down and expand the Series section
  • If your chart has multiple data series, use the dropdown to select the specific series you want to apply the trendline to

4. Enable the Trendline

  • Check the box labeled Trendline
  • A trendline will immediately appear on your chart using the default settings

From here, you can customize it significantly.

Trendline Types Available in Google Sheets 📈

This is where most users stop short — they add a linear trendline and move on, without realizing the type of trendline can completely change the interpretation of their data.

Trendline TypeBest Used When
LinearData increases or decreases at a steady rate
ExponentialData grows or declines at an accelerating rate
PolynomialData curves — rises then falls, or fluctuates with a pattern
LogarithmicData changes quickly at first, then levels off
Power seriesData follows a power relationship (e.g., physics, engineering data)
Moving averageData is noisy and you want a smoothed rolling trend

Choosing the wrong type doesn't break anything visually, but it produces a misleading fit. A linear trendline applied to exponential growth, for example, will understate the trajectory significantly.

Polynomial Degree

If you select Polynomial, you'll also choose a degree (2 through 6). Degree 2 gives a single curve (one peak or valley). Higher degrees add more curves — useful for complex datasets, but prone to overfitting if your data is limited.

Additional Trendline Customization Options

Once the trendline is enabled, Google Sheets gives you a few more controls:

  • Label: Display the equation of the trendline directly on the chart, the R² value, or both. The R² value (coefficient of determination) tells you how well the trendline fits your data — a value close to 1 means a strong fit.
  • Line color and opacity: Match your chart's visual style or make the trendline stand out
  • Line thickness: Adjust for readability, especially in presentations
  • Forecast: Extend the trendline forward or backward beyond your actual data range — useful for projecting where a trend is heading

The forecast feature deserves attention. You can specify how many periods to extend in either direction. This is purely mathematical extrapolation — it assumes the trend continues at the same rate, which may or may not reflect reality depending on your domain.

When Trendlines Work Well — and When They Don't

Trendlines work well when:

  • Your data has a genuine underlying pattern
  • You have enough data points for the statistical fit to be meaningful
  • The trendline type matches the nature of the relationship in your data

Trendlines can mislead when:

  • You're working with very few data points (a linear trendline through 4 points looks precise but isn't)
  • Seasonal or cyclical data gets flattened into a single direction
  • You use forecasting to extrapolate far beyond your actual data range
  • The chosen trendline type doesn't match the data's actual behavior

A low R² value is a useful warning sign — it means the trendline doesn't fit the data well, and its predictive value is limited regardless of how clean it looks visually. 🔍

Variables That Affect Your Results

The same steps produce very different outcomes depending on:

  • Chart type selected — trendlines aren't available on all chart types (pie charts, for example, don't support them)
  • Data structure — whether your data is time-based, categorical, or numerical on both axes changes which trendline types are appropriate
  • Volume of data — more data points generally produce a more reliable fit
  • Whether you're on desktop or mobile — the full Chart Editor with trendline controls is a desktop feature; the Google Sheets mobile app has limited chart editing capabilities
  • Google account type — standard Google accounts and Google Workspace accounts have access to the same trendline features in Sheets, but organizational settings can occasionally restrict sharing or embedding of charts

The trendline itself is only as meaningful as the data behind it and the model chosen to describe it. Two analysts looking at the same dataset might reasonably apply different trendline types and walk away with legitimately different interpretations — not because one is wrong, but because the choice depends on what question they're trying to answer. 📊