Skip to content

Menu

Matrix Determinant Calculator

Calculate matrix determinant and properties

Runs entirely in your browserMath & FinanceFree, no sign-up
Loading tool

01What is Matrix Determinant Calculator?

A determinant tells you a lot in one number. If it's zero, the matrix squashes space flat, has no inverse, and a linear system built on it has no unique solution. Working it out by hand for a 4×4 means sixteen entries and a lot of signs to keep straight. This calculator does the work for 2×2, 3×3 and 4×4 matrices and shows you the steps. You pick a size under Matrix Size, fill in the grid and click Calculate. The determinant comes from cofactor expansion, also called Laplace expansion, along the first row. It recurses down until it reaches 2×2 blocks, which use ad − bc. The Steps list prints one line per term of that first-row expansion: the sign, the entry a[0][j], the minor's determinant and the resulting term. Then you get the total. Next to the determinant you also see the transpose, the rank and, when one exists, the inverse. The inverse is built the textbook way, as the adjugate (the transposed cofactor matrix) divided by the determinant. Rank comes from Gauss-Jordan elimination. Any value smaller than 1e-10 is treated as zero, which keeps floating-point leftovers from inflating the rank. If the rank comes out below the size, the tool reports the determinant as exactly 0 and adds a note with the raw rounding value. A short example. Enter [[4, 7], [2, 6]] as a 2×2. The determinant is 4×6 − 7×2 = 10, the rank is 2, and the inverse prints as [[0.6000, -0.7000], [-0.2000, 0.4000]]. Whole numbers display as plain integers, and everything else gets four decimal places. Cells accept negatives and decimals the way you type them. A blank cell, or a lone minus sign, counts as zero. A cell that isn't a number blocks Calculate until you fix it. Changing the size wipes the grid, so pick your size before you start typing. Your entries stay in the browser tab, since the maths runs locally in JavaScript. Some limits are worth knowing. The largest size is 4×4, and the grid is always square. Results are standard 64-bit floats, so decimal inputs can give answers that are a hair off in the last digit. The four-decimal display can also hide very small differences. For sums, products and transposes, use our Matrix Calculator instead.

Maths and engineering students checking determinants and inverses by hand, and graphics programmers confirming a small transform matrix can be inverted. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Matrix Determinant Calculator

  1. Choose 2x2, 3x3 or 4x4 under Matrix Size. This clears the grid.
  2. Type values into the Matrix Values cells. Blanks count as zero.
  3. Click Calculate. It does nothing while any cell isn't a number.
  4. Read the Determinant and Rank, then the Steps list for each expansion term.
  5. Check the Transpose and, if the matrix isn't singular, the Inverse.

03Worked examples

Input: [[1,2],[3,4]]
Result: Determinant -2; rank 2; inverse [[-2, 1], [1.5000, -0.5000]]
Whole numbers are shown as-is and other values to 4 decimal places.
Input: [[4,7],[2,6]]
Result: Determinant 10; rank 2; inverse [[0.6000, -0.7000], [-0.2000, 0.4000]]
4×6 − 7×2 = 10. Each inverse entry is the adjugate entry divided by 10.
Input: [[1,2,3],[4,5,6],[7,8,9]]
Result: Determinant 0; rank 2; no inverse (singular)
Each row increases by the same step, so the rows are linearly dependent and the rank drops to 2.
Input: [[2,0,0],[0,3,0],[0,0,4]]
Result: Determinant 24; rank 3; inverse [[0.5000, 0, 0], [0, 0.3333, 0], [0, 0, 0.2500]]
For a diagonal matrix the determinant is the product of the diagonal and the inverse is each entry's reciprocal.
Input: [[0.1,0.2],[0.3,0.6]]
Result: Determinant 0; rank 1; no inverse (singular)
The second row is three times the first.
Input: [[2,1,0,3],[1,0,2,1],[0,1,1,2],[3,2,1,0]]
Result: Determinant 28; rank 4; inverse first row [0.2500, 0.1786, -0.4643, 0.1071]
Inverse shortened to its first row.

04Common use cases

  • Finding the exact term where a hand-worked 3×3 determinant went wrong, using the Steps list
  • Checking that a 4×4 transform matrix from a graphics or game engine is invertible before you invert it in code
  • Testing whether a 3-equation linear system has a unique solution by checking its coefficient matrix
  • Getting the inverse of a 2×2 or 3×3 matrix for a small robotics or physics calculation
  • Showing a class how dependent rows force rank below the size and the determinant to zero
  • Confirming the rank of a small matrix where decimal entries make a hand check messy

05Tips

  • Load the 3x3 example to see a singular matrix. Its rows step by the same amount, so the rank is 2 and the determinant is 0.
  • Swapping two rows flips the sign of the determinant. Scaling one row by k multiplies it by k. Both make quick self-checks.
  • With decimal entries a singular matrix can give a raw determinant like 1e-17. The tool checks rank with a tolerance, reports 0 and shows the raw value in the steps.
  • Pick the size first. Switching between 3x3 and 4x4 clears every cell you typed.

06Related concepts

Determinant, Cofactor expansion, Matrix inverse, Rank, Gaussian elimination, Linear algebra.

Frequently Asked Questions

What is Matrix Determinant Calculator?

Matrix Determinant Calculator is a free, browser-based developer tool on AIDToolStack. Calculate matrix determinant and properties It requires no installation or sign-up and works entirely in your browser.

Is Matrix Determinant Calculator free to use?

Yes. No sign-up, no fees and no usage cap.

Does Matrix Determinant Calculator store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe