Slope of a Line Calculator

Find the slope from two points: (x1, y1) and (x2, y2). Slope = (y2 − y1) / (x2 − x1).

Slope calculator

Enter two points (x1, y1) and (x2, y2). The slope is (y2 − y1) / (x2 − x1). If x1 = x2 the line is vertical and the slope is undefined.

Frequently Asked Questions

How do you find the slope of a line?

Slope m = (y2 − y1) / (x2 − x1) for two points (x1, y1) and (x2, y2). Vertical lines have undefined slope.

Related

Cite This Calculator

Reference this calculator on your website or in your work using the citation below:

HTML Citation Code:

<p>Calculator: <a href="https://onlinecalculator.co.uk/math/slope-calculator" target="_blank">Slope of a Line Calculator</a> - OnlineCalculator.co.uk</p>

APA Style Citation:

OnlineCalculator.co.uk. (2025). Slope of a Line Calculator. Retrieved from https://onlinecalculator.co.uk/math/slope-calculator

Note: This calculator is free to use and reference. No permission required for educational or commercial citation.