Mortgage & Loans

Investing & Retirement

Salary, Tax & Business

India Finance

Health & Fitness

Math & Statistics

Date, Time & Everyday

Home, Construction & Science

Unit Converters

Slope Calculator

Enter two points (or one point and a slope) to get the slope as a fraction and decimal, the angle and grade, and the equation of the line in every common form.

Free, no sign-upPrivate — runs in your browserUpdated October 2026
Live
I know
Slope (m)
2
Rising left to right
Equation (slope-intercept)
y = 2x − 1
Angle with the x-axisGrade 200%
63.4349°
y-intercept / x-intercept
-1 / 0.5
Distance between pointsΔx = 4, Δy = 8
8.9443
  • y = 2x − 1
05101512345671 · y = 2x − 1: 12 · y = 2x − 1: 33 · y = 2x − 1: 54 · y = 2x − 1: 75 · y = 2x − 1: 96 · y = 2x − 1: 117 · y = 2x − 1: 13
Step-by-step solution
  1. Rise: Δy = y₂ − y₁ = 11 − 3 = 8. Run: Δx = x₂ − x₁ = 6 − 2 = 4.
  2. Slope: m = Δy ÷ Δx = 8 ÷ 4 = 2.
  3. y-intercept: b = y₁ − m·x₁ = 3 − 2 × 2 = -1.
  4. Slope-intercept form: y = 2x − 1.
  5. Angle: θ = tan⁻¹(m) = tan⁻¹(2) = 63.4349°; grade = m × 100 = 200%.

Equation of the line

FormEquation
Slope-intercepty = 2x − 1
Point-slopey − 3 = 2(x − 2)
Standard form2x − y = 1
Perpendicular slope-0.5
Angle in radians1.107149
At a glance

Enter two points (or one point and a slope) to get the slope as a fraction and decimal, the angle and grade, and the equation of the line in every common form.

Formulam = (y₂ − y₁) ÷ (x₂ − x₁) = rise ÷ run
Also searched asslope formula · rise over run · equation of a line · slope intercept form · point slope form · gradient calculator

How to use the slope calculator

Choose Two points and enter the coordinates (x₁, y₁) and (x₂, y₂), or choose A point and the slope if you already know m. The calculator gives the slope as a reduced fraction and a decimal, tells you whether the line rises or falls, and works out the angle the line makes with the x-axis, the percent grade, the intercepts and the distance between the points. It also writes the equation of the line in slope-intercept, point-slope and standard form, with a small chart of the line.

The slope formula

m = (y₂ − y₁) ÷ (x₂ − x₁) = rise ÷ run

Slope measures steepness: how much y changes for every one-unit increase in x. Once you have the slope, the rest follows:

b = y₁ − m·x₁   |   y = mx + b   |   θ = tan⁻¹(m)   |   grade = m × 100%

Worked example

Find the line through (2, 3) and (6, 11).

  1. Rise: 11 − 3 = 8. Run: 6 − 2 = 4.
  2. Slope: m = 8 ÷ 4 = 2. For every step right, the line climbs two steps.
  3. Intercept: b = 3 − 2 × 2 = −1.
  4. Equation: y = 2x − 1. In point-slope form, y − 3 = 2(x − 2); in standard form, 2x − y = 1.
  5. Angle: tan⁻¹(2) ≈ 63.43°; grade 200%.

The order of the points does not matter, as long as you subtract in the same order on the top and bottom: (3 − 11) ÷ (2 − 6) = −8 ÷ −4 = 2 as well.

Reading the slope

SlopeWhat the line does
Positive (m > 0)Rises from left to right
Negative (m < 0)Falls from left to right
Zero (m = 0)Horizontal: y = constant
Undefined (Δx = 0)Vertical: x = constant

The larger the absolute value of m, the steeper the line. Two lines are parallel if they have the same slope, and perpendicular if their slopes multiply to −1 — the perpendicular slope to 2 is −½. The calculator lists the perpendicular slope in the equation table.

Tip: Slope, percent grade and angle are three ways of saying the same thing. A 1-in-12 wheelchair ramp has slope 0.0833, a grade of 8.33% and an angle of about 4.76°. A 100% grade is a 45° angle, not a vertical wall.

Forms of a linear equation

  • Slope-intercept form, y = mx + b — best for graphing: start at b on the y-axis and move with slope m.
  • Point-slope form, y − y₁ = m(x − x₁) — the quickest to write when you know one point and the slope.
  • Standard form, Ax + By = C — uses whole-number coefficients, convenient for solving systems of equations and finding intercepts. The calculator reduces A, B and C to the smallest integers with A positive.

Slope in the real world

Slope describes the pitch of a roof (often given as rise per 12 units of run), the gradient of a road or railway, the steepness of a ramp or staircase, and any rate of change in a graph — speed on a distance–time graph, or cost per item on a price chart. In economics and science, the slope of a best-fit line is the key number linking two variables.

The straight-line distance between your two points is the hypotenuse of the rise-and-run triangle, which the distance calculator computes in 2D or 3D. To find the point halfway along the segment, use the midpoint calculator, and for the angles and sides of the right triangle formed by rise and run, try the Pythagorean theorem calculator. For staircases specifically, the stair calculator turns rise and run into step dimensions.

Built and reviewed by the Calcivia editorial team following our editorial policy · Last updated .
Cite or link to this page

Using this slope calculator in an article, report or homework? Copy a citation or a ready-made link:

APACalcivia. (2026). Slope Calculator. Retrieved October 31, 2026, from https://www.calcivia.com/slope-calculator/
MLA"Slope Calculator." Calcivia, 2026, https://www.calcivia.com/slope-calculator/. Accessed 31 Oct. 2026.
HTML link<a href="https://www.calcivia.com/slope-calculator/">Slope Calculator</a> by Calcivia
Was this calculator helpful?

Frequently asked questions

How do you find the slope from two points?

Subtract the y-values and divide by the difference in x-values: m = (y₂ − y₁) ÷ (x₂ − x₁). For (1, 2) and (4, 8), m = 6 ÷ 3 = 2.

What does an undefined slope mean?

An undefined slope happens when x₂ − x₁ = 0, so the line is vertical. You cannot divide by zero, and the line’s equation is simply x = a constant.

How do you convert slope to an angle?

Take the inverse tangent: θ = tan⁻¹(m). A slope of 1 is 45°, a slope of 0.5 is about 26.57°, and a slope of 2 is about 63.43°.

How do I write the equation of a line from two points?

Find the slope m, then the intercept b = y₁ − m·x₁, and write y = mx + b. For (2, 3) and (6, 11), m = 2 and b = −1, so y = 2x − 1.

What is the difference between slope and grade?

Grade is slope expressed as a percentage: multiply the slope by 100. A road that rises 6 m over 100 m of horizontal distance has slope 0.06 and a 6% grade.

Related calculators