Your scatter plot is a cloud – what now?
You’ve dumped monthly revenue, lab readings, or sessions into a sheet. Dots everywhere. Up, flat, or turning? Eyeballing the cloud is how weak forecasts get born. A trend line collapses that mess into one measurable direction you can project – carefully.
What is a trend line and how to draw it, for the job most beginners actually have: line of best fit on scatter plots and charts. Free tools. Type choice. The mistakes that inflate confidence.
What a trend line actually is
Job one: summarize direction. In sheets and stats work, that usually means the line of best fit – one straight line pulled as close as possible to every point at once.
“Close” is not vibes. Ordinary least squares minimizes the sum of squared vertical distances from each point to the line (the definition used in Google Charts trendline docs). You get something like y = mx + b. Useful for rough reads inside the range you actually observed.
Traders use the same word differently. They often sketch by hand: higher lows for an uptrend, lower highs for a downtrend. StockCharts ChartSchool treats two points as the start and a third touch as stronger evidence; the line then plays diagonal support or resistance. Related craft. Not the same math. This guide leads with the automated fit, then marks the overlap.
How to draw a trend line in Google Sheets and Excel
Skip the ruler. Let the tool run least squares.
Google Sheets (quick path)
- Select the two columns (x and y). Insert a chart. Scatter for true x-y pairs; line chart is fine for time series.
- Double-click the chart.
- Customize → Series.
- Check Trendline. Start with Linear. Optionally show equation and R².
Done – the line drops in. UI path as of Google Docs Editors Help (chart editor labels move sometimes; search “trendline” inside the editor if needed): official chart customization help.
Excel
- Click the chart.
- Chart Design → Add Chart Element → Trendline (or right-click the series → Add Trendline).
- In Format Trendline, tick equation and R-squared when you want numbers on the face of the chart.
Unstacked 2-D area, bar, column, line, stock, scatter, and bubble charts get trendlines; moving average is there when you want a local smooth instead of one global fit – steps match Microsoft Support.
Pro tip: Before you trust the slope, plot residuals (actual – predicted) or just look for fan-out and systematic curves. A clean line on a bent cloud is still a bad model.
Copy the equation. Plug in a new x inside your data range. Outside that range, treat numbers as guesses.
Picking the type and reading R² without fooling yourself
Linear first. Not always final. Google Charts (updated mid-2024 in the public docs) and Excel also ship exponential and polynomial fits. Exponential for compounding-style growth. Polynomial when the cloud bends – you pick the degree.
R² is the share of y-variance the fit explains. Near 1 looks impressive. The trap: R² almost never falls when you pile on complexity. Noise variables still tend to lift it. A degree-5 curve can tattoo every training point and still go feral one step past the last x. Read high R² as “fits these points,” not “will keep working.”
| Type | Best when | Main risk |
|---|---|---|
| Linear | Steady change, roughly straight cloud | Misses curves and acceleration |
| Exponential | Percentage-style growth/decay | Blows up or collapses outside range |
| Polynomial (deg 2-3) | Clear bend, enough points | Overfit; wild extrapolation just beyond the sample |
| Moving average | Local smoothing, not a global model | Lags; not the same kind of predictive equation |
Second opinion in two minutes: paste a small table (or describe the shape) into an AI chat – “Linear, exponential, or curved? What degree is safe? What would make a linear fit misleading?” Use that only to pick the type in Sheets/Excel. Do not let the model invent y-values you never checked.
Hand-drawn “eye” lines and software least-squares lines often disagree on noisy or outlier-heavy data. Your eye balances the cloud; the tool minimizes squared residuals. Same chart, two different jobs.
When the same idea shows up on price charts
Trading platforms: manual drawing. Successive higher lows (up) or lower highs (down). Two points define it; a third touch buys confidence – the framing you’ll see on StockCharts and on Investopedia’s trendline entry. Steep lines born from short spikes break easily. Spacing of touches should look reasonable, not clustered on one noisy week.
Arithmetic vs semi-log scale can change which breaks look “real” when prices move by large percentages. Same points, different story. Check the scale before you argue about a break.
Visual structure and possible support/resistance on one side. Statistical summary of every point on the other. Hire the right line.
Honest limits (read these before you forecast)
The catch is judgment, not the formula.
Outliers yank least-squares hard – errors are squared. One bad measurement can tilt the slope. Drop obvious extremes and refit before you present the line.
Correlation is not causation. Ice cream sales and drownings can share an upward line. The fit only describes joint movement in your sample.
Extrapolation is the usual failure mode. The equation will invent next year even after the process changed. Prefer short projections at the edge of the window. Refit when new points land.
Random scatter? Don’t force a line. “No usable linear trend” is a valid result.
Is a trend line ever “objective”? Least-squares is objective given the points and the model class. Which points you keep, which type you fit, and whether you trust the story – that’s still you. Most bad calls hide in that gap.
FAQ
Is a trend line the same as a regression line?
On a scatter plot, for the linear case: yes. People swap the names. The chart is just drawing the least-squares fit.
How many points do I need before the line is useful?
Two points always make a unique straight line – and tell you almost nothing about noise. In practice, dozens of reasonably spaced points steady a linear fit; polynomials need more or they overfit. Tiny sample? Wait.
Should I always display R² on the chart?
Show it when your audience needs a quick fit score. Don’t stop there. High R² can sit next to curved residuals, one nasty outlier, or a relationship that was never linear. Pair the number with a residual glance and a reality check. If an AI tool only quotes R², ask what would falsify the fit – then go look.
Open any sheet with two related columns. Scatter chart. Linear trendline on. Equation + R² visible. Then force a degree-3 polynomial on the same series and watch what the curve does just past the last x. Five minutes. Beats another definition.