C
CalcFusionHub
ConvertersFinancialHealthMath & EducationEngineeringBusiness♥ Favorites
Home›Calculators›Math & Education›Slope & Distance Calculator
🧮

Slope & Distance Calculator

Free slope calculator — slope, distance, midpoint, angle, and line equation between any two points on a graph.

Loading…

Related Calculators

📐
Hypotenuse Calculator
Find the hypotenuse of a right triangle from its two legs using the Pythagorean theorem.
🔺
Right Triangle Side and Angle Calculator
Solve any right triangle for missing sides and angles from any two known values.
⭕
Radius of a Circle Calculator
Calculate the radius of a circle from its diameter, circumference, or area — with reverse calculations too.
🧪
Tube Volume Calculator
Calculate the material volume, inner capacity, and surface area of a tube (hollow cylinder) from its radii and length.
🥚
Ellipsoid Volume Calculator
Calculate the volume and approximate surface area of an ellipsoid from its three semi-axes a, b, and c.
🪣
Conical Frustum Surface Area Calculator
Calculate the total and lateral surface area, slant height, and volume of a conical frustum from its radii and height.
View all Math & Education →
C
CalcFusionHub

Free online calculators and converters for finance, health, math, and everyday life.

calcfusionhub.com

Converters

  • Length Converter
  • Weight Converter
  • Temperature Converter
  • Area Converter
  • Volume Converter
  • Speed Converter
  • View all →

Calculators

  • BMI Calculator
  • Loan Calculator
  • Mortgage Calculator
  • Compound Interest
  • Age Calculator
  • ROI Calculator
  • View all →

Company

  • About
  • For Teachers
  • Contact
  • Privacy Policy
  • Terms of Service
  • ♥ Favorites

© 2026 CalcFusionHub. All rights reserved.

Privacy PolicyTerms of ServiceContact

Results are for informational purposes only. Always verify with a qualified professional.

(x₁, y₁)(x₂, y₂)runrise
Enter two points (x₁, y₁) and (x₂, y₂) — slope, distance, midpoint, angle, and line equation update instantly.

Everyday Uses

📐

Coordinate geometry

Find slope, angle, distance and midpoint from two points.

🛣️

Gradients and ramps

Convert between ratio, percentage and degrees for a road or ramp.

🏠

Roof and drainage falls

Check a pitch or a drainage fall meets the required minimum.

📈

Rate of change

Interpret the slope of a line as the change in y per unit of x.

🥾

Reading contour lines

Height gained over horizontal distance is what separates a pleasant walk from a scramble. Tightly packed contours on a map are a steep slope in your legs.

🛤️

Railway and road gradients

1-in-40 is 2.5%. Conventional rail struggles beyond about 1-in-25 without assistance, which is why lines take long detours where roads climb straight over.

Frequently Asked Questions

How is slope calculated?

Rise over run — the change in y divided by the change in x between two points: m = (y₂ − y₁) ÷ (x₂ − x₁). A slope of 2 means the line climbs two units for every one across. Order matters only in that you must be consistent: subtract the same point first in both numerator and denominator, or the sign flips.

What does a slope of zero or undefined mean?

Zero slope is a horizontal line — no rise for any run. Undefined slope is a vertical line, where the run is zero and the division is impossible. These are genuinely different cases, not two ways of saying flat, and confusing them is common. A vertical line cannot be written as y = mx + c at all; it needs the form x = a.

How do slope, angle and gradient percentage relate?

They express the same steepness three ways. Slope is the ratio; the angle is arctan of that ratio; percentage gradient is the slope times 100. A slope of 1 is 45° and a 100% gradient — which surprises people who assume 100% means vertical. A 10% road gradient is only about 5.7°, and roads rarely exceed 20%.

What do parallel and perpendicular slopes look like?

Parallel lines have identical slopes. Perpendicular lines have slopes whose product is −1, so each is the negative reciprocal of the other: a line of slope 2 is perpendicular to one of slope −½. The exception is the horizontal-vertical pair, where one slope is zero and the other undefined, so the product rule cannot be applied.

What is the distance between two points?

By Pythagoras on the rise and run: d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the straight-line distance regardless of slope, and unlike slope it is always positive and independent of which point you take first. The same two measurements therefore give you slope, angle and distance together.

Where does slope matter outside maths class?

Road and railway gradients, wheelchair ramp regulations — typically a maximum of 1:12 — roof pitch, drainage falls in plumbing, and the rate of change in any graph. In data work slope is the regression coefficient: the amount y changes per unit of x, which is the whole point of fitting a line to data.