Equation of a Line Calculator

Calculate Equation of a Line



Formula

The formula to calculate the equation of a line is:

\[ y = mx + b \]

Where:

Example

Let's say the points are (1, 2) and (3, 4). Using the formula:

\[ m = \frac{4 - 2}{3 - 1} = 1 \]

\[ b = 2 - 1 \times 1 = 1 \]

So, the equation of the line is \( y = 1x + 1 \) or simply \( y = x + 1 \).

What is the Equation of a Line?

The equation of a line describes the relationship between the x and y coordinates of any point on the line. It is used in various fields such as mathematics, physics, and engineering to model linear relationships[^1^][^2^].