Algebra • Linear Equations & Analytic Geometry

General Form to Slope-Intercept Form Converter

Convert any linear equation from General Form ($Ax + By + C = 0$) to Slope-Intercept Form ($y = mx + b$). View exact fractional slopes, intercepts, step-by-step algebraic derivations, and orthonormal 2D plots.

|
Last Updated: September 2026
|
Verified Accurate: Analytic Geometry Rigor
Linear Algebra • Line Equation Converter Standard Evaluation
Curriculum Presets: Click to load & convert
General Form Equation: Ax + By + C = 0 Real or Integer Coefficients
Slope-Intercept Form
y = -2/3x + 2
y = mx + b
Slope (m)
-2/3 (-0.6667)
Formula: m = -A / B
Y-Intercept (0, b)
(0, 2)
Formula: b = -C / B
X-Intercept (x₀, 0)
(3, 0)
Formula: x₀ = -C / A

Algebraic Conversion Steps

Rigorous Step-by-Step

Interactive 2D Cartesian Coordinate Graph

1:1 Orthonormal Aspect Ratio • Slim Minimal Lines
Plotted Line
Y-Intercept
X-Intercept
Direct Answer & Overview
Verified Educational Guide

General Form to Slope-Intercept Form Direct Overview

To convert a linear equation from General Form Ax + By + C = 0 to Slope-Intercept Form y = mx + b, isolate the variable y by subtracting Ax and C from both sides, then dividing every term by B. This yields the explicit slope formula m = -A/B and y-intercept b = -C/B. If B = 0, the line is vertical (x = -C/A) with an undefined slope.

Primary Mathematical Formula Universal Coefficient Transformation from Implicit to Explicit Form
Standard Equation
ƒ(x)
Q.E.D.
y=(−AB)x+(−CB)  ⟺  y=mx+by = \left(-\frac{A}{B}\right)x + \left(-\frac{C}{B}\right) \iff y = mx + b
Valid for all real coefficients where B ≠ 0. If B = 0, the equation reduces to the vertical line x = -C/A.
Exact Formula
Input Parameters
Required
1
Coefficient A: The real scalar coefficient multiplying the horizontal coordinate variable x.
2
Coefficient B: The real scalar coefficient multiplying the vertical coordinate variable y.
3
Constant C: The constant scalar term on the left side of the general equation Ax + By + C = 0.
Expected Outputs
Calculated
Slope-Intercept Equation: The explicit functional form y = mx + b isolating vertical variable y.
Slope (m): The exact rate of vertical change over horizontal change, m = -A / B.
Y-Intercept (0, b): The point where the linear graph intersects the y-axis, b = -C / B.
X-Intercept (x₀, 0): The point where the linear graph intersects the x-axis, x₀ = -C / A.
Step-by-Step Derivation: Full algebraic isolation including subtraction and division steps.
Worked Numerical Example
Instant Verification
Convert 2x + 3y - 6 = 0 to slope-intercept form.
→ Step 1: Subtract 2x and add 6 to isolate the y-term: 3y = -2x + 6. Step 2: Divide each term by the coefficient of y (B = 3): y = (-2/3)x + (6/3). Step 3: Simplify the constant quotient: y = -2/3x + 2.
y = -2/3x + 2 (Slope m = -2/3, Y-Intercept b = 2)

General Form vs. Slope-Intercept Form Definitions

Linear equations in two-dimensional Cartesian geometry represent straight lines. Depending on the mathematical task—whether performing algebraic manipulations, solving linear systems, or graphing functional relations—different standard representations offer distinct computational advantages. Two of the most widely used representations are General Form and Slope-Intercept Form.

General Form
Ax + By + C = 0

An implicit representation where all variable terms and constants reside on one side of the equality, balanced against zero. General form is universally robust because it can represent every possible straight line in the Cartesian plane, including vertical lines where $B = 0$.

Slope-Intercept Form
y = mx + b

An explicit functional representation where the dependent variable $y$ is isolated as a function of the independent variable $x$. It immediately reveals the line's steepness (slope $m$) and the vertical starting point (y-intercept $b$). For lines defined through a point and a direction, explore our companion Find Equation of a Line Given Slope and a Point tool.

Complete Algebraic Derivation & Parameter Isolation

The transformation from General Form to Slope-Intercept Form is an elementary algebraic process that isolates the variable $y$. Let us trace the formal derivation step-by-step:

  1. Initial Equation in General Form:
    Ax + By + C = 0
  2. Subtract $Ax$ and $C$ from Both Sides:

    Using the additive inverse property of real equality, transfer all terms not containing $y$ to the right side:

    By = -Ax - C
  3. Divide by the Coefficient $B$ (Assuming $B \neq 0$):

    Using the multiplicative inverse property, divide every distinct term by $B$:

    y = \left(-\frac{A}{B}\right)x + \left(-\frac{C}{B}\right)
  4. Equate to the Slope-Intercept Template $y = mx + b$:
    m = -\frac{A}{B}, \qquad b = -\frac{C}{B}

This elegant derivation establishes that the slope of any non-vertical general linear equation is the negative ratio of the $x$-coefficient to the $y$-coefficient: $m = -A/B$. Similarly, the vertical intercept is the negative ratio of the constant term to the $y$-coefficient: $b = -C/B$.

Geometric Meaning: Slopes, Intercepts & Normal Vectors

The coefficients $A$, $B$, and $C$ in general form carry profound geometric significance in vector algebra and coordinate geometry:

The Normal Vector $\vec{n} = \langle A, B \rangle$

In vector geometry, the vector $\vec{n} = \langle A, B \rangle$ is strictly perpendicular (orthogonal) to the line $Ax + By + C = 0$. Because the direction vector along the line is $\vec{d} = \langle B, -A \rangle$, their dot product vanishes: $\vec{n} \cdot \vec{d} = A(B) + B(-A) = 0$.

The Direction Vector & Slope

The direction vector along the line is $\langle \Delta x, \Delta y \rangle = \langle B, -A \rangle$. The scalar slope represents the ratio of vertical displacement to horizontal displacement: $m = \frac{\Delta y}{\Delta x} = \frac{-A}{B} = -\frac{A}{B}$.

The $x$-intercept is obtained by setting $y = 0$ in the general form: $Ax + B(0) + C = 0 \implies Ax = -C \implies x_0 = -C/A$. Thus, the line crosses the Cartesian axes at two fundamental coordinate anchors:

\text{Y-Intercept:} \quad \left(0, -\frac{C}{B}\right), \qquad \text{X-Intercept:} \quad \left(-\frac{C}{A}, 0\right)

Special Cases: Vertical, Horizontal & Degenerate Lines

When dealing with boundary coefficients where $A$ or $B$ vanish, the conversion reveals critical topological distinctions:

  • Vertical Lines ($B = 0, A \neq 0$): The equation reduces to $Ax + C = 0 \implies x = -C/A$. Because division by zero is undefined in real arithmetic, the slope $m = -A/0$ is undefined. A vertical line intersects the $x$-axis at $(-C/A, 0)$ and has no $y$-intercept (unless $C = 0$, in which case it is the entire $y$-axis). Vertical lines cannot be written in slope-intercept form $y = mx + b$.
  • Horizontal Lines ($A = 0, B \neq 0$): The equation reduces to $By + C = 0 \implies y = -C/B$. Here, the slope is zero ($m = -0/B = 0$). In slope-intercept form, this is $y = 0x + b$ or simply $y = b$. The line never crosses the $x$-axis unless $C = 0$.
  • Degenerate Case ($A = 0, B = 0$): If both coefficients vanish, the expression collapses to $C = 0$. If $C = 0$, the equation $0 = 0$ is satisfied by every point in $\mathbb{R}^2$ (the entire 2D plane). If $C \neq 0$, the equation $C = 0$ is an impossible contradiction with an empty solution set ($\emptyset$). Neither case defines a one-dimensional line.

Comprehensive Step-by-Step Worked Examples

Example 1: Positive Integer Coefficients

Convert $3x + 4y - 12 = 0$ into slope-intercept form and determine all intercepts.

1. Identify coefficients: $A = 3$, $B = 4$, $C = -12$.
2. Isolate $y$-term: $4y = -3x + 12$.
3. Divide by $B = 4$: $y = \left(-\frac{3}{4}\right)x + \frac{12}{4}$.
4. Simplify: $y = -\frac{3}{4}x + 3$.
5. Slope: $m = -3/4 = -0.75$. Y-Intercept: $(0, 3)$. X-Intercept: $(-(-12)/3, 0) = (4, 0)$.
Example 2: Negative Coefficient of $y$ ($B < 0$)

Convert $5x - 2y + 10 = 0$ into slope-intercept form.

1. Identify coefficients: $A = 5$, $B = -2$, $C = 10$.
2. Isolate $y$-term: $-2y = -5x - 10$.
3. Divide by $B = -2$: $y = \frac{-5}{-2}x + \frac{-10}{-2}$.
4. Simplify signs: $y = \frac{5}{2}x + 5$.
5. Slope: $m = 5/2 = 2.5$. Y-Intercept: $(0, 5)$. X-Intercept: $(-10/5, 0) = (-2, 0)$.

Linear Equation Forms Comparative Reference Table

Compare the primary algebraic forms of a straight line in two variables:

Equation Form Standard Algebraic Template Primary Parameters Handles Vertical Lines?
General Form Ax + By + C = 0 Normal vector $\langle A, B \rangle$, scalar $C$ Yes (B = 0)
Standard Form Ax + By = D Coefficients $A, B$, constant $D = -C$ Yes (B = 0)
Slope-Intercept Form y = mx + b Slope $m = -A/B$, y-intercept $(0, b)$ No (Slope undefined)
Point-Slope Form y - y₁ = m(x - x₁) Slope $m$, anchor point $(x_1, y_1)$ No (Slope undefined)
Intercept Form x/a + y/b = 1 X-intercept $a$, Y-intercept $b$ No (Cannot pass origin)

Real-World Engineering, Economics & Physical Applications

  • Microeconomics (Budget Constraints): Consumer budget lines are naturally formulated in general/standard form as $P_x \cdot x + P_y \cdot y - I = 0$, where $P_x$ and $P_y$ are commodity prices and $I$ is total income. Converting to slope-intercept form $y = -\left(\frac{P_x}{P_y}\right)x + \frac{I}{P_y}$ reveals the marginal rate of substitution (MRS) as the slope $-P_x/P_y$.
  • Computer Graphics & Collision Detection: In 2D game rendering, separating axis theorem (SAT) and ray casting rely on the normal vector $\langle A, B \rangle$ from general form for instantaneous perpendicular distance queries $d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}$. Converting to slope-intercept form provides the scanline rendering rasterization step $\Delta y = m \cdot \Delta x$.
  • Civil Engineering & Roadway Grading: Road grades and pipeline drainage slopes are defined as percentage grade $m \times 100\%$. Civil engineering survey cross-sections translate boundary elevation constraints from general boundary surveys directly into slope-intercept drainage profiles. For parallel slope calculations, check our Slope Calculator.

Common Student Pitfalls & Calculation Mistakes

  • Forgetting the Negative Sign in Slope: A pervasive mistake is writing $m = A/B$ instead of $m = -A/B$. Because $Ax$ is on the left-hand side, subtracting it introduces a negative sign: $By = -Ax - C \implies m = -A/B$.
  • Sign Errors When Dividing by Negative $B$: When $B < 0$, dividing by a negative number flips the signs of both the $x$-term and the constant term. For example, in $2x - 3y + 6 = 0 \implies -3y = -2x - 6 \implies y = \frac{-2}{-3}x + \frac{-6}{-3} = \frac{2}{3}x + 2$. Failing to track both negatives yields incorrect negative intercepts.
  • Attempting to Convert Vertical Lines: Trying to express $3x - 9 = 0$ as $y = mx + b$ results in division by zero ($B = 0$). Always verify that $B \neq 0$ before constructing a slope-intercept equation.
Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is the general form of a linear equation?
The general form of a two-variable linear equation is Ax + By + C = 0, where A, B, and C are real constants, and A and B are not both zero. In elementary geometry, A is traditionally chosen as a non-negative integer, and A, B, and C share no common integer factors other than 1.
How do you convert general form Ax + By + C = 0 to slope-intercept form y = mx + b?
To convert Ax + By + C = 0 to y = mx + b: first, subtract Ax and C from both sides to obtain By = -Ax - C. Next, divide every term by B (assuming B is non-zero). This yields y = (-A/B)x + (-C/B), where the slope is m = -A/B and the y-intercept is b = -C/B.
What happens if coefficient B equals zero in general form?
If B = 0 and A is non-zero, the equation simplifies to Ax + C = 0, which gives x = -C/A. This represents a vertical line. Vertical lines have an undefined slope (division by zero) and therefore cannot be expressed in slope-intercept form y = mx + b.
What happens if coefficient A equals zero in general form?
If A = 0 and B is non-zero, the equation simplifies to By + C = 0, which gives y = -C/B. This represents a horizontal line. Horizontal lines have a slope of zero (m = 0) and are written in slope-intercept form as y = 0x + b or simply y = b.
What is the difference between standard form and general form?
In general form, all terms reside on the left-hand side equal to zero: Ax + By + C = 0. In standard form, the variable terms reside on the left-hand side while the constant resides on the right-hand side: Ax + By = D (where D = -C).
Can fractions or decimals be used in general form equations?
Yes. While textbook conventions often prefer integer coefficients cleared of common denominators, the algebraic transformation rules m = -A/B and b = -C/B hold identically for any real numbers, decimals, or rational fractions.