Matrices & linear algebra
Matrix Calculator: Add, Subtract, Multiply, Inverse & Determinant
Add, subtract, multiply matrices; transpose, determinant, inverse. Logic Trace shows how each entry is computed. Up to 10×10.
Matrix A
2×2Size
Matrix B
2×2Size
Using the Matrix Calculator
This free online matrix calculator lets you add, subtract, and multiply matrices and compute determinants and inverses. Use the tool above to enter dimensions and values, then choose an operation; the Logic Trace shows how each result entry was computed. The article below explains dimensions (m×n), addition and multiplication rules, scalar multiplication, and when determinants and inverses exist.
Quick workflow
Operations
Logic Trace
Swap & Reset
Matrix Calculator: Add, Subtract, Multiply, Inverse & Determinant
Free online matrix calculator: add and subtract matrices, matrix multiplication steps, scalar multiplication, and matrix inverse and determinant solver. How to add 3×3 matrices, multiply two matrices, and understand dimensions m×n. Logic Trace shows every step.
What This Calculator Does & Who It's For
Calculator Purpose & Ideal Users
- What you get:Result matrix C in a clear grid. Logic Trace: formula for each c₁₁, c₁₂, … (e.g. a₁₁ + b₁₁ for addition; dot product for multiplication). Binary: A+B, A−B, A×B, C=x·A, C=x·B, C=B. Unary: Transpose, A², determinant, inverse per matrix. Utilities: Clear, Fill (0, 1, Random), Swap A↔B, Reset. Buttons are disabled when dimensions are incompatible; inverse only when determinant ≠ 0.
- Why trust this tool:Methods follow standard linear algebra and textbook notation (m×n dimensions, row–column indexing, dot product for multiplication). Every result entry is explained in the Logic Trace, no black box. The tool is free, runs locally, and is designed for education and verification as well as quick computation.
- Scope & limits:Matrices up to 10×10. Numeric entries only. Determinant and inverse use standard algorithms; results within normal floating-point range.
How to Use This Calculator
- Dimensions:Set rows and columns for A and B. Addition and subtraction require the same dimensions. For multiplication, A's column count must equal B's row count; the result is an m×p matrix.
- Cell Entry:Type values directly into each cell or use Fill (0, 1, Random) for quick population. Swap exchanges A and B; Reset All clears both matrices and returns dimensions to 2×2.
- Operations Toolbar:Binary: A+B, A−B, A×B, scalar multiply (C = x·A or x·B). Unary: Transpose, Power of 2, Determinant, Inverse. Buttons disable when dimensions are incompatible.
- Logic Trace:Shows the formula for each result entry, element-wise sums for addition, dot products for multiplication, cofactor expansion for determinants. Hover a result cell to highlight the contributing row and column.
Dimensions and Row–Column Notation (m × n)
Scalar Multiplication and Matrix–Matrix Multiplication
How to Add 3×3 Matrices (and Any Same-Size Matrices)
Transpose, Determinant, and Inverse
Matrix Calculator FAQ
What are the dimensions of a matrix?
Why do matrices have to be the same size for addition?
What is scalar multiplication?
How do you perform matrix multiplication manually?
Can you multiply a 2×3 matrix by a 3×2 matrix?
What is a matrix inverse and when does it exist?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.