Coordinate Geometry πŸ‡ΊπŸ‡Έ USAπŸ‡¬πŸ‡§ UK Live Resultsy=mx+b
Calculate

Slope Calculator

Calculate slope (gradient), line equations (slope-intercept, point-slope, standard form), x-intercept, y-intercept, angle of inclination, midpoint, distance, and perpendicular slope between two coordinate points.

Enter Two Points

Live
Enter two coordinate points. Slope is calculated as rise Γ· run = (yβ‚‚βˆ’y₁)/(xβ‚‚βˆ’x₁). Negative inputs are supported.

Slope Results

β€”
Slope (m)
β€”
Enter coordinate points above
Line Plot
Rise vs Run

Slope Calculator Guide

Guide

Slope Calculator – Find Gradient, Line Equation & More

The slope of a line β€” also called the gradient in British English β€” is one of the most fundamental concepts in coordinate geometry and algebra. It measures how steep a line is: how much the y-value (vertical position) changes for each unit increase in the x-value (horizontal position). Our free slope calculator finds the slope between any two coordinate points and also derives the complete line equation in three forms, along with the x-intercept, y-intercept, angle of inclination, midpoint, distance, and related perpendicular and parallel slopes.

The Slope Formula

For two points (x₁, y₁) and (xβ‚‚, yβ‚‚), the slope m is:

m = (yβ‚‚ βˆ’ y₁) / (xβ‚‚ βˆ’ x₁) = rise / run

Example: for points (1, 2) and (4, 6): m = (6βˆ’2)/(4βˆ’1) = 4/3 β‰ˆ 1.333. The line rises 4 units for every 3 units of horizontal run.

Three Forms of a Linear Equation

FormEquationUse
Slope-intercepty = mx + bEasiest to graph; b = y-intercept
Point-slopey βˆ’ y₁ = m(x βˆ’ x₁)Given slope and one point
Standard formAx + By = CInteger coefficients, no fractions

From points (1, 2) and (4, 6), m = 4/3, b = y₁ βˆ’ mx₁ = 2 βˆ’ (4/3)(1) = 2/3:

  • Slope-intercept: y = (4/3)x + 2/3
  • Point-slope: y βˆ’ 2 = (4/3)(x βˆ’ 1)
  • Standard form: multiply through by 3: 4x βˆ’ 3y = βˆ’2

Undefined and Zero Slope

Two special cases require attention:

  • Zero slope β€” horizontal line: both points have the same y-value. m = 0. Equation: y = b (a constant).
  • Undefined slope β€” vertical line: both points have the same x-value. Division by zero makes the slope undefined. Equation: x = a (a constant). This is a vertical line and is NOT a function.

Gradient in the UK

In the United Kingdom, "gradient" is the standard term used in GCSE and A-level Mathematics, on road signs, and in civil engineering. UK road gradient signs show percentage gradients (e.g., "10% gradient" means a rise of 10 metres for every 100 metres of horizontal distance, equivalent to slope = 0.10 or about 5.7Β°). The steepest road in the UK is Hardknott Pass in Cumbria, with a 33% (1:3) gradient.

In UK GCSE Mathematics, students calculate gradient as: gradient m = change in y / change in x, using coordinates read from graphs. A-level Pure Mathematics extends this to differentiating functions to find the gradient of a curve at any point.

Grade in the USA

In the United States, road steepness is expressed as "grade" β€” the same as gradient but using the American term. Highway design standards (AASHTO Green Book) limit maximum grades based on road classification and design speed: interstate highways typically allow no more than 5–6% grade, while mountain roads may reach 8–12%. A 5% grade means 5 feet of rise per 100 feet of horizontal run.

In US education, slope is a core topic in Algebra 1 (8th or 9th grade) and is tested extensively on the SAT, ACT, and state standardised tests. The Common Core Standards (8.EE.B.5, 8.EE.B.6) require students to graph proportional relationships, compare slopes, and derive slope-intercept form.

Parallel and Perpendicular Lines

  • Parallel lines have the same slope: if line 1 has slope m, all parallel lines also have slope m.
  • Perpendicular lines have slopes that are negative reciprocals of each other: if line 1 has slope m, the perpendicular slope is βˆ’1/m.

Example: a line with slope 2/3 has perpendicular slope βˆ’3/2. Check: (2/3) Γ— (βˆ’3/2) = βˆ’1. This product of βˆ’1 is the test for perpendicularity.

Angle of Inclination

The angle that a line makes with the positive x-axis is called the angle of inclination ΞΈ. It relates to slope by: m = tan(ΞΈ), so ΞΈ = arctan(m).

A slope of 1 (m=1) gives θ = 45°. A slope of √3 gives θ = 60°. A horizontal line (m=0) has θ = 0°. The angle is always between 0° and 180° (not including 90° for a defined slope).

Distance and Midpoint

Between points (x₁,y₁) and (xβ‚‚,yβ‚‚):

  • Distance = √((xβ‚‚βˆ’x₁)Β² + (yβ‚‚βˆ’y₁)Β²) β€” the Pythagorean theorem applied to coordinates
  • Midpoint = ((x₁+xβ‚‚)/2, (y₁+yβ‚‚)/2)

Slope in Real Life

Architecture and Construction

Ramps for wheelchair accessibility must have a slope no steeper than 1:12 (1 inch of rise per 12 inches of run, or about 8.3%) under the Americans with Disabilities Act (ADA) in the US. UK Building Regulations (Part M) specify similar requirements of 1:20 for ramps in new buildings. Calculating and verifying these slopes uses the same formula as coordinate geometry.

Drainage and Plumbing

Building codes in both the UK and US require drain pipes to have a minimum slope (fall) to ensure adequate drainage by gravity. UK Building Regulations typically require at least 1:40 (2.5%) fall. US codes (IPC/UPC) require ΒΌ inch per foot (about 2.1%) minimum for 3-inch pipes. A slope calculator helps plumbers and engineers verify pipe installations meet code.

Frequently Asked Questions

How do you calculate slope between two points?

Slope m = (yβ‚‚βˆ’y₁)/(xβ‚‚βˆ’x₁). Subtract the y-coordinates to find the rise, subtract the x-coordinates to find the run, then divide. For points (2,3) and (6,7): m = (7βˆ’3)/(6βˆ’2) = 4/4 = 1.

What is slope-intercept form?

Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept (the y-value where the line crosses the y-axis). Given slope 2 and y-intercept 5: the equation is y = 2x + 5.

What does a negative slope mean?

A negative slope means the line goes downward from left to right. As x increases, y decreases. A slope of βˆ’2 means the line falls 2 units for every 1 unit it moves to the right. It represents a decreasing relationship between x and y.

What is gradient in UK maths?

Gradient is the UK term for slope. In GCSE Mathematics, gradient = change in y / change in x, read from a graph or calculated from coordinates. It is identical to the slope formula m = (yβ‚‚βˆ’y₁)/(xβ‚‚βˆ’x₁) used in US Algebra.

How do you find the perpendicular slope?

The perpendicular slope is the negative reciprocal: if the original slope is m, the perpendicular slope is βˆ’1/m. For a slope of 3, the perpendicular slope is βˆ’1/3. For slope βˆ’2/5, the perpendicular slope is 5/2. The product of perpendicular slopes always equals βˆ’1.

What is an undefined slope?

A slope is undefined when the line is vertical (x₁ = xβ‚‚). This causes division by zero in the slope formula. A vertical line has equation x = constant and is not a function. Every point on a vertical line has the same x-value.

What is zero slope?

Zero slope means the line is horizontal (y₁ = yβ‚‚). The rise is 0, so m = 0/run = 0. A horizontal line has equation y = constant and every point on it has the same y-value.

How is slope used in real life?

Slope appears in road gradients (UK road signs show % gradient; US uses % grade), wheelchair ramp design (ADA requires max 1:12), drain pipe fall requirements, roof pitch calculations, and linear regression in data analysis. Any situation involving a rate of change uses the slope concept.

⚠️ Disclaimer

Important

Results are based on standard coordinate geometry formulas. For engineering, construction, or safety-critical gradient calculations, always verify with qualified professionals and applicable building codes.

Slope m
β€”