MaximCalculator Free, fun & accurate calculators
📈 Platinum math layout
🌙Dark Mode

Slope Calculator

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.

Instant slope from two points
🧾Fraction + decimal output
📐Angle + line equation
📱Made for clean screenshots

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.

📍
📍
📍
📍
🔧
Your slope result will appear here
Enter two points and tap “Calculate Slope”.
Tip: Slope is rise/run. Positive slopes go up to the right. Negative slopes go down.
Steepness meter (based on |m|). 0 = flat · higher = steeper.
FlatModerateSteep
📚 Formula + meaning

Slope (m) explained in plain English

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.

The two-point slope formula

Given two points (x₁, y₁) and (x₂, y₂), the slope m is:

  • m = (y₂ − y₁) / (x₂ − x₁)

The top part (y₂ − y₁) is the rise (how much y changes). The bottom part (x₂ − x₁) is the run (how much x changes).

Why the order matters (and how to avoid mistakes)

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:

  • Pick one point as “1” and the other as “2”
  • Subtract in the same direction for both y and x: (second − first)
🧠 How this calculator works

What you’ll get from the Slope Calculator

When you enter two points, this calculator returns:

  • Slope (m) as a simplified fraction when possible and as a decimal
  • Rise and Run (the numerator/denominator of the slope)
  • Line type: increasing, decreasing, horizontal, or vertical
  • Angle of inclination in degrees (for non-vertical lines)
  • y-intercept (b) and the line equation y = mx + b (when defined)

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.

🧪 Worked examples

Examples you can copy-paste

Example 1: Positive slope (line goes up)

Points: (2, 3) and (6, 11)

  • Rise = 11 − 3 = 8
  • Run = 6 − 2 = 4
  • Slope m = 8/4 = 2

Interpretation: for every 1 unit you move right, y goes up by 2 units. The line is increasing.

Example 2: Negative slope (line goes down)

Points: (1, 7) and (5, 3)

  • Rise = 3 − 7 = −4
  • Run = 5 − 1 = 4
  • Slope m = −4/4 = −1

Interpretation: for every 1 unit you move right, y goes down by 1 unit.

Example 3: Horizontal line (slope = 0)

Points: (−2, 4) and (10, 4)

  • Rise = 4 − 4 = 0
  • Run = 10 − (−2) = 12
  • Slope m = 0/12 = 0

Interpretation: y doesn’t change as x changes. This is a flat line at y = 4.

Example 4: Vertical line (slope undefined)

Points: (3, −1) and (3, 8)

  • Run = 3 − 3 = 0
  • Division by zero → slope is undefined

Interpretation: there is no left-right movement, only up/down movement. The line is x = 3.

📈 Slope in real life

Where slope shows up outside algebra class

Slope is the same idea as a “rate of change,” so it shows up everywhere:

  • Business: revenue vs. time, cost vs. units, price changes, growth trends
  • Science: velocity from position graphs, reaction rates, sensor calibration lines
  • Fitness: progress over time (weight change per week, pace improvements)
  • Maps & roads: hill grade (rise/run), ramps, accessibility standards
  • Data: trendlines and regression (slope tells direction and strength of linear relationships)

If you can read slope, you can read trends — and trends are where decisions get made.

❓ FAQs

Frequently Asked Questions

  • What does slope actually mean?

    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.”

  • Can slope be a fraction or a decimal?

    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.

  • Why is the slope undefined for vertical lines?

    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.

  • What is the difference between slope and y-intercept?

    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.

  • How do you find the equation of the line from two points?

    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₁.

  • Is slope the same as “grade” on a hill?

    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.

  • Can two different pairs of points on the same line give different slopes?

    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).

  • What if my points are the same?

    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.

✅ Quick check list

Fast sanity checks (so you trust the number)

  • If x₂ − x₁ is positive and y₂ − y₁ is positive → slope should be positive.
  • If one difference is positive and the other negative → slope should be negative.
  • If y₂ = y₁ → slope should be 0 (horizontal).
  • If x₂ = x₁ → slope should be undefined (vertical).
  • Steeper lines have larger |m| (absolute value).

Educational note: This calculator is designed for learning, homework checks, and quick verification. For formal proofs or graded work, always show your steps.

🎯 Deeper understanding (optional)

Slope as “average rate of change”

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:

  • Miles per hour = change in distance / change in time
  • Dollars per item = change in cost / change in quantity
  • Points per game = change in points / change in games

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).

Units matter

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.”

📐 Angle + steepness

How slope relates to angle

For non-vertical lines, slope and angle are linked by the tangent function:

  • m = tan(θ)
  • θ = arctan(m) (angle in degrees or radians)

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).

🧩 Parallel & perpendicular lines

Two fast rules that show up on tests

  • Parallel lines have the same slope (m₁ = m₂), as long as they’re not vertical.
  • Perpendicular lines have slopes that multiply to −1 (m₁·m₂ = −1), meaning m₂ = −1/m₁.

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.

🧯 Common pitfalls

What usually goes wrong (and how to fix it)

  • Forgetting negatives: A negative rise or run is normal. Keep the sign; it carries the direction.
  • Mixing coordinates: Subtract y’s from y’s and x’s from x’s — never cross them.
  • Rounding too early: If you need exact answers, keep fractions until the final step.
  • Confusing “steep” with “big number”: Compare absolute values (|m|), not raw m, for steepness.
  • Same point twice: Two identical points don’t define a unique line. Pick two distinct points.
📝 Mini practice

Try these quick slope prompts

  • Find the slope from (0, 0) to (4, 2). (Answer: 1/2)
  • Find the slope from (−1, 5) to (2, −4). (Answer: −3)
  • Is the line through (3, 7) and (9, 7) vertical or horizontal? (Horizontal, slope 0)
  • What’s the slope of a line perpendicular to slope 5? (Answer: −1/5)

If you can do these, you can handle almost every “slope from two points” question you’ll see in algebra and geometry.

🧾 Output details

What the result includes

After you calculate, you’ll see several helpful pieces of information. Here’s what each one means:

  • Slope (m): the rise/run ratio, simplified when possible.
  • Rise & Run: the raw differences (y₂ − y₁) and (x₂ − x₁).
  • Line type: increasing, decreasing, horizontal, or vertical.
  • Angle (θ): arctan(m) in degrees (not shown for vertical lines).
  • Equation: y = mx + b, or x = constant for vertical lines.
When to use slope vs percent change

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.

Tiny note for teachers

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.

🚀 Viral tip

Make this shareable (and useful)

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.

  • Use Copy to paste your slope into homework or notes.
  • Use Save to store common point pairs on this device.
  • Switch on Dark Mode for cleaner screenshots.
🧠 Quick reminders

Cheat-sheet (one glance)

  • m = (y₂ − y₁) / (x₂ − x₁)
  • b = y₁ − m·x₁ (if not vertical)
  • Horizontal: y₁ = y₂ → m = 0
  • Vertical: x₁ = x₂ → slope undefined
  • Parallel → same slope. Perpendicular → negative reciprocal.

Built for fast checks, clean screenshots, and zero distractions.

Last updated: December 25, 2025. This calculator runs entirely in your browser.