ProMathTools
ProMathTools

Slope-Intercept Form

This calculator helps you find the slope (m), y-intercept (b), and the full equation of a straight line in slope-intercept form (y = mx + b) given two points. It's a fundamental tool for understanding linear relationships in algebra.

Enter the x-coordinate of the first point.

Enter the y-coordinate of the first point.

Enter the x-coordinate of the second point.

Enter the y-coordinate of the second point.

How it works

This calculator helps you find the slope (m), y-intercept (b), and the full equation of a straight line in slope-intercept form (y = mx + b) given two points. It's a fundamental tool for understanding linear relationships in algebra.


The Formula
Slope (m) = (y₂ - y₁) / (x₂ - x₁)
Y-intercept (b) = y₁ - m * x₁
Equation: y = mx + b

Worked Example
  1. Example: Finding the Equation from Two Points

    Suppose you have two points: (2, 5) and (4, 11). 1. Calculate the slope (m): m = (11 - 5) / (4 - 2) = 6 / 2 = 3. 2. Calculate the y-intercept (b) using the first point: b = 5 - (3 * 2) = 5 - 6 = -1. 3. The equation in slope-intercept form is: y = 3x - 1.


Tips, Assumptions & Limitations
  • Remember that 'm' represents the steepness or gradient of the line.
  • The 'b' value tells you where the line crosses the y-axis.
  • A positive slope means the line goes up from left to right, while a negative slope means it goes down.
  • If the slope is undefined (vertical line), the equation will be in the form x = constant.
FAQ

Slope-intercept form is a way to write the equation of a straight line: y = mx + b. Here, 'm' represents the slope (how steep the line is), and 'b' represents the y-intercept (where the line crosses the y-axis).

It's named 'slope-intercept' because the two key pieces of information it directly gives you are the slope ('m') and the y-intercept ('b'). This makes it very easy to graph a line or understand its characteristics.

Yes, if you enter two points with the same x-coordinate (e.g., (3, 2) and (3, 7)), the calculator will identify it as a vertical line and provide its equation in the form x = constant, noting that the slope is undefined.

Simply input the x and y coordinates of two distinct points that lie on your line. The calculator will then compute the slope, y-intercept, and the full equation in y=mx+b form, helping you check your work or quickly solve problems.

Companion article

Slope-Intercept Form Calculator: Master Linear Equations

Related Calculators
About UsFAQsTerms and ConditionsPrivacy PolicySitemap
EmailLinkedInFacebook

© 2025-2026 PromathTools. All rights reserved.

Built by KruskalCode – SaaS & Automation Experts