Enter numbers or points; we handle every common form. Fractions cleared, signs normalized, coefficients reduced to exact integers always. Switch modes to slope-intercept, point-slope, or two-point forms easily. See algebra steps, validation, and shareable permalink. Export results as CSV or PDF for your records.
Ax + By = C
Compute to see detailed algebra here.
| # | Mode | Inputs | A | B | C | Use |
|---|
| Input Form | Given | Standard Form Mapping | Notes |
|---|---|---|---|
| Slope–Intercept | y = m x + b | A = m, B = −1, C = −b | Then clear denominators, reduce, and enforce A ≥ 0. |
| Point–Slope | y − y₁ = m(x − x₁) | A = m, B = −1, C = m x₁ − y₁ | Use exact fractions for m, x₁, y₁ if entered. |
| Two Points | (x₁,y₁), (x₂,y₂) | m = (y₂−y₁)/(x₂−x₁), then as Slope–Intercept | Vertical if x₁ = x₂ → A = 1, B = 0, C = x₁. |
| Coefficients | a x + b y = c | A = a, B = b, C = c | We can still reduce and flip sign if needed. |
| Intercepts | x/a + y/b = 1 | A = b, B = a, C = a b | Multiply by ab to eliminate denominators first. |
| Condition | Detection | Standard Form Output (A,B,C) | Example |
|---|---|---|---|
| Horizontal line | m = 0 | A = 0, B ≠ 0, C = b | y = 5 → 0·x + 1·y = 5 |
| Vertical line | x₁ = x₂ in two-point, or undefined slope | A = 1, B = 0, C = x₁ | x = −3 → 1·x + 0·y = −3 |
| All-zero coefficients | A = B = C = 0 after parse | Invalid; prompt for new inputs | Empty fields → show validation message |
| Negative A after reduction | A < 0 with option “Force A ≥ 0” enabled | Multiply triplet by −1 | −2x − 4y = −6 → 2x + 4y = 6 |
| Fractional coefficients | Any denominators present | Scale by LCM of denominators; then reduce by gcd | ½x − ⅓y = 2 → 3x − 2y = 12 |
y = m x + b ⇒ m x − y = −b ⇒ A=m, B=−1, C=−b.y − y₁ = m (x − x₁) ⇒ m x − y = m x₁ − y₁ ⇒ A=m, B=−1, C=m x₁ − y₁.m = (y₂ − y₁)/(x₂ − x₁) then use Slope–Intercept result.a x + b y = c ⇒ A=a, B=b, C=c.x/a + y/b = 1 ⇒ multiply by ab: b x + a y = ab ⇒ A=b, B=a, C=ab.gcd(|A|,|B|,|C|), enforce A ≥ 0.3/4.Ax + By = C.Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.