Slope Calculator – Find the Slope Between Two Points

Find the slope between two points and the line equation.

Slope Calculator What is this? ↓
About the Slope Calculator

What is the Slope Calculator?

A slope calculator computes the slope of the line through two points, its equation and its angle from the horizontal.

Why use this calculator?

Slope measures steepness and rate of change — road grades, roof pitches and growth trends all reduce to it.

How to use it

  1. Enter two points (x₁,y₁) and (x₂,y₂).
  2. Read the slope, the y = mx + b equation and the angle.

Formula

m = (y₂ − y₁) ÷ (x₂ − x₁).
A vertical line has no slope; the calculator identifies it clearly instead of dividing by zero.
Frequently Asked Questions
What does a negative slope mean?
The line descends as x increases. Graphically the function is decreasing.
How is slope used in real life?
Road grades (5% = 5 ft rise per 100 ft), wheelchair ramps, roof pitch and price trends all use slope.
What order of operations does this use?
It follows standard PEMDAS/BODMAS rules: parentheses, exponents, multiplication and division, then addition and subtraction.
How precise are the answers?
The calculator uses double-precision floating-point math (about 15 significant digits) and rounds the display. For exact symbolic results use dedicated algebra software.
Can I enter negative numbers or decimals?
Yes. Negative values, decimals and very large or small numbers are all supported unless a field says otherwise.
What does it mean if I get an error?
Errors usually mean an invalid input, such as division by zero or a negative value where only positives make sense. Check your entries and try again.
Which units should I use?
Use one consistent unit for every input. The result will be in that unit (or its square or cube for area and volume).
How is area different from perimeter?
Perimeter is the distance around a shape; area is the space it covers. Perimeter is measured in units, area in square units.
Does the orientation of the shape matter?
No. Area, perimeter and volume depend only on the dimensions, not on how the shape is rotated or positioned.
Is this calculator free to use?
Yes. Every calculator on this site is completely free, with no hidden fees, no subscriptions and no limits on how many times you can use it.

Related reading: Guides & How-tos

All articles →