Free. No ads. No sign-up. Your info stays on your phone.

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.

    Share it with a mom who needs it

    ๐Ÿ“Œ Save to Pinterest

    Add this tool to your website

    Bloggers, teachers and clinics: copy this code to show this free tool on your own page. It has no ads and saves nothing on our side.

    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.

    See all our sources

    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.