Lines & Graphs

Standard Form of a Linear Equation (Ax + By = C)

The standard form of a linear equation is Ax+By=CAx+By=C, where AA, BB and CC are integers with no common factor and A≥0A\ge 0. Both variables sit on the left, and the constant sits alone on the right.

Ax+By=CAx + By = C

Try it with your numbers

Show every step

Courses ask for this form because it never breaks. It can describe vertical lines, it keeps every number whole, and it makes intercepts almost instant. The sections below show where it comes from, how to build it from any other form, and how to catch the sign slips that cost points.

What is the standard form of a linear equation?

A linear equation in two variables adds or subtracts xx and yy at the first power. The variables are never multiplied together and never sit in a denominator. In Ax+By=CAx+By=C, the numbers AA and BB cannot both be zero, because 0=C0=C does not describe a line. A full standard form answer meets four conventions:

  • AA, BB and CC are integers, with no fractions or decimals.
  • AA is not negative. If A=0A=0, then BB is positive.
  • AA, BB and CC have no common factor larger than 11.
  • The variables are on the left and the constant is on the right.

The conventions exist so that each line has exactly one name. The equations 2x−3y=42x-3y=4, 4x−6y=84x-6y=8 and −2x+3y=−4-2x+3y=-4 all graph the same line, but only the first is the standard form answer. A grader can compare one canonical answer instantly, which is why teachers insist on it. A few textbooks relax the sign rule, so follow the one your course uses.

The phrase “standard form” also names two unrelated things. For a quadratic it means ax2+bx+c=0ax^2+bx+c=0, and for large numbers it means scientific notation. Some sources also call Ax+By+C=0Ax+By+C=0 the general form of a line. That version is covered below.

Quick check

Rewrite −4x+6y=10-4x+6y=10 in standard form.

Where does the standard form of a line come from?

Graph of 2x + 3y = 6 with the arrow (2, 3) drawn at right angles to the line
The coefficients A and B form an arrow perpendicular to the line, which is why changing C only slides the line sideways.

Start with the form you already know, slope-intercept form, y=mx+by=mx+b. Move the xx term to the left to get −mx+y=b-mx+y=b. If the slope is a fraction m=pqm=\frac{p}{q}, multiply through by qq:

−px+qy=qb-px+qy=qb

That is Ax+By=CAx+By=C with integer coefficients, which is always possible when the slope and intercept are rational. Standard form is slope-intercept form with the denominators cleared and the two variables treated as equals.

There is a better way to read it. Ax+ByAx+By assigns a score to every point in the plane, and the line is the set of all points with the same score CC. Think of cost: the line is every pen-and-notebook combination that costs exactly the same total. Changing CC slides the line to a parallel position, because AA and BB alone set the tilt. That is why parallel lines share the same AA and BB.

The coefficients also carry geometry. Take two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) on the line and subtract their equations:

A(x2−x1)+B(y2−y1)=0A(x_2-x_1)+B(y_2-y_1)=0

This says the vector (A,B)(A,B) is at right angles to the direction the line travels. The line’s slope is −AB-\frac{A}{B} and the vector’s slope is BA\frac{B}{A}, which is exactly the negative-reciprocal rule for perpendicular slopes.

How do you write an equation in standard form with fractions?

Run three moves in order. First, put the variables on the left and the constant on the right. Second, clear every fraction by multiplying by the least common denominator of all the denominators, including the one hiding in the constant. Third, if AA is negative, multiply every term by −1-1, then reduce if a common factor remains.

Example 1. Write y=−23x+52y=-\frac{2}{3}x+\frac{5}{2} in standard form.

Add 23x\frac{2}{3}x to both sides:

23x+y=52\frac{2}{3}x+y=\frac{5}{2}

The denominators are 33 and 22, so the LCD is 66. Multiply every term by 66:

4x+6y=154x+6y=15

A=4A=4 is positive, and 44, 66, 1515 share no common factor, so this is final. Check with the y-intercept (0,52)\left(0,\frac{5}{2}\right) from the original: 6⋅52=156\cdot\frac{5}{2}=15. ✓

Clear the constant's fraction too

Multiplying by 33 here would fix 23x\frac{2}{3}x but leave 152\frac{15}{2} on the right. Always pick the LCD of every denominator in the equation.

Point-slope equations convert the same way: expand the brackets first, then run the three moves. A negative leading term has a shortcut. Take y=34x−2y=\frac{3}{4}x-2, which becomes −34x+y=−2-\frac{3}{4}x+y=-2. Multiplying by −4-4 clears the fraction and fixes the sign in one move, giving 3x−4y=83x-4y=8. The classic slip is flipping the sign of AA and forgetting to flip CC.

How do you find standard form from two points?

The usual route finds the slope, builds the equation of a line through two points, then converts, and fractions appear along the way. A cleaner route skips the fractions. For any point (x,y)(x,y) on the line, its slope to (x1,y1)(x_1,y_1) equals the line’s slope from the slope formula:

y−y1x−x1=y2−y1x2−x1\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}

Cross-multiply and rearrange to get:

(y2−y1) x−(x2−x1) y=(y2−y1) x1−(x2−x1) y1(y_2-y_1)\,x-(x_2-x_1)\,y=(y_2-y_1)\,x_1-(x_2-x_1)\,y_1

So AA is the rise, BB is the negative of the run, and CC comes from substituting either point into the left side.

Example 2. Find the standard form of the line through (−2,5)(-2,5) and (4,−1)(4,-1).

The rise is −1−5=−6-1-5=-6 and the run is 4−(−2)=64-(-2)=6. So the left side is −6x−6y-6x-6y. Substitute (−2,5)(-2,5) to find CC:

C=−6(−2)−6(5)=12−30=−18C=-6(-2)-6(5)=12-30=-18

−6x−6y=−18-6x-6y=-18

Divide by −6-6 to reduce and make AA positive:

x+y=3x+y=3

Check both points: −2+5=3-2+5=3 and 4+(−1)=34+(-1)=3. ✓

The method also survives where the slope-first route fails. For (3,1)(3,1) and (3,7)(3,7) the run is 00, so the slope-first route divides by zero. Here the rise is 66 and the run is 00, which gives 6x=186x=18, or x=3x=3. A vertical line falls out with no special handling.

Try this: Use the shortcut on (1,2)(1,2) and (5,10)(5,10). Then check whether the result passes through the origin.

How do you read slope and intercepts from standard form?

Setting each variable to zero gives the intercepts, and solving for yy gives the slope:

slope=−AB,x-intercept=CA,y-intercept=CB\text{slope}=-\frac{A}{B},\qquad x\text{-intercept}=\frac{C}{A},\qquad y\text{-intercept}=\frac{C}{B}

The slope comes from rewriting Ax+By=CAx+By=C as y=−ABx+CBy=-\frac{A}{B}x+\frac{C}{B}. For a full walkthrough of the method, see finding x and y intercepts.

The trap is the minus sign. In 3x+4y=123x+4y=12 the slope is −34-\frac{3}{4}, not 34\frac{3}{4}. A mental check: when AA and BB have the same sign, the two terms pull against each other, so the line must fall from left to right. If AA and BB have opposite signs, the line rises.

Try 5x−2y=205x-2y=20. The x-intercept is 205=4\frac{20}{5}=4, the y-intercept is 20−2=−10\frac{20}{-2}=-10, and the slope is −5−2=52-\frac{5}{-2}=\frac{5}{2}. Verify using the intercept points (4,0)(4,0) and (0,−10)(0,-10): the slope between them is −10−00−4=52\frac{-10-0}{0-4}=\frac{5}{2}. ✓ Those two intercepts are also all you need to draw the line, as shown in graphing lines using intercepts.

These shortcuts fail when a coefficient is zero. If A=0A=0 there is no x-intercept to divide for, and if B=0B=0 the slope formula divides by zero. Both cases are handled next.

Quick check

Find the slope and y-intercept of 7x+2y=147x+2y=14.

Standard form for vertical, horizontal and origin lines

Zero coefficients are legal, and each one produces a recognizable line. With B=0B=0, the equation x=5x=5 is really 1x+0y=51x+0y=5. That is a vertical line with undefined slope, which is why slope-intercept form cannot write it. With A=0A=0, the equation y=−3y=-3 is 0x+1y=−30x+1y=-3, a horizontal line with slope 00. Horizontal and vertical lines have their own shortcuts for graphing.

The C = 0 test

If (0,0)(0,0) satisfies the equation, then C=0C=0 and the line passes through the origin. For example, 2x−y=02x-y=0 is the line y=2xy=2x.

A line through the origin is the same thing as direct variation, y=kxy=kx, written in standard form as kx−y=0kx-y=0. When a problem says ”yy varies directly with xx”, the standard form always has C=0C=0.

Not every equation containing xx and yy is a line. The equation xy=12xy=12 multiplies the variables, and its graph is a curve, as in inverse variation. Likewise x2+y=4x^2+y=4 has a squared term. A fast linear test: no powers, no products of variables, no variables in denominators.

Standard form vs slope-intercept, point-slope and general form

All four forms describe the same lines, and each is best at something different.

Form Equation Best at
Standard Ax+By=CAx+By=C Intercepts, whole numbers, systems, vertical lines
Slope-intercept y=mx+by=mx+b Quick graphing and reading the rate
Point-slope y−y1=m(x−x1)y-y_1=m(x-x_1) Building a line from a point and a slope
General Ax+By+C=0Ax+By+C=0 Distance from a point to a line

General form is standard form with CC moved to the left, so its CC has the opposite sign. The line 2x+3y=62x+3y=6 becomes 2x+3y−6=02x+3y-6=0, where the constant is −6-6. This version sits inside the formula for the distance from a point (x0,y0)(x_0,y_0) to a line, d=∣Ax0+By0+C∣A2+B2d=\frac{|Ax_0+By_0+C|}{\sqrt{A^2+B^2}}. It extends the idea of the distance formula from two points to a point and a line.

Standard form also handles parallel and perpendicular lines cleanly. A parallel line keeps the same AA and BB and changes only CC. A perpendicular line to Ax+By=CAx+By=C swaps the coefficients and negates one: Bx−Ay=DBx-Ay=D.

Example 3. Find the line through (3,1)(3,1) perpendicular to 3x+4y=123x+4y=12.

The perpendicular family is 4x−3y=D4x-3y=D. Substitute the point to find DD:

D=4(3)−3(1)=9D=4(3)-3(1)=9

So the line is 4x−3y=94x-3y=9. Check the slopes: −34-\frac{3}{4} and 43\frac{4}{3} multiply to −1-1. ✓

Where is standard form used in real problems?

Standard form fits any situation where two quantities combine into a fixed total: a budget, ticket revenue, a mixture. Suppose pens cost $3, notebooks cost $5, and the budget is $60. Then 3p+5n=603p+5n=60. The intercepts read off instantly: 2020 pens or 1212 notebooks. The slope −35-\frac{3}{5} says each extra pen costs three fifths of a notebook.

Only whole numbers make sense here, and standard form shows the pattern. Starting from (0,12)(0,12), each step adds 55 pens and removes 33 notebooks:

(0,12), (5,9), (10,6), (15,3), (20,0)(0,12),\ (5,9),\ (10,6),\ (15,3),\ (20,0)

The step sizes are Bgcd⁡(A,B)\frac{B}{\gcd(A,B)} for pp and Agcd⁡(A,B)\frac{A}{\gcd(A,B)} for nn. Here the gcd is 11, so the steps are 55 and 33. Check one: 3(5)+5(9)=15+45=603(5)+5(9)=15+45=60. ✓

Aligned columns are also why systems of equations default to this form. Elimination works by adding or subtracting equations, and that is only easy when the xx terms, yy terms and constants line up. If the budget is “at most $60”, the equation becomes the inequality 3p+5n≤603p+5n\le 60. The same line becomes the boundary of a shaded region, as covered in graphing linear inequalities.

Quick check

The equation 4x+6y=604x+6y=60 has the whole-number solution (0,10)(0,10). Find the next whole-number solution with a larger xx.

How do you check an answer in standard form?

Run these four checks before you move on:

  1. Confirm A≥0A\ge 0 and that AA, BB and CC share no common factor.
  2. Substitute the points you were given into your final equation, not into an intermediate step.
  3. Test the intercepts: CA\frac{C}{A} and CB\frac{C}{B} should match the graph or the problem.
  4. Compare −AB-\frac{A}{B} with the slope you expected.

The most common error is a sign slip when making AA positive. Multiplying −2x+y=4-2x+y=4 by −1-1 gives 2x−y=−42x-y=-4, not 2x−y=42x-y=4. Every term changes sign, including CC. Substituting a known point catches this at once.

A second quick check uses the signs alone. If AA and CC have the same sign, the x-intercept is positive. If BB and CC have the same sign, the y-intercept is positive. A final graph that contradicts those signs means a term flipped somewhere along the way.

Practice problems

0 of 5 solved

  1. Write y=2x+7y=2x+7 in standard form.

  2. Find the x-intercept and y-intercept of 4x+3y=244x+3y=24.

  3. Write y=−35x+12y=-\frac{3}{5}x+\frac{1}{2} in standard form.

  4. Write the line through (−2,5)(-2,5) with slope −34-\frac{3}{4} in standard form.

  5. Find the standard form of the line through (3,−2)(3,-2) and (−1,6)(-1,6).

Common questions

What is the standard form of a linear equation?

It is Ax+By=CAx+By=C, where AA, BB and CC are integers, AA is not negative, and the three numbers share no common factor. Both variables go on the left and the constant goes alone on the right.

Why does A have to be positive in standard form?

Because 2x−3y=42x-3y=4 and −2x+3y=−4-2x+3y=-4 describe the same line, and a convention lets everyone give the same answer. Multiplying every term by −1-1 flips the signs without changing the line.

How do you convert slope-intercept form to standard form?

Move the xx term to the left, clear any fractions by multiplying by the least common denominator, and make AA positive by multiplying by −1-1 if needed. For example, y=34x−2y=\frac{3}{4}x-2 becomes 3x−4y=83x-4y=8.

How do you find the slope from standard form?

The slope is −AB-\frac{A}{B}. For 3x+4y=123x+4y=12 it is −34-\frac{3}{4}, and the minus sign is the part students most often drop.

Can a vertical line be written in standard form?

Yes. A vertical line such as x=5x=5 is 1x+0y=51x+0y=5, so B=0B=0. Slope-intercept form cannot write it because its slope is undefined.

Is Ax + By + C = 0 the same as standard form?

It is the same idea, often called general form, with CC moved to the left side. The sign of CC flips between the two, so 2x+3y=62x+3y=6 becomes 2x+3y−6=02x+3y-6=0.

Up next