Home›Math›Slope Guide

Slope on a Graph, Parallel Lines, and Real Grades

Count rise and run off the grid, use equal slopes for parallels and negative reciprocals for perpendiculars, and measure roofs, driveways, and hills the same way.

Updated October 2026Slope Calculator

Counting grid steps gives the slope: (1, 1) to (4, 3) is 2/3. Parallel lines share a slope, perpendicular lines multiply to −1, a 6-in-12 roof is 50%, and a curve has no single slope — only an average over an interval, which the two-point tool reports honestly.

Key takeaways
  • Through (1, 1) and (4, 3) the slope is 2 ÷ 3 = 2/3 at 33.69° — and any second pair on the same line must agree, or a point was misread.
  • Parallel to y = x + 2 means slope 1; perpendicular means slope −1. Through (2, 3), the pair is y = 2x − 1 and y = (−1/2)x + 4 for a slope-2 line.
  • A 6-in-12 roof is 50% (26.57°), a 3-ft rise over 40 ft is 7.5% (4.29°) — always divide by the horizontal run, never the sloped length.
  • A curve has no single slope: y = x² averages 1 over 0–1 but 3 over 1–2. The tool gives the interval average, not the slope at a point.

Counting rise and run off a graph

On a plotted line, the slope is counted, not guessed. Pick any two points where the line crosses grid intersections, count the vertical steps between them for the rise, count the horizontal steps for the run, and divide. Through (1, 1) and (4, 3), the run is 4 − 1 = 3 steps right and the rise is 3 − 1 = 2 steps up, so the slope is 2/3, about 0.667, at an angle of 33.69°. Any other pair of points on the same line gives the same answer — that sameness is the definition of a straight line, and it is also your error check: if two pairs disagree, at least one point was misread.

Falling lines count the same way, with a negative rise. Through (0, 5) and (4, 1), the run is 4 and the rise is 1 − 5 = −4, so the slope is −1, at −45°. The sign is the direction: positive slopes climb left to right, negative slopes fall, zero is flat, and a vertical line has a run of zero, so its slope is undefined. When the grid steps are not whole units — say each square is 2 units — count in units, not squares: a rise of 3 squares at 2 units each is 6 units, and dividing squares by squares only works when both axes share the same scale.

Points on the lineRise ÷ RunSlope
(1, 1) → (4, 3)2 ÷ 32/3 ≈ 0.667, angle 33.69°
(0, 5) → (4, 1)−4 ÷ 4−1, angle −45°
(2, 1) → (2, 5)4 ÷ 0Undefined (vertical)
(0, 2) → (5, 2)0 ÷ 50 (flat)

Parallel and perpendicular slopes

Two lines are parallel exactly when their slopes are equal, and perpendicular exactly when their slopes are negative reciprocals — that is, when the slopes multiply to −1. A line parallel to y = x + 2 has slope 1, like y = x − 3: same direction, different position. A line perpendicular to it has slope −1, like y = −x + 1: the product 1 × (−1) is −1, and the lines cross at a right angle. These two rules turn many geometry questions into one-line slope checks.

Through a chosen point, the rules build both lines at once. Take the line through (0, 0) and (2, 4), whose slope is 4 ÷ 2 = 2, and the point (2, 3). The parallel line through (2, 3) keeps slope 2: y − 3 = 2(x − 2), so y = 2x − 1. The perpendicular line through (2, 3) takes slope −1/2: y − 3 = (−1/2)(x − 2), so y = (−1/2)x + 4. Check both against the point: at x = 2, the first gives y = 3 and the second gives y = 3. Vertical and horizontal lines swap roles under these rules: the parallel of a vertical line is vertical, and its perpendicular is horizontal, because a vertical slope has no reciprocal to negate.

Real grades: roofs, driveways, and ramps

Outside textbooks, slope is usually a physical grade, and the same rise-over-run arithmetic prices it. A roof quoted at 6-in-12 pitch rises 6 inches for every 12 inches of run: a slope of 6 ÷ 12 = 0.5, which is 50%, at 26.57°. A driveway rising 3 feet over a 40-foot run has a slope of 3 ÷ 40 = 0.075, which is 7.5%, at 4.29°. A ramp rising 1 foot over a 12-foot run is 1 ÷ 12 = 0.0833, which is 8.33%, at 4.76°. In each case the method is identical — rise divided by horizontal run — and the only caution is to use the horizontal run, not the sloped length: measuring along the slope itself understates the grade, because the sloped length is always longer than its horizontal shadow.

These are mathematics conversions, not building approvals: local rules govern what grades are permitted for ramps, driveways, and roofs, and they vary by place and purpose, so check the applicable rules before building anything. What the arithmetic does settle is comparison: a 7.5% driveway is gentler than a 12% one, a 6-in-12 roof is steeper than a 4-in-12 roof (4 ÷ 12 = 33.33%, 18.43°), and any grade can be compared with any other once all of them are expressed as slope, percent, or angle. The calculator’s percent-grade output is the form road and site discussions use most, which is why it sits beside the slope in the results.

Real gradeRise ÷ RunPercent / Angle
Roof 6-in-12 pitch6 ÷ 12 = 0.550% / 26.57°
Roof 4-in-12 pitch4 ÷ 12 = 0.333333.33% / 18.43°
Driveway 3 ft over 40 ft3 ÷ 40 = 0.0757.5% / 4.29°
Ramp 1 ft over 12 ft1 ÷ 12 = 0.08338.33% / 4.76°

The honest limit: a curve has no single slope

Everything in this article is about straight lines, and that boundary matters. A curve does not have one slope: its steepness changes from point to point. For the curve y = x², the average slope between x = 0 and x = 1 is (1 − 0) ÷ (1 − 0) = 1, but between x = 1 and x = 2 it is (4 − 1) ÷ (2 − 1) = 3. The same curve, two different slopes over two intervals — so asking for “the slope of the curve” without saying where is an incomplete question. The full answer needs calculus, which studies the slope at a single point by shrinking the interval toward zero.

What the two-point tool can honestly give for a curve is the slope of the straight line joining two points on it — the secant slope, which is the average steepness over that interval. That average is genuinely useful: average speed over a trip, average growth over a quarter, and average grade over a hillside section are all secant slopes. But it is not the steepness at either endpoint, and it changes when the interval changes. If a problem asks for the slope of a curve at a point, this calculator is the wrong tool, and no two-point answer should be presented as if it were.

Measuring a hill in the field

Measuring a real slope follows the same counting method as the graph, with a tape and a level instead of grid squares. Stand at the bottom, measure the horizontal distance to the top — not the distance walked up the slope — and measure the vertical rise with a level line or a known eye height. A rise of 6 feet over a horizontal run of 80 feet is a slope of 6 ÷ 80 = 0.075, or 7.5%, at 4.29°. Repeat from a second pair of points on the same straight section: if the two slopes disagree, the ground is not a single straight grade, and the honest description is a set of sections, each with its own slope, rather than one number for the whole hill.

Two field errors dominate. Measuring along the slope instead of horizontally inflates the run and shrinks the grade. And measuring the rise from an unlevelled sight line adds the measurer’s own tilt to the hill’s. A simple guard is the level check: sight along a truly horizontal line, mark where it meets a pole at the far end, and measure from the ground to that mark — that is the rise, clean of tilt. With those two guards, field slopes agree with map slopes to within the tape’s own accuracy, and the calculator turns the pair of numbers into slope, percent, grade, and angle in one step.

Slope in data: two measurements, one rate

The graph method travels well beyond geometry. Whenever two measurements move together, plotting one against the other and reading the slope gives the rate that connects them. A delivery log showing 0 miles at departure, 40 miles after 1 hour, and 100 miles after 2.5 hours has slope (100 − 0) ÷ (2.5 − 0) = 40 miles per hour, and the middle point confirms the line: 40 × 1 = 40. If the third reading had been 90 miles instead of 100, the three points would not share one slope, and the honest conclusion would be that the speed varied — the average over the whole trip would be 90 ÷ 2.5 = 36 miles per hour, but no single speed describes the whole journey.

The guardrails are the same as on a geometry graph. Use consistent units on each axis, check a third point before trusting a slope, and remember that a slope from two points is an average over the interval between them, not a reading at either end. Two points always give a number; only a third point, or knowledge that the relationship is truly linear, earns that number the name “the slope”. That discipline is what separates a measured rate from a pair of numbers divided hopefully.

Frequently asked questions

How do I find the slope of a line on a graph?

Pick two grid points on the line, count the vertical steps (rise) and horizontal steps (run), and divide. Through (1, 1) and (4, 3): rise 2, run 3, slope 2/3. Any second pair on the same line must give the same answer — that is your error check.

What is the slope of a line parallel to y = x + 2?

1. Parallel lines share the same slope, and y = x + 2 has slope 1, so any parallel line, such as y = x − 3, also has slope 1. A perpendicular line has slope −1, the negative reciprocal, such as y = −x + 1.

How do I convert roof pitch to a percent?

Divide rise by run and multiply by 100. A 6-in-12 pitch is 6 ÷ 12 = 0.5, or 50%, at 26.57°. A 4-in-12 pitch is 33.33%, at 18.43°. Always use the horizontal run, not the sloped length.

Can this calculator find the slope of a curve?

Only the average slope between two points on the curve — the secant slope. For y = x² the average slope is 1 between x = 0 and x = 1 but 3 between x = 1 and x = 2, so a curve has no single slope. The slope at one point needs calculus.

How do I measure the slope of a hill?

Measure the horizontal run (not the sloped distance) and the vertical rise with a level line. A rise of 6 feet over an 80-foot horizontal run is 7.5%, at 4.29°. If two sections disagree, report each section separately — the hill is not one straight grade.

Why do two pairs of points on one line give the same slope?

Because that sameness defines a straight line: rise over run is constant everywhere on it. If two pairs disagree, at least one point was misread or the plotted shape is not a straight line.

Related guides

Similar Posts