Enter two points
Type coordinates for Point 1 and Point 2. We’ll compute m = (y₂ − y₁)/(x₂ − x₁), simplify the fraction, and handle vertical/horizontal lines automatically.
Enter two points to instantly calculate slope (rise/run), see it as a simplified fraction and decimal, and get the line equation (y = mx + b) when defined. Perfect for homework checks, graphing, and quick trendlines.
Type coordinates for Point 1 and Point 2. We’ll compute m = (y₂ − y₁)/(x₂ − x₁), simplify the fraction, and handle vertical/horizontal lines automatically.
Slope is the “steepness” of a line. It tells you how much y changes when x changes. In everyday terms: slope answers “for every 1 step to the right, how many steps do I go up (or down)?” That’s why you’ll often hear slope described as rise over run.
If the slope is positive, the line goes up as you move right. If it’s negative, the line goes down. A slope of zero means the line is perfectly flat (horizontal). And if the slope is undefined, the line is vertical — it goes straight up/down with no left-right movement.
Given two points (x₁, y₁) and (x₂, y₂), the slope m is:
The top part (y₂ − y₁) is the rise (how much y changes). The bottom part (x₂ − x₁) is the run (how much x changes).
A classic slope mistake is mixing orders: using (y₂ − y₁) but (x₁ − x₂) in the denominator. If you flip one difference but not the other, you’ll get the negative of the correct slope. The easiest way to stay consistent is:
When you enter two points, this calculator returns:
If the line is vertical (x₁ = x₂), the slope is undefined and the equation is written as x = constant. In that special case, there is no y-intercept.
Points: (2, 3) and (6, 11)
Interpretation: for every 1 unit you move right, y goes up by 2 units. The line is increasing.
Points: (1, 7) and (5, 3)
Interpretation: for every 1 unit you move right, y goes down by 1 unit.
Points: (−2, 4) and (10, 4)
Interpretation: y doesn’t change as x changes. This is a flat line at y = 4.
Points: (3, −1) and (3, 8)
Interpretation: there is no left-right movement, only up/down movement. The line is x = 3.
Slope is the same idea as a “rate of change,” so it shows up everywhere:
If you can read slope, you can read trends — and trends are where decisions get made.
Slope measures how fast y changes relative to x. A slope of 3 means “y increases by 3 for every 1 increase in x.” A slope of −0.5 means “y decreases by 0.5 for every 1 increase in x.”
Yes. Slope is often a fraction because it’s literally a ratio (rise/run). Decimals are just another way to express the same number. This calculator shows both when possible.
The slope formula divides by (x₂ − x₁). For a vertical line, x₂ = x₁, so the denominator is 0. Division by zero is undefined, which matches the geometry: the line has “infinite” steepness.
Slope (m) is the steepness. The y-intercept (b) is where the line crosses the y-axis (where x = 0). Together they define the slope-intercept form: y = mx + b.
First calculate slope m. Then compute the intercept using one point: b = y₁ − m·x₁. Finally write y = mx + b. If the line is vertical, write x = x₁.
Conceptually, yes. Grade is often expressed as a percentage: (rise/run) × 100%. A grade of 10% means the hill rises 10 units for every 100 units forward.
No. A straight line has constant slope everywhere. If you calculate slope using any two distinct points on the same line, you’ll get the same result (aside from rounding).
If (x₁, y₁) = (x₂, y₂), there isn’t a unique line through two identical points — infinitely many lines pass through a single point. In that case the slope is not determined. This calculator will flag it as an input issue.
Educational note: This calculator is designed for learning, homework checks, and quick verification. For formal proofs or graded work, always show your steps.
In algebra, slope is the average rate of change of y with respect to x between two points. That sounds fancy, but it’s the same idea you already know from daily life:
Slope is just “change in y per 1 change in x.” That’s why it shows up in physics (speed, acceleration), economics (marginal cost, marginal revenue), and data science (trendlines).
Slope always carries units: if x is hours and y is dollars, then slope is dollars per hour. If x is meters and y is degrees, then slope is degrees per meter. When you interpret slope, always read it as “y-units per x-unit.”
For non-vertical lines, slope and angle are linked by the tangent function:
So a slope of 1 corresponds to a 45° line. A slope of 0 is 0° (flat). As slope grows in magnitude, the line becomes steeper and the angle approaches 90° (but never reaches it unless the line is vertical).
Example: if a line has slope 2, any perpendicular line has slope −1/2. If a line has slope −3, a perpendicular slope is 1/3. Vertical and horizontal lines are special: they are always perpendicular to each other.
If you can do these, you can handle almost every “slope from two points” question you’ll see in algebra and geometry.
After you calculate, you’ll see several helpful pieces of information. Here’s what each one means:
Slope is “change per 1 unit of x” and keeps units (like dollars per month). Percent change is “relative change” compared to a starting value. If you’re analyzing a straight trendline, slope is usually the clearest signal.
This page shows both fraction and decimal outputs because students often need exact values (fractions) for proofs and decimals for graphing calculators. You can switch display format in the dropdown.
Notation note: we use x₁, y₁, x₂, y₂ and standard slope-intercept form y = mx + b.
Explore more tools from the Math & Conversions category:
Try entering two points from a real situation: your weekly progress chart, a simple trendline in business, or a physics position graph. Then screenshot the slope + equation and share it with a friend/classmate. Slope is the quickest “trend detector” in math.
Built for fast checks, clean screenshots, and zero distractions.
Last updated: December 25, 2025. This calculator runs entirely in your browser.