Calculate the slope, angle, and line equation between two points.
A slope calculator finds the steepness (slope) of a line between two points, along with its angle and equation in slope-intercept form.
Slope (rise over run) is one of those math concepts that quietly runs through a huge range of practical fields. Contractors use it to check that a wheelchair ramp meets accessibility code (typically a maximum slope of 1:12), roofers use it to describe roof pitch and determine material needs, and road engineers use grade percentage (a form of slope) to design safe highway inclines. In algebra, slope describes how steeply a line rises or falls on a graph, and it's the foundation for understanding linear equations, rates of change, and eventually calculus.
Real estate and landscaping also rely on slope calculations - drainage design depends on getting the ground slope right so water flows away from a foundation rather than pooling against it, which is a common and expensive problem when it's calculated incorrectly.
A positive slope rises left to right, a negative slope falls left to right, a slope of zero is a perfectly flat horizontal line, and an undefined slope describes a vertical line (since the "run" would be zero, and division by zero is undefined). Recognizing which type applies helps catch calculation errors before they compound into a wrong final answer. For example, finding the slope between two points like (6, 525) and (1, 100) just means dividing the difference in the y-values by the difference in the x-values, regardless of how large or unusual the coordinate values are.
Slope measures the steepness and direction of a line, calculated as the change in vertical position (rise) divided by the change in horizontal position (run) between two points. A positive slope means the line rises from left to right, a negative slope means it falls, a slope of zero represents a perfectly horizontal line, and an undefined slope (division by zero) represents a perfectly vertical line — a special case that trips up many students first learning the concept, since vertical lines don't fit the standard rise-over-run formula cleanly.
Beyond algebra classrooms, slope calculations are used constantly in construction and engineering (roof pitch, wheelchair ramp grade, road grade all use slope-based measurements), physics (velocity as the slope of a position-time graph), and economics (marginal cost or marginal revenue as the slope of a cost or revenue curve).
Building codes often specify maximum allowable slopes for accessibility features like wheelchair ramps, typically limiting them to a 1:12 ratio (roughly 4.8 degrees), meaning 12 inches of horizontal run are required for every 1 inch of vertical rise. Calculating whether a proposed ramp design meets this requirement is a direct, practical application of slope calculation with genuine safety and legal compliance implications, not just an abstract math exercise.
Slope can be expressed as a simple ratio (rise over run), as a percentage (ratio multiplied by 100), or as an angle in degrees, and these formats aren't interchangeable through simple multiplication once the slope gets steep — a 100% slope is a 45-degree angle, not a vertical line, which surprises people expecting percentage and angle to scale together linearly. Road grade signs typically use percentage, while construction plans more often use ratio or angle notation.
A vertical line has an undefined slope; the tool will indicate this case.
A negative slope means the line falls from left to right - as one value increases, the other decreases.
Yes, a slope of zero describes a perfectly flat horizontal line, where the value doesn't change no matter how far you move along it.
Slope is calculated as rise over run, and a vertical line has zero run - since division by zero is mathematically undefined, vertical lines don't have a defined slope.
Enter point B (-2, 4) along with a second point above, and the calculator instantly computes the slope between the two coordinates using the rise-over-run formula.