Skip to main content
CalculoraCalculora

Financial & Business

Finance CalculatorsInvestment & PlanningPersonal FinanceReal Estate InvestingBusiness ToolsStartup & SaaS

Math & Technology

Math CalculatorsEngineering ToolsPhysics ToolsDeveloper ToolsSchool Tools

Health & Life

Medical ToolsSmart UtilityRandomizers

Creator & Specialty

Creator EconomyIslamic ToolsSustainabilityGames

Converters

Unit ConverterLength ConverterWeight ConverterTemperature Converter→ Unit Converters

Randomizers

Random Number GeneratorPassword Strength CheckerSpin the WheelCoin Flip SimulatorDice RollerTimezone Overlap Calculator→ Randomizers
File Converter

PDF Tools

Convert PDF to JPGConvert PDF to PNGConvert PDF to TXTConvert PDF to GIFConvert PDF to WebPConvert PDF to SVGConvert PDF to DOCXConvert PDF to XLSXConvert PDF to PPTXConvert PDF to HTMLConvert PDF to MarkdownConvert PDF to TIFF

Image Converter

Convert JPG to PNGConvert PNG to JPGConvert PNG to WebPConvert WebP to PNGConvert WebP to JPGConvert JPG to WebPConvert SVG to PNGConvert SVG to JPGConvert SVG to WebPConvert BMP to PNGConvert BMP to JPGConvert BMP to WebP

Advanced Images

Convert HEIC to JPGConvert HEIC to PNGConvert TIFF to JPGConvert TIFF to PNGConvert JPG to TIFFConvert PNG to TIFFConvert JPG to ICOConvert PNG to ICOConvert JPEG to AVIFConvert PNG to AVIF

GIF & Animation

Convert GIF to PNGConvert GIF to JPGConvert GIF to individual frames (PNG/JPEG)Convert PNG to GIFConvert JPG to GIFConvert GIF to WebP

Editing

Convert any image to watermarked imageConvert any image to cleaned imageResize images instantly in your browserCompress images online — reduce file size, keep quality
Math Speed ChallengeMental Math ChallengeWordleBint WaladSudoku2048
Currency Converter
CalculoraCalculora

Your all-in-one calculator platform. Free, fast, and accurate tools for every need.

Calculator inputs stay 100% private — all math happens in your browser and never touches our serversFree forever — no paywalls, no subscriptions, no accounts needed

Popular

  • BMI Calculator
  • Loan Calculator
  • Age Calculator
  • Mortgage Calculator
  • Percentage Calculator
  • Scientific Calculator

Math

  • Statistics Calculator
  • Equation Solver
  • Fraction Calculator
  • Prime Factorization Calculator
  • GCD & LCM Calculator
  • Logarithm Calculator

Finance

  • FIRE Calculator
  • Debt Snowball Calculator
  • Investment Calculator
  • Retirement Calculator
  • Salary Calculator
  • ROI Calculator

Legal

  • View All
  • Categories
  • Currency Converter
  • Sitemap
  • Games & Fun Tools
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service
  • Disclaimer

Languages

  • enEnglish
  • arالعربية
  • esEspañol
  • deDeutsch
  • frFrançais
  • hiहिन्दी
  • idBahasa Indonesia
  • itItaliano
  • ja日本語
  • ko한국어
  • ptPortuguês
  • ruРусский
  • trTürkçe
  • viTiếng Việt
  • bnবাংলা
  • zh中文
  • nlNederlands
  • plPolski
  • ukУкраїнська
  • msBahasa Melayu
  • thภาษาไทย

© 2026 Calculora. All rights reserved.

Built with — 100% free

Lightweight & fast — cookies and analytics run only with your consent

  1. Home
  2. Math Calculators
  3. Slope Calculator

Slope Calculator

Give us two points and we'll find the slope, the distance between them, the midpoint, and the full line equation — with every step of the math shown along the way.

What is Slope Calculator?

The slope of a line measures how steep it is — how much it rises or falls for every unit it moves horizontally. Given two points on a line, the slope tells you the direction and steepness of that line: a positive slope rises left to right, a negative slope falls, a slope of zero is horizontal, and an undefined slope means the line is vertical.

This calculator also finds the straight-line distance between the two points (using the Pythagorean theorem), the midpoint (the point exactly halfway between them), and the full slope-intercept equation of the line passing through them — all with a complete step-by-step derivation.

Formula

Slope: m = (y₂ - y₁) / (x₂ - x₁)
Distance: d = √((x₂-x₁)² + (y₂-y₁)²)
Midpoint: M = ((x₁+x₂)/2, (y₁+y₂)/2)
Line equation: y = mx + b, where b = y₁ - m·x₁

How to Calculate

  1. Enter the coordinates of two points, (x₁, y₁) and (x₂, y₂).
  2. The calculator finds the slope using rise over run.
  3. It also computes the distance and midpoint between the points.
  4. Review the full step-by-step derivation, including the line's equation.

Example

For the points (1, 2) and (4, 8): the slope is (8-2)/(4-1) = 6/3 = 2. The distance is √(3² + 6²) = √45 ≈ 6.71. The midpoint is (2.5, 5). The line's equation is y = 2x.

Key Benefits

  • Calculates slope, distance, midpoint, and the full line equation in one step
  • Correctly handles vertical lines where the slope is undefined
  • Shows the angle of inclination of the line
  • Full step-by-step solution for every calculation, not just the final answer

Common Mistakes to Avoid

  • Swapping the order of subtraction between the x and y coordinates, which flips the sign of the slope
  • Dividing by zero when the two x-coordinates are equal, instead of recognizing the line is vertical
  • Confusing the midpoint formula (which averages coordinates) with the distance formula (which uses the Pythagorean theorem)
  • Entering the same point twice, which makes slope, distance, and the line equation impossible to determine

Pro Tips

  • If the slope is a simple fraction like 2/3, that means the line rises 2 units for every 3 units it moves right
  • A steeper line has a slope with a larger absolute value; a slope of 0 is flat, and there's no upper limit on how steep a slope can get
  • To check your work, plug the midpoint back into the line's equation — it should satisfy it exactly
  • Negative slopes fall from left to right on a standard graph, while positive slopes rise

Key Terms Explained

Slope
The rate of vertical change (rise) per unit of horizontal change (run) between two points
Midpoint
The point exactly halfway between two given points
y-Intercept
The point where a line crosses the y-axis, where x = 0
Rise over Run
A common way of describing slope as vertical change divided by horizontal change

Common Use Cases

  • Algebra and geometry homework involving lines and coordinate planes
  • Finding the steepness of a road, ramp, or roof from elevation data
  • Physics and engineering — analyzing rate of change between two data points
  • Graphing and plotting straight lines from two known points

Frequently Asked Questions

What does a negative slope mean?
A negative slope means the line falls as you move from left to right — as x increases, y decreases. The steeper the negative slope (the larger its absolute value), the more sharply the line falls.
Why is the slope of a vertical line undefined?
Slope is calculated as (y₂-y₁)/(x₂-x₁). For a vertical line, both points share the same x-coordinate, so the denominator becomes zero. Division by zero is undefined, so a vertical line's slope is undefined (not zero — a slope of zero describes a horizontal line instead).
How do I find the equation of a line from two points?
First calculate the slope m using the slope formula. Then find the y-intercept b by substituting one point's coordinates and the slope into y = mx + b and solving for b. The final line equation is y = mx + b.
What's the difference between slope and distance?
Slope describes the direction and steepness of a line — how much y changes per unit of x. Distance describes how far apart the two points are in a straight line, regardless of direction, calculated with the Pythagorean theorem.

Related Tools

Percentage Calculator
Scientific Calculator
Fraction Calculator
Exponents Calculator
Matrix Calculator
Equation Solver
Slope (m)
2
Angle of Inclination
63.4349°
Distance
6.7082
Midpoint
(2.5, 5)
y-Intercept
0
Step-by-Step Solution
1

Given points

✓

Slope formula

3

Distance formula

4

Midpoint formula

✓

Equation of the line