Slope and Intercept Explained
Slope measures a line's rate of change; the intercept locates its vertical-axis crossing. Follow worked examples, check exact equations, and handle horizontal and vertical lines with confidence.
Worked examples · Exact fractions · Graphing checks
Try the two-point exampleWhat slope and intercept actually mean
For two distinct points and with , slope is vertical change divided by horizontal change. These signed changes are often called rise and run. Read the coordinate values on the axes, rather than counting squares without checking their scale.
In slope-intercept form , the letter is a number, while the vertical-axis intercept is the point . A positive slope rises from left to right; a negative slope falls. Moving the line up or down changes its intercept but leaves its slope unchanged.
Definitions: OpenStax on slope and slope-intercept form.
Slope-intercept form
Best when you know the rate and vertical-axis crossing .
Point-slope form
Best when you know a finite slope and any point on the line.
Standard form
Can describe vertical lines too. At least one of and must be nonzero.
Example one: find a line from two points
Find the line through and . Neither point is on the vertical axis, so neither given vertical coordinate is automatically the intercept. Keep the calculation exact and verify the final equation using both points.
1. Find rise and run
Subtract coordinates in the same point order. Reversing both differences gives the same slope; reversing only one changes its sign.
2. Divide to find slope
The line rises two units for every one unit to the right. Using the opposite point order also gives .
3. Solve for the intercept
Therefore , and the vertical-axis intercept is . Point-slope form gives the same result: .
4. Check both original points
Both substitutions return the given vertical coordinates. That confirms the equation independently of how the graph looks.
- Round point
- Square point
- Dashed step
- , then .
- Diamond: vertical-axis crossing
- Cross: horizontal-axis crossing
Find the other intercept
The horizontal-axis intercept occurs where . Substitute zero for the output, then solve for the input. For a nonhorizontal line, the general expression is ; it requires .
The horizontal-axis intercept is , not . Writing each crossing as a coordinate pair prevents the two intercepts from being swapped.
Check these exact points in the slope calculatorExample two: a negative fractional slope
Now use and . Moving right increases the horizontal coordinate, while the vertical coordinate decreases. A negative slope is therefore expected before doing any arithmetic.
1. Keep the negative coordinate in parentheses
The run is , not : subtracting a negative coordinate increases the difference. Preserve the fraction rather than rounding during the next step.
2. Calculate the intercept
The line crosses the vertical axis at . Starting there, moving two units right and one down reaches another point on the line.
3. Verify both points
Setting gives , so the horizontal-axis intercept is . A negative slope does not require a negative intercept.
Example three: rearrange standard form
For with , isolate before reading the slope. The coefficient of in the original standard form is not generally the slope.
1. Start with the equation
2. Subtract the horizontal term
3. Divide every term by the vertical coefficient
The slope is , the vertical-axis intercept is , and the horizontal-axis intercept is . Check the crossings in the original equation: and .
If and , the equation instead gives the vertical line . If , it does not specify a unique line: allows every point, while allows no point.
See OpenStax: Find the Equation of a Line for the method. The Linear Equation Solver can check a single-variable intercept calculation.
How to graph a line from slope and intercept
1. Label axes and scale
Choose a readable interval for each axis. Equal coordinate units should occupy equal lengths if the visual angle is to represent the numerical slope. With different axis scales, calculate from coordinates rather than judging steepness by eye.
2. Mark the intercept
For , plot . The intercept is on the vertical axis because its horizontal coordinate is zero. A negative intercept goes below the origin, not to its left.
3. Use rise and run
Rewrite the slope as . Move one unit right and two up to ; repeat to reach . You can also move one left and two down. For negative slope, a rightward step goes down.
4. Draw and check
Connect the points with a straight line and extend it in both directions unless a stated domain restricts it. Check another point by substitution. Two marked points do not turn an unrestricted line into a finite segment.
Use square graph paper for a hand sketch. The Letter graph paper guide explains accurate printing; assign a mathematical value to each grid interval before plotting.
Horizontal, vertical and identical-point cases
Horizontal: zero slope
The distinct points and define . The output never changes. There is a vertical-axis intercept at and no horizontal-axis crossing.
Check horizontal pointsVertical: undefined slope
The distinct points and define . The run is zero and the rise is nonzero. Its slope is undefined, not zero or an ordinary real number called infinity. It crosses the horizontal axis at .
Check vertical pointsIdentical: no unique line
Entering twice supplies only one location. The expression does not choose a direction. Infinitely many lines pass through that point, so another distinct point or an independent slope is needed.
Check identical pointsAxis-overlap cases deserve special care: is the horizontal axis itself and has infinitely many horizontal-axis intersections. Similarly, is the vertical axis and has infinitely many vertical-axis intersections. A vertical line away from that axis has no vertical-axis intercept.
Parallel and perpendicular lines
Distinct nonvertical parallel lines have equal slopes but different intercepts. Two nonvertical perpendicular lines satisfy . The negative-reciprocal rule requires a nonzero starting slope; a horizontal line is perpendicular to a vertical line instead.
For example, and are parallel. A line with slope is perpendicular to them. Equal slopes and equal intercepts describe the same line, not two distinct parallel lines.
Read slope with units and a meaningful domain
A constant-rate tank example
Suppose a tank starts with of water and fills at , with no outflow. Let be elapsed time in minutes and the volume in litres. Until the tank reaches its capacity, the model is:
The slope is and the initial volume is . After four minutes, , meaning . The tank reaches capacity at minutes. Continuing this formula afterward would ignore the capacity assumption.
The algebraic horizontal-axis crossing is , outside the model's elapsed-time domain. An intercept can be mathematically valid without representing an observed event. Likewise, real data need not follow a constant-rate line just because two observations determine one.
Slope, midpoint and distance answer different questions
For and , the slope is . Their midpoint is , while their segment length is when both axes use compatible equal-length units. Rate, location and length are different quantities.
Use the Midpoint Calculator or Distance Formula Calculator for those quantities. The Math Formulas library connects these coordinate methods.
Check your understanding
Try each problem before opening the answer. Name the slope, give the intercept as a point, and check a substitution.
Find the line through and .
The vertical-axis intercept is and the horizontal-axis intercept is . Check the second point: .
A line has slope and passes through . Find its intercept.
The vertical-axis intercept is . Substitution gives , which checks the supplied point.
Before accepting an answer: check point order, put negative coordinates in parentheses, isolate before reading coefficients, distinguish from , and test for zero run before dividing. Keep exact fractions until the final display.
Frequently Asked Questions
What is the difference between slope and the intercept?
How do I find the intercept when I only know two points?
Can the slope and intercept both be negative?
Is an undefined slope the same as zero slope?
Do identical points determine a vertical line?
Does every line have exactly one intercept on each axis?
Is slope the same as an angle or a percentage?
How can I check a line equation without relying on its graph?
Sources and calculation checks
The definitions and line-equation methods are supported by these primary textbook references. The numerical examples and graph were checked with exact fractions, substitution into the original equations, and equal coordinate scaling.
- OpenStax: Understand Slope of a Line
Rise and run, ordered coordinate differences, horizontal lines and vertical lines.
- OpenStax: Use the Slope-Intercept Form
Reading the intercept, graphing a line, and interpreting parallel and perpendicular directions.
- OpenStax: Find the Equation of a Line
Point-slope and two-point methods, with algebraic rearrangement into slope-intercept form.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. The method was last reviewed on . No independent professional review is claimed.
Methodology
The editorial team checks definitions, examples, linked tools, and cited references. Dates shown here come from the page's maintained publication record.
Read the editorial methodologyDates and sources
Published . Updated .