Coordinate geometry

Slope and the Equation of a Line

Interpret rise over run, distinguish vertical and horizontal lines, and connect points with slope-intercept and point-slope equations.

Direct answer

Slope is vertical change divided by horizontal change between two distinct points; together with one point it determines a nonvertical line, while a vertical line has equation x=constant and undefined slope.

What this calculation tells you

Slope records how y changes for each unit change in x and carries units when the axes do.

The equation y=mx+b exposes slope and vertical intercept, but vertical lines require a different form.

Where it is used

Data and graphs

Interpret constant trends and compare linear rates.

Design and engineering

Represent idealised grades and linear relationships with explicit units.

Business

Model a fixed component plus a constant per-unit change.

Education

Connect tables, points, rates, and equations.

When this guide helps

  • Finding slope from two points.
  • Writing a line through two points.
  • Recognising a vertical line.
  • Interpreting the units of a graph's slope.

Calculate coordinated change

Subtract coordinates in the same order so rise and run refer to one movement. Reversing both differences preserves the ratio.

Handle special lines

A zero rise gives a horizontal line with slope zero. A zero run gives a vertical line whose slope is undefined.

Choose an equation form

Point-slope form preserves a known point and rate; slope-intercept form highlights the y-intercept; standard form can avoid fractions.

Common mistakes

Frequent errors include mixing subtraction order and treating a vertical line as slope zero.

  • Label axes and units.
  • Check both points in the equation.
  • Keep vertical lines separate.

Worked case: line through two points

Use points (2, 3) and (6, 11).

Slope=(11-3)/(6-2)=8/4=2. Point-slope form y-3=2(x-2) simplifies to y=2x-1.

The line is y=2x-1.

Substituting both points verifies the equation.

Worked case: vertical line

Use points (4, 1) and (4, 9).

The x difference is zero, so the slope quotient would divide by zero. The line equation is x=4.

The slope is undefined and the vertical line is x=4.

Calling its slope zero would confuse it with a horizontal line.

Compare slope and line equations cases before generalising

Slope records signed vertical change per horizontal change. Units matter when axes measure different quantities, and correlation or causation cannot be inferred from a line equation alone.

slope and line equations: worked-case comparison
PointsSlopeEquation
(2, 3), (6, 11)2y=2x-1
(4, 1), (4, 9)Undefinedx=4
(1, 5), (7, 5)0y=5

slope and line equations: calculation checklist

  • Keep subtraction order consistent
  • Guard zero x difference
  • Retain slope units
  • Use a known point
  • Verify both points

Choose the right tool

Practical questions

Frequently asked questions

Why is vertical slope undefined?

Its run is zero, so the rise-over-run quotient divides by zero.

Can two points define a line?

Two distinct points define one line; coincident points do not provide direction.

What does the y-intercept mean?

It is the modelled y-value at x=0, which may or may not be meaningful in the real domain.

Further reading

Authoritative sources

Use these primary and professional resources to check definitions, conventions, or requirements that may extend beyond this guide.