Slope Calculator
Slope, line equation, and graph from any two points — rise over run, drawn out.
Point P1
Grid squares are labeled; the violet line is drawn through both marked points.
How to use the slope calculator
- Enter two points. Type the (x1, y1) and (x2, y2) coordinates — decimals are fine.
- Press Calculate. You get the slope as rise/run, the line equation, and whether the line rises, falls, or is flat.
- Read the graph. The violet line passes through both marked points on a labeled grid — check it against your homework sketch.
- Try the edge cases. Equal x values give a vertical line with undefined slope; equal y values give a flat line with slope 0.
Frequently asked questions
How do you calculate slope from two points?
Slope m = (y2 − y1) / (x2 − x1), read as “rise over run”. It tells you how many units y changes for every unit x changes.
What is the slope of a vertical line?
Undefined. A vertical line has run = 0, and dividing by zero is not allowed — there is no number for the slope, only the equation x = k.
How do you get the line equation from two points?
First find the slope m, then solve for the intercept with b = y − mx using either point. Plug both into y = mx + b.
What does a negative slope mean?
The line falls as you move left to right — y decreases while x increases. Positive slopes rise, zero slope is flat.
Can slope be a fraction?
Yes, and it usually is. A slope of 1/3 means y rises 1 unit for every 3 units of x — a gentle climb.
More from the codex
Slope Calculator
Slope and line equation from two points, graphed.
Graphing Calculator
Plot up to 3 functions with pan and zoom.
Open tool → LiveMatrix Calculator
Add, multiply, invert matrices up to 4×4.
Open tool → LiveSystem of Equations Solver
Solve 2×2 and 3×3 systems step by step.
Open tool → LiveDerivative & Integral Calculator
Numeric derivatives and Simpson’s-rule integrals.
Open tool → LiveTriangle Solver
SSS, SAS, ASA, AAS with diagram.
Open tool → LivePythagorean Calculator
Solve any side of a right triangle.
Open tool → LiveCircle Calculator
Radius, diameter, circumference, area from any one.
Open tool → LiveArea & Volume Calculator
Areas and surface/volume for common shapes.
Open tool → LiveDistance Calculator
2D/3D distance and midpoint.
Open tool → LiveBitwise Calculator
AND, OR, XOR, NOT, shifts in binary/hex.
Open tool → LiveHalf-Life Calculator
Decay math plus a decay chart.
Open tool → LiveScientific Calculator
Trig, logs, powers, factorials — full keypad.
Open tool → LiveQuadratic Solver
Solve ax²+bx+c=0 — roots, vertex, and steps shown.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.