Math & Geometry

Slope-Intercept Form Calculator

Find the slope-intercept equation of a nonvertical line through two points.

Calculator guide

How to use the Slope-Intercept Form Calculator

Find the slope-intercept equation of a nonvertical line through two points. Enter the requested values and select Calculate. The result and supporting values are produced locally in your browser.

Formula

m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − mx₁; y = mx + b

Worked example

The line through (1,3) and (4,9) is y = 2x + 1.

What to keep in mind

  • Vertical lines are written x = constant rather than y = mx + b.

Methodology

This calculator uses deterministic arithmetic and performs the calculation locally in your browser. Verify assumptions, units, and source values for your specific use case.

Review standard: Level A · Standard formula. How calculator reviews work.

Frequently asked questions

What does this calculator calculate?

Find the slope-intercept equation of a nonvertical line through two points.

How is the result calculated?

m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − mx₁; y = mx + b.

Can I use the result for an important decision?

Use the result as a calculation aid and verify the inputs, assumptions, and applicable professional or regulatory requirements before relying on it for an important decision.

Does CalculateMeasure store the values I enter?

The calculator performs its arithmetic in your browser. The calculator itself does not need to send your entered values to a server to produce the result.