Scatter Plot Generator
Generate scatter plots from XY data points with trend lines.
Reviewed by the ToolNestr Editorial Team — July 2026
What is a scatter plot?
A scatter plot displays individual data points as dots on a two-dimensional Cartesian plane. Each point represents one observation with two numeric variables: one plotted along the X-axis (horizontal) and the other along the Y-axis (vertical). The arrangement of points reveals whether a relationship or correlation exists between the two variables.
The pattern formed by the points tells you what kind of correlation exists. A positive correlation appears as a cluster of points sloping upward from left to right — as X increases, Y tends to increase. A negative correlation slopes downward — as X increases, Y tends to decrease. When the points form a shapeless cloud with no discernible direction, the variables show no correlation.
Understanding correlation with the trend line
The trend line — also called a line of best fit or linear regression line — is calculated using the least squares method. It minimises the sum of squared vertical distances between each data point and the line itself. The result is a straight line that best represents the overall direction of your data.
The correlation coefficient (Pearson's r) quantifies the strength of the linear relationship on a scale from -1 to +1. A value of +1 means a perfect positive relationship, -1 means a perfect negative relationship, and 0 means no linear relationship. In practice, values above 0.7 or below -0.7 indicate a strong correlation, while values between -0.3 and 0.3 suggest a weak relationship.
Positive correlation
Points trend upward from bottom-left to top-right. As one variable increases, the other also increases. Example: study hours vs. exam scores.
Negative correlation
Points trend downward from top-left to bottom-right. As one variable increases, the other decreases. Example: speed vs. travel time.
No correlation
Points form a random scatter with no clear direction. The variables appear unrelated. Example: shoe size vs. salary.
Non-linear relationship
Points follow a curve rather than a straight line. A linear trend line may show weak correlation even when a clear pattern exists.
How to create a scatter plot
Enter your data
Type each data point as "x, y" on a separate line. Use decimal numbers for precise plotting. The tool accepts any number of points.
Customise your chart
Set the chart title, axis labels, and toggle the trend line on or off. Click "Generate" to render the scatter plot instantly.
Download or share
Click "Download as PNG" to save the chart as a high-resolution image for reports, presentations, or sharing online.
Use cases for scatter plots
- Statistical analysis — Researchers use scatter plots to explore relationships between variables before applying formal statistical tests. The visual pattern guides hypothesis formation and model selection.
- Scientific data — In physics, chemistry, and biology, scatter plots reveal how one measured quantity responds to changes in another, such as temperature vs. pressure or dosage vs. response.
- Quality control — Manufacturing processes use scatter plots to monitor relationships between production parameters and product quality metrics, helping identify root causes of defects.
- Business metrics — Marketing teams plot ad spend against conversions, sales teams compare call volume vs. deals closed, and product teams analyse user engagement against feature adoption rates.
- Healthcare — Clinical researchers plot biomarker levels against patient outcomes, or treatment dosage against recovery time, to identify significant correlations.
- Finance and economics — Analysts examine relationships between economic indicators, stock returns vs. risk metrics, or inflation against unemployment rates using scatter plots.
Tips for effective scatter plots
More data points = better trend
A trend line becomes more reliable as the number of data points increases. With fewer than ten points, outliers can easily skew the regression line and the correlation coefficient may be misleading.
Outliers are visible
One advantage of scatter plots is that outliers stand out immediately as points far from the main cluster. Investigate outliers before drawing conclusions — they may indicate data entry errors or important edge cases.
Axis scaling matters
Always examine the axis ranges. By default this tool auto-fits axes to your data, but you should verify that the scale does not exaggerate or minimise the apparent strength of the relationship. Include zero on both axes where meaningful.
Correlation does not imply causation
A strong correlation between two variables does not mean one causes the other. There may be a hidden third variable driving both, or the relationship may be coincidental. Always apply domain knowledge when interpreting results.
Check for non-linearity
If the data points form a curve (U-shaped, exponential, or logarithmic), the linear trend line and Pearson's r will underestimate the true relationship. Consider transforming your variables before analysis.
Related chart tools
If scatter plots are useful for your work, you may also find these related tools helpful:
- Line Chart Generator — Connect data points with lines to emphasise trends over time.
- Pie Chart Generator — Show proportions and percentages of a whole.
- Box Plot Generator — Visualise data distribution, quartiles, and outliers.
- Bar Chart Generator — Compare categorical data with vertical bars.
- Histogram Generator — Show the frequency distribution of a single variable.
Frequently asked questions
What is a scatter plot?
A graph that plots individual data points on X and Y axes to show relationships between two variables.
Can I add a trend line?
Yes — toggle a linear regression trend line to see correlation direction and strength.
What data format is required?
Enter one point per line as "x, y" — e.g. "1, 2.5" or "10, 20".
Can I download the chart?
Yes — download as PNG image or copy the chart URL.
How is the trend line calculated?
The tool computes a linear regression (least squares) through your data points and plots the best-fit line.
What is the correlation coefficient?
Pearson's r measures the strength and direction of the linear relationship between X and Y, from -1 (perfect negative) to +1 (perfect positive).
What happens if I enter invalid data?
Lines that do not contain two comma-separated numbers are skipped. An error shows if no valid data points are found.
Is my data stored or uploaded?
No. Charts are rendered entirely in your browser using Chart.js. Your data never leaves your computer.