Matrix Calculator
Free online matrix calculator. Add, subtract, and multiply matrices, transpose them, multiply by a scalar, raise to a power, and compute determinants and inverses. Works with any size matrix. 100% client-side.
Loading tool...
What is Matrix Calculator?
The Matrix Calculator is a free, browser-based linear algebra tool that performs the most common matrix operations instantly. Add, subtract, and multiply matrices; compute the determinant and inverse of a square matrix; transpose a matrix; multiply by a scalar; or raise a square matrix to an integer power. Enter matrices in a simple grid format and see results immediately. Everything runs locally in your browser, making it perfect for students, engineers, and anyone working with linear algebra.
Key Benefits
- Eight operations in one tool: add, subtract, multiply, transpose, determinant, inverse, scalar multiply, and power
- Works with matrices of any compatible size β from 1Γ1 to large grids
- Determinant via cofactor expansion for accuracy and LU decomposition for larger matrices
- Inverse via Gauss-Jordan elimination with automatic singular-matrix detection
- 100% client-side β your matrices never leave your browser
Common Use Cases
- β’Check linear algebra homework for matrix multiplication, determinants, and inverses
- β’Solve systems of linear equations by computing matrix inverses
- β’Transform 3D graphics or geometry data with matrix multiplication
- β’Analyze data in spreadsheets or reports using matrix arithmetic
- β’Verify machine learning or statistics calculations that use matrices
How to Use the Matrix Calculator
- Choose an Operation: Click one of the eight operation buttons at the top: Add, Subtract, Multiply, Transpose, Determinant, Inverse, Scalar Multiply, or Power.
- Enter Your Matrix (or Matrices): Type each row of Matrix A on a new line, with entries separated by spaces or commas β for example, 1 2 on the first line and 3 4 on the second. For binary operations, fill in Matrix B the same way.
- Set Scalar or Power (if needed): For Scalar Multiply, enter a value for k. For Power, enter a non-negative integer n. These fields appear automatically when the operation requires them.
- View and Copy the Result: The result matrix, determinant, or inverse appears instantly below. Click Copy to copy the result to your clipboard, or click Clear to start over.
Key Features
- Add, subtract, and multiply two matrices of any compatible dimensions
- Compute the determinant of any square matrix using cofactor expansion and LU decomposition
- Find the inverse via Gauss-Jordan elimination with automatic singular detection
- Transpose a matrix or multiply it by a scalar instantly
- Raise a square matrix to any non-negative integer power with fast exponentiation
- 100% client-side β your matrices never leave your browser, no signup required