Slope calculator
Enter two points (xโ, yโ) and (xโ, yโ). We'll find the slope (rise over run), the y-intercept and the line's equation.
How do you find the slope of a line?
Slope is rise over run: m = (yโ โ yโ) รท (xโ โ xโ). For the points (1, 2) and (4, 8): rise = 8 โ 2 = 6, run = 4 โ 1 = 3, so the slope is 2. Then find the y-intercept: b = yโ โ m ร xโ = 2 โ 2 = 0, so the line is y = 2x. A vertical line has an undefined slope.
How we calculate this
m = (yโ โ yโ) รท (xโ โ xโ), shown as a simplified fraction when the inputs are whole numbers. b = yโ โ m ร xโ. If xโ = xโ, the line is vertical and the slope is undefined. Saved only on this device.
Questions moms ask
What does a negative slope mean?
The line goes down as you move to the right.
What's the slope of a flat line?
Zero. A horizontal line has no rise.
Does the order of the points matter?
No. Swapping them gives the same slope.
Is it saved?
Your last points are saved on this device.
Related tools
This tool gives an estimate, not medical advice. Every pregnancy and every baby is different. If you're worried about anything, talk to your doctor or midwife.