Home / Math

Slope Calculator

Calculate the slope between two points and identify horizontal or vertical lines.

How it works

Slope is change in y divided by change in x. A vertical line has undefined slope.

Formula and assumptions

This calculator uses the values and units shown above. Results are rounded for display. Confirm inputs and assumptions before relying on a result for academic, engineering or other important decisions.

Example

Try the sample values, calculate, then change one input at a time to see how the result changes.

Frequently asked questions

Are results exact? They depend on the selected formula, input values and rounding. Special cases are reported when possible.

Does this replace professional software? No. Independently verify results for safety-critical or formal work.

For educational and general information. Report an issue.

Related math calculators