
Linear Equation Solver
Use this free linear equation solver to solve a*x + b = c for x over the real numbers. Handles unique roots, no solution, and infinitely many solutions.
Open toolEnter the six coefficients of ax + by = c and dx + ey = f into this system of equations solver to compute the exact (x, y) intersection point up to 12 significant digits in one click. All calculations run locally in your browser using Cramer's rule with Copy and result.txt download.
Enter the inputs, then select Calculate result.
Result will appear here
A 2×2 system of equations solver finds the simultaneous real values (x, y) that satisfy both ax + by = c and dx + ey = f. Enter any finite real coefficients from -1,000,000,000 to 1,000,000,000 to see how to solve system of equations problems (2x + y = 5 and x − y = 1 return x = 2 and y = 1) right in your browser.
det = a × e − b × d; x = (c × e − b × f) / det; y = (a × f − c × d) / det.
Evaluates the 2×2 system ax + by = c and dx + ey = f via Cramer's rule determinants (matching our Determinant Calculator), rejecting singular or nearly parallel systems where |det| <= 100 × Number.EPSILON × max(|ae|, |bd|). For single-variable equations, see our Linear Equation Solver.
Compare 10 standard 2×2 linear systems showing Equation 1 (ax + by = c), Equation 2 (dx + ey = f), the determinant D = ae − bd, Cramer's numerators (Dx, Dy), and the exact calculator output.
| Equation 1 (ax + by = c) | Equation 2 (dx + ey = f) | Inputs (a, b, c; d, e, f) | Determinant D = ae − bd | Numerators (Dx, Dy) | Calculator Output | Geometric Case |
|---|---|---|---|---|---|---|
| 2x + y = 5 (Default) | x − y = 1 | 2, 1, 5; 1, -1, 1 | -3 | (-6, -3) | x = 2, y = 1 | Intersecting in Quadrant I |
| x + y = 10 | x − y = 4 | 1, 1, 10; 1, -1, 4 | -2 | (-14, -6) | x = 7, y = 3 | Symmetric sum & difference |
| 3x + 2y = 16 | 7x + y = 19 | 3, 2, 16; 7, 1, 19 | -11 | (-22, -55) | x = 2, y = 5 | Substitution-ready (y = 19 − 7x) |
| 4x − 3y = -2 | 2x + 5y = -14 | 4, -3, -2; 2, 5, -14 | 26 | (-52, -52) | x = -2, y = -2 | Quadrant III intersection |
| 2x + 5y = 9 | 4x − 2y = 6 | 2, 5, 9; 4, -2, 6 | -24 | (-48, -24) | x = 2, y = 1 | Elimination by doubling Row 1 |
| 5x + 2y = 4 | 3x − 4y = 18 | 5, 2, 4; 3, -4, 18 | -26 | (-52, 78) | x = 2, y = -3 | Quadrant IV intersection |
| 4x + 2y = 5 | 2x − 2y = 1 | 4, 2, 5; 2, -2, 1 | -12 | (-12, -6) | x = 1, y = 0.5 | Exact terminating decimal |
| 2x + 3y = 7 | 4x − y = 3 | 2, 3, 7; 4, -1, 3 | -14 | (-16, -22) | x = 1.14285714286, y = 1.57142857143 | 12-sig-fig rational (8/7, 11/7) |
| 3x + 4y = 0 | 5x − 2y = 0 | 3, 4, 0; 5, -2, 0 | -26 | (0, 0) | x = 0, y = 0 | Homogeneous origin root |
| 2x + y = 5 | 4x + 2y = 8 | 2, 1, 5; 4, 2, 8 | 0 | (-2, 4) | Singular system error | Parallel lines (det = 0) |
Follow these three steps to run this solve system of equations calculator in your browser.
Type the x multiplier (2 preloaded), y multiplier (1 preloaded), and right-hand constant (5 preloaded) for your first line ax + by = c.
Fill in Second x coefficient (1), Second y coefficient (-1), and Second right side (1) for dx + ey = f, including minus signs for subtracted terms.
Press Calculate result to compute x and y immediately, then use Copy or Download (result.txt) to save the coordinate pair.
Review three worked algebra problems showing how Cramer's rule matches elimination and substitution and how the solver flags parallel or dependent lines.
With the preloaded defaults (a = 2, b = 1, c = 5 and d = 1, e = -1, f = 1), clicking Calculate result outputs x = 2 and y = 1. When solving systems of equations by elimination, adding the two equations cancels +y and -y directly (3x = 6, so x = 2 and y = 2 − 1 = 1). Cramer's rule reaches the identical result via det = (2)(-1) − (1)(1) = -3, x = -6 / -3 = 2, and y = -3 / -3 = 1. You can also find the geometric crossing point of two line segments in our Line Intersection Calculator.

For systems whose intersection falls on non-integer fractions, enter a = 2, b = 3, c = 7 and d = 4, e = -1, f = 3. The determinant is det = (2)(-1) − (3)(4) = -14, with numerators Dx = (7)(-1) − (3)(3) = -16 and Dy = (2)(3) − (7)(4) = -22. The calculator outputs x = 1.14285714286 (8/7) and y = 1.57142857143 (11/7) to 12 significant digits. To convert repeating decimal coordinates back into reduced fractions, use our Decimal to Fraction Converter.

If the second equation's x and y coefficients are a scalar multiple of the first equation's coefficients (such as a = 2, b = 1 and d = 4, e = 2), the lines have identical slope (-2) and determinant det = 2(2) − 1(4) = 0. Clicking Calculate result stops with "The matrix or system is singular or numerically too close to singular." To inspect the 2×2 matrix inverse when det !== 0, open our Matrix Inverse Calculator.

Whether you are solving systems of equations by substitution, elimination, or matrices, all three methods reduce the same 2×2 coefficients:
First, substitution isolates one variable (such as y = x − 1 from x − y = 1) and plugs it into the other equation (2x + (x − 1) = 5 => 3x = 6), while elimination multiplies rows so one variable cancels upon addition. Cramer's rule applies elimination symbolically in one step: x = (ce − bf)/(ae − bd) and y = (af − cd)/(ae − bd). Before entering an equation written in slope-intercept form y = mx + k, subtract mx from both sides to get -mx + 1y = k (or derive the line from two points in our Line Equation Calculator).
Second, in linear algebra, the system is written as A × x = b and solved by multiplying the inverse matrix A⁻¹ by b (see our Matrix Inverse Calculator and Matrix Multiplication Calculator). If you have only a single linear equation ax + by = c and want integer solutions (x, y), use our Diophantine Equation Solver.

Review these three numerical rules before relying on the computed (x, y) coordinates:
First, all six fields (#a through #f) require finite real numbers within -1,000,000,000 to 1,000,000,000. Leaving a field empty or exceeding ±1,000,000,000 displays a field-specific validation prompt such as "Enter a valid First x coefficient."
Second, in addition to rejecting exact det = 0, the stable(det, scale) check rejects nearly parallel lines where |ae − bd| <= 100 × Number.EPSILON × max(|ae|, |bd|). Coordinates are formatted in IEEE 754 double-precision arithmetic with toPrecision(12) and -0 normalized to 0. For second-degree equations in one variable, see our Quadratic Equation Solver.


Use this free linear equation solver to solve a*x + b = c for x over the real numbers. Handles unique roots, no solution, and infinitely many solutions.
Open tool
Use this determinant calculator to evaluate any 2x2 matrix in your browser with det(A) = ad - bc. Check invertibility, area scaling, and 10 worked examples.
Open tool
Use this matrix inverse calculator to find the inverse matrix of any nonsingular 2x2 array in row order using the 1/(ad-bc) adjugate formula in your browser.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this matrix multiplication calculator to multiply two 2x2 matrices in row order using row-by-column dot products, with 10 worked examples and instant copy.
Open toolFree Diophantine equation solver for ax + by = c over the integers with 100-digit BigInt precision. Returns gcd(a,b), one (x,y) pair, and all integer solutions.
Open tool
Find the unique intersection of two 2D lines in Ax + By + C = 0 form.
Open toolUse this free quadratic equation solver to solve ax² + bx + c = 0 for real, repeated, or complex roots (a ± bi) and discriminant Δ = b² − 4ac in one click.
Open toolAnswers about using System Of Equations Solver and understanding its results.
Write the two equations in standard form ax + by = c and dx + ey = f, then compute the system determinant D = ae - bd. When D ≠ 0, the unique solution is x = (ce - bf) / D and y = (af - cd) / D. For 2x + y = 5 and x - y = 1, D = (2)(-1) - (1)(1) = -3, giving x = -6 / -3 = 2 and y = -3 / -3 = 1.
Use substitution when one variable already has a coefficient of 1 or -1 (such as y = 19 - 7x), making it easy to substitute without introducing fractions. Use elimination (or Cramer's rule determinants) when all four variable coefficients are non-unit integers or decimals, since cross-multiplying avoids fractional intermediate algebra.
Each linear equation ax + by = c graphs as a straight line in the Cartesian plane. A unique solution (x, y) is the exact coordinate pair where the two non-parallel lines intersect.
When ae - bd = 0, the ratios of the x and y coefficients in both equations are identical, meaning the two lines have the exact same slope. Geometrically, the lines are either parallel and disjoint (zero solutions) or coincident (infinitely many solutions along the line), so no unique (x, y) intersection point exists.
Move the mx term to the left side of the equals sign by subtracting mx from both sides: -mx + 1y = b. Then enter -m as the x coefficient, 1 as the y coefficient, and b as the right side (for example, y = 3x - 4 becomes -3x + 1y = -4).
Choose another tool for your next calculation, conversion, or text task.