Skip to content
RK Calculator
Menu

Slope Calculator

Find the slope, angle, distance and equation of the line through two points, or the second point from one point, the slope or angle and a distance.

Change the values and press Calculate to work out your own figures.

Slope from two points

Enter two points.

About x₁First point, x.
About y₁First point, y.
About x₂Second point, x.
About y₂Second point, y.
Result
Slope m
2
As a decimal
2
Angle of the line
63.43494882°
Direction from point 1 to point 2
63.43494882°
Distance
√5
Equation
y = 2x + 1
Intercepts
x-intercept (-1/2, 0); y-intercept (0, 1)

The slope of the line through (1, 3) and (2, 5) is 2.

Show the working
  1. Δx = 1, Δy = 2
  2. m = Δy ÷ Δx = 2

Second point from a point, slope or angle, and distance

Enter a point, the distance, and either the slope or the angle.

About x₁First point, x.
About y₁First point, y.
About distanceHow far along the line (greater than 0).
About slope (m)Enter the slope or the angle.
About angle of the line (°)Measured from the positive x-axis.
Result
Second point
(5, 4)
Or, the other way
(-3, -2)
Angle
36.86989765°
Slope
3/4

Moving 5 from (1, 1) along the line reaches (5, 4) (or (-3, -2) the other way).

Show the working
  1. x₂ = x₁ ± d cos θ, y₂ = y₁ ± d sin θ, with θ = arctan m

How to use it

Enter two points. Enter a point, the distance, and either the slope or the angle.

Enter coordinates as whole numbers, decimals or fractions (3/4). Show the working gives the formula with your numbers.

Key facts

m = (y₂ − y₁) ÷ (x₂ − x₁); θ = arctan m

Slope and angle

A slope of 1 is 45°; a slope of 2 is about 63.43°. Vertical lines have no slope.

Questions

What is the slope through (1, 3) and (2, 5)?

2.

Through (3, 4) and (7, 5)?

1/4.

Formulas

m = (y₂ − y₁) ÷ (x₂ − x₁); θ = arctan m

Sources

Limitations

  • Vectors have two or three components (leave z blank for 2-D).
  • Earth distances assume the WGS 84 ellipsoid (sea level).

Formula version 0.1.0Reviewed