Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer
Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
HomeMathSlope Calculator

Slope Calculator

Calculate the slope, line equation, distance, midpoint, and angle between any two coordinate points. Enter x and y values for instant results.

Share:
Enter Two Points

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Results update automatically as you type.
Results

Slope (m)

2.000000

Line Equation

y = 2.0000x + 0.0000

Distance

6.7082

Angle

63.43°

Midpoint X

1.5000

Midpoint Y

3.0000

Rise / Run

Rise (Δy): 6.0000  |  Run (Δx): 3.0000

What Is a Slope Calculator?

A slope calculator finds the steepness of a line between two points on a coordinate plane. Slope is one of the most important concepts in algebra and geometry, used in everything from graphing linear equations to analyzing road grades, roof pitches, and ramp inclines. If you have two coordinate points, this tool instantly calculates slope, line equation, distance, midpoint, and angle.

The concept of slope dates back to Rene Descartes, who in 1637 introduced the coordinate plane that made it possible to represent geometric relationships algebraically. Today, slope calculations are essential in civil engineering, architecture, physics, economics, and data analysis. For related calculations, see our Distance Calculator and Midpoint Calculator.

What This Calculator Does

Enter the coordinates of two points and the calculator computes all related measurements of the line segment and the line passing through them.

Inputs Required

  • x1, y1: Coordinates of the first point
  • x2, y2: Coordinates of the second point

Outputs Provided

  • Slope (m): The steepness and direction of the line
  • Line Equation: The equation in slope-intercept form (y = mx + b)
  • Distance: Length of the segment between the two points
  • Midpoint: The exact center point between the two coordinates
  • Angle: The angle the line makes with the horizontal axis in degrees
  • Rise and Run: The vertical and horizontal change between points

How the Calculation Works

Slope Formula

m = (y2 - y1) / (x2 - x1)

m = rise / run

Slope measures how much the line rises or falls for every unit it moves horizontally. A positive slope means the line goes up from left to right. A negative slope means it goes down. A slope of zero means a horizontal line. An undefined slope means a vertical line. For more on linear equations, see our Point Slope Calculator.

Distance Formula

d = sqrt((x2 - x1)^2 + (y2 - y1)^2)

This is derived from the Pythagorean theorem. The horizontal difference is the run and the vertical difference is the rise. Together they form a right triangle, and the hypotenuse is the distance between the two points.

Midpoint Formula

Midpoint = ((x1 + x2) / 2, (y1 + y2) / 2)

Line Equation (Slope-Intercept Form)

y = mx + b

b = y1 - m x x1

Where m is the slope and b is the y-intercept (the y value when x = 0). This form is the standard way to express a linear equation.

How to Use the Calculator

  1. Enter the x and y coordinates for Point 1
  2. Enter the x and y coordinates for Point 2
  3. Results update instantly as you type
  4. Read the slope, line equation, distance, midpoint, and angle

Example Calculations

Example 1: Basic Slope Calculation

Given Point 1 (2, 3) and Point 2 (8, 11):

  • Rise: 11 - 3 = 8
  • Run: 8 - 2 = 6
  • Slope: 8 / 6 = 1.3333
  • Distance: sqrt(36 + 64) = sqrt(100) = 10
  • Midpoint: (5, 7)
  • Y-intercept b: 3 - 1.3333 x 2 = 0.3333
  • Line equation: y = 1.3333x + 0.3333

Example 2: Road Grade Calculation

Carlos, a 38-year-old civil engineer in Denver, is designing a new road segment. The road starts at elevation 5,200 feet (Point 1) and ends at elevation 5,380 feet (Point 2) over a horizontal distance of 2,000 feet. He enters these as coordinates: (0, 5200) and (2000, 5380). The slope is (5380 - 5200) / (2000 - 0) = 180 / 2000 = 0.09, which is a 9% grade. This is within acceptable limits for local roads but exceeds the 6% maximum grade recommended for interstate highways. Carlos adjusts the route to increase the horizontal distance to 3,000 feet, reducing the grade to 6%.

Real-World Scenarios

ADA Wheelchair Ramp Design

Amanda, a 32-year-old architect in Austin, is designing a wheelchair ramp for a community center entrance with a 24-inch rise. ADA standards require a maximum slope of 1:12 (1 inch of rise per 12 inches of run), which equals a slope of 0.0833 or 4.76 degrees. She enters (0, 0) and (288, 24) into the calculator, confirming a slope of 0.0833. The ramp must extend at least 288 inches (24 feet) horizontally. If the ramp exceeds 30 inches of rise, ADA guidelines require an intermediate landing. Amanda uses the distance output to calculate the ramp surface area for material ordering.

Roofing and Construction

Tony, a 45-year-old roofing contractor in Pittsburgh, needs to calculate the pitch of a roof. He measures from the eave (0, 0) to the ridge (180, 60), where 180 is the horizontal run in inches and 60 is the vertical rise. The slope is 60 / 180 = 0.3333, which corresponds to a 4:12 pitch (4 inches of rise per 12 inches of run). This pitch is suitable for asphalt shingles, which require a minimum 2:12 pitch. Tony uses the angle output (18.43 degrees) to determine the correct safety equipment needed for his crew working on this slope.

Data Analysis and Revenue Trends

Priya, a 30-year-old business analyst in San Francisco, tracks monthly revenue growth. In month 2, revenue was $200,000 (point (2, 200)). In month 8, revenue reached $350,000 (point (8, 350)). The slope is (350 - 200) / (8 - 2) = 150 / 6 = 25, meaning revenue is growing by $25,000 per month on average. She uses this slope to project future revenue and present growth trends to her executive team. For statistical analysis of data trends, see our Statistics Calculator.

Common Mistakes to Avoid

  • Reversing rise and run: Always divide the vertical change (rise) by the horizontal change (run), not the other way around. Slope is rise over run, not run over rise. Mixing them up gives you the reciprocal of the correct answer
  • Confusing negative slope direction: A negative slope means the line descends from left to right, not that the line goes below zero. A line with slope -2 starting at (0, 10) passes through (1, 8) and (5, 0), still above the x-axis for several units
  • Forgetting undefined slope: When both points have the same x-coordinate (vertical line), the slope is undefined because you cannot divide by zero. The line equation is x = (constant), not y = mx + b. This is different from a slope of zero, which represents a horizontal line
  • Mixing coordinate order: Ensure the x and y values are entered in the correct order for each point. Swapping x and y for one point but not the other produces an incorrect slope. Double-check that Point 1's x goes with Point 1's y
  • Confusing slope with angle: Slope is a ratio (rise over run), while angle is measured in degrees. A slope of 1 (45 degrees) is not the same as a slope of 45. The angle is calculated as arctan(slope), so a slope of 0.0833 (1:12 ramp) equals an angle of 4.76 degrees

Limitations of This Calculator

This calculator works with two points in a two-dimensional Cartesian coordinate system. It does not handle three-dimensional coordinates, polar coordinates, or parametric equations. It computes the slope of a straight line, not curves or nonlinear functions. For curved functions, the derivative at a specific point gives the instantaneous slope, which requires calculus rather than this tool. The calculator also does not handle vertical lines (undefined slope) gracefully in the line equation output, since the slope-intercept form y = mx + b does not apply to vertical lines. For complex geometric calculations involving multiple points, polygons, or coordinate transformations, a dedicated geometry software tool is more appropriate.

Authoritative Research & Resources

  • Khan Academy - Introduction to Slope - Free educational resource with video lessons and practice problems covering slope, slope-intercept form, point-slope form, and linear equations. Ideal for students learning algebra and for professionals needing a refresher on coordinate geometry.
  • Wolfram MathWorld - Slope - The definitive mathematical reference for slope, maintained by Wolfram Research. Covers formal definitions, the relationship between slope and derivatives, and applications in analytic geometry and calculus.
  • ADA - Design and Construction Standards - The Americans with Disabilities Act provides official accessibility design standards including the 1:12 maximum slope ratio for wheelchair ramps. Essential reference for architects, contractors, and building inspectors working on accessible construction projects.

Frequently Asked Questions

What does undefined slope mean?
Undefined slope occurs when both points have the same x-coordinate, creating a perfectly vertical line. Division by zero (the run is zero) gives an undefined result. A vertical line does not have a slope value in the traditional sense. Its equation is written as x = (constant). This is different from a slope of zero, which represents a horizontal line where the rise is zero. The slope formula m = (y2 - y1) / (x2 - x1) breaks down because the denominator equals zero.
What does a negative slope mean?
A negative slope means the line descends from left to right. As x increases, y decreases. For example, a slope of -2 means for every 1 unit you move right, the line drops 2 units down. This is common in depreciation curves, cooling graphs, and declining trends. A line with slope -2 starting at point (0, 10) passes through (1, 8), (2, 6), (5, 0), and continues downward. The line is still above the x-axis for several units despite the negative slope.
How do I find if two lines are parallel or perpendicular?
Parallel lines have identical slopes. If Line 1 has slope 3 and Line 2 also has slope 3, they are parallel and will never intersect. Perpendicular lines have slopes that are negative reciprocals of each other. If Line 1 has slope m, then a perpendicular line has slope -1/m. For example, if slope = 2, the perpendicular slope = -0.5. If slope = 0.25, the perpendicular slope = -4. A horizontal line (slope 0) is perpendicular to a vertical line (undefined slope).
How is slope expressed as a grade or percentage?
To express slope as a percentage grade, multiply the slope by 100. A slope of 0.05 equals a 5% grade, meaning the road rises 5 feet for every 100 feet of horizontal distance. Road signs often show grade percentages for steep hills. The ADA standard for wheelchair ramps is 1:12, which equals a slope of 0.0833 or an 8.33% grade. Interstate highways typically have a maximum grade of 6%, while local roads may allow up to 12% in mountainous terrain.
Can slope be a fraction or decimal?
Yes. Slope can be any real number including fractions, decimals, negative values, zero, or undefined. A slope of 1/3 means the line rises 1 unit for every 3 units it moves horizontally. A slope of 2.5 means the line rises 2.5 units for every 1 unit of horizontal movement. The calculator displays slope as a decimal for precision, but you can convert it to a fraction if needed. For example, a slope of 0.3333 is equivalent to 1/3.
What is the difference between slope and angle?
Slope is a ratio (rise divided by run), while angle is measured in degrees. They are related by the formula: angle = arctan(slope). A slope of 1 corresponds to 45 degrees. A slope of 0.0833 (the ADA 1:12 ramp standard) corresponds to 4.76 degrees. A slope of 0.5 corresponds to 26.57 degrees. Slope is more commonly used in algebra and road design, while angle is more common in construction, roofing, and physics. This calculator provides both so you can use whichever format your project requires.

Related Calculators

Distance Calculator

Calculate distance between two coordinate points

Triangle Calculator

Solve all sides and angles of any triangle

Pythagorean Theorem Calculator

Calculate triangle sides using the Pythagorean theorem

Embed This Calculator

Slope Calculator

Calculate
Reset
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer