Simultaneous Equations Calculator

A system of equations is a set of two or more equations that must all be satisfied at the same time, and solving it means finding the values of the unknowns that make every equation true simultaneously. Two-variable linear systems of the form ax plus by equals c arise constantly in maths courses and practical problems: finding where two lines intersect on a graph, working backwards from combined totals to find individual prices, solving mixture problems, balancing supply and demand, and many engineering and physics problems. This calculator solves a system of two linear equations in two variables using Cramer's rule, a determinant-based method that expresses each unknown directly as a ratio of two values computed from the coefficients. You enter the coefficient of x, the coefficient of y, and the constant on the right-hand side for each of the two equations, and the calculator returns the values of x and y, the main determinant of the coefficient matrix, and the step-by-step working so you can follow exactly how the answer was reached. Negative coefficients work fine; simply enter a negative number. If the main determinant is zero, the equations either contradict each other or are equivalent to the same line, and no unique solution exists. The calculator detects this and tells you rather than returning a meaningless result. Enter your coefficients to see the solution update as you type.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Advertise on this page

Equation 1:   ax + by = c

x  +  y  = 

Equation 2:   dx + ey = f

x  +  y  = 
x = 3, y = 2
solution
x3
y2
Determinant (D)-5
Dx / Dy-15 / -10

Working: D = (2)(-1) - (1)(3) = -5. Dx = (12)(-1) - (1)(3) = -15. Dy = (2)(1) - (1)(12) = -10. x = -15/-5 = 3. y = -10/-5 = 2.

How it works

For the system ax + by = c and dx + ey = f, Cramer's rule computes the main determinant D = ae minus bd. The determinant Dx is found by replacing the x-column with the constants: ce minus bf. The determinant Dy is found by replacing the y-column: af minus dc. The solutions are x = Dx divided by D and y = Dy divided by D. When D equals zero, no unique solution exists and the calculator reports this clearly.

Worked example

Using the defaults: 2x + 3y = 12 and x minus y = 1. The main determinant D = (2)(minus 1) minus (1)(3) = minus 5. Dx = (12)(minus 1) minus (1)(3) = minus 15. Dy = (2)(1) minus (1)(12) = minus 10. Therefore x = minus 15 divided by minus 5 = 3 and y = minus 10 divided by minus 5 = 2. Check: 2(3) + 3(2) = 12 and 3 minus 2 = 1. Both equations are satisfied.

Related calculators