Home › Calculators › Scatter Plot Maker

Scatter Plot Maker

Paste pairs of X and Y values to plot them instantly. Add a line of best fit (linear, quadratic, exponential, logarithmic or power) with its equation, see the correlation coefficient r and R², label your axes and download a crisp PNG.

Last updated:

Trendline

Chart

Advertisement
Advertisement

How to use the Scatter Plot Maker

  1. Paste your data: one X,Y pair per line, or copy two columns from Excel or Google Sheets. A third column can hold point labels.
  2. Choose a trendline type, or None for just the points.
  3. Read the results: equation of the line, R², the correlation coefficient r and how strong the relationship is.
  4. Label the chart with a title and axis names and adjust colors and point size.
  5. Download PNG or copy the results for your report.

Formulas used

For n points (x, y) with means x̄ and ȳ:

  • Slope: b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)²
  • Intercept: a = ȳ − b·x̄, so the line of best fit is y = a + bx
  • Pearson correlation: r = Σ(x − x̄)(y − ȳ) ÷ √[Σ(x − x̄)² · Σ(y − ȳ)²]
  • Coefficient of determination: R² = 1 − SSres ÷ SStot, where SSres = Σ(y − ŷ)² and SStot = Σ(y − ȳ)²

With the sample data (hours studied vs. exam score, n = 12) the least-squares line is y ≈ 46.11 + 4.92x with r ≈ 0.987 and R² ≈ 0.973: each extra hour of study goes with roughly 5 more points, and the line explains about 97% of the variation in scores.

Which trendline should I choose?

TrendlineEquationTypical pattern
Lineary = a + bxPoints fall roughly along a straight line
Quadraticy = a + bx + cx²One bend: rises then falls (or the reverse), e.g. projectile height
Exponentialy = a·e^(bx)Growth or decay by a constant percentage, e.g. compound growth, cooling
Logarithmicy = a + b·ln(x)Rises quickly then levels off, e.g. learning curves
Powery = a·x^bScaling laws, e.g. area vs. length

A higher R² means a closer fit, but do not choose a curve only because R² is higher: pick the model that makes sense for the data and check that the points scatter randomly around the line. Predictions outside the range of your X values (extrapolation) are much less reliable.

Correlation is not causation

A strong r shows that two variables move together, not that one causes the other. Ice cream sales and sunburns are correlated because both rise in hot weather. Look for confounding variables, and remember that r only measures linear association: a perfect U-shaped relationship can have r close to 0. For the full regression output see the Linear Regression Calculator and the Correlation Coefficient Calculator.

Frequently asked questions

What is a scatter plot used for?

A scatter plot shows the relationship between two numeric variables. Each point is one observation with its X value on the horizontal axis and Y value on the vertical axis. Patterns in the cloud of points reveal positive or negative correlation, curved relationships, clusters and outliers.

How is the line of best fit calculated?

The linear trendline uses ordinary least squares: slope b = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)², intercept a = ȳ − b·x̄, giving y = a + bx. It is the line that makes the sum of squared vertical distances from the points as small as possible.

What is the difference between r and R²?

r (Pearson's correlation coefficient) ranges from −1 to 1 and gives the direction and strength of a linear relationship. R² (the coefficient of determination) is the share of the variation in Y explained by the trendline, from 0 to 1. For a linear trendline R² equals r squared.

What counts as a strong correlation?

A common rule of thumb for |r|: below 0.1 negligible, 0.1–0.3 weak, 0.3–0.5 moderate, 0.5–0.7 strong and above 0.7 very strong. Context matters: in physics r = 0.9 may be poor, while in social science 0.4 can be meaningful. Correlation also does not prove causation.

How are exponential and power trendlines fitted?

Like spreadsheet programs, the tool takes logarithms and fits a straight line: ln(y) = ln(a) + bx for exponential (y = a·e^(bx)) and ln(y) = ln(a) + b·ln(x) for power (y = a·x^b). R² is reported on that transformed scale. These fits require positive Y values (and positive X for power and logarithmic).

Can I label individual points?

Yes. Add a third column with a name, for example 'Paris, 2.1, 35'. Labels are shown next to the points when you tick Show point labels, and in the tooltip when you hover a point.

Is my data uploaded?

No. The chart and all statistics are calculated in your browser. The data is saved only in your browser's local storage so it is still there when you come back.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Stock Beta CalculatorPaste stock and market prices or returns to get beta, correlation, R-squared and a regression chart.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.X and Y Intercept CalculatorFind the x- and y-intercepts of lines, curves and functions with steps and a graph.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.Factor Tree GeneratorDraw the prime factor tree of any number as a printable diagram, with exponent form and steps.Function Composition CalculatorFind f(g(x)), g(f(x)), f + g, f · g and f / g with values at a point and domains.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Eigenvalue and Eigenvector CalculatorEigenvalues (real or complex), eigenvectors and the characteristic polynomial of a square matrix.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.
See all 74 Algebra & Calculus Calculators →