Formula

Standard form of a line

Also written: Ax + By = C · general form of a linear equation

Ax+By=CAx + By = C

Standard form writes a linear equation with both variables on one side. It is the only common form that can describe a vertical line.

What each part means

A,BA, B
coefficients, not both zero; usually written as integers with A positive
CC
the constant term

Standard form calculator

Describe a line by its equation, by a slope and a point, or by two points, and see it written as Ax+By=CAx + By = C with whole numbers and AA not negative, with both intercepts and the graph. Choose how the line is given and fill in the boxes that choice uses. Whole numbers, decimals and fractions all work.

The steps below write the line y=23x−4y = \frac{2}{3}x - 4 in standard form, Ax+By=CAx + By = C. Turn on JavaScript to try your own line.

Worked example: the line y=23x−4

Standard form: 2x − 3y = 12, with A = 2, B = −3 and C = 12.

Graph of y = (2/3)x − 4 A straight line that rises from left to right with slope 2/3. It crosses the y-axis at (0, −4) and the x-axis at (6, 0). −22468−6−4−22xy (6, 0) (0, −4)
  • y = (2/3)x − 4
Graph of y = (2/3)x − 4

Start from slope-intercept form

y=23x−4

Clear the fractions

Multiply every term by 3, the least common denominator. Every term, including the one on its own.

3y=2x−12

Move the x-term to the left

Subtract the x-term from both sides so that both letters are on the left.

−2x+3y=−12

Make A positive

Convention prefers A positive, so multiply every term by −1.

2x−3y=12

Check

Put a point of the line into the equation.

At x=3 and y=−2:

2(3)−3(−2)=6+6=12

The same line in other forms

Slope-intercept form:

y=23x−4

Point-slope form, through (3,−2):

y+2=23(x−3)

Intercepts and graph

Set y=0 to find where the line crosses the x-axis.

2x=12x=122=6

Set x=0 to find where it crosses the y-axis.

−3y=12y=12−3=−4

The line crosses the x-axis at (6,0) and the y-axis at (0,−4).

A straight line that rises from left to right with slope 2/3. It crosses the y-axis at (0, −4) and the x-axis at (6, 0).

Runs on your device: nothing you type is sent or saved. Want the reasoning behind each step? Read the standard form lesson, or see how to find the x- and y-intercepts.

When to use it

You need both intercepts quickly, you are setting up a system of equations, or the line is vertical and slope-intercept form cannot express it.

Why it survives alongside the friendlier form

Slope-intercept form is easier to graph, so standard form needs a reason to exist. It has two.

It can write a vertical line. Set B=0B = 0 and you get Ax=CAx = C, which is x=kx = k. No value of mm can do that, because a vertical line has undefined slope.

It lines up for elimination. In a system of equations, matching coefficients sit in columns and add away cleanly.

Both intercepts in two steps

Set each variable to zero in turn.

y=0  ⇒  x=CAx=0  ⇒  y=CBy = 0 \;\Rightarrow\; x = \frac{C}{A} \qquad x = 0 \;\Rightarrow\; y = \frac{C}{B}

For 3x+4y=123x + 4y = 12: the xx-intercept is (4,0)(4, 0) and the yy-intercept is (0,3)(0, 3). Plot both and draw the line — often faster than converting.

Reading the slope without converting

Solve the general form for yy:

By=−Ax+C⇒y=−ABx+CBBy = -Ax + C \quad\Rightarrow\quad y = -\frac{A}{B}x + \frac{C}{B}

So the slope is −AB-\tfrac{A}{B} and the yy-intercept is CB\tfrac{C}{B}, whenever B≠0B \ne 0.

For 3x+4y=123x + 4y = 12 that gives a slope of −34-\tfrac{3}{4} — no rearranging needed.

Worked examples

Convert y=23x−4y = \tfrac{2}{3}x - 4 to standard form.

Clear the fraction by multiplying through by 33, then move the xx term across:

3y=2x−12⇒−2x+3y=−12⇒2x−3y=123y = 2x - 12 \quad\Rightarrow\quad -2x + 3y = -12 \quad\Rightarrow\quad 2x - 3y = 12

The last step multiplies by −1-1 so that AA is positive, which is the usual convention.

Convert 2x−5y=202x - 5y = 20 to slope-intercept form.

−5y=−2x+20⇒y=25x−4-5y = -2x + 20 \quad\Rightarrow\quad y = \tfrac{2}{5}x - 4

Lessons that teach this

Related