Line Equation from Two Points Calculator

Calculate the Equation of Your Line

Our online Line Equation from Two Points Calculator quickly determines the slope, y-intercept, and the full linear equation (y = mx + b) given any two coordinates. Simplify your geometry tasks and instantly find the precise straight-line equation for your data or problems. Ideal for students, educators, and professionals.

Formula:

To determine the equation of a straight line from two given points (x1, y1) and (x2, y2), we follow these steps:

  • Step 1: Calculate the Slope (m)
    m = (y2 - y1) / (x2 - x1)
  • Step 2: Calculate the Y-intercept (b)
    Using one of the points (x1, y1) and the calculated slope (m):
    b = y1 - m * x1
  • Step 3: Form the Line Equation
    The general form of a linear equation is:
    y = mx + b

Where:

  • x1, y1: Coordinates of the first point
  • x2, y2: Coordinates of the second point
  • m: The slope of the line, indicating its steepness and direction
  • b: The y-intercept of the line, where the line crosses the Y-axis

Mathematics and Geometry Tools

3D Section Formula for Dividing Line Segments by Ratio

Go to Calculator

AAS Triangle : Solve for Unknown Angles and Sides

Go to Calculator

ABC Triangle : Solve Triangles with Ease

Go to Calculator

Acute Triangle : Calculate Angles, Sides & Verify Triangle Type

Go to Calculator

Alternate Interior Angles Theorem Proof

Go to Calculator

Altitude of an Isosceles Triangle

Go to Calculator