System of Equations Solver

Solve two or three linear equations at once, exactly.

System of Equations Solver tool

Number of equations

Equation 1

Equation 2

Equation 3

—
Solution
—
As decimals
—
Determinant D
—
Type of system

About the System of Equations Solver

Systems of linear equations model mixtures, prices, currents in circuits and many exam problems. This solver handles two equations in two unknowns and three in three, giving exact answers as fractions where needed: 2x + 3y = 13 and x − y = −1 give x = 2 and y = 3. It shows Cramer's rule step by step and explains when a system has no solution or infinitely many.

Cramer's rule writes each unknown as a ratio of determinants. For two equations, the main determinant is D = a₁b₂ − a₂b₁; replacing the x-column with the constants gives Dₓ, and x = Dₓ ÷ D, with y found the same way. Three-variable systems use 3 × 3 determinants. If D = 0 the equations are dependent or inconsistent: the lines or planes are parallel and never meet, or they coincide, and the calculator tells you which.

Example: 2x + 3y = 13 and x − y = −1 give D = −5, Dₓ = −10 and Dᵧ = −15, so x = 2 and y = 3. Checking: 2(2) + 3(3) = 13 and 2 − 3 = −1. The system x + y + z = 6, 2x − y + z = 3 and x + 2y − z = 2 has the solution x = 1, y = 2, z = 3. With whole-number coefficients, answers such as x = 1/5 stay exact fractions rather than rounded decimals.

For a single quadratic equation, use the quadratic equation solver; for a line through two points, the slope calculator; and for larger matrix problems, the matrix calculator.

How to use the System of Equations Solver

  1. Choose the sizePick two equations with x and y, or three with x, y and z.
  2. Enter the coefficientsType the number in front of each variable and the constant on the right.
  3. Read the solutionSee each unknown as an exact fraction and a decimal.
  4. Check the workingSee the determinants, Cramer's rule and the substitution check.

System of Equations Solver features

  • 2×2 and 3×3 linear systems
  • Exact fractions for whole-number coefficients
  • Cramer's rule with determinants shown
  • Detects no solution and infinitely many
  • Substitution check of the answer
  • Decimal coefficients accepted
  • Instant and private

Common uses

  • Algebra homework and exam revision
  • Mixture and pricing word problems
  • Balancing simple chemical or physics equations
  • Finding where two lines intersect
  • Checking solutions found by hand

Systems of equations in practice: tickets, phone plans, mixtures and break-even points

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

A system of equations is a set of conditions that must all be true at once. Whenever a problem has two or more unknowns linked by two or more facts, a system of equations finds the values that satisfy every fact together. This guide shows how to set up systems from everyday situations, works through ticket and phone-plan examples, explains what it means when there is no solution or infinitely many, and compares the main solving methods.

Setting up a system

Start by naming the unknowns, such as a for adult tickets and c for child tickets. Then turn each fact in the problem into an equation. You need as many independent equations as unknowns: two for two unknowns, three for three. Writing the units beside each equation, such as tickets or rupees, helps keep the meaning clear and catches mistakes early.

A worked example: event tickets

A school sold 120 tickets for a play and collected Rs 48,000. Adult tickets cost Rs 500 and child tickets Rs 300. The facts give two equations: a + c = 120, and 500a + 300c = 48,000.

Substituting c = 120 − a into the second equation gives 500a + 300(120 − a) = 48,000, which simplifies to 200a = 12,000, so a = 60 and c = 60. Checking: 60 × 500 + 60 × 300 = 30,000 + 18,000 = 48,000, which matches the takings.

A worked example: comparing phone plans

Plan A costs Rs 1,000 a month plus Rs 5 per unit of data, and Plan B costs Rs 600 plus Rs 9 per unit. The costs are equal when 1,000 + 5x = 600 + 9x, which gives x = 100 units. Below 100 units a month, Plan B is cheaper; above it, Plan A is.

This is a break-even problem, one of the most common practical uses of systems. Businesses use the same idea to find the sales level at which revenue covers costs.

Mixture problems

Mixing two ingredients to reach a target combination is another classic system. A shopkeeper blending tea worth Rs 1,200 per kg with tea worth Rs 1,800 per kg to make 30 kg worth Rs 1,400 per kg needs x + y = 30 and 1,200x + 1,800y = 1,400 × 30. Solving gives 20 kg of the cheaper tea and 10 kg of the dearer one. Chemists, cooks and farmers mixing feed solve the same kind of problem.

What the solution means graphically

Each linear equation with two unknowns is a straight line on a graph, and the solution is where the lines cross. If the lines are parallel, they never meet and there is no solution: the conditions contradict each other. If the two equations describe the same line, every point on it is a solution, so there are infinitely many. A solver reports these cases, which is useful when a problem has been set up incorrectly.

Choosing a method

  • Substitution works well when one equation easily gives one unknown in terms of the other.
  • Elimination adds or subtracts multiples of the equations to remove one unknown, and suits larger coefficients.
  • Cramer's rule uses determinants and gives a formula for each unknown, handy for 2 × 2 and 3 × 3 systems.
  • Matrix methods scale up to many unknowns and are what computers use.

All methods give the same answer when a unique solution exists.

Three unknowns

Systems with three unknowns appear in budgeting, nutrition and engineering. For example, three people buying different combinations of the same three items give three equations from their bills, and solving them reveals each item's price. Elimination reduces the three equations to two, then to one, step by step.

Checking answers

Always substitute the solution back into every original equation. A solution that satisfies only some equations means an arithmetic error somewhere. In word problems, also check that the answer makes sense: negative tickets or fractional people signal a set-up mistake.

Common mistakes

  • Setting up fewer equations than unknowns.
  • Mixing units, such as rupees and thousands of rupees, across equations.
  • Forgetting to multiply every term when scaling an equation for elimination.
  • Accepting answers that make no sense in context.

Related tools

For larger systems and matrix operations, use Matrix Calculator. For single quadratic equations, try Quadratic Equation Solver, and for lines, Slope Calculator.

Systems in spreadsheets

Spreadsheets can solve systems of linear equations with matrix functions. Put the coefficients in a square block of cells and the constants in a column, then use =MMULT(MINVERSE(coefficients), constants) to get the unknowns. For problems with conditions such as limits or targets, tools like Excel's Solver find the best values automatically. These methods suit repeated calculations, such as updating a budget when prices change.

Systems in science and engineering

Engineers solve systems of equations constantly: the currents in an electrical circuit follow from Kirchhoff's laws as a system, the forces in a bridge truss as another, and chemical equations are balanced by solving for the number of each molecule. Large systems with thousands of unknowns are solved by computers using matrix methods, but the underlying idea is the same as in a two-equation school problem.

Limits

Solutions are exact, shown as fractions where appropriate; systems with no unique solution are reported as such.

Frequently asked questions

How do I solve a system of two equations?

Use substitution, elimination or Cramer's rule. With elimination, multiply the equations so one variable cancels when you add them, solve for the other, then substitute back to find the first.

What is Cramer's rule?

A formula that solves a linear system with determinants: each unknown equals the determinant of the matrix with that variable's column replaced by the constants, divided by the main determinant D.

What does it mean if the determinant is zero?

The system has no unique solution. Either the equations contradict each other, as with parallel lines, giving no solution, or they describe the same line or plane, giving infinitely many solutions.

How do I enter an equation with a missing variable?

Use 0 as its coefficient. For x + 2z = 5 in a three-variable system, enter 1 for x, 0 for y and 2 for z, with 5 as the constant.

Can a system have exactly two solutions?

Not a linear one. Two lines either meet once, never, or everywhere along their length. Two solutions only happen with nonlinear equations, such as a line crossing a circle.

How do I check my solution?

Substitute the values into every original equation. Each left side must equal its right side. The calculator does this check automatically and shows the results.

What is the elimination method?

Add or subtract multiples of the equations to remove one variable. From 2x + 3y = 13 and x − y = −1, multiply the second by 3 and add: 5x = 10, so x = 2, then y = 3.

What is the substitution method?

Solve one equation for one variable and substitute that expression into the other equation. From x − y = −1, x = y − 1; substituting into 2x + 3y = 13 gives 5y − 2 = 13, so y = 3 and x = 2.

Where are systems of equations used?

Whenever several conditions must hold at once: mixing solutions to a target concentration, finding prices from combined receipts, balancing forces in physics, or locating where two straight-line trends cross on a graph.