KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesSlope of a Straight LineEngineering · Engineering MathematicsLesson 1/3← PrevNext →
GuidePublished 15 Aug 20264 min readBy Kevin Joginslopegradientrise over runstraight line
On this page

Ask about this page

KEVOS AISlope of a Straight Line

KEVOS knowledge first · trusted web sources when needed

Linear Functions

Slope of a Straight Line

Slope as rise over run, why it comes out the same whichever two points are used, and what its sign and size tell you.

Category Engineering / MathematicsStream Linear FunctionsLevel FoundationReading 4 minSource Week 5, pages 6-8

What this page covers

  • Compute the slope of a line from two points
  • Explain why the order of the points does not matter
  • Interpret the sign and magnitude of a slope
  • Recognise the two special cases of zero and undefined slope
On this page
  1. Rise over run
  2. Order does not matter
  3. Reading the sign and the size
  4. Worked examples
  5. Slope as a rate of change
  6. Common mistakes
  7. Frequently asked questions

Rise over run

Slope
m = riserun = y2 - y1x2 - x1Source, Week 5, pages 7-8

The rise is the vertical change, the run the horizontal one. Slope is their ratio, and it measures how steeply the line climbs per unit travelled sideways.

The source anchors it with a physical example: a run of 3000 mm against a rise of 200 mm, which is the ordinary engineering reading of a gradient.

m = 2003000 = 115Source example, Week 5, page 7

Order does not matter

Reversing the two points negates both the numerator and the denominator, and the two sign changes cancel.

y2 - y1x2 - x1 = y1 - y2x1 - x2Source, Week 5, page 8

The source's check

For P(1, 4) and Q(5, 7):

m = 7 - 45 - 1 = 34m = 4 - 71 - 5 = -3-4 = 34Source check, Week 5, page 8. The same value
Be consistent

What must not happen is mixing the orders: y2 - y1x1 - x2 gives -34, the wrong sign. Choose an order and use it in both the numerator and the denominator.

Why any two points work

Two different pairs of points on the same line generate similar right triangles, and similar triangles have equal ratios of corresponding sides. So the slope is a property of the line, not of the points chosen.

Reading the sign and the size

What a slope value tells you
SlopeDirectionAppearance
m > 0Rises left to rightUphill
m < 0Falls left to rightDownhill
m = 0Horizontaly never changes
UndefinedVerticalx never changes; run is zero
|m| largeSteepA small run gives a large rise
|m| smallShallowA large run gives a small rise

The source draws the positive and negative cases side by side and labels the negative one rise (negative), which is the right way to think of it: the rise is still measured upward, it simply comes out negative.

Zero and undefined are different

A horizontal line has slope 0, which is a perfectly good number. A vertical line has undefined slope, because the run is zero and the formula divides by zero. Calling a vertical slope 'infinite' is informal and misleading; the formula simply does not apply.

Worked examples

A negative slope &mdash; the source's case

Find the slope of the line through P(-1, 4) and Q(3, 2).

m = 2 - 43 - (-1) = -24 = -12Source example, Week 5, page 7

Negative, so the line falls. For every 2 units right, it drops 1.

Watch out

3 - (-1) = 4, not 2. Subtracting a negative coordinate is where slope calculations most often go wrong.

A second source example

Through (4, -2) and (2, 5):

m = 5 - (-2)2 - 4 = 7-2 = -72Source, Week 5, page 9

Steeply negative: a drop of 3.5 for every unit right.

Slope as a rate of change

Outside geometry, slope is almost always read as a rate: how fast one quantity changes with respect to another.

The same idea in different settings
SettingRiseRunSlope means
A rampHeight gainedHorizontal distanceGradient
Distance against timeDistanceTimeSpeed
Cost against quantityCostUnits madeCost per unit
Extension against loadExtensionLoadCompliance

Because the slope of a straight line is the same everywhere, a linear model asserts a constant rate. That is exactly the assumption a straight-line fit makes, and it is worth being conscious of it.

Common mistakes

Errors and checks
MistakeCorrectCheck
Run over riseRise over runA steep line has a large slope
Mixing the order between numerator and denominatorBe consistentThe sign will be wrong
3 - (-1) = 2= 4Bracket the substitution
Calling a vertical slope zeroIt is undefinedThe run is zero
Calling a horizontal slope undefinedIt is zeroThe rise is zero, the run is not
Assuming a curve has one slopeOnly lines doFor a curve the slope varies from point to point

Frequently asked questions

Does it matter which point I call the first?

No, provided the same choice is used top and bottom. The source shows both orders give 34 for the same pair of points, because two sign changes cancel.

What is the slope of a vertical line?

Undefined. The run is zero, so the formula divides by zero. This is not 'infinite slope'; it is a case the formula does not cover.

What does the number mean physically?

It is a rate of change: how much y moves per unit of x. A slope of 2003000 on a ramp means 200 mm of rise for every 3000 mm of run.

Can I use any two points on the line?

Yes, and that is what makes slope well defined. Similar triangles guarantee the ratio is the same wherever it is measured.

Related pages

  • The Four Forms of a Straight Line
  • Parallel and Perpendicular Lines
  • The Cartesian Plane, Distance and Midpoint
  • Functions: Domain, Range and Notation

Source. Handwritten teaching notes, Week 5, pages 6-8.

This page is an original exposition prepared for the KEVOS® knowledge library. It restates, reorganises and verifies the mathematics of the supplied teaching notes; it is not a reproduction of them. Numerical values taken from the notes are identified as source examples and are not presented as engineering standards.

Continue learning

NEXT LESSON →The Four Forms of a Straight LineGuide · Engineering MathematicsParallel and Perpendicular LinesGuide · Engineering MathematicsGraphing Linear Equations with Slope and InterceptsGuide · Engineering MathematicsThe PMI Learning Curve (Start Here)Guide · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®