All tools › Math Calculators › Algebra
Solve two or three linear equations together and see the determinants, the steps and a check of each equation.
Solve two or three linear equations at the same time
A system of equations is a set of equations that must all be true for the same values of the unknowns. This system of equations solver handles two equations in x and y, or three equations in x, y and z. You type the number in front of each unknown and the right side of each equation, and it returns the solution, the determinants behind it and a check of every equation.
It also says when a system has no solution or infinitely many.
How to use the system solver
- Write each equation with the unknowns on the left in the order x, y, z and the plain number on the right, for example 4x + 3y = 18.
- Choose the Size of the system: 2 equations or 3 equations.
- For each equation, enter the number in front of x, of y (and of z for a 3 x 3 system) and the right side.
- Type 0 when an unknown is missing from an equation, and 1 or -1 when it has no number in front.
- In a 2 x 2 system the z boxes and the third equation are ignored.
How it is solved: Cramer’s rule
x = Dx / D, y = Dy / D, z = Dz / D
D is the determinant of the grid of coefficients. Dx is the same determinant after the x column has been replaced by the right sides; Dy and Dz are built the same way. For two equations a1x + b1y = d1 and a2x + b2y = d2:
D = a1 x b2 – b1 x a2, Dx = d1 x b2 – b1 x d2, Dy = a1 x d2 – d1 x a2
A 3 x 3 determinant is expanded along its first row. When every input is a whole number up to 10,000 in size, the answers are also shown as exact fractions.
Worked example: 4x + 3y = 18 and 2x – 5y = -4
Keep the size on 2 equations and enter 4, 3 and 18 for equation 1, then 2, -5 and -4 for equation 2. The result is x = 3, y = 2.
| Name | Matrix (rows separated by 😉 | Value |
|---|---|---|
| D | [4 3; 2 -5] | -26 |
| Dx | [18 3; -4 -5] | -78 |
| Dy | [4 18; 2 -4] | -52 |
So x = -78 / (-26) = 3 and y = -52 / (-26) = 2. The check rows confirm it: equation 1 gives left side 18, right side 18.
A 3 x 3 run: x + y + z = 6, 2x – y + 3z = 9 and -x + 4y + 2z = 13 give D = -14, Dx = -14, Dy = -28 and Dz = -42, so x = 1, y = 2, z = 3. The system 3x + 2y = 7 and 5x – 4y = 1 has no whole answer and is shown as x = 1.363636364, y = 1.454545455 and as x = 15/11, y = 16/11.
One solution, none, or infinitely many
| Determinant D | Result | Picture for two equations |
|---|---|---|
| Not 0 | Exactly one solution | Two lines crossing at one point |
| 0, equations contradict | No solution | Parallel lines |
| 0, equations repeat each other | Infinitely many solutions | The same line twice |
For example, x + y = 4 with 2x + 2y = 8 gives infinitely many solutions: the second equation is the first doubled. Change the 8 to 10 and the result is no solution. When D is 0 the calculator compares the rank of the coefficients with the rank after the right sides are added: equal means infinitely many, unequal means none.
Limits and assumptions
- The number of equations equals the number of unknowns, two or three.
- When there are infinitely many solutions, the page says so but does not write out the general solution.
- Decimal results are rounded to 10 significant digits. With decimal inputs, a determinant extremely close to 0 is treated as 0.
Frequently asked questions
How do I enter an equation that is not in the standard order?
Rearrange it first so the unknowns are on the left and the number is on the right. For y = 2x + 1, subtract 2x from both sides to get -2x + y = 1, then enter -2, 1 and 1.
Is Cramer’s rule the same as substitution or elimination?
It is a different route to the same answer. Those remove one unknown at a time; Cramer’s rule gives each unknown directly as a ratio of two determinants.
What does a determinant of 0 mean?
It means the equations do not pin down a single point. There is either no solution or infinitely many.
Can I solve two equations with three unknowns?
Not here. Two equations cannot fix three unknowns to single values, so such a system has either no solution or infinitely many.
Related calculators
- Equation Solver (Linear) – one linear equation in one unknown, with steps.
- Matrix Calculator – determinants, inverses and rank for matrices up to 5 x 5.
- Quadratic Formula Calculator – for a single equation with an x squared term.
- Slope Calculator – turn two points into the equation of a line.
