Super Sale WeekClaude Skills — 20% OFF
Tips

How to Make a Scatter Plot in Google Sheets With a Line of Best Fit: Step by Step

Powerdrill Bloom·
How to Make a Scatter Plot in Google Sheets With a Line of Best Fit: Step by Step

To make a scatter plot in Google Sheets, put your X values in the first column and your Y values in the next column. Select both columns and click Insert > Chart. In the chart editor, open Setup and choose Scatter chart under Chart type. To add a line of best fit, open Customize > Series and check Trendline.

A scatter plot shows whether two numbers move together. Google's help page puts it simply: "Use a scatter chart when you want to find out how much one variable is affected by another."

This guide covers how to set up the data, insert the chart, and add a trendline with R². It also shows how to compute the same line with SLOPE, INTERCEPT, CORREL, and RSQ. A worked example uses ten weeks of ad spend and leads. Steps come from Google Docs Editors Help, read on December 1, 2026.

What a scatter plot shows and when to use one

Google describes scatter charts as charts that "show numeric coordinates along the horizontal (X) and vertical (Y) axes." Each row of data becomes one dot.

Google's example is "the salary of employees and years of experience." Other common pairs include:

  • Marketing. Ad spend and leads, or email sends and sales.
  • Sales. Price and units sold.
  • Operations. Order size and delivery time.
  • Education. Hours studied and test scores.

A scatter plot answers one question: when X goes up, what happens to Y? Google's guidance is direct: "The closer the data points come to making a straight line, the stronger the correlation between the 2 variables."

Use a line chart instead when your X values are dates and you care about the trend over time. Use a scatter plot when both columns are measurements and you care about the link between them.

Set up your data for a scatter plot

Google's scatter chart page explains the layout:

  • First column. "Enter values for the X axis."
  • First row (optional). A category name for each column. These names "show up as labels in the legend."
  • Other columns. "Enter Y values. Each column of Y-values shows up as a series of points on the chart."
  • Other rows. "Each row is a point on the chart."

So put the variable you control, or the cause you suspect, in the first column. Put the result in the next column.

Keep these rules in mind:

  • Numbers only. Text in a value cell is ignored by functions like SLOPE.
  • One row per observation. Each week, store, or person gets one row.
  • No totals. A total row adds a false point far from the rest.
  • Labels in a separate column. If you want a week number or name, keep it outside the selected range.

How to insert a scatter plot in Google Sheets

Follow these steps on a computer:

  1. Open your spreadsheet in Google Sheets.
  2. Select the X column and the Y column, including the header row.
  3. Click Insert > Chart.
  4. In the chart editor, click Setup.
  5. Under Chart type, click the down arrow and choose Scatter chart.

Check the chart type before you go on, since the editor may start with a different one.

If your columns are not next to each other, use the data range. Under Data range, click Grid, select the cells, and click OK. You can also click Add another range to include more data.

Then name the chart. In Customize > Chart & axis titles, add a title and label both axes with units, such as "Weekly ad spend ($)" and "Leads." Under Customize > Series, you can change the point color and add data labels if a few points need names.

If the chart goes into a report, keep it simple. Remove extra gridlines, keep one color per series, and start both axes at a sensible value. Google's chart help notes that gridlines can be added to scatter charts, so use them only where they help.

How to read a scatter plot

Before you add a line, look at the dots. A few common shapes tell you a lot.

  • Rising from lower left to upper right. A positive link. As X grows, Y tends to grow.
  • Falling from upper left to lower right. A negative link. As X grows, Y tends to fall, as with price and units sold.
  • A loose cloud. Little or no link. A trendline will have a low R².
  • A curve. The link changes as X grows. A linear line will miss it, so try a logarithmic or polynomial trendline.
  • One or two far-away dots. Outliers. Check them for typing errors before you trust the line.

Also look at the spread. If the dots fan out as X grows, predictions get less precise at high values. That matters when you plan a bigger budget than you have tried before.

Group size matters too. Ten points can show a pattern, but a single unusual week can move the line. Add more rows when you can, and rerun SLOPE and RSQ as the data grows.

How to add a line of best fit

A line of best fit is called a trendline in Google Sheets. Google's help page says "You can add trendlines to bar, line, column, or scatter charts."

To add one:

  1. Double-click the chart.
  2. At the right, click Customize > Series.
  3. Optional: next to Apply to, choose the data series.
  4. Check Trendline.

Google notes that if you do not see the option, "trendlines don't work with your data." That usually means a column holds text instead of numbers.

Under Trendline, you can change the type, the line color, the opacity, the thickness, and the label. For most business data, start with Linear, which Google describes as "For data that closely follows a straight line."

Other types exist for curved data:

Trendline type Google's description Equation
Linear For data that closely follows a straight line y = mx+b
Exponential For data that rises and falls proportional to its current value y = A*e^(Bx)
Logarithmic For data that rises or falls at a fast rate and then flattens out y = A*ln(x) + B
Power series For data that rises or falls proportional to its current value at the same rate y = A*x^b
Moving average Helps smooth out data that is unstable or more variable Average of recent points

Show R² on the chart

R² tells you how well the line fits. Google says it "shows how closely the trendline fits the data. The closer to R^2 = 1, the closer the fit."

To show it, open Customize > Series and check R squared under the trendline options. Google adds one condition: "This is only available if you add a legend." So turn on the legend in Customize > Legend first.

As a rough guide, an R² near 1 means the points sit close to the line. An R² near 0 means the line explains little of the spread. A high R² still does not prove that X causes Y.

Calculate the line with SLOPE, INTERCEPT, CORREL, and RSQ

The chart shows the line. Functions give you the numbers, so you can use them in other formulas.

Function What Google says it calculates Formula for the example
SLOPE "The slope of the line resulting from linear regression of a dataset" =SLOPE(C2:C11, B2:B11)
INTERCEPT "The y-value at which the line resulting from linear regression of a dataset will intersect the y-axis (x=0)" =INTERCEPT(C2:C11, B2:B11)
CORREL "r, the Pearson product-moment correlation coefficient of a dataset" =CORREL(C2:C11, B2:B11)
RSQ "The square of r" =RSQ(C2:C11, B2:B11)
FORECAST "The expected y-value for a specified x based on a linear regression of a dataset" =FORECAST(2200, C2:C11, B2:B11)

Note the order of the ranges. Each function takes the Y range first, then the X range. Swap them and you get a different line.

A small summary block keeps these numbers handy. Put labels in column E, such as Slope, Intercept, r, and R², and the formulas next to them in column F. When you add a new week of data, extend the ranges to row 12, and every number updates. The chart's trendline updates on its own once the new row sits inside the chart's data range.

You can also round the results for a report. Wrap a formula in ROUND, such as =ROUND(RSQ(C2:C11, B2:B11), 2), so readers see 0.94 instead of a long decimal.

A worked example: ad spend and leads

Here are ten weeks of data. Column A holds the week, column B holds the ad spend, and column C holds the leads.

Week Ad spend ($) Leads
1 800 44
2 1,200 52
3 950 49
4 1,500 74
5 1,100 51
6 1,800 79
7 1,300 66
8 2,000 86
9 1,600 71
10 1,000 55

Select B1:C11, insert a chart, and choose Scatter chart. The dots rise from lower left to upper right. Add a linear trendline and R².

The functions give these results:

  • SLOPE: 0.0357. Each extra $100 of spend goes with about 3.6 more leads.
  • INTERCEPT: 15.45. This is where the line meets the y-axis, at zero spend.
  • CORREL: 0.969. A strong positive link.
  • RSQ: 0.939. The line explains most of the spread in leads.
  • FORECAST at $2,200: about 93.9 leads.

Total spend over the ten weeks is $13,250, and total leads are 627. That works out to about $21.13 per lead.

Look at the dots, too. Week 7 sits above the line: $1,300 brought 66 leads, while the line predicts about 61.8. Week 2 sits below it: $1,200 brought 52, against about 58.2. Those gaps are worth a look. A strong offer, a holiday, or a tracking problem can explain them.

Read the forecast with care. $2,200 is above the highest week in the data, so the line is being stretched. Real results often flatten as spend grows.

Plot two or three data sets on one scatter plot

Google's layout rule makes this easy. Each extra Y column becomes its own series of points.

For example, add column D with leads from a second channel. Select B1:D11 and insert the chart. Each channel gets its own color and legend entry.

To add a trendline for each one, use the Apply to list under Customize > Series. Pick each series in turn and check Trendline.

If the two series need different X values, add them as separate ranges. In the editor, Google also offers Add axis & series set for more series sets.

When you need a third variable, such as region size, consider a bubble chart. Google describes it as a chart "to show data with 3 dimensions."

Make scatter plots with AI

Building the chart takes a minute. The slow part is often the data: raw exports with one row per click, mixed dates, or text in number columns. An AI tool can clean the data and explain the result.

Here is the method in three steps, using Powerdrill Bloom.

Step 1: Upload your data

Upload the CSV or Excel export, or a copy of your Google Sheets tab. It can have one row per day or per campaign.

The Scatter Graph Creator page describes this job. It says the tool helps you "quickly visualize data relationships with interactive and customizable scatter plots."

Uploading ad spend and leads data to make a scatter plot with Powerdrill Bloom

Step 2: Ask for the relationship

Describe what you want in natural language. For example: "Total weekly ad spend and leads. Plot spend on the X axis and leads on the Y axis. Add a linear trendline and report the slope and R squared."

Ask follow-up questions, such as which weeks sit far from the line. Check the answer against the SLOPE and RSQ formulas above.

Step 3: Export the results and chart them in Google Sheets

Export the clean table and paste it into Google Sheets. Then insert the scatter plot and trendline with the steps above, so the chart stays live in your sheet.

For a full write-up, the AI Report Generator can turn the same data into charts and a written summary. For the Excel version of this chart, see how to make a scatter plot in Excel. To go further, read how to do a regression in Excel.

Exporting a clean two-column table to chart a scatter plot in Google Sheets

Common mistakes to avoid

These problems come up most often when people make a scatter plot in Google Sheets.

  • Wrong chart type. If the dots are joined or shown as bars, switch to Scatter chart in Setup.
  • Columns in the wrong order. The first column becomes the X axis. Put the cause first and the result second.
  • Numbers stored as text. The trendline option disappears, and functions ignore those cells.
  • Swapped function ranges. SLOPE, INTERCEPT, CORREL, RSQ, and FORECAST take Y first, then X.
  • R² hidden. It shows only when the chart has a legend.
  • Reading cause into correlation. A strong R² shows a link, not proof that X drives Y.
  • Forecasting far outside the data. The line is least reliable beyond your highest and lowest X values.

When your export needs cleaning before you can chart it, try Powerdrill Bloom to build the two-column table and check the fit in one pass.

Frequently asked questions

How do I make a scatter plot in Google Sheets?

Put X values in the first column and Y values in the next. Select both columns, click Insert > Chart, then open Setup and choose Scatter chart under Chart type.

How do I add a line of best fit in Google Sheets?

Double-click the chart and open Customize > Series. Check Trendline and choose Linear for a straight line. You can also change its color, thickness, and label.

How do I show R squared on a Google Sheets chart?

Under the trendline options in Customize > Series, check R squared. Google notes that it is only available if the chart has a legend, so turn on the legend first.

How do I make a scatter plot with two sets of data in Google Sheets?

Add a second Y column next to the first and select all three columns. Each Y column becomes its own series. Use Apply to under Series to add a trendline to each.

How do I find the equation of the line in Google Sheets?

Use =SLOPE(y_range, x_range) for the slope and =INTERCEPT(y_range, x_range) for the intercept. The line is y = slope × x + intercept, which matches the linear trendline y = mx+b.

Sources: Google Docs Editors Help, Scatter charts · Google Docs Editors Help, Add & edit a trendline · Google Docs Editors Help, Add & edit a chart or graph · Google Docs Editors Help, SLOPE · Google Docs Editors Help, INTERCEPT · Google Docs Editors Help, CORREL · Google Docs Editors Help, RSQ.