CalculateMax
HomeCategoriesPopularAboutContact
Math & Geometry
Equation of Line Calculator
Find the equation of a line
Input Method
Line Equation Forms

Slope-Intercept Form

y = mx + b

m = slope, b = y-intercept

Point-Slope Form

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

Uses a point and slope

Standard Form

Ax + By + C = 0

A, B, C are coefficients

Slope Formula

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

Positive slope: Line rises from left to right

Negative slope: Line falls from left to right

Zero slope: Horizontal line (y = constant)

Undefined: Vertical line (x = constant)

What is the Equation of a Line?

The equation of a line is a mathematical expression that describes all the points that lie on that line in a coordinate plane. Every straight line can be represented by an equation, and this equation uniquely determines the line's position and orientation. Understanding line equations is fundamental to algebra, geometry, and many real-world applications including physics, engineering, and economics.

There are several ways to express a line's equation, each with its own advantages. The slope-intercept form (y = mx + b) directly shows the slope and y-intercept, making it easy to graph. The point-slope form is useful when you know a point on the line and its slope. The standard form is often preferred in formal mathematics and certain applications where symmetry between x and y is desired.

How to Find the Equation of a Line

From Two Points: Given two points (x₁, y₁) and (x₂, y₂), first calculate the slope using m = (y₂ - y₁)/(x₂ - x₁). Then use the point-slope form with either point to get y - y₁ = m(x - x₁). Finally, simplify to get the slope-intercept form y = mx + b by solving for y.

From Point and Slope: If you know a point (x₁, y₁) and the slope m, directly apply the point-slope formula y - y₁ = m(x - x₁). Distribute and solve for y to convert to slope-intercept form. This method is straightforward when the slope is already given or can be determined from the context.

Disclaimer

Line equations are calculated using standard mathematical formulas. Vertical lines have undefined slope in slope-intercept form and are represented as x = constant. This calculator handles both regular and special cases (vertical and horizontal lines) appropriately. Results are rounded for display purposes; exact values may differ slightly for irrational numbers.

CalculateMax

Your comprehensive collection of free online calculators. Fast, accurate, and easy to use.

Categories

  • Health & Fitness
  • Finance
  • Math & Geometry
  • Physics & Engineering
  • Chemistry
  • Construction
  • Time & Date
  • Lifestyle & Daily Use
  • Business
  • Education & Learning

More Categories

  • Sports & Athletics
  • Real Estate
  • Ecommerce
  • Investment
  • Forex

Quick Links

  • Home
  • All Categories
  • Popular Calculators
  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Cookie Policy

© 2026 CalculateMax. All rights reserved. Free calculators for everyone.