Two Linear Equations Calculator with Steps

Solve or classify two linear equations in x and y with determinant working, substitution checks and parallel-line guidance.

Free learning toolValidated inputs and visible working

Where two linear equations agree

Two linear equations describe conditions that must be true together. This calculator accepts a pair written as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. It reports the unique intersection when the determinant is non-zero. When the determinant is zero, it distinguishes distinct parallel lines from two equations for the same line instead of treating every case as invalid input.

When two conditions must hold together

Use it after arranging both equations in the same variable order. Enter zero for a genuinely missing coefficient, but retain every negative sign. A unique ordered pair should be substituted into both original equations. If the result says no solution or infinitely many solutions, compare the coefficient and constant ratios to verify the line classification.

YOUR RESULT

Your shared solution for x and y

Enter your values

Choose an example or type the known values, then calculate to see the answer and working.

    One ordered pair satisfies both linesThe intersection is not two separate answers: its x and y values make both equations true together.

    Worked example: Solve 3x + 2y = 18 and 5x - 2y = 14

    The y coefficients are opposites, so adding the equations eliminates y immediately.

    Prediction first

    Estimate the sign, scale, range or likely form of the answer before calculating. A prediction makes an input error easier to notice.

    1. Step

      Add the equations: 8x + 0y = 32, so 8x = 32.

    2. Step

      Divide by 8 to get x = 4.

    3. Step

      Substitute into the first equation: 3(4) + 2y = 18, so 2y = 6 and y = 3.

    4. Step

      Check both conditions: 12 + 6 = 18 and 20 - 6 = 14.

    Aligned variables, elimination and intersection

    Variable order must match

    If one row is entered as y then x while the other is x then y, the coefficient columns represent different variables. Rewrite both equations with x first and y second.

    Elimination preserves a system

    Multiplying an entire equation by a non-zero number creates an equivalent condition. Adding or subtracting equivalent rows can eliminate one variable without changing their common intersection.

    The determinant detects geometry

    A zero determinant means the coefficient directions are proportional. The lines are then parallel or identical, so coefficient calculation alone cannot produce one intersection.

    Two Linear Equations Calculator questions

    Is elimination always the best method?

    No. Substitution can be clearer when one variable is already isolated. Both methods should give the same pair for a unique solution.

    Can coefficients be decimals?

    Yes. Clear decimals by multiplying complete equations when that makes paper working easier, then use the original equations for the check.

    What happens when the determinant is zero?

    The calculator compares the complete equations. Proportional coefficients with inconsistent constants describe parallel lines and no solution; complete proportionality describes the same line and infinitely many solutions.

    System-solving errors that invalidate both equations

    Two Linear Equations Calculator error check
    MistakeWhy it failsBetter check
    Changing only one term when scalingMultiplying part of an equation changes its solution set.Multiply every coefficient and the right side by the same factor.
    Stopping after finding xA simultaneous solution is an ordered pair, not one coordinate.Substitute the first variable to find the second, then check both equations.
    Treating a zero determinant as an errorIt carries mathematical information about the two lines.Compare constants as well as coefficients to distinguish parallel from identical equations.

    Verify the ordered pair in both conditions

    The result points to related practice, but the best next step depends on what the learner could explain without help.

    Explore OpenSchoolbag

    Choose a page and go there directly.

    Explore learningChoose a learning path
    Quick navigationGo deeper into OpenSchoolbag

    Explore

    Education magazineResource libraryLearning collections

    Plan and practise

    Study plannerMaths practice testSearch the site

    OpenSchoolbag

    Frequently asked questionsAbout the siteEditorial policyContactView the full directory