How to use Slope calculator
- 01Type the first pointx₁ and y₁.
- 02Type the second pointx₂ and y₂.
- 03Read the slopeAnd the line’s equation.

Rise over run.
Slope m = (y₂ − y₁) ÷ (x₂ − x₁): how far the line goes up for each step to the right. The line through (−1, 2) and (3, 8) rises 6 over a run of 4, so m = 3/2. The y-intercept is b = y₁ − m × x₁, giving y = (3/2)x + 7/2, or 3x − 2y = −7 in standard form. The angle is arctan(m). Equal x values make a vertical line with no defined slope.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What is the slope between (1, 2) and (3, 6)?
(6 − 2) ÷ (3 − 1) = 4 ÷ 2 = 2, and the line is y = 2x.
What does a negative slope mean?
The line goes down from left to right. A slope of −1/2 drops 1 unit for every 2 units to the right.
How do I turn a slope into an angle or a grade?
The angle is arctan(slope): a slope of 1 is 45°. The grade is slope × 100%, so a slope of 0.08 is an 8% grade, about 4.57°.
Is what I type sent anywhere?
No. The calculation runs in your browser and nothing you type leaves your device.