Math

Matrix Calculator

Perform matrix operations including add, subtract, multiply, determinant, inverse, and transpose for 2x2 and 3x3 matrices.

CALCULATOR

Enter your numbers

Instant results
2.00003.0000
1.00004.0000
Determinant = 5
Operation: determinant
Matrix A (2x2): [[2, 3], [1, 4]]
Determinant = 5

THE NUMORIX GUIDE

How to use the Matrix Calculator

Last reviewed September 14, 2026

What this calculator does

The UI accepts 2x2 or 3x3 square matrices and selects add, subtract, multiply, determinant, inverse, or transpose.

Formula and method

The UI accepts 2x2 or 3x3 square matrices and selects add, subtract, multiply, determinant, inverse, or transpose. Addition/subtraction are entrywise; multiplication uses row-by-column products; determinant and inverse use the matching 2x2 or 3x3 formulas.

Variables and inputs

The default operation is determinant, size is 2x2, Matrix A is [2,3;1,4], and Matrix B is empty until a binary operation is selected. Matrix cells are unitless numeric entries.

Worked example

For default determinant: det([2,3;1,4]) = 2*4 - 3*1 = 5. For A*B, each result entry is the dot product of a row of A and a column of B; inverse exists only when det is nonzero.

How to interpret the result

A matrix operation transforms arrays while preserving the algebraic dimensions required by the operation. A zero determinant means a square matrix is singular and has no inverse.

Common mistakes to avoid

Do not multiply matching entries for matrix multiplication; use row-by-column sums. Keep both matrices the same selected size for add, subtract, and multiply.

Assumptions and limitations

Only square 2x2 and 3x3 matrices are supported. The inverse and determinant outputs are floating-point values, and the UI calculates immediately even while a matrix field is temporarily incomplete.

Practical use and checks

Use the Matrix Calculator for small square-matrix operations such as adding two transformations, checking a 2 by 2 inverse, or verifying a determinant. For a direct check, choose size 2, enter matrix A [[2, 3], [1, 4]], choose determinant, and expect 5. For addition, pair it with matrix B [[1, 0], [2, 1]]; the result should be [[3, 3], [3, 5]]. For an invertible matrix, the inverse of A should be [[0.8, -0.6], [-0.2, 0.4]], and multiplying A by that result should approximate the identity matrix. Matrix multiplication is not entry-by-entry multiplication: each result cell is a row-by-column dot product, and order matters. The calculator supports only square 2 by 2 and 3 by 3 matrices, so it cannot model a general rectangular transformation or a larger system. An inverse exists only when the determinant is nonzero; values extremely close to zero can be unstable even if they pass a simple threshold. Floating-point rounding can make an identity check show tiny residuals, and a missing or misordered entry changes every operation. Units also matter: adding matrices with incompatible quantities has no physical interpretation. Record size, row order, operation, and determinant with any result used in a model or spreadsheet.

Sources and references

COMMON QUESTIONS

Frequently asked questions

When does a matrix have an inverse?

For these square matrices, only when its determinant is nonzero.

Can I enter a 2x3 matrix?

No. The current UI supports only 2x2 and 3x3 square matrices, including for operations that could otherwise use rectangular shapes.