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.
Equation 1: ax + by = c
Equation 2: dx + ey = f
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.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.