Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Coordinate Geometry Calculators
  4. /Slope Calculator

Slope Calculator

Last updated: March 15, 2026

Calculator

Results

Slope (m)

—

Angle of Inclination

—

°

Angle (Radians)

1.107149

rad

Rise (ΔY)

6

Run (ΔX)

3

Distance Between Points

—

Results

Slope (m)

—

Angle of Inclination

—

°

Angle (Radians)

1.107149

rad

Rise (ΔY)

6

Run (ΔX)

3

Distance Between Points

—

The Slope Calculator computes the slope (gradient) of a line passing through two points, along with the angle of inclination, rise, run, and distance. Slope is one of the most fundamental concepts in coordinate geometry and calculus, describing how steep a line is and in which direction it tilts.

The slope of a line through two points \((x_1, y_1)\) and \((x_2, y_2)\) is defined as the ratio of the vertical change to the horizontal change: $$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x} = \frac{\text{rise}}{\text{run}}$$

A positive slope means the line rises from left to right. A negative slope means it falls from left to right. A slope of zero indicates a horizontal line, while an undefined slope (division by zero when \(\Delta x = 0\)) indicates a vertical line.

The angle of inclination \(\theta\) is the angle the line makes with the positive x-axis, computed as: $$\theta = \arctan(m)$$

Slope is ubiquitous in mathematics and its applications. In calculus, the derivative of a function at a point is the slope of the tangent line, making slope the foundation of differential calculus. In physics, slope represents rate of change—velocity is the slope of a position-time graph, and acceleration is the slope of a velocity-time graph.

In civil engineering and construction, slope (often expressed as a percentage or ratio) determines road grades, roof pitches, drainage angles, and wheelchair ramp specifications. A 6% grade means the road rises 6 feet for every 100 feet of horizontal distance. In economics, slope represents marginal rates—marginal cost, marginal revenue, and elasticity are all slope-based concepts.

This calculator provides the slope as a decimal, the angle in both degrees and radians, the rise and run components, and the distance between the two points. Together, these values give a complete picture of the line's orientation and the spatial relationship between the points.

Understanding slope is also essential for writing equations of lines in various forms: slope-intercept (\(y = mx + b\)), point-slope (\(y - y_1 = m(x - x_1)\)), and standard form (\(Ax + By = C\)).

Visual Analysis

How It Works

The slope formula computes the rate of change between two points:

$$m = \frac{y_2 - y_1}{x_2 - x_1}$$

Step 1: Calculate the rise (vertical change): $$\text{rise} = \Delta y = y_2 - y_1$$

Step 2: Calculate the run (horizontal change): $$\text{run} = \Delta x = x_2 - x_1$$

Step 3: Divide rise by run to get the slope: $$m = \frac{\text{rise}}{\text{run}}$$

Step 4: Compute the angle of inclination: $$\theta = \arctan(m)$$

If \(\Delta x = 0\), the line is vertical and the slope is undefined.

Understanding Your Results

The Slope (m) tells you how much y changes per unit change in x. A slope of 2 means y increases by 2 for every 1 unit increase in x. The Angle of Inclination shows the tilt relative to the horizontal axis. Rise and Run are the raw vertical and horizontal differences. The Distance gives the straight-line length between the two points.

Worked Examples

Slope Between (1, 2) and (4, 8)

Inputs

x11
y12
x24
y28

Results

slope2
angle deg63.4349
angle rad1.107149
rise6
run3
distance6.708204

Rise = 6, Run = 3, so m = 6/3 = 2. The line rises steeply at about 63.4°.

Slope Between (-2, 5) and (6, 1)

Inputs

x1-2
y15
x26
y21

Results

slope-0.5
angle deg-26.5651
angle rad-0.463648
rise-4
run8
distance8.944272

Rise = -4, Run = 8, so m = -4/8 = -0.5. Negative slope means the line falls from left to right.

Frequently Asked Questions

A slope of zero means the line is perfectly horizontal. The y-values are the same for both points, so there is no vertical change regardless of horizontal movement.

An undefined slope occurs when \(\Delta x = 0\), meaning both points have the same x-coordinate. The line is vertical, and division by zero makes the slope undefined.

No. Swapping the points changes the sign of both the numerator and denominator, so the ratio stays the same: \(\frac{y_1-y_2}{x_1-x_2} = \frac{y_2-y_1}{x_2-x_1}\).

Multiply the slope by 100. A slope of 0.06 equals a 6% grade. This is commonly used in road engineering and construction.

The slope is the tangent of the angle of inclination: \(m = \tan(\theta)\). Conversely, \(\theta = \arctan(m)\). A 45° angle corresponds to a slope of 1.

In calculus, the derivative \(f'(x)\) gives the instantaneous slope of a curve at a point. The slope formula between two points gives the average rate of change, which approaches the derivative as the points get closer together.

Sources & Methodology

Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning. Thomas, G.B. (2018). Thomas' Calculus (14th ed.). Pearson.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Distance Calculator (2D)

Coordinate Geometry Calculators

Distance Calculator (3D)

Coordinate Geometry Calculators

Midpoint Calculator

Coordinate Geometry Calculators

Endpoint Calculator

Coordinate Geometry Calculators

Slope Intercept Form Calculator

Coordinate Geometry Calculators

Point Slope Form Calculator

Coordinate Geometry Calculators