Slope-Intercept and Standard Form Converter
Two names for the same line
Linear equations can look different on the page while still describing the exact same line on a graph. In one class or textbook you may see a line written as y = mx + b, where the slope and y-intercept are immediately visible. In another setting, especially when solving systems or working with constraints, the same line may appear as Ax + By = C. This converter moves cleanly between those two forms so you can see the relationship instead of redoing the algebra every time.
The calculator accepts either pair of slope-intercept inputs, m and b, or the three standard-form coefficients, A, B, and C. It then returns an equivalent equation, keeping the arithmetic exact whenever possible. That matters because classroom problems often use fractions, and a rounded decimal can make a neat answer look messy. The result area is therefore designed to show the same line in a tidier, more conventional form rather than just a quick decimal approximation.
This page also explains what each input means, how the rearrangement works, and how to read the output. If you are checking homework, teaching a lesson, reviewing for an algebra test, or translating a model from one format to another, the goal is the same: keep the equation equivalent while making the line easier to interpret for the task in front of you.
How to use the slope-intercept and standard form converter
The tool works in one direction at a time. If you already know the slope and y-intercept, enter those values in the m and b fields and leave A, B, and C empty. If you instead start with a standard-form equation, enter A, B, and C and leave m and b empty. Mixing both sets at once creates competing instructions, so the calculator will ask you to choose one complete set only.
- To go from slope-intercept to standard form, fill in m and b only.
- To go from standard form to slope-intercept, fill in A, B, and C only.
- You can enter integers, decimals, or fractions such as
-2,1.5, or3/4. - The converter simplifies integer coefficients in standard form so they share no common factor.
- If
B = 0in standard form, the line is vertical and there is no valid slope-intercept form. The calculator reports that case explicitly.
A good mental check is this: you should either know a line by its rate of change and starting height, or by a balanced linear equation. Provide one of those descriptions completely, and the calculator supplies the other.
Slope-intercept form
Slope-intercept form writes a line as y = mx + b. This version is popular because it tells a story right away. The coefficient m says how steep the line is and whether it rises or falls as x increases. The constant b says where the line crosses the y-axis, which is the value of y when x = 0.
If m is positive, the line climbs from left to right. If m is negative, it falls. A slope of zero creates a horizontal line. The intercept b shifts the whole line up or down without changing the steepness. Because of this direct interpretation, slope-intercept form is often the fastest format for graphing by hand, understanding rate of change, or reading a real-world relationship such as cost per item plus a fixed fee.
Standard form
Standard form writes the same linear relationship as Ax + By = C. This form emphasizes balance between the x-term, the y-term, and the constant on the right side. Many textbooks prefer A, B, and C to be integers with no common factor, and they often choose the sign so that A > 0. That convention makes answers easier to compare across homework sets and solution keys.
Standard form is especially useful when you solve systems of equations by elimination, since matching or canceling coefficients becomes straightforward. It is also common in modeling and optimization, where constraints are naturally written as combinations of variables. Unlike slope-intercept form, standard form can represent vertical lines when B = 0. For example, x = 2 can be written as 1x + 0y = 2, which is valid standard form but not valid slope-intercept form.
Formulas for converting between forms
From slope-intercept to standard form
Start with the slope-intercept equation:
y = mx + b
Move the x-term to the left side:
-mx + y = b
If you want the x-coefficient to be positive, multiply the entire equation by -1:
mx - y = -b
That means every line written as y = mx + b has an equivalent standard-form equation. When m or b includes fractions, the calculator clears denominators by multiplying through by a common denominator. It then reduces the resulting integers by their greatest common divisor so the final coefficients are as simple as possible.
From standard form to slope-intercept
Start with the standard-form equation:
Ax + By = C
Subtract Ax from both sides:
By = C - Ax
Now divide by B, assuming B ≠ 0:
y = -A/B x + C/B
So the slope-intercept parameters are the slope m = -A/B and the intercept b = C/B. In MathML, this same relationship can be written as:
If B = 0, you cannot divide by B. That is the signal that the equation represents a vertical line instead of a line of the form y = mx + b.
Reading what the converter hands back
When you click convert, the result is not just a rearranged sentence. It is the same line written in a more useful format for the situation you chose. If you enter m and b, the calculator returns standard form with cleaned-up integer coefficients when possible. If you enter A, B, and C, the calculator returns the corresponding slope and intercept exactly, often as fractions.
The converter also applies a few conventions automatically so the answer is easier to read:
- Exact arithmetic keeps rational values as fractions instead of forcing decimal rounding.
- Simplified standard form removes any common factor shared by
A,B, andC. - Sign convention prefers a positive leading x-coefficient when standard form is produced.
- Clear errors explain incomplete inputs, conflicting inputs, invalid fractions, and vertical-line cases.
Different algebra teachers may allow several equivalent-looking standard forms, but they still describe the same graph. The result here is meant to be a canonical classroom-friendly version, which makes it easier to compare your answer with notes, examples, or solution manuals.
Four conversions, worked line by line
Example 1: Slope-intercept to standard form
Suppose the line is y = (3/4)x - 2. The slope tells you the line rises 3 units for every 4 units of horizontal movement, and the intercept tells you it crosses the y-axis at -2. To rewrite the line in standard form, move the x-term left and then clear the fraction.
- Move the x-term to the left:
-(3/4)x + y = -2 - Multiply every term by 4 to clear the denominator:
-3x + 4y = -8 - Multiply by
-1so the x-coefficient is positive:3x - 4y = 8
The standard-form coefficients are therefore A = 3, B = -4, and C = 8. The graph has not changed at all; only the presentation has changed. This is exactly the kind of cleanup the calculator automates for you.
Example 2: Standard form to slope-intercept
Now begin with 2x + 3y = 12. Here the coefficients are already simplified integers, which is nice for elimination, but the slope is not visible until you solve for y.
- Subtract
2xfrom both sides:3y = 12 - 2x - Divide by 3:
y = 12/3 - (2/3)x - Simplify and reorder:
y = -(2/3)x + 4
So the line has slope m = -2/3 and y-intercept b = 4. Interpreting that result, the line falls 2 units for every 3 units moved to the right, and it crosses the y-axis at 4.
Example 3: A horizontal line
Consider y = 5. In slope-intercept form, that means m = 0 and b = 5. Converting to standard form gives 0x + y = 5, which is perfectly valid. This is a useful reminder that not every standard-form equation needs a nonzero x-term, even though many examples in class do.
Example 4: Vertical line limitation
Consider 5x = 10. In standard form, that is A = 5, B = 0, and C = 10. Dividing by 5 gives x = 2, a vertical line. Because vertical lines do not have a defined slope, there is no way to rewrite this equation as y = mx + b. The calculator therefore reports the limitation instead of pretending a slope-intercept answer exists.
Comparison of slope-intercept and standard form
| Aspect | Slope-intercept form (y = mx + b) |
Standard form (Ax + By = C) |
|---|---|---|
| Main focus | Shows slope and y-intercept directly | Shows a balanced linear equation with coefficients |
| Typical use | Graphing, rate of change, quick interpretation | Elimination, constraints, integer-coefficient models |
| Visibility of slope | Immediate: m is the coefficient of x |
Computed: m = -A/B when B ≠ 0 |
| Visibility of intercept | Immediate: b is the constant term |
Computed: b = C/B when B ≠ 0 |
| Vertical lines | Cannot represent them | Represents them naturally when B = 0 |
| Common convention | Fractions or decimals may appear naturally | Often simplified integers with positive leading x-coefficient |
What this tool won't do for you
This converter assumes you are working with linear equations in two variables. It does not attempt to handle nonlinear expressions such as quadratics, absolute value equations, or piecewise rules. It also expects a complete set of inputs for one representation at a time: either m and b, or A, B, and C. Partial entries are ambiguous, so the calculator will ask for the missing information instead of guessing.
One more assumption is about form convention. Standard form is not unique, because multiplying every term by the same nonzero number gives an equivalent equation. The converter therefore simplifies the coefficients and adjusts the sign to make the result easier to compare with common classroom standards. If your teacher uses a slightly different convention, the graph is still the same and the equation is still equivalent.
Finally, remember the special case of vertical lines. Standard form can describe them, but slope-intercept form cannot. That is not a bug in the calculator; it is a feature of the algebra itself. Once you see B = 0, you are looking at a line whose slope is undefined.
Why this conversion matters
Students often learn these forms separately and only later realize they are two views of the same object. Converting back and forth helps build that connection. Slope-intercept form highlights how a line behaves. Standard form highlights how a line combines variables. When you can move confidently between the two, graphing, solving systems, and interpreting word problems all become easier because you are choosing the form that best matches the job instead of forcing every task through the same equation layout.
That is the real purpose of this calculator: not only to produce an answer, but also to reinforce the idea that equivalent equations can reveal different useful information. The line does not change. Your viewpoint does.
Mini-game: Line Lock
If you want a fast mental-conversion drill after using the calculator, try the optional mini-game below. Each round gives you a target line in either slope-intercept form or standard form. Your job is to tune the line on the graph by adjusting m and b until it passes through the glowing checkpoints. Later rounds introduce fraction-heavy targets and a special vertical-line alert, which reinforces the same limitation the calculator reports when B = 0.
m = -A/B and b = C/B feel on a graph instead of just on paper.