Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Slope Calculator

Slope Calculator

Find the slope, midpoint, and distance between two points on a coordinate plane, with line equations, an interactive graph, and step-by-step solutions.

Slope Calculator for Two Points

The slope calculator finds the slope of a line through two points and shows the full working, so you can check homework or solve coordinate-geometry problems in seconds. Enter the x and y values for each point and the slope, midpoint, and distance update instantly.

It is built for students learning algebra, teachers preparing examples, and anyone who needs the slope (gradient) between two coordinates. Three tabs let you switch between Slope, Midpoint, and Distance, and every result comes with a small graph and step-by-step solution.

Private by design: every calculation runs in your browser. Your coordinates are never uploaded to a server or stored anywhere.

How to Use the Slope Calculator

1

Pick a mode

Choose the Slope, Midpoint, or Distance tab at the top depending on what you need to find.

2

Enter Point 1

Type the x₁ and y₁ values for the first point. Positive, negative, and decimal numbers all work.

3

Enter Point 2

Type the x₂ and y₂ values for the second point. Results appear automatically as soon as all four numbers are filled in.

4

Read the results and steps

See the slope, midpoint, or distance plus a labeled graph. Open Solution Steps to follow each formula with your numbers substituted in.

Features

Comprehensive Slope Analysis

Get the slope as a decimal, a simplified fraction (rise over run), a percentage, and an angle in degrees, plus the y-intercept.

Midpoint Calculation

Find the exact center point between two coordinates and confirm it with the distance from the midpoint to each endpoint.

Distance Formula

Compute the straight-line distance using the Pythagorean theorem, with a simplified exact-form root and the Δx and Δy components.

Line Equations & Special Cases

See the line in slope-intercept, point-slope, and standard form, with automatic handling of vertical (undefined) and horizontal (zero) slopes.

Interactive Graph

Each mode draws the two points, connecting line, midpoint, or right triangle, with auto-scaling and clear coordinate labels.

Step-by-Step Solutions

Open the working to see each formula with your values substituted in, perfect for learning the method and checking answers.

Instant, Live Results

Results recalculate as you type and accept positive, negative, and decimal coordinates, including same-point edge cases.

Responsive & Dark Mode

A clean interface works on desktop and mobile, with a built-in dark theme for comfortable viewing.

Frequently Asked Questions

What is the slope formula?

Slope (m) measures the steepness of a line and is calculated as rise over run — the change in y divided by the change in x: m = (y₂ − y₁) / (x₂ − x₁). The calculator applies this formula automatically and shows each step.

How do you find slope from two points?

Enter the coordinates of both points into Point 1 (x₁, y₁) and Point 2 (x₂, y₂). The tool subtracts to get Δx and Δy, divides Δy by Δx, and reports the slope as a decimal, fraction, percentage, and angle.

What is rise over run?

"Rise over run" is the change in vertical height (rise = Δy) divided by the change in horizontal distance (run = Δx) between two points. It is another name for the slope, and the calculator also shows it as a simplified fraction.

What does a positive, negative, zero, or undefined slope mean?

A positive slope rises from left to right, a negative slope falls from left to right, and a zero slope is a horizontal line. The slope is undefined when the line is vertical (x₁ = x₂), because dividing by a zero run is undefined; the calculator detects this and shows the line as x = a constant.

How do you find the angle of a slope?

The angle a line makes with the x-axis is the arctangent of the slope: θ = arctan(m). In Slope mode the calculator reports this angle in degrees alongside the slope value.

What is the difference between the three line equation forms?

All three describe the same line: slope-intercept (y = mx + b) shows the slope and y-intercept directly; point-slope (y − y₁ = m(x − x₁)) uses a known point and the slope; and standard (Ax + By = C) uses integer coefficients that suit certain algebraic operations.

How are the midpoint and distance calculated?

The midpoint M = ((x₁ + x₂)/2, (y₁ + y₂)/2) averages the x- and y-coordinates. The distance d = √[(x₂ − x₁)² + (y₂ − y₁)²] comes from the Pythagorean theorem, where Δx and Δy are the legs of a right triangle and the distance is the hypotenuse.

Can I use negative coordinates or enter the same point twice?

Yes. The calculator accepts any real numbers, including negatives, decimals, and zero. If both points are identical it detects the case clearly: the slope is undefined, the midpoint equals the point itself, and the distance is zero.

Enter Two Points
Point 1 (x₁, y₁)
x₁
y₁
Point 2 (x₂, y₂)
x₂
y₂
Enter coordinates for Point 1 (x₁, y₁) and Point 2 (x₂, y₂)
Switch between the Slope, Midpoint, and Distance tabs
Open Solution Steps to see each formula with your numbers substituted in
Slope results include decimal, fraction, percentage, and angle formats
All calculations run locally in your browser
Want to learn more? Read documentation →
1/6
Start typing to search...
Searching...
No results found
Try searching with different keywords