Quick answer: A scatter plot maker turns paired numbers — one X value and one Y value per observation — into a chart of dots that reveals whether two variables move together. Paste your pairs above, label the axes, and this scatter plot maker draws the xy scatter plot instantly, with an optional linear regression line, its equation, and the correlation coefficient. Nothing is uploaded: the chart is drawn in your browser.
How to use this scatter plot maker
Step 1 — Enter your pairs. Type or paste one pair per line into the data box, with the X and Y values separated by a comma or a tab. Two columns copied from Excel or Google Sheets paste in exactly as they are, because the line break ends one pair and the tab or comma splits it. If you prefer to build data slowly, use the row editor instead: each row holds one X and one Y, the Add Row button appends a blank pair, and the two views stay in step — editing either one updates the other and redraws the chart.
Step 2 — Label the chart. Give the plot a title and name both axes, ideally with units: “Study time (hours)” explains more than “X” ever will. Labels are drawn onto the chart itself and are included in the downloaded PNG, so the image stays self-explanatory when it is pasted into a report, a slide or an assignment without its surrounding text.
Step 3 — Decide on the regression line. The line is on by default. It is the ordinary least squares straight line through your points, and beside the chart you will find its equation in the form y = mx + b, the slope m, the intercept b, the Pearson correlation coefficient r and R squared. If your task only asks for the plot itself — many school assignments do — untick the box and the chart shows the raw pattern with no summary imposed on it.
Step 4 — Save your work. Download the chart as a PNG image, or copy the text summary, which records every pair, the equation and the statistics so the result can be reproduced or checked later. Your data stays on your device throughout: the plotting, the regression calculation and the image export all run locally in this tab, and nothing is stored when you close it.
What is a scatter plot?
A scatter plot — also called a scatter graph, a scatter chart or an xy scatter plot — is the standard chart for one specific question: are these two numeric variables related? Each observation contributes a single dot. Its horizontal position is set by the first variable, conventionally called X and usually the one suspected of doing the influencing: hours studied, temperature, advertising spend, engine size. Its vertical position is set by the second variable, Y, usually the outcome: exam score, ice-cream sales, revenue, fuel consumption. When every observation is plotted, the cloud of dots forms a shape, and that shape is the answer in visual form.
If the cloud drifts upward to the right, the variables rise together — a positive relationship. If it drifts downward, one rises as the other falls — a negative relationship. If the dots form a tight stream, the relationship is strong and predictable; if they form a loose fog, it is weak; if they form a curve, a ring or a shapeless splatter, a straight-line summary is the wrong tool, however the numbers are crunched. That instant visual verdict is why the scatter plot comes first in serious data work: textbooks and statisticians alike insist on plotting before calculating, because a correlation coefficient computed blind can describe four wildly different data sets with the same single number — a famous demonstration known as Anscombe’s quartet, in which four plots sharing the same means, correlation and regression line turn out to be a clean trend, a perfect curve, a line hijacked by one outlier, and a vertical stack ruled by a single distant point.
The chart has a long pedigree. Scatter plots emerged in the nineteenth century as scientists began plotting measurements against each other rather than against time, and Francis Galton’s work on the relationship between parents’ and children’s heights in the 1880s — the investigation that produced the very ideas of correlation and regression — was built on exactly this kind of diagram. When you use a scatter graph maker today, you are using the same instrument, with the arithmetic automated.
The regression line: ordinary least squares
A cloud of dots invites the eye to draw a line through it. Linear regression makes that line precise and reproducible. The method used here — and by spreadsheets, statistics packages and every scatter plot generator with a “trendline” option — is ordinary least squares, often shortened to OLS. For any candidate straight line, measure the vertical gap between each point and the line: the distance the line misses by, called a residual. Square each gap, so misses above and below cannot cancel out, and add them up. The least squares line is the one line, out of all possible lines, that makes that total as small as it can be.
The winning line is reported as an equation, y = mx + b. The slope m is found from how X and Y vary together relative to how X varies alone; the intercept b then places the line so that it passes through the centre of the data, the point whose coordinates are the mean of X and the mean of Y. That anchor point is a useful sanity check on any fitted line: extend the line and it must pass through (mean X, mean Y). The Average Calculator shows those means for a single list, and this page displays both means alongside the chart so you can check the anchor yourself.
Two honest warnings belong with every regression line. First, the line is a summary of the pairs entered, fitted to exactly those points and no others — add or remove a point and the line moves, sometimes noticeably when the data set is small. Second, the line is only trustworthy inside the range of X you actually observed. Extending it far beyond your smallest or largest X — extrapolation — assumes the same straight pattern continues into territory you never measured, which is how forecasts go embarrassingly wrong. The line on this page is drawn across your observed range only, deliberately.
The correlation coefficient r and R squared
Where the regression line describes the relationship, the Pearson correlation coefficient r grades it. r always falls between −1 and +1. The sign gives the direction: positive when Y tends to rise with X, negative when Y tends to fall as X rises. The size gives the strength of the straight-line pattern: ±1 is a perfect line with every point on it, values around ±0.7 to ±0.9 are strong, ±0.3 to ±0.7 moderate, and anything under about ±0.3 is weak enough that X alone predicts Y poorly. An r of exactly 0 means no linear pattern at all — which, importantly, is not the same as no pattern, since a perfect U-shaped curve also scores near 0.
R squared, shown next to r on this page, is r multiplied by itself, and it converts the grade into a share: it is the proportion of the variation in Y that the fitted line accounts for. An r of 0.982 — the value for the checkable example in the next section — squares to about 0.964, so the line explains roughly 96 percent of the spread in Y. An r of 0.5, which can sound respectable, squares to 0.25: three quarters of the variation is coming from somewhere else. Reading both numbers together stops the common mistake of treating a middling correlation as a near-complete explanation.
r is also unit-free, which makes it comparable across studies, but that convenience hides a trap: r says nothing about the slope in real units. Data can correlate at 0.95 while Y barely changes per unit of X, or correlate at 0.4 while the effect per unit is large. Report r for strength, the slope for size, and the plot itself for shape — the three together are the complete description, and this page gives you all three. For the spread of a single variable rather than the link between two, the companion measure is the standard deviation, covered by the Standard Deviation Calculator.
Worked example: three points, checked by hand
The first three pre-filled pairs in the maker — (1, 2), (2, 3) and (3, 5) — are small enough to verify with pencil and paper, and every figure below is the figure the tool reports. The mean of X is (1 + 2 + 3) ÷ 3 = 2, and the mean of Y is (2 + 3 + 5) ÷ 3 = 3.333. Deviations from those means are −1, 0 and +1 for X, and −1.333, −0.333 and +1.667 for Y. Multiplying paired deviations gives 1.333, 0 and 1.667, summing to 3; the squared X deviations sum to 2. The slope is therefore 3 ÷ 2 = 1.5 exactly. The intercept follows from the anchor point: 3.333 − (1.5 × 2) = 0.333. So the equation is y = 1.5x + 0.333.
For the correlation, the squared Y deviations sum to about 4.667, so r = 3 ÷ √(2 × 4.667) ≈ 3 ÷ 3.055 ≈ 0.982, and R squared is about 0.964. Three points that nearly line up score a near-perfect correlation — which is also the lesson: with only three pairs, a high r is easy to achieve by luck, and it should be reported with the small count attached. The full pre-filled set of eight pairs below tells a more realistic story: a clear upward drift with genuine scatter around the line, the kind of plot where the regression line earns its keep as a summary rather than a description of every point.
| Point | X | Y | What it shows |
|---|---|---|---|
| 1 | 1 | 2 | On the hand-checked line: 1.5 × 1 + 0.333 ≈ 1.83, close to 2 |
| 2 | 2 | 3 | Near the anchor point (mean X = 2, mean Y = 3.333) |
| 3 | 3 | 5 | Above the line: 1.5 × 3 + 0.333 ≈ 4.83, close to 5 |
| 4–8 | 4 to 8 | 4, 6, 7, 6, 8 | The wider default set: upward trend with real scatter |
A second check worth knowing: when the points lie exactly on a straight line, the tool must return r = 1 (or −1 for a falling line) and residuals of zero. The pairs (1, 3), (2, 5), (3, 7), (4, 9) follow y = 2x + 1 precisely, and the maker reports slope 2, intercept 1 and r = 1 for them. If a scatter plot generator ever shows anything else for perfectly lined-up data, its engine is wrong — this is the fastest honesty test there is for tools of this kind.
How to read a scatter plot: patterns and what they mean
Reading a scatter plot is a skill with a short checklist. Direction first: does the cloud rise, fall, or neither? Strength second: could you draw a narrow band around the pattern, or only a wide one? Shape third: is the pattern straight, curved, fanned out, or split into clusters? Outliers last: are there points stranded away from the rest, and are they data errors, rare real cases, or the most interesting observation you have? Work through those four questions before quoting any statistic, because the statistics assume the answers — r and the least squares line both describe a straight, single-cloud pattern and quietly mislead when the shape is something else.
| Pattern in the dots | What it looks like | Typical r | What to do |
|---|---|---|---|
| Strong positive | Tight stream rising to the right | +0.7 to +1 | Regression line summarises well |
| Weak positive | Loose cloud drifting upward | +0.3 to +0.7 | Report r with the point count; predict cautiously |
| Strong negative | Tight stream falling to the right | −0.7 to −1 | Regression line summarises well |
| No relationship | Round, shapeless splatter | Near 0 | Do not fit a line; X does not predict Y linearly |
| Curved | Bends like a U, a hill or a hockey stick | Often near 0 despite a real pattern | A straight line is the wrong model — say so |
| Outlier-driven | One distant point tilts an otherwise flat cloud | Inflated or deflated by that point | Check the point; report results with and without it |
Notice the curved row in particular. A scatter plot’s greatest advantage over a bare correlation coefficient is that it shows curvature the coefficient cannot see. Growth that levels off, doses that help then harm, practice that improves performance then plateaus — all bend. If your plot bends, the honest conclusion is that a linear summary does not fit, and the correct next step is a different model, not a forced line. This maker fits straight lines only, and the limits section below states that plainly.
When to use a scatter plot
Scatter plots earn their place anywhere two measurements might be connected. In science classes they are the default first chart for experimental data — force against extension, concentration against absorbance — because the plot itself is the argument for a law-like relationship. In school mathematics they carry the statistics curriculum on correlation: pupils plot, describe the correlation in words, draw a line of best fit by eye and use it to estimate a missing value, which is precisely the workflow this tool automates and checks. In business, scatter plots screen candidate explanations before money is spent on them: spend against sales, price against volume, response time against customer satisfaction. In health and social research they give the first look at dose against response or income against outcome, with the causation caveats attached.
They are equally valuable for what they rule out. A shapeless cloud is a finding: it tells a manager, a student or a researcher to stop building on an assumed link and look elsewhere. And because the chart shows every observation, it exposes data problems — the impossible value, the duplicated row, the batch measured in different units — that averages and coefficients conceal. Plot first is not a slogan; it is the cheapest quality control in statistics.
Common mistakes
Reading causation into correlation. A strong r never proves that X causes Y. A third variable may drive both, the influence may run backwards, or the pairing may be chance in a small sample. The plot suggests hypotheses; only a controlled design can test them.
Joining the dots. Connecting scatter points in entry order draws a meaningless zigzag, because the order you typed the pairs is not a variable. Only the fitted line belongs on a scatter plot.
Trusting r on a curved pattern. r measures straight-line fit only. A perfect curve can return r near 0, and quoting that 0 as “no relationship” is simply wrong — the plot, which you already have, shows the relationship clearly.
Extrapolating the line. Predicting Y for X values far outside the observed range assumes the pattern holds where you never looked. Keep estimates inside your data’s range, or label them as speculation.
Letting one outlier steer. Least squares squares the gaps, so a single far-away point pulls the line hard. Identify outliers, check them for errors, and if you remove one, say so and show both results.
Plotting too few points. Two points always give r = ±1 and mean nothing; five points can look convincing by accident. More pairs, honestly collected, are the only cure.
Honest limits: what this scatter plot maker does not do
This tool plots the pairs you enter and, on request, fits one straight line to them by ordinary least squares, reporting the equation, slope, intercept, Pearson r and R squared for those pairs only. It does not fit curves, polynomials or logarithmic trends, it does not compute Spearman or other rank correlations, confidence bands, prediction intervals or significance tests, and it does not detect or remove outliers for you. It cannot tell you whether a relationship is causal, and no chart can. Axes are scaled automatically to your data, and very large data sets — thousands of points — will plot but may render as a dense mass in which individual dots overlap; a dedicated statistics package serves that scale better. Everything here is computed on your device from exactly what you typed: no data is added, smoothed, uploaded or stored.
Sources and References
- Wikipedia — Scatter plot — the definition, history and interpretation of the scatter plot used throughout this guide.
- Wikipedia — Linear regression — the modelling framework behind the fitted line, its assumptions and its limits.
- Wikipedia — Pearson correlation coefficient — the definition and interpretation of r, the correlation measure reported by this tool.
- Wikipedia — Least squares — the optimisation principle that ordinary least squares regression is built on.
- NIST/SEMATECH e-Handbook of Statistical Methods — Scatter Plots — the US National Institute of Standards and Technology reference on scatter plot construction and interpretation.
- Wolfram MathWorld — Least Squares Fitting — the formal derivation of the least squares slope and intercept formulas.
- Wikipedia — Coefficient of determination — R squared: what it measures and how it relates to the correlation coefficient.