The Slope Calculator finds every property of a straight line from two points or from a point and slope. Two input modes: Two Points (enter (x₁,y₁) and (x₂,y₂)) or Point + Slope (enter one point and the slope m). Results include the slope as both a decimal and fraction, the line equation in slope-int...
POINT 1 (x₁, y₁)
POINT 2 (x₂, y₂)
SLOPE (m)
4/3
LINE EQUATION
y = 4/3x + 0.6667
ANGLE
53.1301°
Y-INTERCEPT
0.666667
DISTANCE
5
MIDPOINT
(2.5, 4)
PARALLEL SLOPE
4/3
same slope
PERPENDICULAR SLOPE
-3/4
−1/m
↗ Positive slope — line rises left to right
STEP-BY-STEP
Points: (1, 2) and (4, 6)
Δy = 6 − 2 = 4
Δx = 4 − 1 = 3
Slope: m = Δy/Δx = 4/3 = 4/3
y-intercept: b = y₁ − m·x₁ = 2 − 4/3×1 = 0.666667
Line equation: y = 4/3x + 0.6667
Distance: √(Δx²+Δy²) = √(3²+4²) = √25 = 5
Midpoint: ((1+4)/2, (2+6)/2) = (2.5, 4)
QUICK EXAMPLES
LINE PROPERTIES
| NAME | FORMULA | DESCRIPTION |
|---|---|---|
| Slope formula | m = (y₂−y₁)/(x₂−x₁) | Rise over run between two points |
| Slope-intercept form | y = mx + b | m=slope, b=y-intercept |
| Point-slope form | y − y₁ = m(x − x₁) | Line through (x₁,y₁) with slope m |
| y-intercept | b = y₁ − m·x₁ | Where the line crosses the y-axis |
| x-intercept | x = −b/m | Where the line crosses the x-axis |
| Distance | d = √((x₂−x₁)²+(y₂−y₁)²) | Pythagorean theorem on the two points |
| Midpoint | M = ((x₁+x₂)/2, (y₁+y₂)/2) | Centre point of the segment |
| Angle | θ = arctan(m) | Angle with positive x-axis in degrees |
| Perpendicular slope | m⊥ = −1/m | Negative reciprocal — product = −1 |
| Standard form | ax + by = c | Integer coefficients, no fractions |
Select your mode: Two Points if you know two coordinates, or Point + Slope if you know one point and the slope value.
Enter your values. For Two Points, enter (x₁, y₁) and (x₂, y₂). For Point + Slope, enter the point coordinates and the slope m.
The slope appears instantly as a fraction (where possible) and decimal. The line equation in y=mx+b form is shown alongside.
Check the coordinate plane — the line extends across the graph, both input points are marked with black dots, the midpoint in red, and the rise/run triangle is drawn with dashed lines.
The right panel shows all equivalent line forms: slope-intercept, point-slope, standard form, both intercepts, angle, and perpendicular/parallel slopes.
Example 1 (two points): (1,2) and (4,6). Rise=4, run=3, m=4/3≈1.3333. y-intercept: b=2−(4/3)(1)=2/3. Line: y=(4/3)x+2/3. Angle=53.13°. Distance=5. Midpoint=(2.5,4). Perpendicular slope=−3/4. Example 2 (point+slope): m=2, point (3,5). b=5−6=−1. Line: y=2x−1.
Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.