Slope Calculator
Adjust the inputs below. Results update as you type.
How it works
Slope m = (y₂−y₁)/(x₂−x₁). Y-intercept b: plug one point into y = mx + b and solve. Slope represents rise over run—steepness and direction. Positive slope: left to right upward. Negative: downward. Zero: horizontal. Undefined: vertical (division by zero). Angle from horizontal: θ = arctan(m). Distance between points: √((x₂−x₁)²+(y₂−y₁)²).
Input guidance
- Check units and decimal placement before running calculations.
- For percentage and ratio tasks, define the baseline value clearly.
- Use rounded output carefully and keep full precision for intermediate steps.
The formula
Slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁). It measures the steepness and direction of a line between two points.
Worked example
Between (1, 2) and (4, 11): slope = (11 − 2) ÷ (4 − 1) = 9 ÷ 3 = 3.
More examples to test
- Baseline example: solve with clean numbers first to verify formula direction.
- Edge-case example: test near-zero or boundary values to avoid interpretation errors.
How to interpret results
Use outputs as quick checks, then verify with step-by-step work for graded or high-stakes use.
When this can be inaccurate
Errors usually come from unit mismatch, wrong baseline assumptions, or rounding too early in multistep problems.
Change history
- July 2026: Quality-reviewed for publication with formula checks and explanatory copy updates.
Site-wide corrections also appear on the corrections log.
Build math and logic skills with guided lessons
Educational platform recommendation.
Frequently asked questions
What does slope represent?+
The rate of change of y with respect to x — how much the line rises (or falls) for each unit moved horizontally.
What is a negative slope?+
A line that falls left to right. Positive slopes rise, zero slope is horizontal, and a vertical line has undefined slope.
How does slope relate to a line's equation?+
In y = mx + b, m is the slope and b the y-intercept, so slope directly sets the line's tilt.
Why do my classroom and calculator results differ?+
Differences usually come from rounding conventions, order-of-operations handling, or different baseline assumptions.
What is the safest way to validate an answer?+
Recompute with units shown and check against a second method or manual arithmetic for critical problems.