Skip to main content

Slope Calculator

Slope, y-intercept, line equation, and distance between two points. Vertical lines are flagged.

Rated 4.7 out of 5 based on 340 reviews

Results

How to use Slope Calculator

  1. Enter x1, y1, x2. Leave a field blank only when the page says the value is missing.
  2. Read the result rows under the form. Errors appear in the status line. Nothing is uploaded.
  3. Rounding follows IEEE floating point in this browser unless the page says it uses integers or BigInt.

Slope Calculator

Slope

ComputesSlope, y-intercept, line equation, and distance between two points. Vertical lines are flagged.
IncludesSlope
IncludesEquation
IncludesDistance
Enginegeometry
UploadNone
AdviceArithmetic only

What Slope Calculator is

m = (y2 − y1) / (x2 − x1). If x2 = x1 the slope is undefined (vertical). Otherwise y = mx + b with b = y1 − m x1.

The formula runs in this tab. CZNull does not receive the numbers.

How this page computes

Distance is √((x2−x1)² + (y2−y1)²), also on distance.

Entities and related jobs

Slope, y-intercept, line equation, and distance between two points. Vertical lines are flagged. Named features: Slope, Equation, Distance.

See also Distance Between Two Points, Pythagorean Theorem Calculator, Rectangle Calculator, Percentage Calculator, Scientific Calculator, Fraction Calculator.

Use cases

Graphs, roofs, and ramps. Grade percent is 100 × rise/run, which is 100m for a non-vertical line.

Limits

Invalid input appears in the status line. IEEE floating point applies unless a row says otherwise. CZNull does not receive the numbers.

Slope Calculator questions

Does this page upload my numbers?
No. The formula runs in the page you opened. CZNull does not receive the values.
What does Slope Calculator compute?
m = (y2 − y1) / (x2 − x1).
Why is this its own URL?
Search queries name this job. Nearby modes stay on their own pages so inputs do not mix. Related calculators are linked below Slope Calculator.
Slope from (0,0) to (2,4)?
2.
Vertical line?
Undefined slope when x1 equals x2.
Can I treat the result as official?
No. Rounding and real-world rules can differ. Use the page to check the arithmetic.