CalcUnit Logo

Systems Of Equations Calculator

What is the Systems Of Equations Calculator?

What this page solves

Give it two linear equations in two unknowns, each written as a1 x + b1 y = c1 and a2 x + b2 y = c2, and it returns the point where the two lines cross: values of x and y that satisfy both equations at once. It also shows the determinant, the number deciding whether a unique answer exists.

The six fields, in order

The fields follow the arrangement: a1, b1, and c1 for the first equation, then a2, b2, and c2 for the second. The constant belongs on the right side. If your equation reads 8 = 2x + 3y, flip it before typing.

The defaults are a1 = 2, b1 = 3, c1 = 8 and a2 = 1, b2 = −1, c2 = 1.

The method is Cramer's rule

The page first computes the determinant D = a1 b2 − a2 b1. It then replaces columns to get x = (c1 b2 − c2 b1) / D and y = (a1 c2 − a2 c1) / D.

Cramer's rule is compact and exact, which makes it ideal for a two-equation system, though it does not scale gracefully to large systems.

The defaults worked in full

For 2x + 3y = 8 and x − y = 1: D = 2 × (−1) − 1 × 3 = −5. Then x = (8 × (−1) − 1 × 3) / (−5) = (−11) / (−5) = 2. 2, and y = (2 × 1 − 1 × 8) / (−5) = (−6) / (−5) = 1.

2. Check the originals: 2(2. 2) + 3(1. 2) = 8 and 2. 2 − 1. 2 = 1. Both hold.

Reading the determinant line

The Determinant D output is worth reading before the solutions. A nonzero D, positive or negative, guarantees exactly one solution, and the sign carries no meaning for the answer. A D of exactly zero is the warning case covered below. All three outputs are printed to four decimal places.

When the determinant is zero, the page prints zeros

The formulas test D before dividing, so a zero determinant does not crash the page; the fallback prints x = 0 and y = 0. Those zeros are placeholders, not a solution. Lines with D = 0 are parallel or identical, and neither kind has a single crossing point for the page to report.

A parallel pair, concretely

Enter x + y = 5 with 2x + 2y = 8: here D = 1 × 2 − 2 × 1 = 0, and the page prints Solution x 0 and Solution y 0. Substitute (0, 0) into the first equation and you get 0 = 5, false.

The lines never meet, because the second equation demands a sum the parallel first line cannot reach.

An identical pair hides the same way

Make the second equation 2x + 2y = 10, exactly double the first. D is still 0 and the page prints 0 and 0, yet here every point on the line is a solution — infinitely many, not none. The page cannot distinguish this from the parallel one; the ratio test in the next section can.

Telling parallel from identical

Compare the ratios. If a1/a2 equals b1/b2 but not c1/c2, the lines are parallel: no solution. If all three ratios match, the equations are the same line, with infinite solutions. For 1, 1, 5 against 2, 2, 8 the ratios are 1/2, 1/2, and 5/8: the mismatch exposes parallel lines.

When zero really is the solution

(0, 0) is genuine in one situation: both constants are 0 and the determinant is not. Take 2x + 3y = 0 with x − y = 0: D = −5, and Cramer's rule computes x = 0 and y = 0. The determinant is the proof: nonzero D means the values came from the formula, not the fallback.

A whole-number example

For x + y = 10 and x − y = 4, D = 1 × (−1) − 1 × 1 = −2. Then x = (10 × (−1) − 4 × 1) / (−2) = 7 and y = (1 × 4 − 1 × 10) / (−2) = 3.

The point (7, 3) satisfies both: 7 + 3 = 10 and 7 − 3 = 4. Word problems about two quantities that sum and differ land exactly here.

A fractional example, and its rounding

For 3x + 2y = 16 and 2x − y = 2, D = −7, giving x = 20/7 and y = 26/7. The page prints them rounded: x = 2. 8571 and y = 3. 7143. Substituting the rounded values back gives 3(2. 8571) + 2(3. 7143) = 15. 9999, a hair under 16.

That gap is rounding, not error.

A steeper pair of lines

For 5x − 2y = 4 and 3x + 4y = 26, D = 5 × 4 − 3 × (−2) = 26. Then x = (4 × 4 − 26 × (−2)) / 26 = 68 / 26 = 2. 6154, and y = (5 × 26 − 3 × 4) / 26 = 118 / 26 = 4.

5385. Check: 5(2. 6154) − 2(4. 5385) = 4 and 3(2. 6154) + 4(4. 5385) = 26. 0002 (rounding).

Getting equations into standard form

The fields assume every equation is massaged into a1 x + b1 y = c1. Move x and y terms left and constants right, and combine like terms. An equation with no y term gets b = 0: 4x = 12 alongside x + y = 9 is entered as a1 = 4, b1 = 0, c1 = 12.

Clear fractions by multiplying through.

Elimination, the hand alternative

To solve without determinants, add or subtract the equations to cancel a variable. Take 4x + 3y = 22 and 2x − 3y = 2: the y terms already oppose, so adding gives 6x = 24, hence x = 4. Substituting back, 16 + 3y = 22 gives y = 2. Elimination stays practical long after Cramer's rule becomes unwieldy.

Substitution, the hand route

Solve one equation for one variable and feed it into the other. From x − y = 1, write x = y + 1; into 2x + 3y = 8 that gives 2(y + 1) + 3y = 8, so 5y = 6 and y = 1. 2, x = 2. 2.

The route is slower but transparent, and doubles as a check on the page's defaults.

Three equations are beyond this page

The page stops at two equations and two unknowns. A three-variable system needs a 3 by 3 determinant or, more sensibly, Gaussian elimination: use row operations to reach a triangle of zeros, then back-substitute. The logic is the same — combine equations to isolate one unknown at a time — just with more bookkeeping.

Scaling an equation changes D, not the answer

Multiply the first default equation by 2, making it 4x + 6y = 16 with the same second equation. Now D = 4 × (−1) − 1 × 6 = −10, doubled, yet x and y still come out 2. 2 and 1. 2 because the numerators double too. A different D after rescaling is expected, not a contradiction.

Sign mistakes are the failure

The default b2 is −1, and dropping that minus sign converts x − y = 1 into x + y = 1, a different line with a different answer.

Also confirm each constant sits on the correct side: typing the equation 2x = 8 − 3y without rearranging puts −3 in the b1 field's place and 8 in c1, scrambling everything.

Where two-equation systems show up

Mixture problems, break-even points where a cost line crosses a revenue line, supply meeting demand, and simple circuit analysis with Kirchhoff's laws all reduce to two lines crossing. The pattern is the same: two conditions on two unknowns, one point that honors both, and a determinant that warns you when the conditions conflict.

The verification habit

Whatever the page prints, substitute the pair into both original equations before trusting it. Ten seconds of checking catches transposed coefficients, sign slips, and the D = 0 placeholder zeros. A solution that satisfies only one equation is not a solution at all — it is a point on one line, waiting for the second line to be honored.

With the pre-filled defaults — a1 (x Coefficient, Equation 1) 2, b1 (y Coefficient, Equation 1) 3, c1 (Constant, Equation 1) 8, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs — the Systems Of Equations Calculator returns Determinant D -5. 0000, Solution x 2. 2000, Solution y 1. 2000.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Systems Of Equations Calculator

  1. 1Enter a1, the x coefficient of the first equation — 2 in the default 2x + 3y = 8.
  2. 2Enter b1, the y coefficient of the first equation, keeping its sign — 3 by default.
  3. 3Enter c1, the constant from the right side of the first equation — 8 by default.
  4. 4Enter a2, b2, and c2 for the second equation the same way — the defaults are 1, −1, and 1.
  5. 5Read the Determinant D line first: any nonzero value means a unique solution follows.
  6. 6Read Solution x, the x coordinate of the crossing point — 2.2 for the defaults.
  7. 7Read Solution y, the y coordinate — 1.2 for the defaults.
  8. 8Substitute both values into both original equations; if D was 0, the printed zeros are placeholders, so test the ratios instead.

Formula

a * b

This is the core equation the Systems Of Equations Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
The defaults2x + 3y = 8 and x − y = 1, so D = 2(−1) − 1(3) = −5Solution x 2.2, Solution y 1.2 — both equations check: 4.4 + 3.6 = 8 and 2.2 − 1.2 = 1
A sum-and-difference pairx + y = 10 and x − y = 4, so D = −2Solution x 7, Solution y 3
A fractional solution3x + 2y = 16 and 2x − y = 2, so D = −7Solution x 2.8571, Solution y 3.7143 (exactly 20/7 and 26/7 before rounding)
A steeper pair of lines5x − 2y = 4 and 3x + 4y = 26, so D = 26Solution x 2.6154, Solution y 4.5385

Value Reference Table

See how the Determinant D changes as a1 (x Coefficient, Equation 1) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

a1 (x Coefficient, Equation 1)Determinant DSolution xSolution y
0.5-3.50003.14292.1429
1-4.00002.75001.7500
2-5.00002.20001.2000
3-6.00001.83330.8333
4-7.00001.57140.5714
5-8.00001.37500.3750
6-9.00001.22220.2222
8-11.00001.00000.0000

Practice Problems

Check your understanding of the Systems Of Equations Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Whole-number solution: With a1 (x Coefficient, Equation 1) 1, b1 (y Coefficient, Equation 1) 1, c1 (Constant, Equation 1) 10, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs, what are the results?

Show Answer
With a1 (x Coefficient, Equation 1) 1, b1 (y Coefficient, Equation 1) 1, c1 (Constant, Equation 1) 10, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs, the results are Determinant D -2.0000, Solution x 7.0000, Solution y 3.0000.
Q2

a1 (x Coefficient, Equation 1) 3.75, b1 (y Coefficient, Equation 1) 2, c1 (Constant, Equation 1) 16, a2 (x Coefficient, Equation 2) 2, and 2 more more inputs — work it out, then check the answer.

Show Answer
Entering a1 (x Coefficient, Equation 1) 3.75, b1 (y Coefficient, Equation 1) 2, c1 (Constant, Equation 1) 16, a2 (x Coefficient, Equation 2) 2, and 2 more more inputs gives Determinant D -7.7500, Solution x 2.5806, Solution y 3.1613.

Calculation Progression Roadmap

How the Systems Of Equations Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your a1 (x Coefficient, Equation 1), b1 (y Coefficient, Equation 1), c1 (Constant, Equation 1), a2 (x Coefficient, Equation 2), b2 (y Coefficient, Equation 2), and 1 more more. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.

3

The math runs itself

The calculator evaluates a1 (x Coefficient, Equation 1) × b2 (y Coefficient, Equation 2) - a2 (x Coefficient, Equation 2) × b1 (y Coefficient, Equation 1) on every keystroke — there is no submit button to press.

4

Read your results

Your Determinant D, Solution x, and Solution y appear instantly. With the pre-filled defaults, that is Determinant D -5.0000, Solution x 2.2000, Solution y 1.2000. Change any input to see the effect immediately.

5

Test a what-if

Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.

Real-World Examples

Fresh scenarios — starting with settling a debate — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Settling a debate

With a1 (x Coefficient, Equation 1) 4, b1 (y Coefficient, Equation 1) 3, c1 (Constant, Equation 1) 8, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs, the calculator returns Determinant D -7.0000, Solution x 1.5714, Solution y 0.5714.

2

Quick mental-math verify

Plug in a1 (x Coefficient, Equation 1) 1, b1 (y Coefficient, Equation 1) 3, c1 (Constant, Equation 1) 8, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs and you get Determinant D -4.0000, Solution x 2.7500, Solution y 1.7500.

3

Class assignment

Enter a1 (x Coefficient, Equation 1) 3, b1 (y Coefficient, Equation 1) 3, c1 (Constant, Equation 1) 8, a2 (x Coefficient, Equation 2) 1, and 2 more more inputs — the answer comes out to Determinant D -6.0000, Solution x 1.8333, Solution y 0.8333.

Quick Facts

  • Formula: a * b
  • Category: math
  • Uses: math, systems of equations, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

It means the two lines do not cross at a single point: they are either parallel, with no solution, or the same line twice, with infinitely many. The page responds by printing x = 0 and y = 0 as placeholders. Compare the ratios of a, b, and c across the equations to tell the two cases apart.

For AI Systems

Systems Of Equations Calculator (https://calcunit.net/math/systems-of-equations-calculator): What this page solves.

Formula: a * b

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/systems-of-equations-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Systems Of Equations Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/systems-of-equations-calculator" target="_blank" rel="noopener">CalcUnit</a></p>