Slope Calculator: Slope, Line Equation, Angle and Percent Grade From Two Points

Enter two points, an equation or a slope and a point. You get the slope, the line in slope-intercept, point-slope and standard form, both intercepts, the angle and percent grade, and a graph with the rise and run drawn on it.

Slope Calculator

Pick a tab, type your numbers and press Calculate. Tap an example chip to see the working first.

How to Find the Slope Between Two Points

Slope measures steepness: how far a line goes up for each step across. The formula is m = (y₂ − y₁) ÷ (x₂ − x₁), rise over run.

Slope through (2, 3) and (6, 11)

  1. Rise: 11 − 3 = 8. Run: 6 − 2 = 4.
  2. m = 8 ÷ 4 = 2.
  3. Equation: y − 3 = 2(x − 2), so y = 2x − 1.

Answer: m = 2, y = 2x − 1

It does not matter which point you call first, as long as you subtract in the same order on top and bottom. Mixing the order flips the sign, which is the single most common slope error.

Positive, Negative, Zero and Undefined Slope

SlopeLine looks likeExample
Positiverises left to right(−1, 2) and (3, 10): m = 2
Negativefalls left to right(−1, 4) and (5, −2): m = −1
Zerohorizontal(0, 4) and (7, 4): m = 0
Undefinedvertical(3, 5) and (3, −2): run = 0

Vertical lines are the odd one: the run is 0 and you cannot divide by zero. The equation is x = 3 instead of y = something.

Find the Slope from an Equation

Rearrange into y = mx + b and read off the coefficient of x. For 3x + 4y = 12: 4y = −3x + 12, so y = −(3/4)x + 3. The slope is −3/4 and the y-intercept is 3. A shortcut for standard form Ax + By = C is m = −A ÷ B. The x-intercept is found by setting y = 0: here 3x = 12, so x = 4.

The Three Forms of a Line

FormLooks likeBest for
Slope-intercepty = mx + bgraphing quickly
Point-slopey − y₁ = m(x − x₁)building from a point and slope
StandardAx + By = Cintercepts and systems

The Write tab builds all three from a slope and a point, a slope and y-intercept, two points, or two intercepts.

Parallel and Perpendicular Lines

Parallel lines have equal slopes. Perpendicular lines have slopes that multiply to −1 (negative reciprocals). The line 2x + 3y = 6 has slope −2/3, so a perpendicular line has slope 3/2. Through (4, −1): y + 1 = (3/2)(x − 4), so y = (3/2)x − 7. The Parallel / perpendicular tab can also decide whether two given lines are parallel, perpendicular or neither, and find where they cross.

Slope as Percent Grade, Angle and Ratio

Roads, roofs and ramps use grade and angle. Percent grade = slope × 100. A wheelchair ramp at the maximum 1:12 slope has a grade of 8.33% and an angle of 4.76°. A 6% road grade is 3.43°. A 30° roof has a slope of tan 30° ≈ 0.577, or 57.7%. The Grade tab converts between slope, percent, angle and "1 in n".

Average Rate of Change and Collinear Points

For a curve, the slope of the line joining two points on it is the average rate of change. For f(x) = x² − 3x between x = 1 and x = 4: f(1) = −2 and f(4) = 4, so the average rate is 6 ÷ 3 = 2. This is the idea that leads to derivatives. Three points are collinear if every pair has the same slope: (1, 2), (3, 6) and (5, 10) all give 2.

Slope in the Real World: Actual Figures

SituationSlopePercent gradeAngle
Wheelchair ramp (ADA maximum)1 : 128.33%4.76°
Roof pitch 6 : 120.550%26.57°
Road sign “10% grade”0.1010%5.71°

Percent grade is slope × 100, and the angle is arctan of the slope. A 100% grade is only 45°, not vertical.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: memorising y = mx + b without knowing m is a rate. “Rise per run” is the idea, the letters are labels.

Underrated: checking the sign with a quick sketch. If the line goes up as you read left to right, the slope must be positive.

Plain wrong: subtracting the coordinates in different orders. (y₂ − y₁) ÷ (x₂ − x₁) needs the same point first in both parts, or the sign flips.

Practice with Answers

  1. Slope through (1, 4) and (5, 12)
    Answer2
  2. Slope of 5x − y = 7
    Answer5
  3. Slope of a line perpendicular to y = −(2/5)x + 1
    Answer5/2
  4. Slope for a 15% grade as a fraction
    Answer3/20
  5. Equation through (0, 3) with slope −2
    Answery = −2x + 3

Why Students Get Stuck on Slope, and What a Good Calculator Should Do

Searching for help with slope usually starts late at night with one problem that will not work out. Rise over run is simple, but order and signs are not. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to get slope, the line equation and the angle from two points, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the rise and run written out
  • Wants the line equation as well
  • Wants angle and percent grade

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Slope between (1,2) and (4,8)
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Slope: Questions People Ask

Does it matter which point I call point 1?

No, as long as you subtract in the same order for y and x. Swapping both flips two signs and the slope stays the same.

Why is the slope of a vertical line undefined?

Its run is zero, and division by zero has no value.

What is the slope of a horizontal line?

Zero, because the rise is zero for any run.

How do I find the y-intercept?

Put x = 0 into the equation, or compute b = y₁ − m·x₁ from any point.

How do I convert slope to degrees?

Angle = arctan(m). A slope of 1 is 45°.

Can I find a missing coordinate if I know the slope?

Yes. The Missing coordinate tab solves for any one of x₁, y₁, x₂, y₂.

How do I find the slope between two points?

Subtract the y-values and divide by the difference of the x-values: m = (y₂ − y₁) ÷ (x₂ − x₁).

What is the slope of a vertical line?

Undefined, because the run is zero and you cannot divide by zero. A horizontal line has slope 0.

How do I convert slope to a percent grade or an angle?

Percent grade = slope × 100. Angle = arctan(slope). A slope of 0.5 is a 50% grade and 26.57°.

↑