Math Calculator

Slope Calculator

Find the slope of a line from two points, a line equation, or a point and a slope. You get m as a decimal and a fraction, the line equation in three forms, the angle, the percent grade, both intercepts, a graph, and the full working.

m = (y₂ − y₁) / (x₂ − x₁) = rise / run
m is the slope · θ is the angle of incline, where m = tan(θ)
Written by The Editorial Team · Math & Construction WritersUpdated August 25, 2026 · Formulas checked against standard referencesHow we check our math · About our team
Point 1
Point 2

Results appear when you press the button. Everything runs in your browser — nothing you type is sent to us.

Your result
Ready when you are

Enter your points above and press Calculate slope. You’ll get the slope, the equation, the angle, both intercepts and a graph.

An online Slope Calculator turns basic coordinate inputs into precise slope values, comprehensive line equations, and clear coordinate graphs instantly. Finding the exact steepness of a line requires both speed and accuracy. Students, teachers, and technical professionals can easily solve complex geometry problems using two custom methods. Explore the detailed breakdown below to discover how our free interactive tool simplifies every linear calculation with step-by-step solutions.

About the Slope Calculator

This Slope Calculator is built for algebra students, teachers, and anyone working with lines — homework, test prep, and quick checks in physics or engineering. Users can enter two points or a line equation to receive instant returns for the slope, the line’s equation, angle, distance, x- and y-intercepts, and percentage grade. The calculator also delivers a live graph and step-by-step working so students can learn as they calculate.

Two Points Method

The Two Points method helps users find the exact steepness between two distinct coordinate positions on a plane. This system of Slope Calculator processes spatial coordinates to deliver complete geometric measurements instantly.

  • Primary Formula: 
    m = y₂ − y₁x₂ − x₁ = riserun
  • Calculated Results: Displays slope m, line equation, angle θ, percentage grade, total distance d, and intercept coordinates.
  • Special Cases: Horizontal lines yield m = 0, while vertical lines produce an undefined slope due to division by zero.
Slope shown as a rise over run triangle between two points on a linexy(x₁, y₁)(x₂, y₂)run = Δxrise = Δym = rise ÷ run
Slope is the rise (vertical change) divided by the run (horizontal change) between any two points on the line.

Line Equation Method

The Line Equation method allows users to evaluate linear expressions without performing manual algebraic transformations. This system converts standard coefficient inputs into essential coordinate parameters automatically.

  • Standard Input Format:
    aX + bY + c = 0
  • Slope-Intercept Conversion:
    y = mx + b
  • Derived Slope:
    The slope value directly equals m = -ab (b ≠ 0)

Both methods provide comprehensive mathematical accuracy for any linear problem. Users can choose either approach to receive instant values, detailed steps, and interactive graph visualizations in Slope Calculator.

How to Use the Slope Calculator

Operating Slope Calculator requires only a few straightforward actions on the interface. Linear algebra solutions appear instantly through three simple steps:

  1. Select Calculation Method: Choose between the Two Points mode and the Line Equation mode based on available geometry parameters.
  2. Input Values: Enter precise coordinate pairs (x, y) or coefficient constants (a, b, c) into the designated fields.
  3. Generate Results: Click the Calculate Slope button to retrieve instant slope values, complete equations, live graphs, and detailed solution steps.
Important Note: Vertical lines have an undefined slope because the run (x₂ − x₁) equals zero, which creates an impossible division by zero. In addition, users should always double-check negative signs and decimal formats before calculating to ensure accurate coordinate outputs.

Understanding Slope in Algebra

Analyzing slope in algebra allows learners to measure exact steepness and directional movement on a coordinate plane with Slope Calculator. The sign and numerical magnitude of variable m determine how a straight line behaves spatially:

  • m > 0 — rises left to right as x increases.
  • m < 0 — falls left to right as x increases.
  • m = 0 — horizontal with a constant y-value throughout.
  • vertical line — undefined (x = 0)

Four types of slope: positive, negative, zero and undefinedPositivem > 0 · goes upNegativem < 0 · goes downZerom = 0 · horizontalUndefinedrun = 0 · vertical
A line rises, falls, stays flat, or runs straight up — those four cases cover every slope you can meet.

Slope defines the foundational ratio of vertical change over horizontal distance, commonly known as "rise over run." This core algebraic concept guides practical applications across diverse fields, including civil engineering, architecture, terrain analysis, and structural design.

Practical Calculation Examples

Concise step-by-step scenarios demonstrate how Slope Calculator transforms raw coordinate data and linear equations into complete geometric outputs.

  • Two Points Method: For (1, 2) and (4, 8): rise = 6, run = 3, so m = 2 and the line is y = 2x.
  • Line Equation Method: For 3x - 4y + 12 = 0: a = 3, b = -4, so m = 0.75 and the y-intercept is (0, 3).
  • Negative Slope Case: For (0, 5) and (4, -3): rise = -8, run = 4, so m = -2 and the line is y = -2x + 5.

A line crossing the x-axis and the y-axis, with both intercepts markedy-intercept (0, b)x-intercept (x, 0)set x = 0 → y-interceptset y = 0 → x-intercept
Set x = 0 to find where the line meets the y-axis; set y = 0 to find where it meets the x-axis.

Key Features & Related Slope Tools

Modern visual modeling inside Slope Calculator transforms basic coordinate geometry into an engaging learning experience. Broad navigation options also connect learners directly to specialized calculation utilities across the site.

  • Interactive Live Graphing: Dynamic Oxy coordinate displays plot every calculated line instantly to provide immediate spatial feedback.
  • Step-by-Step Educational Solutions: Clear mathematical breakdowns reveal every algebraic transformation to enhance conceptual mastery.

Percent grade shown as rise over horizontal run with the angle markedθrun (horizontal)risegrade % = (rise ÷ run) × 1005% · 1:20 · 2.86° all describe the same slope
Grade always measures rise against the horizontal run — not along the sloped surface itself.

Frequently asked questions
What is the slope formula?

The basic formula is m = (y₂ − y₁) / (x₂ − x₁), which measures vertical change divided by horizontal change between two points on a plane.

What if the line is vertical?

Vertical lines have identical x-coordinates, which causes a division by zero. The system identifies these cases automatically and displays the result as an undefined slope.

Is this Slope Calculator free?

Yes, of course! All features of this calculator are fully accessible without registration, paid subscriptions, or usage limits.

Can calculate slope using one point and the y-intercept?

Yes, because the y-intercept is simply a second coordinate point (0,b), allowing you to apply the standard two-point calculation normally.

How do positive and negative slopes differ?

A positive slope indicates the line rises as it moves from left to right, whereas a negative slope means the line falls as it moves from left to right.

References
These results are estimates for study and planning. Building codes, ADA requirements and local drainage rules vary — confirm any construction figure with your local building department, the current code edition and a licensed professional before you build.