How to Create a Scatter Diagram in Excel
In this article
A scatter diagram (also called an XY chart) plots one numeric variable against another so you can see whether the two move together, and by how much. In Excel you create one by putting your pairs of numbers in two columns, selecting them, and choosing Insert > Scatter. The main requirement is that both columns hold numbers only — text such as "n/a" or blanks will silently shift or drop points, so clean the data before you chart it.
What You'll Need
- Microsoft Excel for Windows, Mac, the web, or iPad/iPhone (the desktop versions give the most control; the mobile apps support only basic scatter charts).
- A data table with at least two numeric columns in the same row order: one for the variable you want on the horizontal (X) axis, one for the vertical (Y) axis.
- Column headers above the data if you want Excel to label the axes automatically.
- Clean numbers — no stray spaces, no text substitutes for zero, and no merged cells.
Step-by-Step
- Lay out the data in pairs. Put the X variable in one column and the corresponding Y value in the next column, so each row is a single observation. For example, column A might be hours studied and column B the score achieved for the same student. Do not sort one column without sorting the other.
- Add clear headers. Type a heading in the cell above each column. Excel uses these to build axis titles and the legend, which saves you fixing labels later.
- Clean the numeric cells. Remove blank rows, text in numeric columns, and cells with hidden spaces. If a value is missing, delete the whole row rather than leaving a gap — a blank in one column can pair the wrong X and Y values, and Excel may treat the row as a category break.
- Select the data range. Click the top-left data cell, then drag to the bottom-right of the second column. Include the headers if you added them — Excel usually recognises headers automatically and labels the series correctly.
- Open the chart menu. Go to the Insert tab on the ribbon and find the Charts group. On desktop Excel the Scatter button shows a small icon with dots; on Excel for the web and Mac the same group is present. Menu and button labels can differ slightly by version, device and region, so look for the word Scatter rather than memorising the position.
- Pick the plain scatter type. Choose Insert Scatter (X, Y) or Bubble Chart and select the option with markers only — no connecting lines. Lines imply a sequence between points, which is usually misleading for independent observations.
- Check which column landed on which axis. Excel normally puts the left-hand column on the X axis and the right-hand column on the Y axis. If it is reversed, right-click the chart, choose Select Data, edit the series, and swap the X and Y range references.
- Add axis titles. Click the chart, use the Chart Elements plus button (or Chart Design > Add Chart Element), and tick Axis Titles. Type what each axis measures, including units, so the chart is readable without the surrounding document.
- Add a chart title that states the relationship, not just the variable names — for instance "Score rises with study hours" rather than "Chart 1".
- Format the axes if needed. Right-click an axis and choose Format Axis to set minimum and maximum bounds, so the points fill the plot area rather than bunching in one corner. This is the single biggest improvement most scatter charts need.
- Add a trendline to judge the pattern. Right-click any data point and choose Add Trendline. A linear trendline drawn through a cloud that clearly curves is misleading, so inspect the shape of the points first. In Format Trendline you can also display the R-squared value, which tells you how much of the variation the line explains.
- Reduce clutter. Turn off gridlines or lighten them, remove the legend if there is only one series, and make markers a colour that stands out against the plot background.
Common Mistakes
- Plotting a line chart by habit. A standard line chart treats the X column as equally spaced labels, not as measured values, so the spacing and slope are wrong. Choose Scatter for two numeric variables.
- Pairing columns from different rows. If the two columns are sorted differently, every point is a false pairing. Keep observations on the same row.
- Leaving text in the data. A value like "12 hrs" is text to Excel, so that point vanishes or the whole column is read as categories. Store numbers and put units in the axis title instead.
- Forgetting that correlation is not causation. Two variables can move together because a third factor drives both. The chart shows association only.
- Overplotting. With hundreds of points, markers merge into a blob. Reduce marker size or use a bubble or density approach.
- Hiding outliers silently. Deleting an inconvenient point changes the story. Keep it and note it, or explain why it was excluded.
Tips
- Keep the axes starting near zero unless the data genuinely lives far from zero; a truncated axis magnifies trivial differences.
- Use the same scale on both axes only when the variables share units — matching scales make the diagonal line meaningful.
- Colour points by group (for example, region) by adding a third column and creating one series per group; this often reveals patterns a single-colour cloud hides.
- Add data labels for a few key points by right-clicking a single marker and choosing Add Data Label, rather than labelling every point.
- Press F4 after formatting one element to repeat that formatting on another, which speeds up cleanup.
- Once the chart is right, copy it into the report rather than rebuilding it — charts update when the underlying cells change.
Troubleshooting
The chart shows one flat row of points. Excel has put your category-style column on the X axis or read the data as a single series. Use Select Data and confirm the X values range is the left column and the Y values range the right column.
Some points are missing. Look for text, blanks or formulas returning empty strings in those rows. Filtering to remove rows containing empty cells in the key columns is a quick check.
The scatter option is greyed out. The selected range probably contains no numeric values at all, or you have selected a chart, image or merged region instead of a plain cell range. Click a single data cell first, then reselect.
The X axis looks like labels instead of numbers. The column may be stored as text. Select it, use Data > Text to Columns, and finish the wizard to convert it to numbers without changing values.
The trendline sits far from the points. You likely picked the wrong type — a linear line on curved data will miss. Try a different trendline type in Format Trendline and compare which one follows the shape.
Nothing changed after editing data. Confirm the chart is linked to the cells you edited, and that calculation is not set to manual (Formulas > Calculation Options).
Frequently Asked Questions
What is the difference between a scatter chart and a line chart?
A scatter chart plots each pair as a point at its true X and Y values, so the spacing on the X axis reflects the data. A line chart treats the X column as evenly spaced categories and joins points in order. Use scatter when both variables are measured numbers.
How do I add a second set of points in a different colour?
Right-click the chart, choose Select Data, then Add a series and point it at the extra X and Y ranges. Each series gets its own colour and can be named in the legend.
Can I show the equation of the trendline?
Yes. In Format Trendline, tick Display Equation on chart and Display R-squared value. The equation is only meaningful if the trendline type actually fits the data.
Why does Excel treat my numbers as text?
Cells copied from another system often carry invisible characters or use a decimal separator Excel does not expect. Text to Columns, or multiplying by 1 in an empty cell, converts them.
Can I make a scatter chart on the Excel mobile app?
The iPad and iPhone apps let you insert basic scatter charts from a selected range, but advanced formatting such as detailed axis bounds and custom trendline options is best done on desktop or the web version.
How many data points can a scatter chart handle?
Excel will plot thousands of points, but readability suffers as markers overlap. For very large datasets, sample the data or summarise it before charting.