Slope Calculator

Find the slope of a line from two points, a point and a slope, or an equation, with the working, every form of the equation and a graph.

Two points on the line
Point A
Point B

Whole numbers, decimals or fractions like 1/2. Paste (2, 3), (6, 11) to fill every box.

Try
m = ?
slope

Type two points to find the slope of the line through them.

Equation of the line

Slope intercept formy = mx + b
Point slope formy − y₁ = m(x − x₁)
Standard formAx + By = C

Graph

Open circles mark where the line crosses the axes.

About the line

Slope as a decimal
Not yet
Angle with the x axis
Not yet
Percent grade
Not yet
Direction
Not yet
Y intercept
Not yet
X intercept
Not yet

Parallel and perpendicular

Parallel slope
Not yet
Perpendicular slope
Not yet
Parallel line
Not yet
Perpendicular line
Not yet

Table of values

Shows once the line is in.

Working

The steps show once all four boxes have a number.

Through the point
Point P

The parallel and perpendicular lines through this point are written under the answer.

Type two points and the slope, the equation of the line and its graph appear together, worked out with your numbers.

Nothing to install or sign up for, and every coordinate you type stays in your browser.

  • Exact fractions, never rounded
  • Three forms of the equation
  • A graph you can drag

How to find the slope of a line

Type two points, read the slope as a fraction, then check the line on the graph or start from an equation.

  1. Enter two points

    Type x₁, y₁, x₂ and y₂, or paste (2, 3), (6, 11) into any box. Fractions like 1/2 and decimals like 0.75 work too.

  2. Read the slope

    The slope shows as a fraction in lowest terms with its decimal, then y = mx + b, point slope and standard form.

  3. Check the graph

    The line is drawn through your points with rise and run marked. Drag a point on the graph and every answer follows.

What is the slope formula?

Slope measures how steep a line is: how far it goes up for each step to the right. The slope formula is m = (y₂ − y₁) / (x₂ − x₁), the change in y over the change in x, which is why slope is called rise over run. In the UK it is often called the gradient.

For the points (2, 3) and (6, 11), the rise is 11 − 3 = 8 and the run is 6 − 2 = 4, so m = 8/4 = 2. The line climbs 2 units for every 1 unit it moves right. Taking the points the other way round gives −8/−4, which is the same slope.

Subtract in the same order on top and bottom. Mixing them up, as in (11 − 3) / (2 − 6), flips the sign and gives −2. The Working box writes out each subtraction with your own numbers, so a slipped sign is easy to spot.

What is slope intercept form?

Slope intercept form writes a line as y = mx + b, where m is the slope and b is the y intercept, the height at which the line crosses the y axis. In y = 3x + 2, the line rises 3 for each step right and passes through (0, 2).

To find b from two points, put the slope and either point into y = mx + b. With m = 2 and the point (2, 3), 3 = 2 × 2 + b, so b = −1 and the equation is y = 2x − 1. The other point, (6, 11), gives the same b.

An equation in standard form converts by solving for y. From 3x + 2y = 6, take 3x from both sides to get 2y = −3x + 6, then divide by 2: y = −3/2x + 3. The Equation tab does this for any straight line you type.

What is point slope form?

Point slope form is y − y₁ = m(x − x₁). It needs only the slope and one point on the line, so it is often the quickest equation to write down: a slope of 2 through the point (2, 3) gives y − 3 = 2(x − 2).

Opening the brackets turns it into slope intercept form: y − 3 = 2x − 4, and adding 3 to both sides gives y = 2x − 1. The Point and slope tab writes both, along with the standard form of the same line, 2x − y = 1.

Positive, negative, zero and undefined slope

A positive slope goes up from left to right and a negative slope goes down: the line through (−1, 4) and (3, 1) has a slope of −3/4, dropping 3 units for every 4 across. The larger the number, sign aside, the steeper the line.

A horizontal line such as y = 4 has a slope of zero, since y never changes. A vertical line such as x = 3 has an undefined slope: its run is 0, and dividing by zero has no answer. The calculator names each case and still draws the line.

How to find slope on a graph

Pick two points where the line crosses the grid exactly, then count squares: up or down for the rise, then across for the run. Counting down makes the rise negative. Rise divided by run is the slope, the same number the formula gives.

A table of values works the same way. If x goes 0, 1, 2, 3 and y goes 5, 8, 11, 14, then y grows by 3 each time x grows by 1, so the slope is 3. When x jumps unevenly, divide the change in y by the change in x between any two rows.

Slope to degrees and percent

The angle a line makes with the x axis is the inverse tangent of its slope. A slope of 1 is 45°, and a gentle ramp slope of 1/12 is about 4.76°. A negative slope gives a negative angle, measured down from the x axis.

Percent grade is the slope times 100, the way road signs and ramp guides give it, so 1/12 is about 8.33%. Every answer lists the angle and the grade beside the fraction, so a slope from class can be read as a gradient on a hill too.

What this point slope form calculator does

  • Perpendicular slope

    Parallel and perpendicular slopes (the negative reciprocal) and their lines through a point.

  • X and y intercepts

    Where the line crosses each axis, as exact points like (1/2, 0), with both marked on the graph.

  • Distance and midpoint

    The distance formula gives √80 = 4√5 for (2, 3) and (6, 11), and the midpoint formula gives (4, 7).

  • Standard form

    Every line also as Ax + By = C in whole numbers with A positive, so 2x − y = 1 matches answer keys.

  • Slope from an equation

    Type y = 3x + 2, 3x + 2y = 6 or y − 4 = −2(x + 1) and read the slope and intercepts of that line.

  • Slope with fractions

    Points like (1/2, 3/4) and (2, 2) are worked exactly, so the slope is 5/6, never a rounded 0.83.

What happens to your points

Nothing leaves this page: the slope, the equation and the graph are all worked out in your browser.

  • Processing

    This slope finder works online, yet every subtraction and point on the graph is done on your device.

  • Storage

    Nothing is saved. Check a whole finding slope worksheet and no point or answer is kept or sent.

  • Account

    No sign-up and no slope app to install: the page works the same on a phone, Chromebook or tablet.

Questions about slope and lines

What is slope in math?

How steep a line is: the change in y divided by the change in x between any two of its points. It is also called the gradient.

How do you find slope with 2 points?

Subtract the y values, then the x values in the same order, and divide: (2, 3) and (6, 11) give 8 ÷ 4, a slope of 2.

How do you find the y intercept?

Put the slope and one point into y = mx + b and solve for b. With m = 2 and the point (2, 3), 3 = 4 + b, so b = −1.

What is the slope of a vertical line?

Undefined. Both points share an x value, so the run is 0 and there is nothing to divide by. Its equation is x = a number.

What is the slope of a horizontal line?

Zero. The y value never changes, so the rise is 0 however far you go. Its equation is y = a number, such as y = 4.

How do you find a perpendicular slope?

Flip the slope and change its sign, the negative reciprocal: 2/3 becomes −3/2. Two perpendicular slopes multiply to −1.

What is b in y = mx + b?

The y intercept: the value of y where the line crosses the y axis, at x = 0. The m in front of x is the slope of the line.

How do you find slope from a table?

Take two rows and divide the change in y by the change in x. For x from 0 to 3 and y from 5 to 14, that is 9 ÷ 3, so 3.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.