Slope & Line Equation Calculator
Find the slope through two points and the line's equation in slope-intercept, point-slope and standard form.
Slope (m)
2
- Slope-intercept form
- y = 2x
- Point-slope form
- y − 2 = 2(x − 1)
- Standard form
- 2x − 1y = 0
- y-intercept
- 0
- x-intercept
- 0
- Angle with the x-axis
- 63.43494882°
- Distance between the points
- 6.708203932
Show the work
Rise and run between the points
rise = y₂ − y₁; run = x₂ − x₁
8 − 2; 4 − 1 = rise 6, run 3
Slope = rise ÷ run
m = (y₂ − y₁) ÷ (x₂ − x₁)
6 ÷ 3 = 2
How it works
m = (y₂ − y₁) ÷ (x₂ − x₁); y = mx + b with b = y₁ − m x₁; angle = arctan m
Questions
- How does the slope & line equation calculator work?
- m = (y₂ − y₁) ÷ (x₂ − x₁); y = mx + b with b = y₁ − m x₁; angle = arctan m.
- What do I need to enter?
- x₁, y₁, x₂, y₂. Optional fields can be left blank.
Related tools
- Trapezoid CalculatorFind a trapezoid's area and median from its two bases and height, plus the perimeter if you know the legs.
- Parallelogram & Rhombus CalculatorFind the area, perimeter, height and diagonals of a parallelogram, or a rhombus from its diagonals.
- Ellipse CalculatorFind an ellipse's area, exact perimeter, eccentricity and foci from its two semi-axes.
- Annulus (Ring) CalculatorFind the area of a ring (annulus) between two circles, its width and both circumferences.
- Arc Length & Sector Area CalculatorFind the arc length, sector area, chord and segment area of a circle from its radius and central angle.
- Trig Functions CalculatorFind sin, cos, tan, csc, sec and cot of an angle in degrees or radians — or the inverse functions of a value.
Want this on your site? Embed the slope & line equation calculator.