Mathwords logoMathwords

General Form of a Line — Definition, Formula & Examples

The general form of a line is a way of writing a linear equation as Ax+By+C=0Ax + By + C = 0, where AA, BB, and CC are real numbers and AA and BB are not both zero.

A linear equation in two variables xx and yy is said to be in general form when expressed as Ax+By+C=0Ax + By + C = 0, where A,B,CRA, B, C \in \mathbb{R} and (A,B)(0,0)(A, B) \neq (0, 0). By convention, AA is typically written as a positive integer when the coefficients are integers.

Key Formula

Ax+By+C=0Ax + By + C = 0
Where:
  • AA = Coefficient of x (real number)
  • BB = Coefficient of y (real number)
  • CC = Constant term (real number)
  • xx = Independent variable
  • yy = Dependent variable

How It Works

Any linear equation can be rearranged into general form by moving all terms to one side so the equation equals zero. To convert from slope-intercept form (y=mx+by = mx + b), subtract yy from both sides and rearrange. To convert from general form to slope-intercept form, isolate yy: y=ABxCBy = -\frac{A}{B}x - \frac{C}{B} (provided B0B \neq 0). The slope of the line is AB-\frac{A}{B} and the yy-intercept is CB-\frac{C}{B}.

Worked Example

Problem: Write the equation y = 3x − 5 in general form.
Step 1: Subtract y from both sides to begin moving all terms to one side.
0=3xy50 = 3x - y - 5
Step 2: Rewrite with terms on the left side, set equal to zero.
3xy5=03x - y - 5 = 0
Step 3: Identify the coefficients: A = 3, B = −1, C = −5. Since A is positive and all coefficients are integers, this is already in standard convention.
Answer: The general form is 3xy5=03x - y - 5 = 0.

Why It Matters

General form is especially useful when working with systems of equations, since it keeps both variables on the same side for easy elimination. It also appears in analytic geometry when finding distances from points to lines, where the formula requires the equation in Ax+By+C=0Ax + By + C = 0 form.

Common Mistakes

Mistake: Confusing general form (Ax + By + C = 0) with standard form (Ax + By = C).
Correction: In general form, everything is on one side equaling zero. In standard form, the constant is isolated on the right side. Both are valid ways to write a line, but they differ by where C sits.