Use this free online slope calculator to find the slope of a line along with the equation of the line with the given two sets of X and Y coordinates. A slope describes the steepness of a line. It is also known as gradient. The slope or gradient of a straight line can be calculated when two co-ordinate points (x1,y1) and (x2,y2) are given. In the below slope calculator, you can find the equation of the straight line with two points.
Find the Equation of the Straight Line with Two Points (x1 , y1) as (1,2) and (x2 , y2) as (3,4).
Apply the values in the formula of slope.
(y1 - y2) / (x1 - x2) = ( 2-4 / 1-3). Simplify the values (-2) / (-2) and you will get the slope as 1.
To find the equation of straight line apply the co-ordinate values in the formula
(y – y1) / (y2 – y1 )= (x – x1) / (x2 – x1).
Equation = (y - 2) / (4 - 2) = (x - 1) / (3 - 1). Simplify the equation ( y - 2) / 2 = (x - 1) / 2.
Cross multiply the values, 2 (y - 2) = 2 (x - 1)
Simplifying, 2y - 4 = 2x - 2
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.