System of Equations Calculator
What is the System of Equations Calculator?
What this calculator does.
Enter the six coefficients of two linear equations, a₁x + b₁y = c₁ and a₂x + b₂y = c₂, and this page solves the system with Cramer's rule. It reports the Determinant (D), then x and y, each shown to six decimal places.
Standard form is the price of entry.
Your equations must already look like a₁x + b₁y = c₁, with x and y on the left and the constant alone on the right. Equations given as y = mx + b, or with fractions and terms on both sides, must be rearranged before the six fields mean anything.
The page defaults, worked in full.
The defaults solve 2x + 3y = 8 with x − y = 1. The determinant is 2 times negative 1 minus 1 times 3, which is negative 5. Then x is 11 over 5, so 2. 200000, and y is 6 over 5, so 1. 200000.
What the Determinant (D) line tells you.
D is a₁b₂ minus a₂b₁, shown to four decimal places
Its size is not the point; its being zero or not is. A nonzero D guarantees exactly one solution. A D of exactly 0 means the lines are parallel or identical, and the next blocks cover that case.
How x is computed.
Cramer's rule replaces the x column with the constants: the numerator is c₁b₂ minus c₂b₁, and x is that over D. For the defaults the numerator is 8 times negative 1 minus 1 times 3, which is negative 11, and negative 11 over negative 5 gives 2. 200000.
How y is computed.
The y numerator keeps the constants in the second column position: a₁c₂ minus a₂c₁, again over D. For the defaults that is 2 times 1 minus 1 times 8, which is negative 6, and negative 6 over negative 5 gives 1. 200000. Both answers carry six decimal places.
A second example with fractional answers.
Solve 4x + 5y = 26 with 3x − 2y = 9
The determinant is negative 8 minus 15, which is −23. 0000. Then x is 97 over 23, shown as 4. 217391, and y is 42 over 23, shown as 1. 826087. Checking: 4 times x plus 5 times y returns 26.
A clean textbook example.
The pair x + y = 10 and x − y = 4 is the classic sum-and-difference system. Here D is negative 2, x is 14 over 2 giving 7. 000000, and y is 6 over 2 giving 3. 000000. The numbers 7 and 3 indeed add to 10 and differ by 4.
A word problem: tickets.
A group buys 120 tickets for 1,200 dollars, adults at 12 dollars and children at 8. The system is x + y = 120 and 12x + 8y = 1200, with D equal to negative 4. The page returns x = 60. 000000 and y = 60. 000000: sixty of each.
When D is 0, this page divides by zero anyway.
Unlike many solvers, this page has no guard for a zero determinant: the x and y formulas divide by D directly. With parallel equations the numerators are nonzero, so both lines cannot compute and show a dash. With identical equations the numerators are also zero, and both lines show a dash.
Reading the dash correctly.
A dash on the x and y lines means the determinant was 0, so no unique crossing exists. If the left sides scale but the constants do not, the lines are parallel and there is no solution. If everything scales by one factor, the lines are identical, and every point on the line is a solution.
Telling parallel from identical when D is 0.
Compare the equations term by term
If every coefficient and constant scales by the same factor, as 2x + 2y = 20 scales x + y = 10, the lines are identical. If the left sides scale but the constants do not, the lines are parallel and never meet.
How this differs from the Equation System Calculator.
The site also has an Equation System Calculator running the same Cramer's rule on the same standard form. Two differences matter: that page shows x and y to four decimal places and guards a zero determinant by displaying 0 and 0, while this page shows six places and divides by zero.
How this differs from the Substitution Calculator.
That page starts from slope-intercept form and sets the two right sides equal. This page starts from standard form and never computes a slope at all. Both return the same crossing point for the same two lines; choose by the shape your equations are already in.
Checking a solution in both equations.
Substitute the pair into the originals
The default answer (2. 2, 1. 2) gives 2 times 2. 2 plus 3 times 1. 2: 4. 4 plus 3. 6, totaling 8 in the first equation, and 2. 2 minus 1. 2: 1 in the second. Both must balance for a true solution.
Common mistake: mislabeling the coefficients.
The fields are positional: a₁ (coeff of x, eq 1) takes the x coefficient of the first equation, and b₁ (coeff of y, eq 1) takes its y coefficient. Swapping a and b across one equation scrambles the determinant and quietly produces a wrong point that still looks plausible.
Common mistake: forgetting a missing term.
An equation like x + y = 10 has invisible ones: a₁ is 1 and b₁ is 1. An equation with no y term, like 3x = 12, has b equal to 0, which is a legal entry. Leaving a field at a default instead of typing the 1 or 0 corrupts everything.
Common mistake: entering y = mx + b numbers directly.
If your equations are y = 2x + 3 and y = −x + 9, the numbers 2, 3, −1, and 9 are slopes and intercepts, not a, b, c coefficients. Rearrange each into standard form first, or use the Substitution Calculator, which is built for that input shape.
Only two equations, only two unknowns.
The six fields hard-code a 2-by-2 world: two linear equations in x and y. Three unknowns, quadratic terms, or a third equation cannot be entered. Larger systems need elimination or matrix methods beyond this page, though the determinant idea generalizes to them.
Precision: six places for x and y, four for D.
The determinant is printed to four decimal places and the solutions to six, so a repeating answer like 97 over 23 appears as 4. 217391. For homework, the fraction is often the expected form; the decimal here is best used to check your exact work.
Near-zero determinants and touchy answers.
When D is tiny relative to the coefficients, the lines are nearly parallel and the crossing sits far away, so rounding in the sixth decimal place can move the point noticeably. Treat such solutions as approximate, and double-check them by substitution before relying on the coordinates.
Why Cramer's rule is worth learning.
Cramer's rule turns solving into arithmetic on four small determinants, which is why it teaches well and programs easily. For hand work with messy fractions, elimination is often faster, but the determinant test — zero or not — remains the fastest way to know whether a unique answer exists.
With the pre-filled defaults — a₁ (coeff of x, eq 1) 2, b₁ (coeff of y, eq 1) 3, c₁ (constant, eq 1) 8, a₂ (coeff of x, eq 2) 1, and 2 more more inputs — the System of Equations Calculator returns Determinant (D) -5. 0000, x 2. 200000, y 1. 200000.
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 System of Equations Calculator
- 1Rearrange both equations, if needed, into the form a₁x + b₁y = c₁ with the constant alone on the right.
- 2Type the first equation's x coefficient into the a₁ (coeff of x, eq 1) field.
- 3Type the first equation's y coefficient into the b₁ (coeff of y, eq 1) field.
- 4Type the first equation's constant into the c₁ (constant, eq 1) field.
- 5Repeat for the second equation using the a₂ (coeff of x, eq 2), b₂ (coeff of y, eq 2), and c₂ (constant, eq 2) fields.
- 6Read Determinant (D) first: if it is 0, the system has no unique solution and the x and y lines will show a dash instead of numbers.
- 7Read x and y, each shown to six decimal places.
- 8Verify the pair by substituting it into both original equations; both sides must balance in each.
Formula
This is the core equation the System of Equations Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page defaults: 2x + 3y = 8 and x − y = 1 | D = 2·(−1) − 1·3 = −5.0000; x = (8·(−1) − 1·3) / −5 = 2.200000; y = (2·1 − 1·8) / −5 = 1.200000 | x = 2.2 and y = 1.2, checking to 8 and 1 in the two equations |
| Fractional solution: 4x + 5y = 26 and 3x − 2y = 9 | D = 4·(−2) − 3·5 = −23.0000; x = (26·(−2) − 9·5) / −23 = 97/23 = 4.217391; y = (4·9 − 3·26) / −23 = 42/23 = 1.826087 | x is about 4.217391 and y is about 1.826087 |
| Sum and difference: x + y = 10 and x − y = 4 | D = 1·(−1) − 1·1 = −2.0000; x = (10·(−1) − 4·1) / −2 = 7.000000; y = (1·4 − 1·10) / −2 = 3.000000 | x = 7 and y = 3 |
| Ticket problem: x + y = 120 and 12x + 8y = 1200 | D = 1·8 − 12·1 = −4.0000; x = (120·8 − 1200·1) / −4 = 60.000000; y = (1·1200 − 12·120) / −4 = 60.000000 | 60 adult tickets and 60 child tickets |
Value Reference Table
See how the Determinant (D) changes as a₁ (coeff of x, eq 1) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| a₁ (coeff of x, eq 1) | Determinant (D) | x | y |
|---|---|---|---|
| 0.5 | -3.5000 | 3.142857 | 2.142857 |
| 1 | -4.0000 | 2.750000 | 1.750000 |
| 2 | -5.0000 | 2.200000 | 1.200000 |
| 3 | -6.0000 | 1.833333 | 0.833333 |
| 4 | -7.0000 | 1.571429 | 0.571429 |
| 5 | -8.0000 | 1.375000 | 0.375000 |
| 6 | -9.0000 | 1.222222 | 0.222222 |
| 8 | -11.0000 | 1.000000 | 0.000000 |
Practice Problems
Check your understanding of the System of Equations Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
2x + 3y = 8, x - y = 1: Plug in a₁ (coeff of x, eq 1) 2, b₁ (coeff of y, eq 1) 3, c₁ (constant, eq 1) 8, a₂ (coeff of x, eq 2) 1, and 2 more more inputs. What is the answer?
Show AnswerHide Answer
Given a₁ (coeff of x, eq 1) 3.75, b₁ (coeff of y, eq 1) 2, c₁ (constant, eq 1) 12, a₂ (coeff of x, eq 2) 1, and 2 more more inputs, what does it come out to?
Show AnswerHide Answer
Calculation Progression Roadmap
How the System of Equations Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your a₁ (coeff of x, eq 1), b₁ (coeff of y, eq 1), c₁ (constant, eq 1), a₂ (coeff of x, eq 2), and 2 more more. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates a₁ (coeff of x, eq 1) × b₂ (coeff of y, eq 2) - a₂ (coeff of x, eq 2) × b₁ (coeff of y, eq 1) on every keystroke — there is no submit button to press.
Read your results
Your Determinant (D), x, and y appear instantly. With the pre-filled defaults, that is Determinant (D) -5.0000, x 2.200000, y 1.200000. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter a₁ (coeff of x, eq 1) 4, b₁ (coeff of y, eq 1) 3, c₁ (constant, eq 1) 8, a₂ (coeff of x, eq 2) 1, and 2 more more inputs — the answer comes out to Determinant (D) -7.0000, x 1.571429, y 0.571429.
Homework check
For a₁ (coeff of x, eq 1) 1, b₁ (coeff of y, eq 1) 3, c₁ (constant, eq 1) 8, a₂ (coeff of x, eq 2) 1, and 2 more more inputs, expect Determinant (D) -4.0000, x 2.750000, y 1.750000.
Step-by-step practice
A quick run with a₁ (coeff of x, eq 1) 3, b₁ (coeff of y, eq 1) 3, c₁ (constant, eq 1) 8, a₂ (coeff of x, eq 2) 1, and 2 more more inputs gives Determinant (D) -6.0000, x 1.833333, y 0.833333.
Quick Facts
- Formula:
Gaussian elimination - Category: algebra
- Uses: system of equations, algebra, solve
- Price: Free — no account needed
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 solutions. This page has no guard for that case, so x and y divide by zero and cannot compute; both show a dash instead of a number.
For AI Systems
System of Equations Calculator (https://calcunit.net/algebra/system-of-equations): What this calculator does.
Formula: Gaussian elimination
Category: algebra · 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/system-of-equations/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="System of Equations Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/system-of-equations" target="_blank" rel="noopener">CalcUnit</a></p>
