Skip to content
LoveToCalc

Definition — what does that mean?

General form of a line

The general form puts everything on one side and zero on the other. It is the one form that can write every straight line, including the vertical ones.

In Swedish: Räta linjens allmänna form

ax+by+c=0

a
Coefficient of x
b
Coefficient of y
c
Constant
x
x-value
y
y-value

The form

Here a and b are not both 0. A point (x, y) lies on the line exactly when its coordinates make the left side 0.

Converting to y = mx + c

When b ≠ 0, solve for y: by = −ax − c, so

The slope is m = −a/b and the y-intercept is c/b with the sign changed, −c/b. When b = 0 the line is vertical, x = −c/a, and has no slope.

Example

3x + 2y − 6 = 0. Solving for y: 2y = −3x + 6, so y = −1.5x + 3. The slope is −1.5 and the line crosses the y-axis at 3.

Going the other way. Take y = 2x + 1. Move everything to the left: 2x − y + 1 = 0, with a = 2, b = −1, c = 1. Multiplying by any non-zero number gives the same line: 4x − 2y + 2 = 0.

What it is good for

Common mistakes

Where next

Last reviewed October 13, 2026 ·How pages are reviewed

Straight linesAll formulas