Easily calculate the slope, length/distance, angle in degrees, and the equation of a line given two coordinate points (x₁, y₁) and (x₂, y₂) with our intuitive online tool. Perfect for students, engineers, and anyone needing quick geometric analysis to understand line properties.
Formula:
To calculate the slope (m), length/distance (d), angle (θ), and equation of a line (y = mx + b) between two points (x₁, y₁) and (x₂, y₂), we use the following formulas:
- Slope (m):
m = (y₂ - y₁) / (x₂ - x₁) - Length/Distance (d):
d = √((x₂ - x₁)² + (y₂ - y₁)²) - Angle (θ):
θ = atan(m)(result converted to degrees from radians) - Equation of Line (y = mx + b): First, calculate 'm'. Then, find 'b' using one of the points:
b = y₁ - m * x₁.
Special Cases: For vertical lines (where x₂ - x₁ = 0), the slope is undefined, and the equation is x = x₁. For horizontal lines (where y₂ - y₁ = 0), the slope is 0, and the equation is y = y₁.