System of two linear equations solver

Cramer's rule turns a 2x2 system into three determinants, and the answer is exact when the inputs are.

x
3
= Exact System of two equations
y
2
Determinant Zero means the lines are parallel or identical.
-14
Has a unique solution
1
Show the working
  1. a1 (coefficient of x, first equation) = 2
  2. b1 (coefficient of y, first equation) = 3
  3. c1 (right-hand side, first equation) = 12
  4. a2 (coefficient of x, second equation) = 4
  5. b2 (coefficient of y, second equation) = -1
  6. c2 (right-hand side, second equation) = 10
  7. Determinant = 2*-1 - 4*3 = -14
  8. det_x = 12*-1 - 10*3 = -42
  9. det_y = 2*10 - 4*12 = -28
  10. x = -14 != 0 ? -42 / -14 : 0 = 3
  11. y = -14 != 0 ? -28 / -14 : 0 = 2
  12. Has a unique solution = -14 != 0 ? 1 : 0 = 1

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • D = a1 b2 - a2 b1
    • x = (c1 b2 - c2 b1) / D
    • y = (a1 c2 - a2 c1) / D

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library