All the Tools You Need

Line Equation Calculator - Find Line Equation from Points | Toolivaa

Line Equation Calculator

Line Equation Calculator

Find equation of line from points, slope-intercept, or intercepts. Convert between slope-intercept, point-slope, and standard forms.

y = mx + b
Two Points
Slope & Intercept
Point & Slope
Intercepts

Find Line from Two Points

Point 1 (x₁, y₁)

Point 2 (x₂, y₂)

Enter coordinates of two distinct points on the line.

Basic Line

Through (2,3) and (5,7)
y = 1.333x + 0.333

Horizontal Line

Slope = 0
y = constant

Vertical Line

Undefined slope
x = constant

Line Equation Result

y = 1.333x + 0.333

Slope (m)
1.333
y-intercept
0.333
Angle
53.13°

Equation Forms:

Slope-Intercept

y = 1.333x + 0.333

Point-Slope

y - 3 = 1.333(x - 2)

Standard Form

4x - 3y = -1

Step-by-Step Calculation:

Line Properties:

x-intercept: -0.25
Line Type: Increasing
Parallel Slope: 1.333
Perpendicular Slope: -0.75

Graph Visualization:

Blue line = Equation, Red points = Input points, Orange triangle = Slope visualization

The line equation represents all points (x,y) that satisfy the linear relationship.

What is a Line Equation?

A line equation is a mathematical expression that describes all points on a straight line in a coordinate plane. It represents the relationship between x and y coordinates of every point on the line. Line equations are fundamental in algebra, geometry, physics, engineering, and many other fields for modeling linear relationships.

Line Equation Forms

Slope-Intercept

y = mx + b

m = slope

b = y-intercept

Point-Slope

y - y₁ = m(x - x₁)

Uses point & slope

Easy conversion

Standard Form

Ax + By = C

A, B, C integers

A ≥ 0, no fractions

Intercept Form

x/a + y/b = 1

a = x-intercept

b = y-intercept

Line Equation Formulas

1. Slope Calculation from Two Points

Formula for slope between points (x₁, y₁) and (x₂, y₂):

m = (y₂ - y₁) / (x₂ - x₁)
Where: x₂ ≠ x₁ (not vertical)
Positive m: Line rises left to right
Negative m: Line falls left to right
m = 0: Horizontal line
m undefined: Vertical line

2. Slope-Intercept Form (y = mx + b)

The most common line equation form:

y = mx + b
m = slope (rise/run)
b = y-intercept (where line crosses y-axis)
To find b: b = y - mx (using any point)
Example: y = 2x + 3 (slope=2, y-intercept=3)

3. Point-Slope Form Conversion

Converting point-slope to slope-intercept:

y - y₁ = m(x - x₁)
y = m(x - x₁) + y₁
y = mx - mx₁ + y₁
y = mx + (y₁ - mx₁)
So: b = y₁ - mx₁
Example: y - 3 = 2(x - 1) → y = 2x + 1

Line Properties Table

Scroll to Top
PropertyFormulaDescriptionExample