AI Tools Free

System Of Equations Solver

Enter 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.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

How to solve system of equations with Cramer's rule

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.

Diagram showing the 2×2 linear system 2x + y = 5 and x − y = 1 intersecting at x = 2, y = 1 with determinant det = -3
With 2x + y = 5 and x − y = 1, det = -3 and the lines intersect at x = 2, y = 1.

Solve System of Equations Calculator Reference Table (10 2×2 Cases)

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 − bdNumerators (Dx, Dy)Calculator OutputGeometric Case
2x + y = 5 (Default)x − y = 12, 1, 5; 1, -1, 1-3(-6, -3)x = 2, y = 1Intersecting in Quadrant I
x + y = 10x − y = 41, 1, 10; 1, -1, 4-2(-14, -6)x = 7, y = 3Symmetric sum & difference
3x + 2y = 167x + y = 193, 2, 16; 7, 1, 19-11(-22, -55)x = 2, y = 5Substitution-ready (y = 19 − 7x)
4x − 3y = -22x + 5y = -144, -3, -2; 2, 5, -1426(-52, -52)x = -2, y = -2Quadrant III intersection
2x + 5y = 94x − 2y = 62, 5, 9; 4, -2, 6-24(-48, -24)x = 2, y = 1Elimination by doubling Row 1
5x + 2y = 43x − 4y = 185, 2, 4; 3, -4, 18-26(-52, 78)x = 2, y = -3Quadrant IV intersection
4x + 2y = 52x − 2y = 14, 2, 5; 2, -2, 1-12(-12, -6)x = 1, y = 0.5Exact terminating decimal
2x + 3y = 74x − y = 32, 3, 7; 4, -1, 3-14(-16, -22)x = 1.14285714286, y = 1.5714285714312-sig-fig rational (8/7, 11/7)
3x + 4y = 05x − 2y = 03, 4, 0; 5, -2, 0-26(0, 0)x = 0, y = 0Homogeneous origin root
2x + y = 54x + 2y = 82, 1, 5; 4, 2, 80(-2, 4)Singular system errorParallel lines (det = 0)

How to use this system of equations solver in 3 steps

Follow these three steps to run this solve system of equations calculator in your browser.

Enter the first equation (a, b, c)

Type the x multiplier (2 preloaded), y multiplier (1 preloaded), and right-hand constant (5 preloaded) for your first line ax + by = c.

Input and settings
System of Equations Solver input grid with 2, 1, 5 for the first equation and 1, -1, 1 for the second equation
Step 1: Enter the six coefficients for ax + by = c and dx + ey = f.

Enter the second equation (d, e, f)

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.

Tool result
System of Equations Solver result panel showing x = 2 and y = 1
Step 2: Select Calculate result to compute the (x, y) solution via Cramer's rule.

Click Calculate result and export

Press Calculate result to compute x and y immediately, then use Copy or Download (result.txt) to save the coordinate pair.

Review the details
System of Equations Solver output block with Copy and Download result.txt buttons
Step 3: Copy the two-line x and y output or download result.txt.

Worked examples: solving systems of equations by elimination

Review three worked algebra problems showing how Cramer's rule matches elimination and substitution and how the solver flags parallel or dependent lines.

Preloaded system (2x + y = 5, x − y = 1)

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.

Worked example showing 2x + y = 5 and x − y = 1 intersecting at (2, 1)
2x + y = 5 and x − y = 1 have determinant -3 and intersect at x = 2, y = 1.

Fractional roots (2x + 3y = 7, 4x − y = 3)

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.

Worked example illustrating 2x + 3y = 7 and 4x − y = 3 solving to x = 8/7 and y = 11/7
2x + 3y = 7 and 4x − y = 3 evaluate to x = 1.14285714286 and y = 1.57142857143.

Parallel singular lines (2x + y = 5, 4x + 2y = 8)

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.

Worked example showing parallel lines with ae − bd = 0 triggering the singular system diagnostic
When ae − bd = 0, the lines have equal slope and trigger the singular system error.

Comparing elimination, substitution, and matrix methods for 2×2 systems

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.

Comparison connecting substitution, row elimination, and A⁻¹b matrix inversion to (x, y)
Elimination, substitution, Cramer's rule, and matrix inversion all yield the same (x, y) intersection.

System of equations solver input bounds, conditioning check, and precision

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.

Summary of the ±1 billion range, relative determinant conditioning check, and toPrecision(12) formatting
Checks |det| > 100 × EPSILON × max(|ae|, |bd|) and formats x and y up to 12 significant digits.

Frequently asked questions about the system of equations solver

Answers about using System Of Equations Solver and understanding its results.

How do you solve a 2×2 system of linear equations using Cramer's rule?

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.

When should you use elimination vs. substitution to solve a system of equations?

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.

What does the (x, y) solution of a 2×2 linear system represent on a graph?

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.

Why does the calculator report that a system is singular when ae − bd = 0?

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.

How do I rewrite slope-intercept equations (y = mx + b) into ax + by = c form?

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).

Solve your 2×2 system of equations now

Choose another tool for your next calculation, conversion, or text task.

Calculate result