Skip to main content
StatsPlotMaker
5 min readUpdated 2026-12-03

How to Make a Scatter Plot in Excel (With Trendline & R²)

Making a scatter plot in Microsoft Excel takes several menu clicks—and adding the regression equation, R², axis titles, and high-resolution export often trips students up right before a lab report deadline. Follow the exact Excel steps below, or paste your columns directly into our free online Scatter Plot Maker for an instant publication-ready figure.

Quick Answer

To make a scatter plot in Excel, place X in Column A and Y in Column B, select both columns, click Insert → Scatter (X, Y) → plain dots, then open Chart Elements (+) → Trendline → More Options and check both "Display Equation on chart" and "Display R-squared value on chart."

Skip manual spreadsheet formatting

Paste your numbers straight into our free Scatter Plot Maker for instant charts and step-by-step math.

Open Scatter Plot Maker

Quick Step-by-Step Checklist

  1. Step 1
    Arrange X in the left column and Y in the right column

    Place your independent variable (X) in Column A and dependent variable (Y) in Column B with short text headers in Row 1.

  2. Step 2
    Insert an XY Scatter chart

    Select both columns, click the Insert tab, choose Insert Scatter (X, Y) or Bubble Chart, and pick the plain Scatter icon (dots only, no connecting lines).

  3. Step 3
    Add axis titles and a Linear Trendline

    Click the green + Chart Elements button, check Axis Titles and Trendline, then open More Options under Trendline.

  4. Step 4
    Display the equation and R-squared value

    In the Format Trendline pane, check both "Display Equation on chart" and "Display R-squared value on chart".

FeatureExcel (Windows)Excel (Mac)Google SheetsStatsPlotMaker (Free Online)
Insert Scatter PlotInsert → XY Scatter (dots)Insert → XY Scatter (dots)Insert → Chart → ScatterPaste X–Y columns → instant
Equation & R² on chartChart (+) → Trendline → More OptionsAdd Chart Element → Trendline OptionsCustomize → Series → Trendline → Use Equation + R²Automatic live equation & R² badge
Pearson correlation rManual =CORREL(A2:A20,B2:B20)Manual =CORREL(A2:A20,B2:B20)Manual =CORREL(A2:A20,B2:B20)Displayed automatically with Sxx & Sxy steps
High-res 3x PNG / SVGScreenshot or Save as Picture (low DPI)Save as Picture (no SVG)Download PNG/SVG (basic styling)One-click 2x/3x PNG, pure SVG & B&W print

1. Format Your Columns Correctly Before Plotting

Excel always treats the leftmost selected column as the horizontal X-axis and every column to its right as a separate Y series. If your columns are reversed, either swap them or right-click the chart and choose Select Data → Edit to reassign X and Y ranges manually.

Remove units like "cm" or "hrs" from inside individual number cells—keep units only in the column header so Excel recognizes every value as numeric.

2. Why Students Accidentally Pick "Line Chart" Instead of "Scatter"

A frequent mistake in Excel is clicking Insert → Line Chart instead of Insert → Scatter. An Excel Line Chart treats X values as evenly spaced text labels (1, 2, 3, 4), completely distorting slope and R² whenever your X measurements have unequal gaps (such as 1, 2, 5, 10 minutes).

3. Showing Pearson r (Which Excel Leaves Out)

Excel’s trendline checkbox prints R², not Pearson’s correlation coefficient r. To find r in Excel, enter the formula below in an empty cell—or paste your data into StatsPlotMaker to calculate r, R², slope, intercept, and step-by-step sums of squares automatically.

=CORREL(A2:A20, B2:B20)

Frequently Asked Questions

Why is Excel not letting me add a trendline or R² to my scatter plot?+

This usually happens if one of your X or Y cells contains text (like "12 cm" instead of 12) or if you accidentally inserted a Line Chart instead of an XY Scatter chart. Clean non-numeric characters from data cells and switch Chart Type to XY (Scatter).

How do I swap the X and Y axes in an Excel scatter plot?+

Right-click the chart, select Select Data, click your series, and choose Edit. Swap the Series X values and Series Y values cell ranges, then click OK.

How do I find Pearson r from R² in Excel?+

Take the square root of R² and attach the sign of the slope (positive if the line rises, negative if it falls), or type =CORREL(X_range, Y_range) directly in any empty cell.

How do I export a high-resolution scatter plot for Google Docs or Word?+

Instead of blurry screenshots from Excel, paste your two columns into our Scatter Plot Maker and click PNG (3x Print) or SVG for razor-sharp text and axes.

Key Takeaway

Always use an XY Scatter chart (never a Line Chart) for paired numerical lab data, check both equation and R² in Format Trendline, and use =CORREL() if your rubric asks for Pearson r.

More Statistics Guides