How To Add a Trendline in Google Sheets (Step‑by‑Step Guide)

Adding a trendline in Google Sheets is a quick way to see the overall direction of your data: is it going up, down, or staying flat over time? Instead of staring at a jumble of points or bars, a trendline gives you a simple visual summary of what’s happening.

This guide walks through how to add trendlines, which types you can use, and what variables change the result.


What is a Trendline in Google Sheets?

A trendline is a line (or curve) drawn on top of a chart that shows the general direction or pattern of your data.

In Google Sheets, trendlines are most often used to:

  • Show sales growth or decline across months or years
  • Track website visits or app usage over time
  • Visualize grades, performance metrics, or experiment results
  • Highlight relationships between two variables (like ad spend vs. conversions)

On a basic level:

  • If the trendline slopes up, your values are generally increasing
  • If it slopes down, they’re generally decreasing
  • If it’s flat, data is roughly stable

Trendlines can also help predict future values, especially with the linear type and an R² value to show how well the line fits your data.


How to Add a Trendline in Google Sheets

1. Prepare Your Data

Before you add a trendline, you need a chart that makes sense for one.

Typical layout:

  • Column A: Independent variable (often time — dates, months, years)
  • Column B: Dependent variable (values you’re measuring — sales, views, scores, etc.)

Example:

A (Month)B (Sales)
Jan120
Feb135
Mar150
Apr160

Trendlines work best when:

  • Your data is numeric
  • There’s some kind of order (e.g., time or increasing values)

2. Insert a Chart

  1. Select your data range (for example, A1:B5).
  2. Click Insert > Chart in the menu.
  3. Google Sheets will create a default chart, often a column chart or line chart.

You can change the chart type in the Chart editor on the right if needed.

3. Choose a Suitable Chart Type

Trendlines don’t show on every chart type. They’re supported on:

  • Line charts
  • Scatter charts
  • Column charts

To change the chart type:

  1. Click on the chart.
  2. In the Chart editor, go to the Setup tab.
  3. Under Chart type, pick:
    • Line chart for time-based trends (e.g., monthly data)
    • Scatter chart for relationships between two numeric variables
    • Column chart if you want bars plus a trendline on top

4. Add the Trendline

Once your chart type is set:

  1. Click the chart to select it.
  2. In the Chart editor, go to the Customize tab.
  3. Expand the Series section.
  4. Scroll down and check Trendline.

A trendline will appear on the chart immediately.

If you have multiple data series (for example, two lines on the same chart), you may need to:

  • Use the “Apply to” dropdown in Series to select which series gets the trendline.

Choosing the Right Trendline Type

Google Sheets offers several trendline types. Each assumes a different kind of relationship in your data.

Here’s a quick comparison:

Trendline TypeWhen It’s Commonly UsedShape
LinearSteady increase/decrease over timeStraight line
ExponentialGrowth that speeds up over time (e.g., viral growth)Curve upward or downward
PolynomialPatterns that rise then fall (or vice versa)Smooth curve
LogarithmicRapid early change, then leveling offSteep, then flattening
PowerData that grows at an increasing rate (often scientific/technical)Curved line

To change the trendline type:

  1. With the chart selected, open Customize > Series.
  2. With Trendline enabled, find the Type dropdown.
  3. Choose Linear, Exponential, Polynomial, Logarithmic, or Power.

A few practical notes:

  • Linear is the default and fits many “business-style” datasets (monthly revenue, users, etc.).
  • Exponential and Power require positive values only; they don’t work correctly with zero or negative data.
  • Polynomial includes an “Order” setting (2, 3, etc.), which controls how “curvy” the line is.

Customizing Your Trendline

You can adjust how your trendline looks and what information it shows.

1. Change Color, Opacity, and Thickness

Still under Customize > Series > Trendline:

  • Color: Pick a color that stands out from your data series.
  • Opacity: Make it lighter or darker depending on how prominent you want it.
  • Line thickness: A slightly thicker line can make the trendline easier to see.

2. Show the Trendline Equation

If you want the mathematical formula for the line:

  1. In Trendline settings, enable “Show R²” if you want the fit quality (more on that in a moment).
  2. Also enable “Label” and set it to Use equation.

Google Sheets will show the equation of the trendline directly on the chart, such as:

  • Linear: y = 2.3x + 10.5
  • Exponential: y = 5.7e^0.8x

This is most useful if you:

  • Want to estimate values beyond your existing data
  • Need to reference the formula in reports or calculations

3. Show the R² Value

The R² value (pronounced “R-squared”) is a number between 0 and 1 that indicates:

  • How well the trendline matches your data points
  • Closer to 1 generally means a better fit

To display it:

  1. Under Trendline options, check Show R².
  2. The R² value will appear in the chart area.

High R² values don’t automatically mean a trendline is “right” for your situation, but they do tell you the line closely follows the pattern in your data.


Key Variables That Affect Your Trendline

The same Google Sheets trendline tools can behave very differently depending on:

1. Type of Data You’re Plotting

  • Time-based data (daily users, monthly income, quarterly expenses)
    • Often suits linear trendlines, but can sometimes fit exponential or logarithmic patterns.
  • Experimental or scientific data
    • May fit polynomial, power, or logarithmic trendlines better.
  • Categorical data (e.g., product names on the x-axis)
    • Trendlines can be less meaningful because the x-axis doesn’t represent a continuous scale.

2. Data Range and Consistency

  • Short ranges (few points) can make any trendline seem misleadingly neat.
  • Outliers (unusual spikes or drops) can pull the trendline off what you think is the “true” pattern.
  • Gaps in data (missing months or measurements) can also distort how the trendline behaves.

3. Chart Type You Choose

  • Line charts emphasize progression over time.
  • Scatter charts emphasize relationships between two values, regardless of date.
  • Column charts visually separate each period, but still allow a trendline overlay.

The same data plotted as a line chart vs. a scatter chart can feel quite different to read, even with identical trendline math behind it.

4. Trendline Type and Options

Your choice among linear, exponential, logarithmic, polynomial, power will:

  • Change the shape of the line
  • Affect how much it bends to accommodate early vs. later data
  • Influence how values are extrapolated if you extend the line beyond your current data

For polynomial lines, the Order setting (2, 3, 4, etc.) changes the curve’s complexity. Higher order = more bends, which can:

  • Fit your existing data very closely
  • But sometimes overfit and make predictions less realistic

How Different Users Might Use Trendlines

People often reach for trendlines for very different reasons:

1. Casual or Personal Tracking

  • Tracking weight, steps, sleep, or studying time
  • Watching personal budget or expenses over months
  • Checking game scores or hobby-related metrics

These users may:

  • Stick with a simple linear trendline
  • Focus mainly on whether the line slopes up or down
  • Ignore details like R² values and equations

2. Small Business or Team Use

  • Monitoring sales, leads, support tickets, or churn
  • Comparing marketing spend vs. signups
  • Tracking project metrics over time

They might:

  • Try different trendline types to see which best reflects reality
  • Use to judge whether the trendline tells a trustworthy story
  • Combine multiple series with separate trendlines (e.g., different regions or teams)

3. Data-Heavy or Technical Use

  • Running experiments or A/B tests
  • Working with scientific, engineering, or analytics data
  • Doing forecasting or model comparison

These users are more likely to:

  • Use scatter charts with polynomial, logarithmic, or power trendlines
  • Rely on equations and R² values
  • Combine Google Sheets charts with other tools or more advanced statistical analysis

Where Your Own Setup Fits In

The steps to add a trendline in Google Sheets are always the same: build a chart, enable the trendline, and pick a type. But the “right” way to use a trendline isn’t fixed.

The best approach depends on details only you know:

  • What kind of data are you plotting: time series, experiments, budgets, performance metrics?
  • Are you mostly interested in visual direction (up/down), or do you need a precise equation and for deeper analysis?
  • Are your values generally steady, volatile, or shaped by clear events (campaigns, launches, seasons)?
  • Do you prefer a line chart, scatter chart, or column chart for how you read trends?

Once you’re clear on how your own data behaves and what you want to learn from it, the trendline tools in Google Sheets become much easier to bend to your needs.