Line Graph Maker
Turn a list of ordered measurements into a clean, labeled line graph and see exactly what it says: how much the value changed, how fast, where it rose and fell, and where it is heading. Start from one set of points, compare two to four lines and find where they cross, measure the slope between any two points with a rise-and-run triangle, read values between and beyond your data, work out the scales for plotting by hand on graph paper, or see how the same data can be made to look steep or flat just by changing the axis.
Background
A line graph shows how a quantity changes along an ordered scale, usually time. Each measurement is a point (x, y), and straight segments join neighboring points, so you can see the whole pattern at a glance. The key ideas are change = y₂ − y₁, rate of change (slope) = rise ÷ run = Δy ÷ Δx, and a scale of equal, round steps on both axes. A steeper segment means faster change; a flat segment means no change.
How to use this calculator
- Choose Line Graph when you have ordered measurements such as “Week 1: 2” or “2015: 12”. You get the line, the steepest rise and fall highlighted, the change, percent change and rate for every interval, and a bar chart of the changes.
- Choose Compare Lines to draw 2 to 4 lines on the same axes. You get the points where the lines cross or meet (found even between measurements), who leads when, a chart of the gap between the lines, and, for two lines that have not met, when they would meet if their last rates continue.
- Choose Rate of Change to measure the slope between any two x values. The graph shows the rise-and-run triangle, and a second chart compares that slope with every interval.
- Choose Read & Predict to read a value between two points, find when the line reaches a target value, forecast a later x with two simple methods, or find when the line would reach a target beyond your data, all marked on the graph.
- Choose Draw It by Hand to get the scale for both axes of your graph paper, the exact squares across and up for every point, and a picture of the finished graph on a grid.
- Choose Scale Tricks to see the same data drawn with a full, a zoomed and a squashed value axis, with the steepness angle of each, so you can learn to read graphs fairly.
- Add a title, axis labels, units and an x unit (like “week”) so rates read “per week”, then click Calculate to see the result, a callout explaining what it means, a diagram built for that task and every step with your numbers substituted.
How line graphs work
A line graph shows how one quantity changes along an ordered scale, usually time. Each measurement is a point (x, y), and straight segments join neighboring points from left to right.
Use a line graph when the x values are ordered and the change between points matters (temperature through a year, height over weeks). Use a bar graph to compare separate categories that have no order.
Both axes need a scale: equal steps of a round size (1, 2, 5, 10, 20, 50 …). If the x values are numbers, space the points in proportion to those numbers; if they are labels such as months, equal spacing is fine as long as the steps are equal.
The change between two points is y₂ − y₁. The percent change is that change divided by the starting value. The rate of change (slope) is the change in y divided by the change in x: rise ÷ run.
Steepness shows speed: a steep segment means fast change, a gentle one slow change, a flat one no change, and a segment sloping downhill means the quantity is decreasing.
Reading between two points (interpolation) assumes the quantity changes steadily along the segment. Going beyond the last point (extrapolation) assumes the trend continues, which is only a guess.
Two lines cross where their difference is zero. If the difference changes sign between two measurements, the lines cross in between, at a distance found by |d₁| ÷ (|d₁| + |d₂|) of the way along.
A line graph's steepness depends on its axes. Zooming the value axis makes the same data look steeper, and squashing it makes the data look flatter. A zoomed axis should be labeled, and the numbers and percent change are the honest measure.
Formulas & Equations Used
Change: change = y₂ − y₁
Percent change: percent change = (y₂ − y₁) ÷ |y₁| × 100%
Rate of change (slope): slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁)
Average rate over the graph: average rate = (last y − first y) ÷ (last x − first x)
Scale (step): raw step = span ÷ 5, then round to the nearest 1, 2 or 5 × a power of 10
Reading between points: y = y₁ + (x − x₁) ÷ (x₂ − x₁) × (y₂ − y₁)
When the line reaches a level L: x = x₁ + |y₁ − L| ÷ (|y₁ − L| + |y₂ − L|) × (x₂ − x₁)
Forecast: forecast = last y + rate × (future x − last x)
Where two lines cross: x = x₁ + |d₁| ÷ (|d₁| + |d₂|) × (x₂ − x₁), with d = y of line A − y of line B
Target beyond the data: x = last x + (target − last y) ÷ rate, valid only when the rate points towards the target
When two lines would meet: steps = |gap now| ÷ |rate A − rate B|, valid only when the gap is shrinking
Graph paper (up): units per square ≥ span ÷ (squares up − 1), squares up = (y − axis start) ÷ units per square
Graph paper (across): squares across = 1 + (x − x start) ÷ units per square, or 1 + point number × squares between points
Steepness of a picture: tan θ = (Δy ÷ y-axis range × plot height) ÷ (Δx ÷ x-axis range × plot width)
Effect of zooming: steepness ratio = full-scale axis range ÷ zoomed axis range
Example Problems & Step-by-Step Solutions
Example 1 — Reading a line graph
A bean plant's height (cm) in Weeks 1 to 8 is 2, 3.5, 5.5, 8.5, 10.5, 12, 12.5, 12.8. Describe how it grew.
Step: Changes: +1.5, +2, +3, +2, +1.5, +0.5, +0.3. Total change = 12.8 − 2 = 10.8 cm; percent change = 10.8 ÷ 2 × 100 = 540%; average rate = 10.8 ÷ 7 = 1.54 cm per week.
Result: the plant grew 10.8 cm (+540%), fastest between Week 3 and Week 4 (+3 cm), and the growth slowed to +0.3 cm in the last week.
Example 2 — Choosing a scale
Monthly temperatures run from 3 °C to 25 °C and start at 0. What scale should the value axis use?
Step: Span = 25. A rough step = 25 ÷ 5 = 5, which is already a round step. Axis end = ⌈25 ÷ 5⌉ × 5 = 25; the top point would touch the edge, so one extra step of headroom is added.
Result: an axis from 0 to 30 in steps of 5.
Example 3 — Change and percent change
The temperature rises from 8 °C in March to 14 °C in April, then falls from 19 °C in September to 12 °C in October. Compare the two changes.
Step: March to April: 14 − 8 = +6 °C, percent = 6 ÷ 8 × 100 = +75%. September to October: 12 − 19 = −7 °C, percent = −7 ÷ 19 × 100 = −36.84%.
Result: the fall (−7 °C) is the larger change, but the rise is the bigger percent change (+75% against −36.84%) because it starts from a lower value.
Example 4 — Where two lines cross
Inland temperatures are 14 °C in April and 19 °C in May; coastal temperatures are 15 °C and 16 °C. Where do the lines cross?
Step: Gap (inland − coast): April 14 − 15 = −1, May 19 − 16 = +3. The sign changes, so they cross between April and May, at |−1| ÷ (|−1| + |3|) = 0.25 of the way. Value = 14 + 0.25 × 5 = 15.25.
Result: the lines cross 25% of the way from April to May at 15.25 °C.
Example 5 — Rate of change
The plant is 3.5 cm tall in Week 2 and 12 cm tall in Week 6. What is its average rate of growth over that time?
Step: Rise = 12 − 3.5 = 8.5 cm. Run = 6 − 2 = 4 weeks. Slope = rise ÷ run = 8.5 ÷ 4 = 2.125.
Result: the plant grew at about 2.13 cm per week, faster than its overall average of 1.54 cm per week.
Example 6 — A flat segment
A car's distance is 120 km at hour 2 and 120 km at hour 3, then 250 km at hour 6. Find the slope for each stretch.
Step: Hours 2 to 3: (120 − 120) ÷ 1 = 0 km per hour. Hours 3 to 6: (250 − 120) ÷ (6 − 3) = 130 ÷ 3 = 43.33 km per hour.
Result: a slope of 0 means the car was stopped; afterwards it travelled at an average of 43.33 km per hour. On a distance graph, speed is the slope.
Example 7 — Read and predict
A coffee's temperature is 90, 76, 66, 59, 54, 50 °C at minutes 0, 2, 4, 6, 8, 10. When does it reach 60 °C, and what do two forecasts say for minute 14?
Step: 60 lies between 66 (minute 4) and 59 (minute 6): fraction = |66 − 60| ÷ (|66 − 60| + |59 − 60|) = 6 ÷ 7 = 0.857, so x = 4 + 0.857 × 2 = 5.71. Last rate = (50 − 54) ÷ 2 = −2, so 50 − 2 × 4 = 42 °C. Average rate = (50 − 90) ÷ 10 = −4, so 50 − 4 × 4 = 34 °C.
Result: it reaches 60 °C at minute 5.71; the forecasts for minute 14 are 42 °C and 34 °C. They disagree because the cooling is slowing down.
Example 8 — The same data, a different axis
A share price goes 98, 99, 101, 100, 102, 103 over six days. Compare a full axis (0 to 120) with a zoomed axis (97 to 104).
Step: The change is 103 − 98 = +5 (+5.1%) either way. The axis ranges are 120 and 104 − 97 = 7, so the zoomed line looks 120 ÷ 7 = 17.14 times steeper.
Result: the zoomed graph looks about 17 times steeper, yet the price rose by only 5.1%. Judge by the numbers and the percent change, not by the slope you see.
Frequently Asked Questions
What is a line graph?
A line graph plots measurements as points on a grid and joins neighboring points with straight segments, usually to show how a quantity changes over time. The shape of the line shows trends at a glance.
When should I use a line graph instead of a bar graph?
Use a line graph when the x values are ordered (time, distance, temperature) and you care about how the quantity changes from one point to the next. Use a bar graph to compare separate categories that have no natural order.
How do I find the slope of a line graph?
Pick two points, then divide the rise (the change in y) by the run (the change in x): slope = (y₂ − y₁) ÷ (x₂ − x₁). The unit of the slope is the y unit per x unit, for example cm per week.
What do steep, flat and downhill segments mean?
A steep uphill segment means fast increase, a gentle one slow increase, a flat one no change, and a segment sloping downhill a decrease. On a distance graph, a flat segment means the object is not moving.
What is the difference between interpolation and extrapolation?
Interpolation estimates a value between two measured points, which is usually reliable. Extrapolation estimates a value beyond the last point by continuing the trend, which is a guess that gets less reliable the further you go.
How do I read a value between two points?
Find the fraction of the way along the segment, (x − x₁) ÷ (x₂ − x₁), then add that fraction of the change in y to the starting y. Halfway between 8.5 and 10.5, for example, is 9.5.
How do I find where two lines cross?
Subtract the lines at each x. If the difference changes sign between two neighboring points, the lines cross in between; the crossing is |d₁| ÷ (|d₁| + |d₂|) of the way along. If the difference is exactly 0 at a point, the lines meet there.
Does a line graph have to start at zero?
Not always. A line graph shows change, so the value axis can be zoomed to the data, unlike a bar graph. But a zoomed axis makes small changes look big, so mark the break, label the axis, and report the percent change as well.
How do I choose a scale for a line graph?
Divide the range you must cover by about 5 and round to a round step (1, 2, 5, 10, 20, 50 …). Start the axis at a multiple of that step at or below your smallest value (or at 0), and end it at or above your largest value.
How do I draw a line graph by hand?
Choose scales so the biggest value and the whole x range fit on your paper, convert each point into squares across and up, plot the dots, join them with a ruler from left to right, then add a title, axis labels and the scales. The Draw It by Hand mode does the conversion for you.
What is the difference between change and percent change?
Change is the plain difference, y₂ − y₁, in the same unit as the data. Percent change divides that difference by the starting value, so it shows how big the change is relative to where you started and lets you compare different graphs.
Why do the two forecasts differ?
One continues at the rate of the last interval, the other at the average rate of the whole graph. If the rate has been speeding up or slowing down they disagree, and which is better depends on whether the quantity can really keep changing that way.
How can I tell when two lines will meet, or when a value will reach a target?
Keep the last rate of change going. Two lines meet after |gap| ÷ |difference in rates| more steps, but only if the gap is shrinking; a target is reached after (target − last value) ÷ rate more steps, but only if the line is heading towards it. Both are projections, so treat them as estimates.
Can the x values be unequally spaced?
Yes. If the x values are numbers (years 2010, 2012, 2018) the points should be spaced in proportion to those numbers so that slopes are drawn correctly. Equal spacing is only right when the steps between x values are equal.
How is a line graph different from a scatter plot with a trend line?
A line graph joins every point in order to show the exact path of one quantity. A scatter plot with a trend line shows the relationship between two variables and fits one straight line through the cloud of points instead of joining them.