Slope Calculator

Calculate the slope of a line from two points, rise and run, or equation form. Get slope in decimal, fraction, degrees, percent grade, plus all equation forms.

Enter Two Points

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Slope Results

Slope (m)
0.75
Rise / Run
3 / 4
Angle
36.8699°
Percent Grade
75%

Line Equations

Slope-Intercept:y = 0.75x + 0
Point-Slope:y + 0 = 0.75(x - 0)
Standard Form:-3x + 4y = 0
Perpendicular Slope
-1.3333
Distance
5
Midpoint
(2, 1.5)

Slope Direction

Line rises from left to right (positive slope)
## Understanding Slope: The Foundation of Linear Mathematics Slope is one of the most fundamental concepts in algebra, geometry, and calculus. Our slope calculator helps you quickly determine the steepness and direction of any line, whether you're working with coordinate points, rise and run values, or converting between equation forms. ### What is Slope? Slope, often denoted by the letter **m**, measures how steep a line is and in which direction it travels. Mathematically, slope represents the ratio of vertical change (rise) to horizontal change (run) between any two points on a line: **m = rise / run = (y₂ - y₁) / (x₂ - x₁)** This ratio tells us several important things: - **Magnitude**: How steep the line is (larger absolute values = steeper lines) - **Direction**: Whether the line goes up (positive) or down (negative) as you move right - **Rate of change**: How much y changes for every unit change in x ### Types of Slopes Understanding the four types of slopes helps you interpret linear relationships: **Positive Slope (m > 0)**: The line rises from left to right. Examples include income growth over time, increasing temperatures, or climbing a hill. A slope of 2 means y increases by 2 for every 1 unit increase in x. **Negative Slope (m < 0)**: The line falls from left to right. Examples include depreciation, cooling temperatures, or descending a slope. A slope of -3 means y decreases by 3 for every 1 unit increase in x. **Zero Slope (m = 0)**: The line is perfectly horizontal. The y-value remains constant regardless of x. Examples include a flat road or a constant speed. The equation is simply y = b. **Undefined Slope**: The line is perfectly vertical. There's no horizontal change, making the ratio undefined (division by zero). Examples include walls or vertical poles. The equation is x = a. ### Slope Formulas and Equation Forms Our calculator provides three essential equation forms: **Slope-Intercept Form: y = mx + b** - m = slope - b = y-intercept (where the line crosses the y-axis) - Most useful for graphing and understanding the line's behavior **Point-Slope Form: y - y₁ = m(x - x₁)** - Uses any point (x₁, y₁) on the line - Helpful when you know the slope and one point - Often used in calculus for tangent lines **Standard Form: Ax + By = C** - A, B, and C are integers with no common factors - A is typically positive - Useful for certain algebraic operations ### Real-World Applications of Slope **Engineering and Construction**: Architects and engineers use slope to design ramps, roofs, and drainage systems. The Americans with Disabilities Act (ADA) requires wheelchair ramps to have a maximum slope of 1:12 (about 4.76 degrees). **Economics and Finance**: Slope appears in cost functions, supply and demand curves, and marginal analysis. A steeper demand curve indicates more price sensitivity. **Physics**: Velocity is the slope of a position-time graph. Acceleration is the slope of a velocity-time graph. Understanding slopes helps analyze motion and forces. **Geography and Surveying**: Terrain slope affects water runoff, erosion, and land use. A 10% grade means a 10-foot rise per 100 feet of horizontal distance. **Data Science**: The slope of a regression line indicates the strength and direction of relationships between variables. ### Percent Grade vs. Slope While mathematically equivalent, slope and percent grade serve different purposes: - **Slope** (as a ratio): Used in mathematics, expressed as rise/run or a decimal - **Percent grade**: Used in road signs and construction, calculated as (rise/run) × 100% A 6% road grade means for every 100 feet horizontally, the road rises 6 feet. This equals a slope of 0.06. ### The Perpendicular Slope Relationship Two perpendicular lines (intersecting at 90°) have slopes that are negative reciprocals: - If line 1 has slope m₁, line 2 has slope m₂ = -1/m₁ - The product of perpendicular slopes equals -1: m₁ × m₂ = -1 This relationship is crucial in: - Finding equations of perpendicular lines - Shortest distance problems - Geometric constructions - Computer graphics and game development ### Common Mistakes to Avoid **Reversing rise and run**: Remember, slope = rise/run, not run/rise. Rise is always the vertical change (y₂ - y₁). **Sign errors**: Be careful with negative coordinates. (-3 - 2) = -5, not -1. **Confusing undefined and zero**: Zero slope is horizontal; undefined slope is vertical. **Point order**: The order of points doesn't matter as long as you're consistent: (y₂ - y₁)/(x₂ - x₁) = (y₁ - y₂)/(x₁ - x₂). ### How to Use This Calculator Our slope calculator offers three convenient modes: 1. **Two Points Mode**: Enter coordinates (x₁, y₁) and (x₂, y₂) to calculate slope and all related values 2. **Rise and Run Mode**: Directly input rise and run values for quick calculations 3. **Equation Mode**: Enter slope and y-intercept to see the line's properties Each mode provides comprehensive results including decimal slope, angle in degrees, percent grade, all equation forms, perpendicular slope, distance, and midpoint. Whether you're a student learning linear equations, a professional calculating grades, or anyone working with linear relationships, this calculator provides instant, accurate results for all your slope calculations.

Frequently Asked Questions

What is slope in mathematics?
Slope is a measure of the steepness and direction of a line. It represents the rate of change between two points and is calculated as rise over run (vertical change divided by horizontal change). A positive slope indicates an upward trend, while a negative slope indicates a downward trend.
How do you calculate slope from two points?
To calculate slope from two points (x₁, y₁) and (x₂, y₂), use the formula: m = (y₂ - y₁) / (x₂ - x₁). This gives you the rise (vertical change) divided by the run (horizontal change). If the run equals zero (vertical line), the slope is undefined.
What does a slope of 0 mean?
A slope of 0 means the line is perfectly horizontal. There is no vertical change between any two points on the line - the y-value stays constant regardless of the x-value. The equation of a horizontal line is y = b, where b is the y-intercept.
What is an undefined slope?
An undefined slope occurs when a line is perfectly vertical. In this case, the run (horizontal change) equals zero, and since division by zero is undefined, the slope has no numerical value. Vertical lines are written as x = a, where a is the x-coordinate.
How do you find the perpendicular slope?
The perpendicular slope is the negative reciprocal of the original slope. If the original slope is m, the perpendicular slope is -1/m. For example, if a line has slope 2, the perpendicular slope is -1/2. If the original slope is 0 (horizontal), the perpendicular is undefined (vertical), and vice versa.
What is slope-intercept form?
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept. This form makes it easy to identify both the steepness of the line (m) and where it crosses the y-axis (b). It's one of the most common ways to express linear equations.