Learn more
Enter the coefficients of two equations in x and y, or three equations in x, y and z. You get the exact solution, the determinants behind it, and a check — or a clear explanation when there is no solution or infinitely many.
What is a system of linear equations?
A system of equations is a set of two or more equations that must all be true at the same time. In a linear system every variable appears only to the first power, so each equation in two variables draws a straight line, and each equation in three variables draws a flat plane. Solving the system means finding the point where all of them meet. Systems like this show up whenever two or three unknowns are linked — mixing solutions in chemistry, comparing phone plans, balancing a budget, or finding the prices of items from two receipts.
How to use the calculator
- Choose 2 equations (unknowns x and y) or 3 equations (x, y and z).
- Rewrite each equation in standard form, with the variables on the left and the plain number on the right:
ax + by + cz = k. - Type each coefficient. Use a negative number for a minus sign, 1 for a variable with no number in front, and 0 when a variable is missing.
The answer shows the solution (as exact fractions when your inputs are whole numbers), the determinants used, and a table that substitutes the answer back into every equation so you can see it works.
Cramer's rule
For a 2 × 2 system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, Cramer's rule uses three determinants:
Dx is the coefficient determinant with the x column replaced by the right-hand numbers, and Dy replaces the y column. The 3 × 3 version works the same way with 3 × 3 determinants, which are expanded along the first row: a(ei − fh) − b(di − fg) + c(dh − eg). The matrix calculator computes these determinants on their own.
Worked example (the default inputs)
Solve 2x + 3y = 13 and x − y = −1.
- D = 2 × (−1) − 3 × 1 = −2 − 3 = −5
- Dx = 13 × (−1) − 3 × (−1) = −13 + 3 = −10
- Dy = 2 × (−1) − 13 × 1 = −2 − 13 = −15
- x = −10 ÷ −5 = 2, and y = −15 ÷ −5 = 3
Check: 2(2) + 3(3) = 13 ✓ and 2 − 3 = −1 ✓. Switch to three equations and the default system 2x + 3y + 4z = 13, x − y − 3z = −1, 3x − 2y + z = 8 has D = −40 and the solution x = 3, y = 1, z = 1.
Elimination: the same answer by hand
Elimination is often quicker on paper. Multiply equations so that one variable has matching coefficients, then add or subtract to cancel it. In the example, multiply the second equation by 3 to get 3x − 3y = −3, then add it to 2x + 3y = 13: the y terms cancel, leaving 5x = 10, so x = 2. Substituting into x − y = −1 gives y = 3. Cramer's rule and elimination always agree; the calculator uses elimination to decide what happens when D = 0.
No solution or infinitely many
When the determinant D is 0, there is no single answer. Two things can happen:
- No solution (inconsistent): the lines are parallel, as in x + y = 2 and x + y = 3. Elimination produces a false statement such as 0 = 1.
- Infinitely many solutions (dependent): one equation is a multiple of another, as in x + y = 2 and 2x + 2y = 4. Every point on the shared line works, and the calculator gives a general solution such as x = t, y = 2 − t.
The calculator tells these apart by comparing the rank of the coefficient matrix with the rank of the matrix that includes the right-hand side — the standard test from linear algebra.
Common mistakes
- Not lining up the variables — every equation must list x, then y, then z, with the constant alone on the right.
- Dropping a negative sign when moving a term across the = sign.
- Leaving a box empty instead of typing 0 for a missing variable.
- Rounding too early — keep fractions until the end. For quadratic rather than linear equations, use the quadratic formula calculator; to see one line's steepness, try the slope calculator.
Sources: Cramer's rule, determinant expansion and the rank test for consistency (Rouché–Capelli theorem) are standard results found in introductory linear algebra texts, such as Gilbert Strang's Introduction to Linear Algebra, and in OpenStax College Algebra, chapter 7.
Cite or link to this page
Using this system of equations calculator in an article, report or homework? Copy a citation or a ready-made link:
Calcivia. (2026). System of Equations Calculator. Retrieved November 11, 2026, from https://www.calcivia.com/system-of-equations-calculator/"System of Equations Calculator." Calcivia, 2026, https://www.calcivia.com/system-of-equations-calculator/. Accessed 11 Nov. 2026.<a href="https://www.calcivia.com/system-of-equations-calculator/">System of Equations Calculator</a> by Calcivia