Type one equation per line using x, y, and z. Use 2 equations for 2x2 or 3 equations for 3x3.
Systems of Equations Solver
Solve 2x2 and 3x3 linear systems with row reduction, determinant checks, and graph previews.
Results are calculated automatically as you enter data.
▼ See explanations and tips below ▼
Related Calculators
What Is a System of Linear Equations?
A system of linear equations is a group of equations that must all be true at the same time. Each equation is linear, which means every variable appears only to the first power and variables are not multiplied by each other. For example, \(2x+y=7\) is linear, but \(x^2+y=7\) and \(xy=7\) are not.
Solving a system means finding values for the variables that satisfy every equation in the system. In two variables, a solution is usually an ordered pair such as \((3,1)\). In three variables, it is an ordered triple such as \((1,2,3)\).
A linear system can have exactly one solution, no solution, or infinitely many solutions. These three outcomes are central to understanding what the result means, especially when using row reduction or matrices.
Why Systems of Equations Matter
Systems of equations are useful whenever several conditions must be satisfied at once. Students often first meet them in algebra, but the same idea appears in linear algebra, economics, physics, chemistry, computer graphics, engineering, data analysis, and optimization.
A system can model situations such as:
- finding the intersection point of two lines;
- balancing several unknown quantities at the same time;
- comparing cost, revenue, and production constraints;
- solving matrix equations of the form \(A\mathbf{v}=\mathbf{b}\);
- checking whether several pieces of information are compatible or contradictory.
The important idea is not only to find numbers, but also to know whether a solution exists and whether it is unique.
Key Terms to Know
- Linear equation: An equation where each variable appears only to the first power, such as \(3x-2y=8\).
- System of equations: Two or more equations considered together.
- Coefficient: The number multiplying a variable. In \(4x-3y=10\), the coefficients are \(4\) and \(-3\).
- Constant: A standalone number in an equation, often on the right side after the equation is arranged in standard form.
- Coefficient matrix: A matrix made from the variable coefficients of the system.
- Augmented matrix: A coefficient matrix with the constants added as an extra column.
- Row reduction: A method of simplifying a matrix using operations that preserve the solution set.
- Reduced row echelon form: A simplified matrix form that makes the solution structure easier to read.
- Rank: The number of pivot positions, or leading entries, in a row-reduced matrix.
- Free variable: A variable that is not fixed by a pivot. Free variables lead to infinitely many solutions when the system is consistent.
- Residual: The difference between the left side and right side of an equation after substituting a proposed solution.
How Solving Linear Systems Works
A linear system can be rewritten as a matrix equation:
where:
- \(A\) is the coefficient matrix;
- \(\mathbf{v}\) is the vector of unknown variables;
- \(\mathbf{b}\) is the vector of constants.
For a two-variable system,
we can write:
The augmented matrix combines \(A\) and \(\mathbf{b}\):
Row reduction transforms this augmented matrix into a simpler equivalent form. “Equivalent” means the row operations change how the equations look, but not which values satisfy them.
The classification comes from comparing the rank of the coefficient matrix with the rank of the augmented matrix:
Here, \(n\) is the number of variables. For this calculator, \(n\) is either \(2\) or \(3\).
For square systems, the determinant of the coefficient matrix also gives useful information. If \(\det(A)\ne 0\), the system has one unique solution. If \(\det(A)=0\), the system is singular, so rank information is needed to decide whether the system has no solution or infinitely many solutions.
For a \(2\times2\) coefficient matrix,
the determinant is:
A zero determinant does not automatically mean “no solution.” It means the system is not uniquely solved by the coefficient matrix alone.
Examples of Systems of Equations in Practice
Example 1: A 2×2 System With One Solution
Consider the system:
The augmented matrix is:
After row reduction, it becomes:
This tells us:
Check the solution in the original equations:
Both equations are true, so the system has one unique solution.
Example 2: A 3×3 System With One Solution
Consider:
One solution is:
Check each equation:
Because the same ordered triple satisfies all three equations, it is a solution to the system. If the row-reduced matrix has a pivot for each variable, it is the only solution.
Example 3: A System With No Solution
Consider:
If the first equation is multiplied by \(2\), it becomes:
But the second equation says:
The same expression cannot equal both \(8\) and \(9\) at the same time. The equations contradict each other, so the system has no solution.
In a graph of two lines, this kind of system appears as parallel lines that never meet.
Example 4: A System With Infinitely Many Solutions
Consider:
The second equation is just \(2\) times the first equation, so both equations describe the same line. Every point on that line satisfies the system.
For example, if \(x=1\), then \(y=3\). If \(x=2\), then \(y=2\). If \(x=4\), then \(y=0\). There are infinitely many possible pairs because one variable can be chosen freely and the other adjusts to satisfy the equation.
How to Interpret the Result
The result tells you both the solution and the type of system. These are different pieces of information, and both matter.
| Result type | Meaning | What it looks like in 2D |
|---|---|---|
| One solution | One ordered pair or triple satisfies every equation. | Two lines intersect at one point. |
| No solution | The equations contradict each other. | Two lines are parallel and distinct. |
| Infinite solutions | The equations are dependent and include free variables. | Two lines overlap exactly. |
For a unique solution, the displayed variable values are the values that satisfy every equation at once. The decimal check shows the same solution in decimal form, which is helpful when the main result is shown as a fraction.
Residuals verify the answer exactly. For a row of the system, the residual is:
The calculator substitutes each exact rational solution into the original equations and displays the exact residual. A unique solution is shown only when every residual is exactly \(0\).
The determinant is useful when the system has the same number of equations as variables. A nonzero determinant means the system has a unique solution. A determinant of zero means the coefficient matrix is singular, so the determinant alone is not enough to distinguish between no solution and infinitely many solutions.
Common Mistakes and Misconceptions
Mistake 1: Assuming a zero determinant always means no solution.
A zero determinant means the square coefficient matrix does not have full rank. The system may have no solution, or it may have infinitely many solutions. Rank comparison is needed to tell the difference.
Mistake 2: Entering nonlinear expressions.
A linear system cannot include terms such as \(x^2\), \(xy\), \(\sqrt{x}\), or expressions with variables multiplied together. Those belong to nonlinear systems and require different methods.
Mistake 3: Using the wrong number of equations.
A \(2\times2\) system needs exactly two equations in \(x\) and \(y\). A \(3\times3\) system needs exactly three equations in \(x\), \(y\), and \(z\).
Mistake 4: Treating a graph as more accurate than algebra.
Graphs are useful for understanding two-variable systems, but row reduction is more precise for fractions, decimals, and nearly intersecting lines.
Mistake 5: Expecting a single ordered pair when there are free variables.
If a system has infinitely many solutions, there is not just one answer. A complete symbolic answer usually uses parameters. This calculator reports the classification but does not list the full parametric solution.
Mistake 6: Ignoring residuals.
Residuals are a useful check. This calculator verifies them exactly and does not display a unique solution unless every residual is zero.
When to Use Systems of Equations
Use systems of equations when you need to find values that satisfy multiple linear conditions at once.
Common uses include:
- solving algebra homework problems with two or three variables;
- finding where two lines intersect;
- checking whether equations are independent, dependent, or contradictory;
- converting a word problem into simultaneous equations;
- understanding matrix methods such as Gaussian elimination and reduced row echelon form;
- verifying whether a square system has a unique solution using determinant and rank information.
For larger systems, systems with many variables, symbolic parameters, or professional technical applications, use a full linear algebra tool or a specialized numerical computing environment.
Limitations and Things to Keep in Mind
This calculator is designed for linear square systems of size \(2\times2\) or \(3\times3\). It is useful for introductory algebra and linear algebra, but it has important limits.
It supports equations in \(x\), \(y\), and, for \(3\times3\) systems, \(z\). It does not support variables with other names, systems larger than \(3\times3\), non-square systems, inequalities, symbolic parameters, or nonlinear expressions.
Typed coefficients may be integers or decimals. Fraction notation such as \(1/2x\) is not supported as an input format, so use a decimal such as \(0.5x\) or rewrite the equation with whole-number coefficients before entering it.
Integers and terminating decimals are converted to reduced rational numbers, and row reduction, ranks, determinants, classifications, solutions, and residuals are calculated exactly. Very small nonzero coefficients are not treated as zero.
The main solution and determinant are exact integers or reduced fractions. The approximate decimal card is labeled as approximate and uses 12 significant digits. Numerical conversion is used only for the optional graph preview; if exact values cannot be represented safely at a practical graph scale, the graph is replaced by an unavailable message without changing the exact result.
Each equation is limited to 1,000 characters, each numeric literal to 200 digits, and intermediate rational components to 10,000 digits. Exceeding a limit produces an error rather than an approximate answer.
For infinite-solution cases, the calculator reports that the system has infinitely many solutions, but it does not provide a full parametric solution. For \(3\times3\) systems, it does not show a 3D plane visualization.
For coursework, double-check the entered equations and review the row-reduction logic. For engineering, scientific, financial, or safety-related work, use appropriate professional software and verify results independently.
How to Use This Calculator
- Choose 2×2 or 3×3 as the system size.
- Enter one equation per line.
- Use \(x\) and \(y\) for a \(2\times2\) system, or \(x\), \(y\), and \(z\) for a \(3\times3\) system.
- Make sure each equation has exactly one equals sign.
-
Use coefficient forms such as
2xor2*x. Avoid fractions typed with/, scientific notation, chained products such as2*3x, parentheses, powers, inequalities, or products of variables. - Review the main solution, classification, determinant or rank, decimal check, residuals, and visual note.
- For eligible \(2\times2\) systems, use the graph preview to understand the line intersection visually.
Frequently Asked Questions
What does “one solution” mean?
It means there is exactly one ordered pair or ordered triple that satisfies every equation in the system. In row-reduction terms, each variable has a pivot, so no variable is free.
What does “no solution” mean?
It means the equations contradict each other. In row-reduced form, this appears as a row that says something impossible, such as \(0=1\). In a two-line graph, it often appears as parallel lines that never intersect.
What does “infinite solutions” mean?
It means the system is consistent but dependent. At least one variable is free, so there are endlessly many values that can satisfy all equations. In a two-variable graph, this often means the two equations describe the same line.
Why does the determinant matter?
For a square system, a nonzero determinant means the coefficient matrix is invertible and the system has one unique solution. If the determinant is zero, the system is singular, and rank information is needed to decide whether the result is no solution or infinitely many solutions.
What are residuals?
Residuals measure whether the displayed solution satisfies the original equations. A residual is found by substituting the exact solution into an equation and subtracting the right side. This calculator requires every residual to equal exactly \(0\) before displaying a unique solution.
Can this solve equations with fractions?
It can display some results as fractions, but typed fraction coefficients such as \(1/2x\) are not supported. Use decimal coefficients, such as \(0.5x\), or clear fractions before entering the equations.
Can this solve systems larger than 3×3?
No. This calculator is limited to exactly two equations with two variables or three equations with three variables. Larger systems require a more general matrix or linear algebra solver.
Sources and References
Books
- W. Keith Nicholson. Linear Algebra with Applications. Open Edition, Lyryx Learning; Mathematics LibreTexts edition. Relevant sections: “1.2: Gaussian Elimination” and “3.2: Determinants and Matrix Inverses.” Accessed July 4, 2026. https://math.libretexts.org/Bookshelves/LinearAlgebra/LinearAlgebrawithApplications(Nicholson)/01%3ASystemsofLinearEquations/1.02%3AGaussian_Elimination/01%3ASystemsofLinearEquations/1.02%3AGaussianElimination) and https://math.libretexts.org/Bookshelves/LinearAlgebra/LinearAlgebrawithApplications(Nicholson)/03%3ADeterminantsandDiagonalization/3.02%3ADeterminantsandMatrixInverses/03%3ADeterminantsandDiagonalization/3.02%3ADeterminantsandMatrix_Inverses)
- Gregory Hartman et al. Fundamentals of Matrix Algebra. Apex Calculus; Mathematics LibreTexts edition. Relevant section: “1.4: Existence and Uniqueness of Solutions.” Accessed July 4, 2026. https://math.libretexts.org/Bookshelves/LinearAlgebra/FundamentalsofMatrixAlgebra(Hartman)/01%3ASystemsofLinearEquations/1.04%3AExistenceandUniquenessofSolutions/01%3ASystemsofLinearEquations/1.04%3AExistenceandUniquenessof_Solutions)
Online and Official Sources
- Holistic Numerical Methods Institute. “Chapter 04.05: System of Equations.” Numerical Methods with Applications. Accessed July 4, 2026. https://nm.mathforcollege.com/NumericalMethodsTextbookUnabridged/chapter-04.05-system-of-equations.html