The Util Box

Matrix Calculator

Free online matrix calculator. Add, multiply, transpose, determinant. Accurate and easy to use.

Matrix A
Matrix B
A + B = element-wise addition
Result
0 0
0 0

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/matrix-calculator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Matrix Calculator tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/matrix-calculator -->
<a href="https://www.theutilbox.org/tools/matrix-calculator">Matrix Calculator by The Util Box</a>

Frequently Asked Questions about Matrix Calculator

Matrix Calculator — Add, Multiply, Transpose, Determinant and Inverse

This matrix calculator works with 2×2 and 3×3 matrices. Type the entries into the grid, choose an operation, and the answer appears in a plain-text matrix below. Six operations are available: addition, subtraction, multiplication, determinant, transpose and inverse.

Addition, subtraction and multiplication take two matrices, so a second grid appears when you select them. Determinant, transpose and inverse work on Matrix A alone.

The Six Operations

Operation How it works
Add Entry-by-entry: A[i][j] + B[i][j].
Subtract Entry-by-entry: A[i][j] − B[i][j].
Multiply Row-by-column: each entry is the sum of A's row times B's column.
Determinant A single number. 2×2 uses the standard formula; 3×3 is expanded along the first row.
Transpose Rows become columns, so A[i][j] becomes Aᵀ[j][i].
Inverse The matrix that undoes A. Available for 2×2 only.

The determinant of a 3×3 matrix is expanded along the top row using cofactor expansion — the three leading minors are computed and combined as a(ei − fh) − b(di − fg) + c(dh − eg), which is the rule of Sarrus written out.

Limits and Formatting

  • The 3×3 inverse is not implemented. Selecting Inverse with a 3×3 matrix reports that it is not available. The 2×2 inverse is computed properly, and a matrix whose determinant is zero is correctly reported as not invertible rather than returning garbage.
  • Entries are read as decimals, and any cell left blank counts as zero rather than blocking the operation.
  • Results are printed with four decimal places for non-integer values and as plain integers when they are whole, with trailing zeros stripped.
  • No matrix multiplication with a scalar, no power function, no row reduction and no eigenvalue calculation — those are outside what the tool does.

Related Calculators

Every operation runs locally in your browser; no data is sent anywhere.