Slope Formula
Slope m = (y₂−y₁)/(x₂−x₁) = rise/run. Measures steepness and direction. Positive = rises left to right; negative = falls. Zero = horizontal; undefined = vertical. Perpendicular slopes: m₁·m₂ = −1.
Did our AI summary help? Let us know.
Derivative f′(x) = slope of tangent line. Parallel lines: same slope. Perpendicular: m₁·m₂ = −1. Point order does not change slope.
Ready to run the numbers?
Why: Slope is the rate of change of y with respect to x — foundational in calculus (derivative), economics (marginal), and construction (road grades, roof pitch).
How: m = (y₂−y₁)/(x₂−x₁). When run=0 (same x), slope is undefined (vertical line). When rise=0 (same y), slope is 0 (horizontal). Angle θ = arctan(m) in degrees.
Run the calculator when you are ready.
Enter Two Points
Point 1 ()
Point 2 ()
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
m = rise/run = (y₂−y₁)/(x₂−x₁).
— Slope Formula
Perpendicular: m⊥ = −1/m.
— Property
Key Takeaways
- • Slope measures the steepness and direction of a line:
- • A positive slope means the line rises left to right; negative means it falls
- • A zero slope is a horizontal line; an undefined slope is a vertical line
- • Parallel lines have equal slopes; perpendicular lines have slopes whose product is -1
- • The slope is the rate of change of y with respect to x — a foundational concept in calculus
Did You Know?
The slope of a line is the simplest form of a derivative. In calculus, the derivative f'(x) gives the slope of the tangent line at any point on a curve.
Road grades are measured as slope percentages. A 6% grade means the road rises 6 feet for every 100 feet horizontally — that's a slope of 0.06.
Ski trail difficulty is based on slope steepness: green circles are <25%, blue squares 25-40%, and black diamonds >40% grade.
Roof pitch is expressed as slope. A "4/12 pitch" means the roof rises 4 inches for every 12 inches of run — a slope of 1/3.
In economics, the slope of a demand curve shows how price changes affect quantity demanded. A steeper slope means less price sensitivity.
René Descartes invented the coordinate system in 1637, connecting algebra and geometry and making the concept of slope possible.
Understanding Slope In Depth
The slope of a line (often denoted ) quantifies how steep a line is and in which direction it tilts. Given two distinct points and , the slope is the ratio of the vertical change (rise) to the horizontal change (run):
Positive Slope (m > 0)
Line rises from left to right. The larger the value, the steeper the ascent.
Negative Slope (m < 0)
Line falls from left to right. A larger absolute value means a steeper descent.
Zero Slope (m = 0)
A perfectly horizontal line. No vertical change between any two points.
Undefined Slope
A vertical line where the run is 0. Division by zero makes the slope undefined.
Expert Tips
Parallel & Perpendicular
Two lines are parallel if . They are perpendicular if . Use this to verify geometric properties.
Point Order Doesn't Matter
Swapping which point is P₁ and P₂ changes the sign of both rise and run, so the slope stays the same.
Slope as Rate of Change
In any linear model (y = mx + b), the slope m tells you how much y changes for each unit increase in x. This is fundamental in science and economics.
Angle Interpretation
The angle gives the inclination of the line with the positive x-axis. A 45° angle corresponds to m = 1.
Frequently Asked Questions
What is the slope formula?
The slope formula is m = (y₂ - y₁) / (x₂ - x₁). It calculates the ratio of vertical change (rise) to horizontal change (run) between two points on a line.
Can the slope be a fraction?
Yes! Slope is often a fraction. For example, a slope of 2/3 means the line rises 2 units for every 3 units it moves horizontally. Fractions are perfectly valid slopes.
What does an undefined slope mean?
An undefined slope occurs when the two points have the same x-coordinate, creating a vertical line. Since the run (denominator) is zero, division is undefined.
How do I find slope from an equation?
In slope-intercept form y = mx + b, the slope is m (the coefficient of x). In standard form Ax + By = C, the slope is -A/B.
What is the slope of perpendicular lines?
If a line has slope m, any line perpendicular to it has slope -1/m (the negative reciprocal). For example, if m = 3, the perpendicular slope is -1/3.
Does slope change with point order?
No. Whether you call one point P₁ or P₂, the slope is the same. Swapping points negates both the numerator and denominator, leaving the ratio unchanged.
How is slope used in real life?
Slope appears in road grades, roof pitches, wheelchair ramp regulations (max 1:12), staircase rise-to-run ratios, and as the rate of change in any linear relationship (e.g., speed, pricing).
How to Use This Calculator
- Enter the coordinates of two distinct points, or click a sample example to auto-fill.
- Click "Calculate Slope" to compute the result instantly.
- Review the results: slope value, angle, line equation, distance, midpoint, and perpendicular slope.
- Check the visualization to see the line, rise, and run on a coordinate grid.
- Examine the step-by-step solution for a detailed breakdown of the math.
- Copy the results to share or paste into assignments.
Note: This calculator uses standard floating-point arithmetic. For extremely large or very precise fractional values, minor rounding may occur. Results are suitable for educational purposes, homework, and professional calculations.
Related Calculators
Coordinate Grid Calculator
Coordinate Grid Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCoordinate Midpoint Calculator
Coordinate Midpoint Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCentroid Calculator
Centroid Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsEndpoint Calculator
Endpoint Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsGradient Calculator
Gradient Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsRotation Calculator
Rotation Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics