Free Slope Calculator

Function graph plotted on axes on paper with a pencil beside it
Photo: Sergey Meshkov / Pexels, Pexels licence

Published: 16 November 2026  ยท  Updated: 16 November 2026

Find the slope of a line through two points, with the equation, intercepts, distance and angle of inclination. It starts with (2, 3) and (6, 11): slope 2, equation y = 2x โˆ’ 1. Free, no sign-up.

MixKhazana · Quick answer

Slope is rise over run. Enter two points and read the slope as a fraction and a decimal, the line's equation, both intercepts, the distance between the points and the line's angle.

Researched by MixKhazana Team · Last updated 16 November 2026 · Data: standard coordinate-geometry formulas; Maths is Fun reference pages

Example: Points (2, 3) and (6, 11): rise = 11 โˆ’ 3 = 8, run = 6 โˆ’ 2 = 4, so slope m = 8/4 = 2. The intercept is b = 3 โˆ’ 2 ร— 2 = โˆ’1, giving y = 2x โˆ’ 1, and the distance is โˆš(4ยฒ + 8ยฒ) = โˆš80 โ‰ˆ 8.9443.
Zero slope is not undefined slope. A horizontal line (rise 0) has slope 0 and equation y = b. A vertical line (run 0) has undefined slope and equation x = a. Mixing them up is the classic slope mistake.

What is slope?

Slope (also called gradient) measures how steep a line is: how much y changes for each unit x changes. A slope of 2 means the line climbs 2 units for every 1 unit it runs; a slope of โˆ’1/2 means it falls 1 unit for every 2 it runs. Slope is the core idea behind linear equations, rates of change, and later calculus.

How to use this slope calculator

  1. Enter the two points (xโ‚, yโ‚) and (xโ‚‚, yโ‚‚). Any real numbers work, including decimals and negatives.
  2. Read the slope as a fraction and a decimal, plus the line's equation in slope-intercept form.
  3. Check the intercepts, distance and angle for the full picture of the line.

Slope formulas

  • Slope: m = (yโ‚‚ โˆ’ yโ‚) / (xโ‚‚ โˆ’ xโ‚) = rise / run
  • Equation: y = mx + b, where b = yโ‚ โˆ’ mยทxโ‚
  • x-intercept: x = โˆ’b/m (where the line crosses the x-axis)
  • Distance: d = โˆš((xโ‚‚ โˆ’ xโ‚)ยฒ + (yโ‚‚ โˆ’ yโ‚)ยฒ)
  • Angle: ฮธ = arctan(m), the angle from the positive x-axis

Worked example

Find the slope and equation of the line through (2, 3) and (6, 11):

  • Rise = 11 โˆ’ 3 = 8; run = 6 โˆ’ 2 = 4
  • Slope m = 8 / 4 = 2
  • Intercept b = 3 โˆ’ 2 ร— 2 = โˆ’1
  • Equation: y = 2x โˆ’ 1; check: at x = 6, y = 11 โœ“
  • Distance = โˆš(16 + 64) = โˆš80 โ‰ˆ 8.9443; angle = arctan(2) โ‰ˆ 63.43ยฐ

Try it above: the default points give exactly these numbers.

Reading a slope

SlopeLineMeaning
m > 0Risingy grows as x grows
m < 0Fallingy shrinks as x grows
m = 0Horizontaly is constant: y = b
UndefinedVerticalx is constant: x = a
|m| largeSteepy changes fast with x

Parallel and perpendicular lines

Parallel lines have equal slopes: if one line has slope 2, every line parallel to it has slope 2. Perpendicular lines have slopes that are negative reciprocals: if one line has slope m, a line perpendicular to it has slope โˆ’1/m. So a line with slope 2 is perpendicular to a line with slope โˆ’1/2. The exceptions are horizontal and vertical lines, which are perpendicular to each other even though the vertical line has no slope at all.

Frequently asked questions

What is the slope formula?

Slope m = (y2 - y1) / (x2 - x1), the change in y divided by the change in x. It is rise over run: how much the line climbs for each unit it moves right.

What is the difference between slope 0 and undefined slope?

Slope 0 means a horizontal line: y never changes, equation y = b. Undefined slope means a vertical line: x never changes, equation x = a, and the slope formula divides by zero, which is undefined.

How do you find the slope from an equation?

Put the equation in slope-intercept form y = mx + b. The number multiplying x is the slope. In y = 3x + 2 the slope is 3; in 2x + 4y = 8, rearrange to y = -x/2 + 2, so the slope is -1/2.

What are the slopes of parallel and perpendicular lines?

Parallel lines have equal slopes. Perpendicular lines have slopes that are negative reciprocals: m and -1/m. A line of slope 2 is perpendicular to a line of slope -1/2.

Is slope the same as gradient?

Yes. Gradient is the usual word in UK and international schools; slope is the usual word in US schools. They mean exactly the same thing: rise over run.

How is slope related to the angle of the line?

The angle a line makes with the positive x-axis is arctan(slope). A slope of 1 gives 45 degrees, a slope of 0 gives 0 degrees, and a vertical line gives 90 degrees. Steeper lines have larger absolute slopes and larger angles.

Can slope be a fraction?

Yes, and it often is. A slope of 3/4 means the line rises 3 units for every 4 it runs. This tool shows the slope as a simplified fraction whenever both coordinates are whole numbers.

Sources

Disclaimer: a study aid for school and college coordinate geometry. Results are exact for the coordinates entered.

Related tools

Function graph plotted on axes on paper with a pencil beside it
๐Ÿ“ˆ

Free Graphing Calculator

Plot functions and read values from the curve.

Open →
Scientific calculator close-up on a green background
๐Ÿ”ฌ

Free Scientific Calculator

Trig, logs and powers with degree and radian modes.

Open →
Hand with a pen pointing at printed bar and line charts
๐Ÿ“Š

Free Statistics Calculator

Mean, median, mode and regression for your data.

Open →
Students studying together with notes and a calculator
โž—

Free Fraction Calculator

Add, subtract, multiply and divide fractions with steps.

Open →

Card photos: Sergey Meshkov / Pexels, Pexels licence ยท Joost J. Bakker / Wikimedia Commons, CC BY 2.0 ยท Lukas Blazek / Pexels, Pexels licence ยท cottonbro studio / Pexels, Pexels licence

Your next step

Plot the line with the Free Graphing Calculator, or fit a regression line to data with the Free Statistics Calculator.

Share: