Linear Equation Standard Form Converter
Convert any linear equation from y = mx + b slope-intercept form into Ax + By = C standard form with automatic fraction clearing, GCD normalization, and step-by-step derivation.
Enter slope (m) and y-intercept (b) for y = mx + b
Accepts fractions (-2/3), decimals, or integers
Value of y when x = 0
Step-by-Step Algebraic Derivation for y = -2/3x + 4
Begin with the slope-intercept equation y = -2/3x + 4, where slope m = -2/3 and y-intercept b = 4.
The denominator is 3. Multiply all terms on both sides of the equation by 3:
3 × y = 3 × (-2/3x) + 3 × 4 &implies; 3y = -2x + 12
Add 2x to both sides to place all variable terms on the left:
2x + 3y = 12
Leading coefficient A = 2 is already positive (A ≥ 0). The greatest common divisor gcd(2, 3, 12) = 1, confirming terms are in simplest coprime integer form: 2x + 3y = 12.
Standard form prohibits fractional or decimal coefficients. If fractions exist, multiply every term by the least common multiple of all denominators.
By algebraic convention, the coefficient of x must be non-negative. If rearranging yields -Ax, multiply every term on both sides by -1.
Coefficients must be in lowest terms: gcd(A, |B|, |C|) = 1. For example, 4x + 6y = 10 must be simplified to 2x + 3y = 5.
How to Convert Slope-Intercept Form to Standard Form
To convert y = mx + b to standard form Ax + By = C: subtract mx from both sides to get -mx + y = b, then multiply by -1 so A is positive. If m is a fraction, multiply all terms by the denominator to clear fractions, then divide by the GCD to simplify.
What Is Standard Form?
The standard form of a linear equation is Ax + By = C, where A, B, and C are integers, A ≥ 0, and the greatest common divisor of |A|, |B|, and |C| is 1. This form is the most formal algebraic representation of a line.
Standard form is especially useful when working with systems of linear equations because the elimination method relies on aligned integer coefficients. It also makes it trivial to find both intercepts: the x-intercept is (C/A, 0) and the y-intercept is (0, C/B).
Step-by-Step Conversion Process
Move the mx term to the left side
y = mx + b → −mx + y = b
Clear any fractions or decimals
Multiply all terms by the LCD to obtain integer coefficients.
Ensure A ≥ 0
If A is negative, multiply the entire equation by −1.
Simplify by GCD
Divide A, B, C by their greatest common divisor so the coefficients are in lowest terms.
To convert back from standard form, use the Standard Form to Slope-Intercept Converter. You can also use the general form converter for more complex equation transformations.
Clearing Fractions and Normalizing Coefficients
The most challenging part of converting to standard form is handling fractional slopes. The key technique is to multiply every term by the least common denominator (LCD) to eliminate all fractions simultaneously.
Detailed Example: y = (3/5)x + (2/7)
Step-by-Step Worked Examples
Example: Convert y = 3x − 7
Integer coefficients, A = 3 ≥ 0, GCD(3, 1, 7) = 1. Valid standard form.
Example: Convert y = −(4/3)x + 2
A = 4 ≥ 0, GCD(4, 3, 6) = 1. Verify by converting back with the slope-intercept converter.
Example: Convert y = 5 (horizontal line)
Horizontal lines have A = 0. The equation simplifies to just y = 5.
When to Use Standard Form
Systems of Equations
The elimination method requires aligned Ax + By = C form to add or subtract equations and eliminate variables.
Finding Both Intercepts
Set x = 0 to find the y-intercept (0, C/B) and set y = 0 to find the x-intercept (C/A, 0).
Linear Programming
Constraint inequalities in optimization problems are written in standard form to define feasible regions and find optimal solutions.
Matrix Representations
Standard form maps directly to matrix equations where coefficients fill the coefficient matrix.
Common Conversion Pitfalls
Leaving Fractional Coefficients
Standard form requires integers. If your slope is a fraction like 2/3, you must multiply through by the denominator before the equation qualifies as standard form.
Negative A Coefficient
By convention, A must be non-negative. If you get −2x + y = 5, multiply the entire equation by −1 to get 2x − y = −5.
Not Reducing by GCD
After clearing fractions, check if all three coefficients share a common factor. For example, 6x + 4y = 10 should be simplified to 3x + 2y = 5.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.