Finding Slope with Two Points
Measurements, material estimation, cutting calculations
Refrigerant charging, airflow, system sizing
The slope of a line measures how steep it is β how much the line rises or falls as you move from left to right. In practical terms, slope is a rate of change: how much one quantity changes for every unit change in another.
The Slope Formula
Given two points and , the slope is:
- Rise is the vertical change (difference in -values)
- Run is the horizontal change (difference in -values)
Rise and Run Between Two Points
It does not matter which point you call βpoint 1β and which you call βpoint 2,β as long as you are consistent β subtract in the same order on top and bottom.
Types of Slope
| Slope Type | Value of | What the Line Looks Like |
|---|---|---|
| Positive | Line goes up from left to right | |
| Negative | Line goes down from left to right | |
| Zero | Horizontal line (flat) | |
| Undefined | Division by zero | Vertical line |
Step-by-Step Worked Examples
Example 1: Positive Slope
Find the slope of the line through and .
Step 1 β Label the points:
, , ,
Step 2 β Substitute into the formula:
Answer: The slope is . The line rises 2 units for every 1 unit you move to the right.
Example 2: Negative Slope
Find the slope of the line through and .
Step 1 β Label the points:
, , ,
Step 2 β Substitute into the formula:
Answer: The slope is . The line falls 2 units for every 1 unit you move to the right.
Example 3: Zero Slope (Horizontal Line)
Find the slope of the line through and .
Answer: The slope is . Both points have the same -value, so the line is perfectly horizontal.
Example 4: Undefined Slope (Vertical Line)
Find the slope of the line through and .
Answer: The slope is undefined. Both points have the same -value, so the line is vertical. You cannot divide by zero.
Slope as Rate of Change
In real-world applications, slope represents how one measurement changes relative to another:
- Temperature rising 3 degrees per hour is a slope of 3
- A budget decreasing by $50 per week is a slope of
- A flat fee that stays the same regardless of quantity is a slope of 0
The units of slope are always .
Real-World Application: Carpentry β Calculating Roof Pitch
A carpenter needs to determine the pitch (slope) of a roof. The roof rises from a point at the edge of the wall to the peak. Measurements show:
- At the wall edge (horizontal distance 0 ft from the wall), the roof height is 8 ft
- At 12 ft horizontally from the wall, the roof height is 14 ft
Using the two points and :
In construction, this is expressed as a 6:12 pitch β the roof rises 6 inches for every 12 inches of horizontal run. A 6:12 pitch is a moderate slope suitable for most roofing materials including standard shingles. The carpenter uses this value to calculate rafter lengths, material quantities, and to verify the roof meets building code requirements for water drainage.
Common Mistakes to Avoid
-
Swapping the order of subtraction. If you subtract from in the numerator, you must subtract from in the denominator β not the other way around.
-
Confusing βno slopeβ with βzero slope.β A horizontal line has zero slope (the number 0). A vertical line has undefined slope (no number at all). These are very different.
-
Forgetting negative signs. When a point has a negative coordinate, be careful with subtraction: .
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Find the slope through and .
Answer:
Problem 2: Find the slope through and .
Answer:
Problem 3: Find the slope through and .
Answer: (horizontal line)
Problem 4: A ramp rises from ground level to a loading dock 3 feet high over a horizontal distance of 36 feet. What is the slope?
Points: and
Answer: . The ramp rises 1 inch for every 12 inches of run, which meets ADA accessibility guidelines (maximum 1:12 slope).
Problem 5: An HVAC technician records that a room was 58 degrees F at 8:00 AM and 72 degrees F at 8:28 AM after turning on the heater. What is the rate of temperature change per minute?
Points: and
Answer: The temperature rises at 0.5 degrees F per minute.
Key Takeaways
- The slope formula is β rise over run
- Positive slope means the line goes up; negative slope means it goes down
- Zero slope is a horizontal line; undefined slope is a vertical line
- Slope is a rate of change β it tells you how fast one quantity changes relative to another
- Always subtract in the same order in both the numerator and denominator
Return to Algebra for more topics in this section.
Next Up in Algebra
Last updated: March 28, 2026