Free System of Equations Calculator

a1x + b1y = c1
a2x + b2y = c2

Fill in all coefficients to see the solution

Are you trying to solve a set of simultaneous equations and want a quick, reliable answer? This free linear equations solver online — the System of Equations Calculator — is built to handle systems of linear equations with 2 equations 2 unknowns, 3 equations 3 unknowns, or more. Its core engine relies on Gaussian elimination, a systematic algorithm that can also detect infinitely many solutions and describe them in parametric form. In this guide, we explore what a system of linear equations is, review five popular solution methods (substitution, elimination, Gaussian elimination, graphical interpretation, and Cramer’s rule), and walk through a complete example that you can reproduce with the calculator.

What Is a System of Linear Equations?

An equation is linear when every variable appears only to the first power — squares, square roots, or fractions containing variables are absent. For instance, 2x−3y+z=52x - 3y + z = 5 is linear; x2+y=1x^2 + y = 1 is not. A system of linear equations is a collection of such equations that must be satisfied at the same time. The solution consists of values for all variables that make every equation hold simultaneously.

In everyday puzzles where fruit pictures hide numbers, each fruit stands for an unknown quantity. Translating the pictures into algebraic expressions produces a system very similar to the ones the calculator solves.

Five Common Methods for Solving Linear Systems

1. Substitution

Choose one equation and express one variable in terms of the others. Replace that variable in the remaining equations, reducing the problem step by step.

Example:

x+y=5,2x−y=4.x + y = 5,\qquad 2x - y = 4.

From the first equation, y=5−xy = 5 - x. Substituting into the second gives 2x−(5−x)=42x - (5 - x) = 4, so 3x=93x = 9 and x=3x = 3; then y=2y = 2. The method is universal but becomes tedious when many variables are involved.

2. Elimination (Addition Method)

Manipulate the equations so that adding or subtracting them cancels a variable.

Example:

2x+3y=6,4x−y=3.2x + 3y = 6,\qquad 4x - y = 3.

Multiply the first equation by −2-2 to obtain −4x−6y=−12-4x - 6y = -12. Adding this to the second equation gives

(4x−y)+(−4x−6y)=3+(−12)  ⟹  −7y=−9,(4x - y) + (-4x - 6y) = 3 + (-12) \;\Longrightarrow\; -7y = -9,

so y=97y = \dfrac{9}{7}. Substituting back yields xx. This approach can be extended to larger systems.

3. Gaussian Elimination

Gaussian elimination is the algorithm that powers the calculator. It proceeds in two phases:

  • Forward elimination: Use the first equation to remove the first variable from all equations below it. Then use the second equation to remove the second variable from the equations below it, and so on, until an upper‑triangular system remains.
  • Back‑substitution: Solve the last equation for its variable, then substitute that value upward to determine the previous variables.

This method works efficiently for any number of equations and is the standard technique in linear algebra.

4. Graphical Method

For two variables, each equation corresponds to a line; the solution is the intersection point. For three variables, each equation becomes a plane in three‑dimensional space. While visually intuitive for small systems, the method quickly becomes impractical for larger ones.

5. Cramer’s Rule

Cramer’s rule expresses each variable as a ratio of matrix determinants. For a system Ax=bA\mathbf{x} = \mathbf{b},

xi=det⁡(Ai)det⁡(A),x_i = \dfrac{\det(A_i)}{\det(A)},

where AiA_i is matrix AA with its ii-th column replaced by b\mathbf{b}. It is straightforward but computationally heavy for more than a few equations.

Step‑by‑Step Example: A Sweet Puzzle

Let’s solve a small puzzle using Gaussian elimination. A doughnut (xx), a cookie (yy), and a candy (zz) satisfy these relationships:

  • Three doughnuts equal one cookie: x+x+x=yx + x + x = y.
  • Two cookies minus a candy equal 25: y+y−z=25y + y - z = 25.
  • Two candies minus a doughnut equal 16: z+z−x=16z + z - x = 16.

Rewrite each equation in the standard form ax+by+cz=da x + b y + c z = d:

3x−y=0,2y−z=25,−x+2z=16.3x - y = 0,\qquad 2y - z = 25,\qquad -x + 2z = 16.

Inserting zero coefficients for missing variables gives:

3x−y+0z=0,0x+2y−z=25,−x+0y+2z=16.3x - y + 0z = 0,\quad 0x + 2y - z = 25,\quad -x + 0y + 2z = 16.

Forward Elimination

Eliminate xx from the third equation.
The first equation has a non‑zero xx coefficient. Multiply the third equation by 3 so its xx coefficient becomes the opposite of the first:

−3x+0y+6z=48.-3x + 0y + 6z = 48.

Add this to the first equation to form a new third equation:

(3x−y)+(−3x+6z)=0+48  ⟹  −y+6z=48.(3x - y) + (-3x + 6z) = 0 + 48 \;\Longrightarrow\; -y + 6z = 48.

The system now reads:

3x−y=0,2y−z=25,−y+6z=48.3x - y = 0,\quad 2y - z = 25,\quad -y + 6z = 48.

Eliminate yy from the third equation.
The second equation contains a non‑zero yy coefficient. Multiply the third equation by 2:

−2y+12z=96.-2y + 12z = 96.

Add this to the second equation to produce a new third equation:

(2y−z)+(−2y+12z)=25+96  ⟹  11z=121.(2y - z) + (-2y + 12z) = 25 + 96 \;\Longrightarrow\; 11z = 121.

The system is now upper‑triangular:

3x−y=0,2y−z=25,11z=121.3x - y = 0,\quad 2y - z = 25,\quad 11z = 121.

Back‑Substitution

From the third equation: z=11z = 11.
Plug into the second: 2y−11=252y - 11 = 25 → 2y=362y = 36 → y=18y = 18.
Plug into the first: 3x−18=03x - 18 = 0 → 3x=183x = 18 → x=6x = 6.

Thus the doughnut is 6, the cookie is 18, and the candy is 11. The calculator performs exactly these steps automatically.

Using the Calculator

To solve your own system, enter the coefficients in the standard form aix+biy+ciz=dia_i x + b_i y + c_i z = d_i. For a three‑variable system, fill the fields labeled a1,b1,c1,d1a_1, b_1, c_1, d_1 for the first equation, a2,b2,c2,d2a_2, b_2, c_2, d_2 for the second, and a3,b3,c3,d3a_3, b_3, c_3, d_3 for the third. The solver applies Gaussian elimination and displays the solution. If infinitely many solutions exist, it outputs a parametric description.

Whether you are checking homework or tackling real‑world constraints, this tool delivers fast, accurate results.

FAQ

1. How does the System of Equations Calculator solve a system?

The calculator uses Gaussian elimination, which first transforms the system into an upper-triangular form by eliminating variables sequentially. Then it solves the reduced system by back-substitution.

2. Can I use the calculator for 2 equations with 2 unknowns?

Yes, you can. The same algorithm works for any number of equations; just input the coefficients for two equations and the calculator will handle them.

3. What happens when a system has infinitely many solutions?

The calculator will indicate that the system is dependent and express the solution set in parametric form, showing free variables.

4. Does the calculator implement Cramer's rule as an option?

The primary method is Gaussian elimination, but the article explains Cramer's rule as an alternative technique. The calculator itself focuses on elimination to handle larger systems efficiently.

5. How should I enter the coefficients for a 3x3 system?

For each equation, enter the coefficients (a) for x, (b) for y, (c) for z, and the constant (d). The fields are labelled a₁, b₁, c₁, d₁ for the first equation, and similarly for the second and third.

How to Use

  1. Select the number of equations (2 or 3) from the dropdown.
  2. Enter the coefficients for each equation. For 2x + 3y = 5, enter a=2, b=3, and constant=5.
  3. The solution appears automatically as you fill in all coefficient fields. Check the result type badge to see if the system has a unique, infinite, or no solution.