UTILS.
Private by default
⊟

Matrix Calculator

Add, multiply and find the determinant of small 2×2 or 3×3 matrices.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Matrix Calculator handles small square matrices. Choose 2 × 2 or 3 × 3, fill in the cells of Matrix A and Matrix B, and press one of the three buttons: A + B adds them cell by cell, A × B multiplies them as a standard matrix product, and det(A) gives the determinant of Matrix A alone.

Results are not live as you type; they update when you press a button. The result is shown as rows of tab-separated numbers, rounded to six decimal places, so you can paste it into a spreadsheet. The determinant is computed by cofactor expansion (the ad minus bc formula for 2 × 2). Matrix A starts as 1 2 3 / 4 5 6 / 7 8 10 and Matrix B as the identity matrix, so multiplying by the default B returns A unchanged.

Every cell must contain a number; if one is blank or invalid you get a prompt to fill it in instead of a result. Changing the size resets both grids to their defaults, so enter your values after choosing the size. Order matters for multiplication: A × B is generally not equal to B × A. There are no inverse or transpose functions, and nothing leaves your browser.

Frequently asked questions

What sizes are supported?
Only 2 × 2 and 3 × 3 square matrices. Both matrices always have the same size, which is what addition requires and keeps multiplication valid.
How is the determinant computed?
For 2 × 2 it is a·d minus b·c. For 3 × 3 it uses cofactor expansion along the first row. Only Matrix A is used.
Why did my numbers disappear when I changed the size?
Switching between 2 × 2 and 3 × 3 rebuilds both grids with their default values. Choose the size first, then enter your numbers.
Does it update as I type?
No. Press A + B, A × B or det(A) to calculate. If any cell is empty or not a number you are asked to fill every cell.

More tools