Free Slope Calculator

Calculate the slope of a line given two points (x1, y1) and (x2, y2). Also shows the y-intercept and line equation.

Slope

2.000000

Y Intercept0.000000
Distance6.708204
Angle Deg63.43 degrees

How to Calculate Slope

Formula

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

The slope represents the rate of change — how much y changes for each unit increase in x.

Line Equation

Once you have the slope (m) and y-intercept (b), the line equation is: y = mx + b

Where b = y₁ - m × x₁

Example Calculation

Find the slope of the line through points (1, 2) and (4, 8).

  1. 01Slope = (8 - 2) / (4 - 1) = 6 / 3 = 2
  2. 02Y-intercept: b = 2 - 2 × 1 = 0
  3. 03Line equation: y = 2x
  4. 04Distance = √((4-1)² + (8-2)²) = √(9 + 36) = √45 ≈ 6.7082

Frequently Asked Questions

Learn More

How to Calculate Percentages - Complete Guide

Learn how to calculate percentages step by step. Covers finding a percentage of a number, percentage change, reverse percentages, and real-world applications.

Related Calculators