Slope Calculator

Choose calculation method and enter values to get slope, angle, percentage, and detailed step-by-step solutions.

Slope Calculator

Select calculation method and enter values

📍 Two Points
📐 Rise/Run
📝 Equation
📊 Angle
📈 Percentage
🔢 Ratio

Slope Results

TXT
PDF
JSON
Print
-
Slope (m)
-
Angle (°)
-
Percentage
-
Ratio

Recent Calculations

What is Slope?

Slope (often denoted as m) is a measure of the steepness or incline of a line. It represents the rate of change between two points on a line, describing how much the vertical coordinate (y) changes for each unit change in the horizontal coordinate (x).

In mathematics, slope is fundamental to understanding linear relationships. It's commonly expressed as "rise over run," where:

Slope (m) = Rise / Run = Δy / Δx = (y₂ - y₁) / (x₂ - x₁)

Key Concepts:

  • Rise: The vertical change between two points (Δy = y₂ - y₁)
  • Run: The horizontal change between two points (Δx = x₂ - x₁)
  • Positive Slope: Line rises from left to right
  • Negative Slope: Line falls from left to right
  • Zero Slope: Horizontal line (no vertical change)
  • Undefined Slope: Vertical line (no horizontal change)

Slope is used extensively in various fields including mathematics, physics, engineering, architecture, and economics to describe rates of change, gradients, and inclines.

Slope Formula and Calculation Methods

There are several ways to calculate slope depending on the information available:

From Two Points

Given two points (x₁, y₁) and (x₂, y₂):

m = (y₂ - y₁) / (x₂ - x₁)

Example: Points (2, 3) and (6, 7)

m = (7 - 3) / (6 - 2) = 4 / 4 = 1

From Rise and Run

Directly using vertical and horizontal changes:

m = Rise / Run

Example: Rise = 5, Run = 2

m = 5 / 2 = 2.5

From Line Equation

Slope-intercept form: y = mx + b

m is the coefficient of x

Example: y = 3x + 2

Slope m = 3

From Angle

Using trigonometric tangent function:

m = tan(θ)

Example: Angle θ = 45°

m = tan(45°) = 1

From Percentage

Converting percentage grade to slope:

m = Percentage / 100

Example: 25% grade

m = 25 / 100 = 0.25

From Ratio

Direct ratio of rise to run:

m = Rise : Run

Example: Ratio 3:4

m = 3 / 4 = 0.75

Types of Slope

Slope can be classified into four main types based on its value and direction:

Positive Slope

Line rises from left to right. As x increases, y increases.

m > 0
Example: m = 2
Angle: 0° < θ < 90°

Real-world example: Uphill road, increasing profits over time

Negative Slope

Line falls from left to right. As x increases, y decreases.

m < 0
Example: m = -1.5
Angle: 90° < θ < 180°

Real-world example: Downhill road, decreasing temperature with altitude

Zero Slope

Horizontal line. No vertical change as x changes.

m = 0
Example: y = 4
Angle: θ = 0°

Real-world example: Flat surface, constant speed

Undefined Slope

Vertical line. No horizontal change as y changes.

m = undefined
Example: x = 3
Angle: θ = 90°

Real-world example: Vertical wall, free fall

Slope Interpretation Guide

  • |m| > 1: Steep slope (rises/falls quickly)
  • |m| = 1: 45° angle (rise equals run)
  • 0 < |m| < 1: Gentle slope (rises/falls slowly)
  • m = 0: Completely flat (horizontal)
  • m undefined: Completely vertical

Detailed Calculation Methods

1

Two Points Method

Most common method using coordinates of two points on the line.

Points: (x₁, y₁) = (2, 3)
(x₂, y₂) = (6, 7)
m = (7-3)/(6-2) = 4/4 = 1

Steps:

  1. Identify coordinates of two points
  2. Subtract y-coordinates (rise)
  3. Subtract x-coordinates (run)
  4. Divide rise by run
2

Rise Over Run Method

Direct measurement of vertical and horizontal changes.

Rise = 5 units
Run = 2 units
m = 5/2 = 2.5

Steps:

  1. Measure vertical change (rise)
  2. Measure horizontal change (run)
  3. Divide rise by run
  4. Include sign for direction
3

Equation Method

Extract slope from linear equation forms.

y = 3x + 2 → m = 3
2x - 3y = 6 → m = 2/3
y - 4 = 2(x - 1) → m = 2

Forms:

  • Slope-intercept: y = mx + b
  • Standard: Ax + By = C
  • Point-slope: y - y₁ = m(x - x₁)
4

Angle Conversion

Convert angle of inclination to slope using tangent.

Angle = 30°
m = tan(30°) ≈ 0.577
m = 1/√3 ≈ 0.577

Key Angles:

  • 0° → m = 0
  • 45° → m = 1
  • 60° → m = √3 ≈ 1.732
  • 90° → m = undefined
5

Percentage Conversion

Convert percentage grade to slope ratio.

25% grade
m = 25/100 = 0.25
Ratio = 1:4

Common Grades:

  • 5% → m = 0.05 (gentle)
  • 10% → m = 0.10 (moderate)
  • 20% → m = 0.20 (steep)
  • 100% → m = 1 (45° angle)
6

Ratio Conversion

Convert slope ratio to decimal and other forms.

Ratio = 3:4
m = 3/4 = 0.75
Angle = arctan(0.75) ≈ 36.87°
Percentage = 75%

Common Ratios:

  • 1:1 → m = 1 (45°)
  • 1:2 → m = 0.5 (26.57°)
  • 2:1 → m = 2 (63.43°)
  • 1:12 → m = 0.083 (4.76°)

Solved Examples

Step-by-step solutions to various slope calculation problems:

Example 1: Two Points
Find slope between points (1, 2) and (5, 10)
1. Identify: (x₁, y₁) = (1, 2), (x₂, y₂) = (5, 10)
2. Calculate rise: y₂ - y₁ = 10 - 2 = 8
3. Calculate run: x₂ - x₁ = 5 - 1 = 4
4. Slope: m = 8/4 = 2
Slope = 2, Angle = 63.43°, Percentage = 200%
Example 2: Rise Over Run
Rise = 3 meters, Run = 12 meters
1. Rise = 3, Run = 12
2. Slope: m = 3/12 = 0.25
3. Simplify: m = 1/4
4. Ratio: 1:4
Slope = 0.25, Angle = 14.04°, Percentage = 25%
Example 3: Line Equation
Find slope of line: 2x - 4y = 8
1. Convert to slope-intercept form
2. -4y = -2x + 8
3. y = (1/2)x - 2
4. Slope is coefficient of x
Slope = 0.5, Angle = 26.57°, Percentage = 50%
Example 4: Angle to Slope
Convert 60° angle to slope
1. Use formula: m = tan(θ)
2. m = tan(60°)
3. tan(60°) = √3
4. m ≈ 1.732
Slope = 1.732, Percentage = 173.2%, Ratio = √3:1
Example 5: Percentage to Slope
Convert 15% grade to slope
1. Percentage = 15%
2. m = 15/100 = 0.15
3. Simplify: m = 3/20
4. Ratio: 3:20
Slope = 0.15, Angle = 8.53°, Ratio = 3:20
Example 6: Ratio to Slope
Convert ratio 4:3 to slope
1. Ratio = 4:3
2. m = 4/3 ≈ 1.333
3. Angle = arctan(4/3)
4. Angle ≈ 53.13°
Slope = 1.333, Angle = 53.13°, Percentage = 133.3%

Real-World Applications of Slope

Slope calculations are essential in numerous practical applications:

Civil Engineering

  • Road and highway design (grades)
  • Drainage system planning
  • Ramp design for accessibility
  • Railroad track gradients
  • Earthwork calculations

Architecture & Construction

  • Roof pitch and slope
  • Staircase design
  • Foundation grading
  • Landscape grading
  • Retaining wall design

Transportation

  • Vehicle climbing ability
  • Runway design
  • Bicycle path gradients
  • Ski slope ratings
  • Parking garage ramps

Geography & Surveying

  • Topographic map interpretation
  • Land slope analysis
  • Erosion control planning
  • Watershed delineation
  • Flood plain mapping

Physics & Science

  • Velocity-time graphs
  • Acceleration calculations
  • Force component analysis
  • Energy gradient studies
  • Rate of change measurements

Economics & Business

  • Supply and demand curves
  • Cost function analysis
  • Revenue growth rates
  • Trend line analysis
  • Market trend slopes

Important Slope Standards

  • ADA Ramp Standards: Maximum slope of 1:12 (8.33%) for accessibility ramps
  • Road Design: Maximum grade typically 6-12% depending on road type
  • Roof Pitch: Minimum 1:12 for proper drainage, varies by material
  • Stair Design: Optimal slope around 30-35° (rise:run ≈ 7:11)
  • Parking Garages: Maximum slope typically 15-20% for vehicle ramps

Frequently Asked Questions About Slope Calculator

Get clear answers about slope, gradient, rise over run, angle calculation, and real-world applications.

What's the difference between slope and gradient?
Slope and gradient both describe the steepness of a line. In basic algebra, they are used interchangeably. However, in advanced mathematics like calculus, the term gradient refers to the rate of change of a function and involves partial derivatives. For linear equations, slope (m) represents how much y changes for every unit change in x.
How do I calculate slope on a graph?
To calculate slope from a graph: choose two clear points on the line, measure the vertical change (rise), measure the horizontal change (run), and divide rise by run. A line going up from left to right has a positive slope, while a downward line has a negative slope.
What does a slope of 0 mean?
A slope of 0 means the line is horizontal. There is no vertical change as x increases, so the line is flat. The equation of such a line is y = constant, and it represents no incline or decline in real-world situations.
Why is the slope of a vertical line undefined?
The slope of a vertical line is undefined because the horizontal change (run) is zero. Since slope is calculated as rise divided by run, division by zero is not defined in mathematics, making the slope undefined.
How do you calculate slope using a formula?
The slope formula is m = (y₂ − y₁) / (x₂ − x₁). Subtract the y-values to get the rise and subtract the x-values to get the run, then divide rise by run. This formula works for any two points on a straight line.
How do I convert slope to degrees?
To convert slope into an angle, use the formula angle = arctan(slope). This gives the angle in degrees. For example, a slope of 1 equals 45°, while smaller slopes produce smaller angles.
What is slope percentage and how is it calculated?
Slope percentage is calculated by multiplying the slope value by 100. For example, a slope of 0.5 equals 50%. It is commonly used in construction, road design, and engineering to measure steepness.
What does a positive or negative slope indicate?
A positive slope means the line rises from left to right, showing an increasing relationship. A negative slope means the line falls from left to right, indicating a decreasing relationship between variables.
How do I find slope from an equation?
Convert the equation into slope-intercept form (y = mx + b). The coefficient of x (m) is the slope. For example, in y = 2x + 3, the slope is 2.
Where is slope used in real life?
Slope is widely used in real life, including road and ramp design, construction, physics (motion and velocity), economics (rate of change), and data analysis. It helps measure steepness, direction, and trends in various fields.