FREE · NO SIGN-UP · TRANSPARENT FORMULAS

Slope Calculator

Find a line’s slope, intercepts and equation from two points, with a visual line segment.

Your numbers

Make it your own
Slope
2

Calculated from your inputs · rounded for display

(1, 2)(5, 10)
Segment between your points. The plotted range need not include the origin.
y-intercept0
x-intercept0
Equationy = 2x + 0

Your calculation, step by step

No black boxes
  1. Δy = 8; Δx = 4.
  2. Slope = Δy ÷ Δx = 2.
  3. b = y₁ − mx₁ = 0.

How to use this calculator

  1. Enter your own values in the labeled fields. Check the units and assumptions before comparing results. Only the fields needed for your selected calculation mode are shown.
  2. Your answer updates automatically. Review the calculation steps to see exactly how it was calculated.
  3. Copy, share, save, or download your result. Saved inputs stay on this device.

How the calculation works

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

Two distinct points determine a line. A vertical line has no finite slope or y-intercept in slope-intercept form; coincident points do not determine a unique line. The graph illustrates the segment between entered points. Review the units, period and assumptions before comparing scenarios. Displayed values are rounded, while the underlying calculation retains its available precision.

A worked example

Between (1,2) and (5,10), slope = (10−2)/(5−1) = 2, giving y=2x and y-intercept 0.

Reading your result

Use the main result together with its units and supporting figures. Display values are rounded; calculations keep their underlying precision. A change in inputs or assumptions can change the answer. Compare the step-by-step working with your intended use before relying on an estimate.

Frequently asked questions

What assumptions does this calculation use?

Two distinct points determine a line. A vertical line has no finite slope or y-intercept in slope-intercept form; coincident points do not determine a unique line. The graph illustrates the segment between entered points.

Can I save or check a scenario?

The result includes the working and supporting values. Save and Restore keep inputs on this device; Copy, Download and Print export the result. Sharing a scenario explicitly includes the inputs in its link.

Sources & methodology

This calculator uses the mathematical identity and assumptions stated above. No current rates, prices, or external data are loaded. Conversion tools use international unit definitions.

Formula review: October 24, 2026. Read our methodology.