Slope Calculator
Calculate the slope of a line passing through two points as rise over run (change in y divided by change in x).
This free online slope calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Results
Slope (m)
2
Rise (Δy)
6
Run (Δx)
3
Angle of Inclination
63.4349°
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Slope Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Slope Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the Slope Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
- •Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
- •Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
- •Use it to explore the behavior of mathematical functions across a range of inputs.
Related Calculators
Line Equation from Two Points Calculator
Find the equation of the line passing through two given points in slope-intercept form.
Average Rate of Change Calculator
Calculate the average rate of change of a function between two points, representing the slope of the secant line.
Rise Over Run Calculator
Calculate the rise, run, and slope between two points, with a visual understanding of how slope relates to steepness.
Slope-Intercept Form Calculator
Find the slope-intercept form (y = mx + b) of a line given two points or a point and slope.
y-Intercept Calculator
Calculate the y-intercept of a line given its slope and a point on the line, or from two points.
Gradient Calculator
Calculate the gradient (slope) between two points in a coordinate plane, including the angle of inclination.
About Slope Calculator
The slope of a line measures its steepness and direction, defined as the ratio of vertical change (rise) to horizontal change (run) between any two points on the line. A positive slope means the line goes upward from left to right; a negative slope means it goes downward. A slope of zero indicates a horizontal line, and an undefined slope (when the run is zero) indicates a vertical line. Slope is a fundamental concept in algebra, geometry, calculus (as the basis for derivatives), physics (velocity as the slope of a position-time graph), and engineering (grades and gradients). This calculator computes the slope, the rise and run separately, and the angle of inclination.
The Math Behind It
Formula Reference
Slope Formula
m = (y₂ - y₁) / (x₂ - x₁)
Variables: Point 1 = (x₁, y₁), Point 2 = (x₂, y₂); x₁ ≠ x₂
Worked Examples
Example 1: Calculating slope between two points
Find the slope of the line through (1, 2) and (4, 8)
Slope = 2, angle ≈ 63.43°
Example 2: Negative slope
Find the slope of the line through (0, 5) and (3, 2)
Slope = -1 (line descends at 45°)
Common Mistakes & Tips
- !Subtracting x-coordinates in a different order than y-coordinates.
- !Thinking a vertical line has slope 0 (it is actually undefined).
- !Confusing rise/run with run/rise.
- !Forgetting that slope can be negative.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
What does a slope of zero mean?
The line is horizontal. There is no vertical change between any two points.
What does an undefined slope mean?
The line is vertical. The x-coordinates are equal, so the run is zero, and division by zero is undefined.
How are slopes of perpendicular lines related?
Their slopes are negative reciprocals: m1 × m2 = -1. For example, slopes of 2 and -1/2 are perpendicular.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Slope Calculator into your page.
Free to embed — includes a link back to MegaCalc.