A system of linear equations asks for the values that satisfy several equations at once, such as and . This system of equations calculator solves systems of two equations in two unknowns and three equations in three unknowns, and tells you which of the three possible situations you are in: exactly one solution, no solution, or infinitely many.
Answers are exact fractions (with decimals beside them when useful), because the whole calculation runs on rational numbers: is shown as , not as a rounded 2.529. You can enter decimal coefficients; they are converted to exact fractions too.
Pick the method you need to see in the steps. For two equations it can show elimination (combining equations to cancel ), substitution (isolating one variable and replacing it), or Cramer's rule; for three equations, Gaussian elimination on the augmented matrix or Cramer's rule with 3 × 3 determinants. It is a simultaneous equations solver for homework checks, a two variable equation solver for word problems, and a quick way to see whether a dependent system needs a parameter.
How to use this calculator
- Choose the size: 2 equations with 2 unknowns, or 3 equations with 3 unknowns.
- Write each equation in standard form, unknowns on the left and the constant on the right: or .
- Enter the coefficients row by row. A missing variable has coefficient 0.
- Choose the method shown in the steps: elimination, substitution (2 × 2) or Cramer's rule.
- Read the solution, the type of system and the determinant; open the steps to follow the method and the final check.
The formula
Elimination (2 × 2). For and , multiplying the first by , the second by and subtracting removes :
Cramer's rule. With the determinant :
For 3 × 3 systems, , , are the determinants obtained by replacing the matching column by the right-hand sides.
Gaussian elimination. Row operations on the augmented matrix (swap rows, scale a row, add a multiple of one row to another) do not change the solutions. Reduced to echelon form, a row with means no solution; fewer pivots than unknowns means infinitely many, described with a free parameter .
Worked example
Two variables. Solve and . Multiply the second equation by 2 and subtract it from the first: , so . Then gives . The determinant is , so the solution is unique: .
Three variables. For , , , the determinant is and Gaussian elimination gives .
Dependent system. and are the same line (the second is twice the first). Setting gives : infinitely many solutions, one for each real . Change the second right-hand side to 9 and the lines become parallel: no solution.
One solution, none, or infinitely many
Each linear equation in two variables is a line. Two lines either cross at one point, are parallel (no common point), or coincide (every point is shared). The determinant tells you which: means exactly one solution; means parallel or identical lines, and the elimination steps show which one.
With three variables each equation is a plane, and the same three cases appear. For linear equations in two variables, the line equation calculator gives slope-intercept forms, and the graphing calculator lets you see where the lines cross.
Which method should I use?
- Substitution is quickest when a variable already has coefficient 1 or −1, as in .
- Elimination suits equations with larger whole-number coefficients.
- Cramer's rule gives a formula for each unknown and is handy for 2 × 2 systems, but it only works when .
- Gaussian elimination scales to any size and also classifies singular systems. For bigger systems or matrix inverses, use the matrix calculator.
Frequently asked questions
How do I solve two equations with two unknowns?
Write both in the form ax + by = d. Then eliminate one variable, by adding a multiple of one equation to the other or by substituting an isolated variable, solve the single equation that remains, and substitute back to find the other unknown.
What does it mean when a system has no solution?
The equations contradict each other. For two variables the lines are parallel: same slope, different intercepts. Elimination then ends with an impossible statement such as 0 = 1.
How is an infinite solution written?
With a parameter. If x + 2y = 4 is the only independent equation, let y = t; then x = 4 − 2t. Every real value of t gives one solution.
Are the answers exact?
Yes. All arithmetic uses fractions, so 43/17 stays 43/17. Decimal approximations are shown separately when the answer is not a whole number.
Can it solve simultaneous equations that are not linear?
No: this tool is for linear systems, where each unknown appears to the first power. For one nonlinear equation in x, use the equation solver.
Sources
- OpenStax, College Algebra 2e — §7.1 Systems of Linear Equations: Two Variables
- OpenStax, College Algebra 2e — §7.2 Systems of Linear Equations: Three Variables
- OpenStax, College Algebra 2e — §7.6 Solving Systems with Gaussian Elimination
- OpenStax, College Algebra 2e — §7.8 Solving Systems with Cramer’s Rule
- Weisstein, Cramer’s Rule — Wolfram MathWorld
Last updated: