Free system calculator for two linear equations: enter the coefficients and solve for x and y by Cramer’s rule, with the answer verified by substitution.

System Calculator

Solve a 2×2 system of linear equations exactly — determinant, solution, and a substitution check that proves the answer fits both equations.

Free to use Cramer's rule with steps Answer auto-verified Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for eq 1: coefficient of x (a1).

Enter a valid value for eq 1: coefficient of y (b1).

Enter a valid value for eq 1: constant (c1).

Enter a valid value for eq 2: coefficient of x (a2).

Enter a valid value for eq 2: coefficient of y (b2).

Enter a valid value for eq 2: constant (c2).

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe System Calculator tinyexe.comFree online calculators

TinyExe · System Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Eq 1: coefficient of x (a1)

—

Eq 1: coefficient of y (b1)

—

Eq 1: constant (c1)

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this System Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      A 2x2 system calculator solves a1x + b1y = c1 and a2x + b2y = c2 using Cramer's rule: with determinant D = a1b2 - a2b1, x equals (c1b2 - c2b1)/D and y equals (a1c2 - a2c1)/D. For x + y = 5 and x - y = 1, D is -2, giving x = 3 and y = 2.

      • Cramer's rule: x = (c1b2 - c2b1)/D, y = (a1c2 - a2c1)/D
      • D = a1b2 - a2b1; D = 0 means no unique solution
      • Substitution into both equations verifies any solution

      Determinant outcomes

      Reference values for this calculator.

      DeterminantMeaning
      D ≠ 0Exactly one solution (lines cross)
      D = 0, equations consistentInfinitely many solutions (same line)
      D = 0, equations inconsistentNo solution (parallel lines)

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      System a1x + b1y = c1, a2x + b2y = c2 solved by Cramer's rule: x = (c1b2 - c2b1)/D, y = (a1c2 - a2c1)/D, D = a1b2 - a2b1

      Ideas enhancement: every solution is verified by substituting x and y back into both original equations, and a zero determinant produces an honest 'no unique solution' error instead of a made-up answer.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Crossing lines

      x + y = 5 and x - y = 1

      CalculationSteps
      D = -2. x = (5 x -1 - 1 x 1) / -2 = 3. y = (1 x 1 - 1 x 5) / -2 = 2.x = 3, y = 2.

      Result

      Example 2

      A second pair

      2x + 3y = 12 and x - y = 1

      CalculationSteps
      D = -5. x = (12 x -1 - 1 x 3) / -5 = 3. y = (2 x 1 - 1 x 12) / -5 = 2.x = 3, y = 2 again — different lines, same crossing.

      Result

      Example 3

      Decimal coefficients

      0.5x + 0.25y = 2 and x + y = 6

      CalculationSteps
      D = 0.25. x = (2 x 1 - 6 x 0.25) / 0.25 = 2. y = (0.5 x 6 - 1 x 2) / 0.25 = 4.x = 2, y = 4.

      Result

      How to use this calculator

      Step 1

      Write each equation in the form ax + by = c.

      Step 2

      Enter the first equation's a1, b1 and c1.

      Step 3

      Enter the second equation's a2, b2 and c2.

      Step 4

      Press Calculate to solve by Cramer's rule.

      Step 5

      Check the verification lines — both equations should reproduce their constants.

      In short: A system calculator solves a set of simultaneous linear equations — here two equations in two unknowns — for the single pair of values satisfying all of them.

      Frequently asked questions

      How does Cramer's rule solve a 2x2 system?

      It forms the determinant D = a1b2 - a2b1, then replaces one column at a time with the constants: x = (c1b2 - c2b1)/D and y = (a1c2 - a2c1)/D.

      What if the determinant is 0?

      The lines are parallel or identical, so there is no single (x, y) answer. This calculator says so plainly instead of inventing a solution.

      Can it solve three equations in three unknowns?

      This tool is for 2 equations in 2 unknowns. A 3x3 system uses the same idea with 3x3 determinants but needs a dedicated solver.

      Why verify by substitution?

      Rounding and sign slips are the most common system errors; substituting the answer back into both equations proves it satisfies the original problem.

      Which method is best for solving systems by hand?

      Elimination is usually fastest for standard-form equations, substitution when one variable is already isolated, and Cramer's rule (used here) when you need a formula or are checking determinant behaviour.

      About this calculator

      A system calculator solves two simultaneous linear equations in two unknowns — it finds the single (x, y) pair that makes both equations true at once, here by Cramer's rule.

      Geometrically, each equation is a straight line and the solution is where the lines cross. The determinant D = a1b2 - a2b1 measures whether they cross at all: parallel lines (D = 0) never meet, and identical lines 'meet' everywhere — in both cases there is no single answer, and an honest calculator must say so.

      Cramer's rule is elimination packaged into determinants: x and y are each a ratio of two determinants. Whichever method you use by hand — elimination, substitution, matrices — substitution of the final pair into both original equations is the universal check, and it is built into this tool's steps.

      Use it for simultaneous-equation homework, mixture and price problems that produce two equations, and checking a solution you found by elimination or substitution.

      How to calculate it yourself

      Step 1

      Write both equations in the form ax + by = c.

      Step 2

      Compute the determinant D = a1b2 - a2b1; if D = 0 there is no unique solution.

      Step 3

      Compute x = (c1b2 - c2b1) / D.

      Step 4

      Compute y = (a1c2 - a2c1) / D.

      Step 5

      Substitute x and y into both equations to verify.

      Real-life examples

      Theatre tickets

      A group buys 120 tickets; adults cost $12, children $8, and the total is $1,200. How many of each?

      Equations: x + y = 120 and 12x + 8y = 1,200. D = 8 - 12 = -4. x = (120 x 8 - 1,200) / -4 = 60; y = 60.

      60 adult and 60 child tickets — check: 720 + 480 = $1,200.

      The coin jar

      A jar holds 30 coins, all 5-unit and 2-unit pieces... modelled as x + y = 30 and 2x + y = 50 in a class problem.

      D = -1. x = (30 - 50) / -1 = 20; y = (50 - 60) / -1 = 10.

      x = 20, y = 10 — check: 20 + 10 = 30 and 40 + 10 = 50.

      Ideas & use cases

      • Set up mixture problems: total amount gives one equation, total value/concentration gives the second — then let the tool solve.
      • Diagnose 'no solution' homework: if your elimination produces 0 = 5, the determinant was 0 — the lines were parallel all along.
      • Check graph work: the intersection point you read off a graph should match the calculator's (x, y) to within plotting accuracy.

      Limitations & sources

      • Solves 2 equations in 2 unknowns with numeric coefficients only; it does not solve larger systems, non-linear systems, or systems written with fractions that need pre-clearing.

      Sources: Cramer's rule for 2x2 systems: standard linear algebra references (OpenStax College Algebra, systems chapter)

      System Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results