Matrix Calculator

What is a Matrix Calculator?

Perform 2x2, 3x3, and NxN matrix operations: Matrix Addition, Subtraction, Matrix Multiplication ($A \times B$), Transpose ($A^T$), Determinant ($det(A)$), and Matrix Inverse ($A^{-1}$).

Why Use This Tool?

  • Linear Algebra Homework: Verify matrix operations, determinants, and inverses for linear algebra.
  • 3D Graphics & Game Dev: Compute 3D transformation matrices and vector dot products.
  • Machine Learning & Data Science: Inspect matrix multiplication dimensions and linear systems.

How to Use

  1. Select Matrix Dimensions (2x2, 3x3, 4x4 or Custom NxM).
  2. Enter numerical values into Matrix A and Matrix B grids.
  3. Select Operation (+, -, *, Determinant, Inverse, Transpose) to view result grid.

Real Working Example

Input:

Matrix A (2x2): [[1, 2], [3, 4]] | Operation: Determinant det(A)

Output Result:

det(A) = (1*4) - (2*3) = -2 | Inverse A⁻¹: [[-2, 1], [1.5, -0.5]]

Important Technical Details & Formulas

  • Gaussian Elimination Engine: Computes matrix determinants and inverses using Gaussian elimination.
  • Dimension Validation: Enforces valid matrix inner dimension matching for matrix multiplication ($m \times n$ and $n \times p$).
  • 100% Local Execution: Zero network overhead.

Related Mathematics & Financial Tools

Frequently Asked Questions

When is matrix multiplication valid?

Matrix multiplication A * B is valid only when the number of columns in Matrix A equals the number of rows in Matrix B.

What does a matrix determinant det(A) = 0 mean?

If det(A) = 0, the matrix is singular and does not have a matrix inverse.

Is it free?

Yes, 100% free.

Does it support 3x3 and 4x4 matrices?

Yes, 2x2, 3x3, 4x4, and custom NxM matrices are supported.

Is my matrix data stored anywhere?

No, all matrix computations run 100% locally in your browser memory.