ForHosting KIT · Math

2x2 system elimination method calculator

Solve two linear equations exactly by elimination: for 2x + 3y = 7 paired with x minus y equal to 1, x cancels out, 5y = 5 remains, and the point is (2, 1). Fractions stay exact. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
A1
2
B1
3
C1
7
A2
1
B2
-1
C2
1
You get
Determinant
-5
Eliminated variable
x

This 2x2 system elimination method calculator solves two linear equations in two variables without replacing exact values with rounded approximations. Enter the x coefficient, y coefficient, and constant for each equation. The calculator chooses a variable to cancel, scales both equations, adds them, solves the remaining one-variable equation, and substitutes back to return the exact intersection point. Integers, terminating decimals, and fractions are accepted, making the result useful for homework checks, worked examples, and deterministic application workflows.

Set up the two equations in standard form

Write each equation as a multiple of x plus a multiple of y equals a constant: a1x + b1y = c1 and a2x + b2y = c2. Then place those six values in the matching fields. Move variable terms to the left and constants to the right before entering them; for example, 3x = 8 - 2y should be entered as 3x + 2y = 8.

The calculator accepts signed integers such as -5, terminating decimals such as 0.125, and fractions such as 7/9. Fractions use integer numerators and nonzero integer denominators. Keeping the standard form explicit avoids ambiguity about signs and makes every row operation visible.

The result is exact because inputs are converted to normalized rational numbers, not ordinary rounded decimal estimates. If the two equations describe parallel or identical lines, their determinant is zero and there is no single intersection point to return. That case produces an input error instead of pretending that one arbitrary point is the answer.

A successful response therefore always represents the unique point shared by both lines.

Read the elimination and scaling steps

Elimination works by making one variable's coefficients opposites. The calculator normally cancels x when both x coefficients are nonzero. It multiplies the first equation by the second equation's x coefficient and multiplies the second equation by the negative of the first equation's x coefficient.

Adding those scaled rows makes the x terms sum to zero. If an x coefficient is already zero, it applies the same construction to y instead. The response names the eliminated variable and reports both multipliers, followed by the two scaled equations and their summed equation.

These fields let you reproduce the work on paper and check every sign. The remaining coefficient is divided into the remaining constant to solve one coordinate. That value is substituted into an original equation to obtain the other coordinate.

All displayed coefficients are reduced fractions: 6/8 becomes 3/4, negative signs stay in the numerator, and whole numbers appear without /1. The determinant is also returned because it provides a quick uniqueness check. A nonzero determinant guarantees that the row addition leaves a usable coefficient and that substitution yields exactly one x and one y.

Use the exact intersection safely in applications

The point object is the main answer. Consumers that support rational arithmetic can parse those strings directly; consumers that need decimals can divide the numerator by the denominator at their chosen precision. Validation errors also identify a missing field, malformed number, or zero fraction denominator before any algebra is attempted.

The implementation is pure and deterministic: it performs fixed-size integer arithmetic, makes no network request, reads no clock, and uses no random values. Very large digit strings can create correspondingly large exact integers, so practical inputs should remain within ordinary educational and business coefficient sizes. For the intended 2x2 systems, exact rational elimination prevents rounding from hiding whether the final point truly satisfies both original equations.

Check algebra homework

Compare a hand-worked cancellation, substitution, and final ordered pair against explicit exact row operations.

Generate tutoring feedback

Show learners which multipliers cancel a variable and how the summed one-variable equation leads to the intersection.

Automate small exact models

Solve two-constraint pricing, mixture, balance, or coordinate problems without introducing floating-point rounding.

What form should the equations use?

Enter both as ax + by = c using the six coefficient fields. Use zero when a variable term is absent.

Does the calculator return exact fractions?

Yes. Coordinates, multipliers, coefficients, and the determinant are normalized integer or fraction strings.

What happens for parallel or identical lines?

Their determinant is zero, so there is no unique intersection.

Which variable does the method eliminate?

It eliminates x when both x coefficients are nonzero; otherwise it eliminates y. The response states the choice.

How do I enter an equation with a missing variable?

Give the missing variable a coefficient of zero. An equation that only says y equals 4 is entered as 0x + 1y = 4, so both equations keep the same three positions.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/algebra/system-2x2-elimination

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/algebra/system-2x2-elimination \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"a1":"2","b1":"3","c1":"7","a2":"1","b2":"-1","c2":"1"}'
{
  "a1": "2",
  "b1": "3",
  "c1": "7",
  "a2": "1",
  "b2": "-1",
  "c2": "1"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "algebra.system_2x2_elimination",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Set up the two equations in standard form

A missing term is represented by zero, so y = 4 becomes 0x + 1y = 4.

Use the exact intersection safely in applications

Its x and y properties are strings so an exact value such as 17/6 survives JSON transport without binary floating-point drift. The unique flag is true only on successful calls, while a zero determinant fails with invalid_input because coincident and parallel lines do not have one unique intersection. The browser calculator can therefore match the API response exactly. Use the browser for individual exercises and exploratory checks, or call the API for $0.002 per successful item when worksheets, tutoring systems, grading helpers, engineering forms, or data pipelines need a consistent response contract.

How much does an API call cost?

Each successful item costs $0.002. The calculator can also run in the browser.

Read the full KIT documentation →