📈Slope Calculator

Find the slope, y-intercept, x-intercept, and equation of a line from two points, a point and slope, or an equation — with step-by-step working and a live graph.

Point 1
Point 2
Point
Equation
—
Slope (m) 2
Y-Intercept (0, 0)
X-Intercept (0, 0)

Step-by-step working

Graph

Free Slope Calculator with Steps

Need to find the slope of a line or its equation? Our free slope calculator works from two points, a point and a slope, or an equation in any form — and shows every step so you understand exactly how each value was found. Enter your inputs, and get the slope, y-intercept, x-intercept, and the line equation in both slope-intercept and standard form, instantly.

Fractional slopes and intercepts are displayed as simplified fractions rather than rounded decimals, keeping answers exact. Special cases are handled cleanly too — vertical lines (undefined slope) and horizontal lines (zero slope) are explained clearly instead of throwing an error. A live graph plots the line with intercepts and input points marked, so you can see the geometry behind the numbers.

Simply enter your values to calculate instantly. No sign-up, no downloads, no limits — just clear, step-by-step slope and intercept working with a graph.

About the Slope Calculator

Features

Three input modes

Two points, point + slope, or equation input — switch with a single tab.

Slope-intercept and standard form

Every line is expressed in both y = mx + b and Ax + By = C form.

Exact fraction answers

Slopes and intercepts are simplified to fractions rather than rounded decimals.

Step-by-step working

Slope formula substitution, intercept derivation, and form conversion, labelled clearly.

Special-case handling

Vertical and horizontal lines are explained clearly, never a division-by-zero error.

Live SVG graph

The line, its intercepts, and the input points are plotted and update on every solve.

Copy result

Copy the slope, intercepts, and equation as plain text with one click.

Fully client-side

All computation runs in your browser — no data ever leaves your device.

Why slope matters

Slope describes the rate of change between two quantities, and linear equations built from it show up everywhere — from calculating grades on a road or roof, to modelling cost versus quantity in economics, to describing velocity in physics. Understanding how to find a slope and write a line's equation is one of the foundational skills in algebra.

Frequently Asked Questions

What is slope?

Slope measures how steep a line is — the ratio of vertical change (rise) to horizontal change (run) between any two points on the line, written as m = (y₂ − y₁) / (x₂ − x₁).

Which input modes does this support?

Three: two points, a point plus a slope, or a line equation in slope-intercept or standard form.

Does it show the working?

Yes. Every step — the slope formula substitution, intercept derivation, and form conversion — is shown and labelled so you can follow the method.

Are fractional answers shown as fractions?

Yes. A slope of 2/3 is displayed as 2/3, not 0.667, keeping the answer exact.

What if the line is vertical?

Vertical lines have an undefined slope, which the calculator explains clearly — no division-by-zero error or blank output.

What if the line is horizontal?

A horizontal line has a slope of zero and no x-intercept (unless it passes through the origin), both clearly stated in the output.

What outputs does it give?

Slope, y-intercept, x-intercept, the line equation in slope-intercept form, the equation in standard form, and (in two-point mode) the distance between the two points.

Is there a graph?

Yes. A live graph plots the line with the input points and intercepts marked, updating each time you calculate.

Is my input sent anywhere?

No. All computation runs in your browser; nothing is transmitted to a server.

Does it work on mobile?

Yes, fully responsive; the inputs, working, and graph fit any screen without overflow.