Maths Calculators

Slope Calculator

Calculate the slope of a line from two coordinate points with this free online slope calculator.

Bluehost

Slope Calculator

Enter the x and y coordinates of two points to calculate the slope of the line between them.

Point 1

Point 2

Slope

0

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

The slope is calculated by dividing the change in y by the change in x.

F-Secure

What Is a Slope Calculator?

A Slope Calculator is an online mathematical tool that determines the slope of a straight line using two points on a coordinate plane. Slope describes the rate at which a line rises or falls as it moves from left to right.

The calculator is useful for coordinate geometry, algebra, graphing and mathematical problems involving linear equations. By entering two coordinate points, you can quickly determine the slope without performing the calculation manually.

Why Use the Slope Calculator?

This calculator provides a quick and straightforward way to calculate the slope between two points while also showing the formula and working used to obtain the result.

1

Instant Calculation

Calculate the slope immediately after entering the coordinates of two points.

2

Positive or Negative Values

Enter positive, negative or zero coordinates for points located anywhere on the coordinate plane.

3

Decimal Coordinates

Decimal coordinate values are supported for calculations requiring greater precision.

4

Shows the Formula

View the standard slope formula used to calculate the result.

5

Shows the Working

See how your coordinate values are substituted into the slope formula.

6

Free to Use

Calculate slopes online without installing software, creating an account or paying a fee.

How to Use the Slope Calculator

Enter two points on the coordinate plane and the calculator will determine the slope of the line passing through them.

  1. Enter Point 1 — Enter the x-coordinate and y-coordinate of the first point.
  2. Enter Point 2 — Enter the x-coordinate and y-coordinate of the second point.
  3. Calculate the slope — Select the Calculate Slope button to perform the calculation.
  4. View the result — The calculator displays the slope, formula and working used to produce the answer.

Slope Formula Between Two Points

The slope of a line passing through two points is calculated using the formula m = (y₂ − y₁) / (x₂ − x₁). The letter m is commonly used to represent slope, while the two points are written as (x₁, y₁) and (x₂, y₂).

For example, consider the points (2, 4) and (8, 10). The change in y is 10 − 4 = 6 and the change in x is 8 − 2 = 6. Therefore, the slope is 6 ÷ 6 = 1.

Understanding Positive and Negative Slope

A positive slope means that a line rises from left to right, while a negative slope means that it falls from left to right. A slope of zero represents a horizontal line, because its y-value does not change as x increases.

Undefined Slope and Vertical Lines

A vertical line has an undefined slope. This occurs when both points have the same x-coordinate, because the change in x is zero and division by zero is undefined. The calculator identifies this situation rather than attempting to return a numerical slope.

Slope Calculation Accuracy

The calculator uses standard JavaScript number arithmetic and supports integer and decimal coordinates, including negative values. Results are displayed using a sensible decimal representation without unnecessary trailing zeroes.

For two distinct points with different x-coordinates, the calculated slope is the exact mathematical ratio represented by the entered values, subject to the normal precision limits of computer floating-point arithmetic.

James William Steven Parker, creator of YesTools
Created by

James William Steven Parker

Creator & Developer of YesTools

James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.

Learn more about James and YesTools

Frequently Asked Questions

The slope of a line measures how steeply the line rises or falls as it moves from left to right. It is calculated as the change in y divided by the change in x.
The slope formula is m = (y₂ − y₁) / (x₂ − x₁), where (x₁, y₁) and (x₂, y₂) are two points on the line.
Subtract the first y-coordinate from the second y-coordinate, then divide that result by the second x-coordinate minus the first x-coordinate.
Yes. The calculator accepts positive, negative and zero coordinate values.
A negative slope means that the line falls as it moves from left to right. The y-value decreases as the x-value increases.
When the two x-coordinates are the same, the line is vertical and its slope is undefined because the slope formula would require division by zero.

Explore More Free Tools

Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.

Browse All Categories
hide.me VPN