# Line Calculator

This tool calculates and plots a line. Calculated properties include equation, slope, y-intercept and angle formed with x-axis.

## Line Formulas

(See representation above)

Line Equation : y = m * x + p

m : slopep : y-intercept

M

_{1}: point 1 of the line with coordinates (x

_{1},y

_{1})

M

_{2}: point 2 of the line with coordinates (x

_{2},y

_{2})

`alpha` : angle between x-axis and the line

Its value is between -90° and 90° and has a positive sign for an increasing line (slope m > 0) and a negative sign for a decreasing line (m < 0).

`m = (y_2-y_1)/(x_2-x_1)`

`p = y_1 - m*x_1 = y_2 - m*x_2`

`alpha = arctan(m)`

`\text{distance}(M_1 , M_2)= sqrt((x_2-x_1)^2 + (y_2-y_1)^2)`

## See also

Coordinate Geometry calculators

Geometry calculators

Mathematics calculators