# Slope Calculator

The slope or gradient of a straight line can be calculated when two co-ordinate points (x1,y1) and (x2,y2) are given. A slope, also known as gradient describes the steepness of a line. This free online slope calculator helps you find the slope and equation of the straight line with two points.

## Find the Equation of the Straight Line with Two Points

The slope or gradient of a straight line can be calculated when two co-ordinate points (x1,y1) and (x2,y2) are given. A slope, also known as gradient describes the steepness of a line. This free online slope calculator helps you find the slope and equation of the straight line with two points.

Code to add this calci to your website

#### Formula:

**Slope :**
m = (Y_{1} - Y_{2}) / (X_{1} - X_{2})
**Equation of Straight Line :**
(Y - Y_{1}) / (Y_{2} - Y_{1}) = (X - X_{1}) / (X_{2} - X_{1})
**Where,**
m = Slope
X_{1} , X_{2} = X Axis Points
Y_{1}, Y_{2} = Y Axis Points
In this online slope calculator, just input the x and y co-ordinates and the calculator will automatically update you with the slope and the equation of the straight line with two points. In simple we can say that, a slope describes you how steep a line is, or how much y increases as x increases. The slope is always constant anywhere on the line. Apart from slope calculator, this page also shows you the individual formulas for the calculation of slope and the equation of the straight line. Use this equation of straight line calculator to find the straight line equation using two points.

### Example

Find the Equation of the Straight Line with Two Points (x_{1} , y_{1}) as (1,2) and (x_{2} , y_{2}) as (3,4).

#### Step 1:

Apply the values in the formula of slope.

(y_{1} - y_{2}) / (x_{1} - x_{2}) = ( 2-4 / 1-3). Simplify the values (-2) / (-2) and you will get the slope as 1.

#### Step 2:

To find the equation of straight line apply the co-ordinate values in the formula

(y – y_{1}) / (y_{2} – y_{1} )= (x – x_{1}) / (x_{2} – x_{1}).

**Equation** = (y - 2) / (4 - 2) = (x - 1) / (3 - 1). Simplify the equation ( y - 2) / 2 = (x - 1) / 2.

#### Step 3:

Cross multiply the values, 2 (y - 2) = 2 (x - 1)

#### Step 4:

Simplifying, 2y - 4 = 2x - 2

#### Step 5:

Bring all the unknown values to the left and whole numbers to the right.

It will become as -2x + 2y = 2 which is the equation of the straight line.