➗ Slope-Intercept From Two Points Calculator

Find the slope and y-intercept of a line through two points.

Result

How this calculator works

Find the slope and y-intercept of a line through two points.

Formula

m=(y₂-y₁)/(x₂-x₁), b=y₁-mx₁

Example

Points (1,2) and (4,8) give y = 2x.

Frequently asked questions

What does the Slope-Intercept From Two Points Calculator do?

Find the slope and y-intercept of a line through two points.

Are the results exact?

The calculator follows the displayed formula. Rounded display values may differ slightly from full-precision results.

Can I use negative or decimal values?

Most fields accept decimals and negative values when they make sense for the formula.

How should I check an important result?

Review the formula, verify your entries, and confirm high-stakes work with a qualified teacher or professional.