System of Equations Calculator: Solve Linear Systems
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A system of equations calculator solves two or more equations that share unknown variables. Enter the coefficients and constants for each equation, and the calculator returns the variable values when a unique solution exists, or identifies cases with no unique solution.
Formula
For two linear equations in two variables, write the system as ax + by = c and dx + ey = f. The determinant of the coefficient matrix is Δ = ae − bd. When Δ is not zero, the solution is:
- x = (ce − bf) / Δ
- y = (af − cd) / Δ
Here, a and b are the coefficients of x and y in the first equation; c is its constant. d and e are the coefficients in the second equation; f is its constant. These are mathematical values, not measurements, so they have no physical units. The calculator displays each variable to two decimal places. If Δ equals zero, these formulas divide by zero and cannot give a unique solution.
Worked Example
Using the defaults, the equations are x + y = 3 and x − y = 1. The coefficient values are a = 1, b = 1, c = 3, d = 1, e = −1, and f = 1.
- Calculate the determinant: Δ = (1 × −1) − (1 × 1) = −2.
- Calculate x: ((3 × −1) − (1 × 1)) ÷ −2 = (−4) ÷ −2 = 2.00.
- Calculate y: ((1 × 1) − (3 × 1)) ÷ −2 = (−2) ÷ −2 = 1.00.
The solution is x = 2 and y = 1. Substitution checks it: 2 + 1 = 3, and 2 − 1 = 1.
How to Enter a System
Put each equation into the form ax + by = c before entering its values. Keep the same variable order in both equations: the first coefficient field is always for x, and the second is for y. Include signs as part of the number, and move terms carefully when rearranging an equation.
- For 2x + 3y = 12, enter coefficients 2 and 3, then constant 12.
- For x − 4y = 7, enter 1 and −4, then 7.
- If an equation has no x term, use 0 as its x coefficient; if it has no y term, use 0 for y.
An equation such as 2x + 3y − 5 = 0 must be rearranged to 2x + 3y = 5, so its constant is 5, not −5. This sign change is a frequent source of incorrect results.
What the Solution Means
A solution is an ordered pair (x, y) that makes both equations true at the same time. Each equation represents a line on a graph. If the lines cross once, the crossing point is the unique solution. For the example above, the lines cross at (2, 1).
There are three possibilities for a pair of linear equations:
- One solution: The lines intersect once, and the determinant is nonzero.
- No solution: The lines are parallel and distinct. The equations contradict each other.
- Infinitely many solutions: The equations describe the same line, so every point on that line satisfies both.
When Δ = 0, the system may have no solution or infinitely many; the determinant alone does not distinguish those cases. Compare the equations or reduce them to check whether they contradict one another or are equivalent. A calculator using the formulas above may show an undefined result for either case, so that result should not be mistaken for proof that the system has no solutions.
Methods and Calculator Limits
The formulas are a two-variable version of Cramer’s rule. A manual alternative is elimination: multiply one or both equations as needed, add or subtract them to cancel a variable, solve for the remaining variable, then substitute back. Substitution is convenient when one equation already isolates a variable. Graphing offers a visual check, though an imprecise graph may not reveal exact values.
This calculator is specifically for two linear equations with two unknowns. It does not directly solve systems with three or more variables, nonlinear equations such as x² + y = 5, or inequalities. Larger linear systems are commonly handled with Gaussian elimination or matrix methods. For any method, verify the result by substituting the values into every original equation.
Displayed values are rounded to two decimal places. A result such as 1.67 may stand for a more precise fraction; use unrounded values when doing further calculations if possible. Rounding can make a correct pair appear not to satisfy an equation exactly. Also, if Δ is very close to zero, tiny changes in the input can produce large changes in the solution; this is a numerical sensitivity issue, not necessarily an arithmetic mistake.
Frequently Asked Questions
How do I use a system of equations calculator?
Rearrange both equations into ax + by = c form, enter each equation’s x coefficient, y coefficient, and constant, then calculate. Check the returned values in both original equations.
Can a system of equations have no answer?
Yes. Two parallel, distinct lines never intersect, so no ordered pair satisfies both equations. For example, x + y = 2 and x + y = 5 are inconsistent.
What does it mean if the equations have infinitely many solutions?
It means the equations describe the same line rather than two distinct lines. Every point on that line satisfies both equations, so there is no single unique pair to report.
Why does the calculator show an error or undefined result?
The determinant may be zero, making the unique-solution formulas divide by zero. The system could be inconsistent or dependent; compare the equations to determine which. Also check that every coefficient and constant was entered correctly.
Can this calculator solve three-variable equations?
No. It uses formulas for two equations and two variables. A three-variable system needs at least three equations for a unique solution and requires a method such as matrix elimination.
Related
Formula used
in a | Equation 1 x coefficient | - | 1 | 0 in b | Equation 1 y coefficient | - | 1 | 0 in c | Equation 1 constant | - | 3 | 0 in d | Equation 2 x coefficient | - | 1 | 0 in e | Equation 2 y coefficient | - | -1 | 0 in f | Equation 2 constant | - | 1 | 0 out x | x value | - | (c*e-b*f)/(a*e-b*d) | 2 out y | y value | - | (a*f-c*d)/(a*e-b*d) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.