Files never leave your device

Matrix inverse calculator

Invert a square matrix with exact fractions and row operations. Your inputs stay on your device.

Set up your task

Ready. Processing stays in this browser.

How to use Matrix inverse calculator

Invert a square matrix with exact fractions and row operations. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.

  1. Check the example inputs: Square matrix.
  2. Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.
  3. Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.

Supported inputs and limits

Use a square matrix up to 6 × 6. Enter integers or fractions, with rows on separate lines.

How it works

An inverse undoes a square linear transformation. If A is invertible, applying A followed by its inverse returns the original vector. Recognising singularity matters when solving simultaneous equations, transforming graphics coordinates or going back from a changed basis.

Start with A beside the identity matrix. Every row operation touches both halves. If the left side reduces to identity, the right side is the inverse. The calculator works with exact rational numbers, which lets students verify fractions by multiplying the result back against the original matrix.

Example

Run the pre-filled example. Its first result is “Inverse matrix”.

Square matrix
2 1
1 1
Inverse matrix
[ 1  -1 ]
[ -1  2 ]
Apply the same row operations to the identity alongside the input.
Divide R1 by 2.
R2 ← R2 − (1) × R1.
Divide R2 by 1/2.
R1 ← R1 − (1/2) × R2.

Questions about Matrix inverse calculator

Can I use decimal matrix entries?

Enter an exact fraction with a positive denominator, such as 1/10 for 0.1. This calculator uses rational arithmetic.

What if a pivot is missing?

If the matrix cannot reach full rank, it has no inverse. A missing pivot column exposes the loss of an independent dimension.

Use rows 1 2 and 2 4.

The inverse is rejected. The second row is twice the first, so both rows encode the same constraint.

Related tools

Year 2: Algorithms and theory

Last updated