Slope Calculator
Calculate slope, angle, distance, midpoint, and line equation
Slope (m)
2
Angle of inclination
63.4349°
Distance
8.9443
Midpoint
(3, 6)
y-intercept (b)
0
Line equation
y = 2x + 0
How slope is calculated
The slope of a line through two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁) — rise over run. This tool also computes the angle of inclination (arctan of the slope, in degrees), the Euclidean distance between the points (√((Δx)² + (Δy)²)), the midpoint, and the full slope-intercept equation y = mx + b where b = y₁ − mx₁. A vertical line has an undefined slope; a horizontal line has slope 0. All values round to 4 significant figures.
Private & free — this tool runs entirely in your browser.
Related Calculators tools
Percentage Calculator
Solve percentage, increase, and change calculations.
Age Calculator
Calculate exact age in years, months, and days.
Unix Timestamp Converter
Convert Unix epoch timestamps to and from human dates.
Tip Calculator
Calculate tip and split the bill between people.
Aspect Ratio Calculator
Solve width or height for a target aspect ratio.
Temperature Converter
Convert between Celsius, Fahrenheit, and Kelvin.
Data Storage Converter
Convert between bytes, KB, MB, GB, TB, and more.
Discount Calculator
Calculate sale price and savings from a discount.