System of Equations Calculator - Steps, 2 and 3 Unknowns

    Solve a system of two or three linear equations step by step with Cramer's rule, elimination, substitution or Gaussian elimination, and get exact fractions, the type of system and a check.

    Parameters

    Enter data for calculations

    How many equations and unknowns

    How the steps are written out

    The whole equation with an = sign

    The second equation of the system

    Form progress0 / 3 fields

    💡 Fill in all required fields to unlock the calculate button

    System of equations calculator that keeps the fractions exact

    Two or three linear equations go in exactly as they appear in the textbook, unknowns on either side, parentheses and fractions included, and out come x, y (and z) as exact fractions with every step of the method your teacher asked for. For 2x + 3y = 7 and x - y = 1 the answer is x = 2, y = 1, the main determinant is D = -5, and both equations are checked by substitution.

    Solved on paper

    • Rearrange 3(x - 1) = 2y before you can start
    • Clear fractions such as 1/2x + y/3 = 2 by hand
    • Decimals like 0.333 creep in and the check never quite comes out even
    • A determinant of 0 leaves you guessing between no solution and infinitely many

    Solved here

    • Standard form shown first: 3x - 2y = 3
    • Answers as fractions, x = 7/2, y = 3/4, plus decimals
    • Every equation substituted back, row by row
    • The type of system named: one solution, none, or a general solution such as x = 2 - y

    From the worksheet to x, y and z in five moves

    1. Number of equations - two equations for x and y, or three for x, y and z. The third box appears only for the 3 × 3 system.
    2. Solution method - Cramer's rule, elimination (addition), substitution or Gaussian elimination. The answer is the same; only the written steps change. Left empty, the steps use Cramer's rule.
    3. Equation 1 - typed the way it is printed, for example 2x + 3y = 7 or 3(x - 1) = 2y. Multiplication can be implied: 2x means 2 times x.
    4. Equation 2 (and Equation 3) - same rules; an unknown that does not appear in an equation is simply left out.
    5. Read the result - the solution tile, the type of system, the main determinant D, the steps and the check table.

    Decimals take a point, 0.5x, and numbers go in without thousands separators. Fractions can be written as 1/2x or x/2; both mean one half of x.

    One system, four methods side by side

    The table runs the same system, 2x + 3y = 7 and x - y = 1, through each method the calculator can write out. All four land on x = 2, y = 1; what differs is the work on the page and the kind of system each method suits.

    Method What the steps show For this system Works best when
    Cramer's ruleD, then Dx and Dy with one column replaced by the constantsD = -5, Dx = -10, Dy = -5, so x = 2, y = 1You need a formula answer or the determinant itself
    Elimination (addition)Multipliers that make one unknown's coefficients opposites, then the sum of the equationsEquation 2 times 3, add: 5x = 10Coefficients are whole numbers with an easy common multiple
    SubstitutionOne unknown solved from one equation and put into the otherx = 1 + y, then 5y = 5An unknown already has a coefficient of 1 or -1
    Gaussian eliminationAugmented matrix and row operations R2 := R2 - k · R1 down to the identity matrixMatrix [2 3 | 7; 1 -1 | 1] reduced to [1 0 | 2; 0 1 | 1]Three unknowns, or the determinant is 0

    The elimination row above describes the textbook move; the calculator's own steps pick the multipliers from the least common multiple of the y coefficients, so on screen equation 2 is multiplied by -3 when the two y terms carry the same sign. With three equations, elimination and substitution have no single fixed pattern, so the calculator writes those requests out as Gaussian elimination, which is the same adding of multiples, done column by column.

    Before and after: six systems as typed and as solved

    Each card shows a system the way it was entered and what the calculator returned. The numbers are copied from its output.

    Fractions and a decimal, elimination. Before: 1/2x + y/3 = 2, 0.5x - y = 1.
    After: equation 1 multiplied by 6 gives 3x + 2y = 12, equation 2 multiplied by 2 gives x - 2y = 2; adding them gives 4x = 14.
    Result: x = 7/2 = 3.5, y = 3/4 = 0.75, D = -2/3.
    Unknowns on both sides, Cramer's rule. Before: 3(x - 1) = 2y, x + y = 6.
    After: standard form 3x - 2y = 3; D = 5, Dx = 15, Dy = 15.
    Result: x = 3, y = 3.
    Ticket problem, substitution. 50 tickets, adults at $12 and children at $7, $475 collected. Before: x + y = 50, 12x + 7y = 475.
    After: x = 50 - y, then -5y = -125.
    Result: 25 adult and 25 child tickets.
    Mixture problem, elimination. 30 liters of a 20% solution from a 10% one (x) and a 25% one (y). Before: x + y = 30, 0.1x + 0.25y = 0.2(30).
    After: equation 2 times 20 gives 2x + 5y = 120; equation 1 times 5, equation 2 times -1, sum 3x = 30.
    Result: 10 L of the 10% solution and 20 L of the 25% one.
    Three unknowns, Cramer's rule with the rule of Sarrus. Before: x + y + z = 6, 2x - y + z = 3, x + 2y - z = 2.
    After: D = 7, Dx = 7, Dy = 14, Dz = 21.
    Result: x = 1, y = 2, z = 3, all three equations hold.
    Three unknowns with fractional answers, Gaussian elimination. Before: 2x + y - z = 1, x - y + 2z = 4, 3x + 2y + z = 5.
    After: three pivot columns, row operations such as R3 := R3 - 3 · R1, D = -10.
    Result: x = 6/5 = 1.2, y = 0, z = 7/5 = 1.4.

    One solution, none, or infinitely many: what D tells you first

    The main determinant D is built from the coefficients only. Its value is the quickest signal of which of the three outcomes you are looking at, and the table shows where it stops being enough. Every row is a real run of the calculator.

    Determinants Type of system Example Calculator's answer
    D ≠ 0Consistent, independent2x + 3y = 7, x - y = 1x = 2, y = 1
    D = 0, some Dx, Dy ≠ 0Inconsistentx + y = 2, 2x + 2y = 5No solution, Dx = -1, Dy = 1
    D = 0, all others 0Consistent, dependentx + y = 2, 2x + 2y = 4x = 2 - y, y any real number
    D = 0, all others 0Inconsistentx + y + z = 1, x + y + z = 2, x + y + z = 3No solution, rank 1
    D = 0, Dx = 2Inconsistentx + y + z = 1, x + 2y + 3z = 4, 2x + 3y + 4z = 7No solution, rank 2
    D = 0, all others 0Consistent, dependentx + y + z = 1, x + 2y + 3z = 4, 2x + 3y + 4z = 5x = -2 + z, y = 3 - 2z

    The fourth row is the trap. Three parallel planes give D = 0 and every replaced determinant equal to 0 as well, which looks like the dependent case, yet the equations contradict each other. That is why the calculator never stops at the determinants when D and all the replaced determinants are 0: it hands the system to Gaussian elimination, which ends either in a row such as 0 = 1 or in a general solution.

    How much arithmetic the steps save on a 3 × 3 system

    Cramer's rule for three unknowns needs four determinants. With the rule of Sarrus each one is a sum of 6 triple products, so the whole method is 24 triple products, 48 multiplications, about 20 additions and subtractions, and 3 divisions, before the check. One sign slip anywhere changes the answer, and nothing on the page says so.

    Checked by hand afterwards

    • Three more substitutions with fractions
    • A wrong answer found only at the very end
    • No way to tell which of the 48 multiplications went wrong

    Compared step by step

    • Each determinant printed with its full expansion
    • Your Dy against the calculator's: the first mismatch is the slip
    • Check table: left side, right side, holds for every equation

    Exact fractions matter here too. A decimal answer such as 0.333333 substituted back never gives the right side exactly; the fraction 1/3 does, so the check column can say "holds" rather than "close enough". Decimals are still printed under the fractions, rounded to 6 places, for anyone who needs them.

    Questions students ask about linear systems

    Can the equations have unknowns on both sides?
    Yes. The calculator moves everything to standard form before solving and prints that form, so 3(x - 1) = 2y appears as 3x - 2y = 3. Parentheses, implied multiplication and constant powers such as 2^3 are expanded too.
    Why does it refuse xy or x^2?
    A product of unknowns or a power of an unknown makes the system nonlinear, and none of the four methods applies to it. The same goes for an unknown in a denominator, as in 1/x. The message names the equation that breaks the rule.
    What is the difference between inconsistent and dependent?
    An inconsistent system has no solution: elimination ends in a false row such as 0 = 1, and for two unknowns the lines are parallel. A dependent system has infinitely many solutions: one equation is a combination of the others, a row turns into 0 = 0, and the answer is written with a free unknown, for example x = 2 - y.
    Does the method I pick change the answer?
    No. The solution is computed once, exactly, and every method writes out the route to that same answer. Choose the one your class uses; with 3 equations, elimination and substitution are written as Gaussian elimination.
    Can I type 0,5 or 1,000?
    No commas: write 0.5 for one half and 1000 for a thousand. A comma is rejected with a message rather than guessed, because 1,000 could mean one thousand or one point zero.
    Can it solve 4 equations with 4 unknowns?
    Not this tool; it covers 2 × 2 and 3 × 3 systems with the unknowns x, y and z. For larger square systems, matrix methods (an inverse or row reduction of the augmented matrix) do the same job.

    Related tools

    Derivative Calculator

    Derivative step by step with named rules, second derivative and tangent line - See the calculator

    Definite Integral Calculator

    Value of a definite integral with error estimate, area, average value and Simpson comparison - See the calculator

    Matrix Calculator

    Determinant, inverse and products of 2 × 2 and 3 × 3 matrices, the building blocks behind Cramer's rule - See the calculator

    Linear Function Calculator

    Slope, intercepts and zero of a line y = ax + b, one line of a two-variable system at a time - See the calculator

    Quadratic Equation Calculator

    Roots and discriminant when the unknown is squared and the system is no longer linear - See the calculator

    Fraction Calculator

    Adds, subtracts and simplifies the fractions that show up in elimination steps - See the calculator

    Proportion Calculator

    Solves a single proportion, the one-equation cousin of mixture problems - See the calculator

    Linear Regression Calculator

    Fits the best line through data, which comes from a 2 × 2 system of normal equations - See the calculator

    Similar calculators from this section