Matrix Inverse and Determinant Calculator

Find the determinant, rank, trace and inverse of a square matrix up to 6 × 6.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Matrix Inverse and Determinant Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Matrix Inverse and Determinant Calculator does

    Find the determinant, rank, trace and inverse of a square matrix up to 6 × 6.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Type a square matrix with one row per line and the entries separated by spaces or commas. The calculator gives the determinant, rank and trace, and the inverse when the matrix is invertible.

Method

The matrix is reduced with Gauss–Jordan elimination using partial pivoting. The determinant is the product of the pivots with the sign of the row swaps. The rank is the number of non-zero pivots. The inverse comes from reducing [A | I].

Reading the result

A matrix is invertible exactly when its determinant is not zero. A determinant that is very close to zero means the matrix is nearly singular and the inverse is numerically unreliable. Separate numbers with spaces or commas.

Worked example

The matrix 2 1 0 / 1 3 1 / 0 1 4 has determinant 18, rank 3 and trace 9. Its inverse has first row 0.6111, −0.2222, 0.0556.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What size can the matrix be?

Any square matrix up to 6 × 6.

What if the determinant is 0?

The matrix is singular, so there is no inverse; the determinant 0 and the rank are shown.

Are results exact?

They are floating-point, shown to about 5 decimal places.

How do I enter the matrix?

One row per line, numbers separated by spaces or commas.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages