Scatter Plot Maker
A scatter plot maker turns two columns of numbers into a chart that shows how they move together. Paste your X and Y values, hit generate, and you get the points plotted, a line of best fit, the equation of that line, and the correlation coefficient r. No sign-up, no software. Below the tool you will find how to build a scatter plot step by step, how to read the line of best fit, and worked examples using real numbers so you can check your own answer.
How do you make a scatter plot?
You need two sets of numbers that pair up, one for the X axis and one for the Y axis. Each pair becomes a single dot on the chart. Here is the process in four steps:
- Collect your paired data. Every X value must have a matching Y value. If you have 8 X values, you need 8 Y values.
- Paste X into the first box, Y into the second. You can separate numbers with commas, spaces, or new lines. The tool handles all three.
- Choose whether to show the trend line. Leave it on to see the line of best fit, or switch to points only for a clean plot.
- Click Generate. The chart draws instantly, and you get the line equation, r, and R squared underneath.
You can download the finished chart as a PNG and drop it straight into a report, a lab write-up, or a slide.
What is a line of best fit on a scatter plot?
The line of best fit is the straight line that sits as close as possible to all your points at once. It is calculated with least squares regression, which finds the single line that keeps the total distance from the points to the line as small as possible.
The tool gives you this line as an equation in the form y = mx + b. The m is the slope, telling you how much Y changes for every 1 unit increase in X. The b is where the line crosses the Y axis. If you want the math behind the line on its own, our linear regression calculator shows the full working.
What does the correlation coefficient r tell you?
The correlation coefficient, written as r, measures how tightly your points follow a straight line. It always sits between minus 1 and plus 1.
| Value of r | Direction | Strength |
|---|---|---|
| +0.9 to +1.0 | Positive | Very strong |
| +0.7 to +0.9 | Positive | Strong |
| +0.5 to +0.7 | Positive | Moderate |
| +0.3 to +0.5 | Positive | Weak |
| 0 (around) | None | No linear link |
| -0.3 to -0.5 | Negative | Weak |
| -0.5 to -0.7 | Negative | Moderate |
| -0.7 to -0.9 | Negative | Strong |
| -0.9 to -1.0 | Negative | Very strong |
A positive r means the points climb from left to right, so Y rises as X rises. A negative r means the points fall, so Y drops as X rises. An r near zero means the points are scattered with no straight-line pattern. If you only need this number and not the chart, the correlation coefficient calculator works it out from your raw data.
What is R squared on a scatter plot?
R squared is just r multiplied by itself, and it tells you how much of the movement in Y is explained by X. If R squared is 0.60, then 60 percent of the variation in Y is accounted for by the trend line, and the other 40 percent comes from other factors or random noise.
R squared is always between 0 and 1. The closer it sits to 1, the better the line fits your points. It is a quick way to judge whether the trend line is worth trusting.
How do you read a scatter plot?
Look at three things: direction, shape, and spread.
- Direction. Do the points rise, fall, or stay flat as you move right? Rising is positive correlation, falling is negative.
- Shape. Do the points roughly follow a straight line, or do they curve? A scatter plot with a strong curve may need a different model, not a straight line.
- Spread. Are the points tight against the trend line or scattered far from it? Tight points mean a high r and a high R squared. A wide spread means a weaker relationship.
One warning that trips people up: a strong correlation does not prove that X causes Y. Two things can move together because of a third hidden factor. Correlation shows a pattern, not a cause.
Scatter plot worked example
Say you record hours studied against test score for five students:
| Hours studied (X) | Score (Y) |
|---|---|
| 1 | 2 |
| 2 | 4 |
| 3 | 5 |
| 4 | 4 |
| 5 | 5 |
Paste 1, 2, 3, 4, 5 into the X box and 2, 4, 5, 4, 5 into the Y box. The tool returns a line of best fit of y = 0.6x + 2.2, a correlation of r = 0.77, and R squared of 0.60. That means a strong positive link: more study hours line up with higher scores, and the trend line explains 60 percent of the variation in the scores.
How do you plot two sets of data on one chart?
A scatter plot always compares exactly two variables, one on each axis. The trick is making sure the two lists line up in the right order. The first number in your X list pairs with the first number in your Y list, the second with the second, and so on down the line.
If your two lists have different lengths, the tool will tell you how many values are in each so you can spot the mismatch. Trim or add values until both boxes hold the same count, then generate.
Can you make a blank scatter plot?
Yes. A blank scatter plot is just the grid with axes and no data, useful for handing out in class or plotting points by hand. To get a clean grid from this tool, enter a small range of X and Y values that cover the span you want, switch the trend line to points only, and download the PNG. The axes auto-scale to your numbers, so you control how wide and tall the grid runs.
Try these next
- Covariance Calculator
- Quadratic Regression Calculator
- Pie Chart Maker
- Mean, Median, Mode, Range Calculator