Skip to main content
RT
RoughTools.com
free online toolsNo signup required
📏

Free Slope Calculator

Calculate slope (gradient), distance, midpoint, and line equation from two coordinate points. Handles positive, negative, zero, and undefined slopes. Free, private — all calculations run in your browser.

⚡ Instant results🔒 100% private🆓 Always free🚫 No signup📏 Full line analysis
2.0000
Slope m
2.0000
Y-intercept b
63.43°
Angle θ
from horizontal
8.9443
Distance
(2.00,6.00)
Midpoint
Rising (positive slope)
Line Equations — Three Standard Forms
Slope-Intercepty = 2.0000x + 2.0000y = mx + b
Point-Slopey − 2.0000 = 2.0000(x − 0.0000)y − y₁ = m(x − x₁)
Standard2x −y = -2.000Ax + By = C
Slope Comparison: m/2, m, 2m
ScenarioSlope mEquationAngle θDirection
m = 1.000 (half)1.0000y = 1.0000x + 2.000045.00°Rising (positive slope)
m = 2.000 (current)2.0000y = 2.0000x + 2.000063.43°Rising (positive slope)
m = 4.000 (double)4.0000y = 4.0000x + 2.000075.96°Rising (positive slope)

About This Slope Calculator

The Slope Calculator takes two coordinate points (x₁, y₁) and (x₂, y₂) and computes the complete analysis of the line they define: slope (gradient), distance between the points, midpoint coordinates, and the full line equation in slope-intercept form y = mx + b. This tool covers every standard calculation required in coordinate geometry from middle school through university mathematics.

The Formulas

Slope: m = (y₂ − y₁) / (x₂ − x₁) Distance: d = √[(x₂−x₁)² + (y₂−y₁)²] Midpoint: M = ((x₁+x₂)/2, (y₁+y₂)/2) Equation: y = mx + b where b = y₁ − m×x₁

The slope formula is derived from the definition of slope as "rise over run" — the vertical change divided by the horizontal change. The distance formula is an application of the Pythagorean theorem: the two points and their horizontal/vertical projections form a right triangle, and the distance is the hypotenuse.

Understanding Slope Values

  • m > 0: positive slope — line rises from left to right
  • m < 0: negative slope — line falls from left to right
  • m = 0: horizontal line — no vertical change
  • m = undefined: vertical line — no horizontal change (x₁ = x₂)
  • |m| > 1: steep line, rises faster than it runs
  • |m| < 1: gentle slope, rises slower than it runs

Privacy Notice

All calculations run entirely in your browser. No data is transmitted or stored. See our Privacy Policy.

Quick Reference

Input / ParameterDescriptionExample Value
Point 1 (x₁, y₁)First coordinate point(2, 4)
Point 2 (x₂, y₂)Second coordinate point(6, 10)
Slope (m)m = (y₂−y₁) / (x₂−x₁)(10−4)/(6−2) = 1.5
Distance (d)d = √[(x₂−x₁)² + (y₂−y₁)²]√(16+36) ≈ 7.21
Midpoint((x₁+x₂)/2, (y₁+y₂)/2)(4, 7)
Y-intercept (b)b = y₁ − m × x₁4 − 1.5×2 = 1
Line Equationy = mx + b (slope-intercept form)y = 1.5x + 1

When to Use This Calculator

📚
Algebra and pre-calculus homework

Find the slope, equation, and properties of a line between two coordinate points for classroom assignments and test preparation.

🏗️
Construction and civil engineering

Calculate the gradient of a ramp, drainage channel, or road section to ensure compliance with building codes and accessibility standards.

📈
Data analysis and statistics

Verify the slope of a trend line or linear regression, or quickly compute rise-over-run between two data points on a graph.

🗺️
Navigation and mapping

Calculate slope and distance between two coordinate points to plan hiking routes, cycling paths, or assess terrain steepness.

🎮
Game and app development

Calculate distances and midpoints between game objects, determine angles, and implement 2D physics calculations.

💡 Pro Tips

1

In civil engineering, slope is expressed as a percentage grade, not a decimal. A slope of 0.05 is a 5% grade, meaning the road rises 5 metres per 100 metres horizontal distance. The ADA (Americans with Disabilities Act) requires wheelchair ramps to have a maximum slope of 1:12 (≈ 8.3%), so always verify gradients for accessibility compliance.

2

Parallel lines have exactly equal slopes. Perpendicular lines have slopes that multiply to −1 (negative reciprocal relationship). To verify a rectangle: check that opposite sides have equal slopes AND adjacent sides have slopes whose product is −1. If either condition fails, the shape is not a true rectangle.

3

The slope formula requires x₂ ≠ x₁. If you accidentally enter the same x-coordinate for both points, slope is undefined. This is the mathematical definition of a vertical line. In physics, a vertical line on a position-time graph represents teleportation — physically impossible, which is a useful sanity check.

4

In data science, the slope is the regression coefficient in linear models: "for every 1-unit increase in x, y changes by m units." Understanding that slope represents rate of change is the conceptual bridge from algebra to calculus, where the derivative is the instantaneous slope of a curve at any point.

Frequently Asked Questions

📐
Area Calculator
Area and perimeter of 10 shapes
📐
Triangle Calculator
Sides, angles, and area of any triangle
📊
Statistics Calculator
Mean, median, mode, standard deviation
🔢
Quadratic Formula
Solve ax² + bx + c = 0
🔬
Percent Error Calculator
Calculate measurement error percentage

Your input is processed locally in your browser and is never stored, transmitted, or shared with any server. See our Privacy Policy.

Share This Tool

X / TwitterWhatsAppLinkedIn