Standard Form Calculator

Convert any line equation into standard form Ax + By = C with integer coefficients, simplified greatest common divisor (GCD), general form, slope, and axis intercepts.

Accepts integers, decimals, fractions (−2/3), and mixed numbers.

Standard Form: 2x + 3y = 7
  • General Form 2x + 3y − 7 = 0
Slope (m)
−2/3
X-Intercept
(7/2, 0)
Y-Intercept
(0, 7/3)
Show the work (step-by-step)

Interactive Coefficients Diagram

Adjust sliders for A, B, and C to explore how coefficients shift and rotate the line.

2
3
7
x y −5 5 3 −3
Line: 2x + 3y = 7 | Slope m = −0.6667

What standard form of a line is

The standard form of a linear equation is written with both variable terms on the left side and the constant term on the right:

Ax + By = C

In this algebraic expression, x and y represent coordinate variables, while A, B, and C represent fixed real constants. Unlike slope-intercept form, which cannot easily accommodate vertical lines because their slope is undefined, standard form can express every single straight line on a two-dimensional grid, including vertical and horizontal lines.

Standard form is the universal starting layout for systems of linear equations. When solving two or more intersecting lines using Gaussian elimination or matrix determinants, aligning equations in Ax + By = C order allows coefficients to match directly into solution algorithms.

Rules for standard form

To ensure that every straight line possesses one canonical representation, mathematical conventions impose three mandatory requirements:

  • Integer coefficients: A, B, and C must all be whole integers. Fractions and decimals must be cleared by multiplying all terms by their common denominator.
  • Non-negative leading coefficient (A ≥ 0): The coefficient of x must not be negative. If A is negative, multiply the entire equation by −1 to reverse all signs. If A = 0, then B must be strictly positive (B > 0).
  • Greatest common divisor equals 1: The integers A, B, and C must share no common integer factors other than 1. An equation such as 4x + 6y = 10 must be divided by 2 to yield 2x + 3y = 5.

Converting from slope-intercept form

Transforming an equation from slope-intercept form (y = mx + b) into standard form (Ax + By = C) requires rearranging terms and clearing denominators:

  1. Move variable terms to one side: Subtract mx from both sides to gather x and y together: −mx + y = b.
  2. Clear all denominators: If m or b contain fractions, find their least common denominator (LCD) and multiply every term by that integer.
  3. Make A non-negative: If the x coefficient is negative, multiply the entire equation by −1.
  4. Simplify common factors: Divide by the greatest common divisor of A, B, and C if necessary.

For example, consider y = −(2/3)x + 7/3. Adding (2/3)x to both sides gives (2/3)x + y = 7/3. Multiplying every term by 3 clears the fractions completely, producing 2x + 3y = 7. Because A = 2 is positive and gcd(2, 3, 7) = 1, this equation is fully simplified in standard form.

Clearing fractions and decimals

When given coefficients with decimals, convert each decimal into its rational fraction before applying standard form rules. For instance, consider the linear equation y = 0.5x − 1.25:

  • Convert decimals to fractions: 0.5 = 1/2, and 1.25 = 5/4, giving y = (1/2)x − 5/4.
  • Subtract (1/2)x from both sides: −(1/2)x + y = −5/4.
  • The denominators are 2 and 4. Their least common multiple is 4. Multiply all terms by 4: −2x + 4y = −5.
  • Because A is −2, multiply the entire equation by −1: 2x − 4y = 5.

The result is 2x − 4y = 5 with integer coefficients, A ≥ 0, and gcd(2, 4, 5) = 1.

Standard form vs general form

Although frequently confused, standard form and general form place the constant term on opposite sides of the equals sign:

  • Standard form: Ax + By = C (constant C is isolated on the right side).
  • General form: Ax + By + D = 0 (all terms are gathered on the left side so the expression equals zero, where D = −C).

For example, if the standard form is 2x + 3y = 7, subtracting 7 from both sides gives the general form 2x + 3y − 7 = 0. Both structures maintain identical integer rules and signs.

Finding slope from standard form

When an equation is written in standard form Ax + By = C, you can find its slope immediately without fully rewriting the equation:

Slope m = −A / B

To understand why, solve Ax + By = C for y. Subtracting Ax gives By = −Ax + C. Dividing every term by B yields y = (−A / B)x + (C / B). Comparing this to y = mx + b shows that the slope is always −A / B, while the y-intercept is C / B.

If B = 0, the equation reduces to Ax = C, or x = C / A. Because division by zero is undefined, the line is vertical and its slope is undefined. If A = 0, the equation reduces to By = C, or y = C / B, which is horizontal with a slope of 0.

Worked example

Problem: A line passes through the point (1, 4) with a slope of m = −3/5. Write its equation in point-slope form, then convert it into standard form Ax + By = C with integer coefficients.

Step 1: Write in point-slope form.

y − 4 = −(3/5)(x − 1)

Step 2: Clear the denominator by multiplying both sides by 5.

5(y − 4) = −3(x − 1) &implies; 5y − 20 = −3x + 3

Step 3: Move variable terms to the left and constants to the right.

3x + 5y = 3 + 20 &implies; 3x + 5y = 23

Step 4: Verify standard form rules.

A = 3 (integer, positive) | B = 5 (integer) | C = 23 (integer) | gcd(3, 5, 23) = 1

The line is written in proper standard form as 3x + 5y = 23. Its general form is 3x + 5y − 23 = 0.

Common mistakes with standard form

Avoid these frequent errors when converting equations into standard form:

  • Leaving fractions in the final answer: Writing (1/2)x + y = 3 is not standard form. You must multiply through by 2 to write x + 2y = 6.
  • Leaving a negative leading coefficient: Writing −2x + 3y = 7 violates the rule that A must be non-negative. Multiply through by −1 to get 2x − 3y = −7.
  • Forgetting to reduce by the greatest common divisor: Leaving 4x + 6y = 14 is incomplete. All coefficients share a common factor of 2, so the simplified standard form is 2x + 3y = 7.
  • Mixing up standard form and scientific notation: Scientific notation (such as 3.2 × 10⁵) formats extremely large or small numbers in physics and chemistry, whereas linear standard form represents geometric lines on a grid.

Reference table: Comparison of linear equation forms

Form Name Equation Structure Best Used For Example
Standard Form Ax + By = C Systems of equations, matrix methods, finding both intercepts 2x + 3y = 6
General Form Ax + By + D = 0 Conic sections, geometry proofs, distance from a point to a line 2x + 3y − 6 = 0
Slope-Intercept Form y = mx + b Quick graphing, inspecting slope and vertical intercept directly y = −(2/3)x + 2
Point-Slope Form y − y₁ = m(x − x₁) Writing an equation when given one point and slope y − 2 = −(2/3)(x − 0)

Once your equation is in standard form, you can find where it crosses the axes, convert it to slope-intercept form, or evaluate the average rate of change across specific intervals. You can also explore coordinate pairs in our primary slope calculator to see the rise and run.

For formal algebra lessons on standard form and graphing linear equations, review OpenStax Intermediate Algebra 2e chapter on graphing linear equations in two variables.

Maintained by the SlopeCalculator.cc Editorial Team · Updated

Standard form FAQs

What is the standard form of a linear equation?

Standard form is written as Ax + By = C, where A, B, and C are integers with a greatest common divisor of 1, and A is non-negative (A ≥ 0). If A is 0, then B must be positive.

Why must A be positive in standard form?

In algebra, standard form conventions require the leading coefficient A to be non-negative so that every straight line has one unique standard form equation rather than multiple equivalent variations.

How do you find slope from standard form Ax + By = C?

The slope is m = −A / B. Rearranging Ax + By = C into slope-intercept form gives By = −Ax + C, and dividing through by B yields y = (−A / B)x + (C / B).

What is the difference between standard form and general form?

Standard form isolates the constant on the right side: Ax + By = C. General form moves all terms to one side so the equation equals zero: Ax + By + D = 0 (where D = −C).

Can A or B equal zero in standard form?

Yes, but not both at the same time. If A = 0, the equation reduces to By = C (a horizontal line like y = 4). If B = 0, the equation reduces to Ax = C (a vertical line like x = −3).

How do you eliminate fractions when writing standard form?

Find the least common denominator of all fractional terms in the equation and multiply every term on both sides by that common integer.