A matrix calculator performs linear algebra operations on rectangular arrays of numbers. From simple addition to complex operations like finding inverses and row-reducing, our calculator handles all standard matrix operations with full step-by-step explanations.
Matrix Calculator
Our Matrix Calculator handles all essential linear algebra operations in one place. Enter matrices up to 4×4, then choose addition, subtraction, multiplication, determinant, inverse, transpose, scalar multiplication, or Gauss-Jordan row reduction. Every operation shows detailed step-by-step working so you can follow the method, verify your work, or learn the process from scratch.
Quick Examples:
Result
—
Result Matrix
Enter values to compute
format_list_numbered Step-by-Step
auto_awesome AI Analysis
Powered by ClaudeEnter your values and calculate to receive AI-powered insights about your results.
grid_on Matrix Formulas
table_chart Size Compatibility
lightbulb Quick Tips
- •A×B ≠ B×A — multiplication order matters
- •det = 0 means singular (no inverse)
- •RREF reveals rank and solution structure
- •(AB)ᵀ = BᵀAᵀ (reverse order)
- •Identity matrix I: A×I = A
How to Use This Calculator
Choose Matrix Size
Select dimensions for Matrix A (and B if needed): 2×2, 3×3, or up to 4×4
Select Operation
Pick from Add, Subtract, Multiply, Transpose, Determinant, Inverse, or RREF
Enter Matrix Values
Fill in each element of Matrix A (and B for binary operations)
View Result & Steps
See the result matrix and step-by-step working showing every calculation
The Formula
Matrix multiplication: C[i][j] = sum of A[i][k] × B[k][j]. For a 2×2 matrix [[a,b],[c,d]]: det = ad−bc. Inverse exists only when det ≠ 0. Transpose swaps rows and columns. Row reduction finds the equivalent RREF using elementary row operations.
C = A × B, det(A) = ad − bc, A⁻¹ = (1/det) × adj(A)
lightbulb Variables Explained
- A, B Input matrices
- det(A) Determinant — scalar value from a square matrix
- A⁻¹ Inverse matrix — A × A⁻¹ = I (identity)
- Aᵀ Transpose — rows and columns swapped
- RREF Reduced Row Echelon Form via Gauss-Jordan
tips_and_updates Pro Tips
Matrix multiplication is NOT commutative: A×B ≠ B×A in general
For multiplication, the number of columns in A must equal the number of rows in B
A matrix has an inverse only if its determinant is non-zero
Transpose of a product: (AB)ᵀ = BᵀAᵀ (note the reversed order)
The determinant of a triangular matrix is the product of its diagonal elements
Row operations (swap, scale, add) don't change the solution set of a linear system
Addition/subtraction requires equal dimensions and works element-wise. Multiplication requires A's columns = B's rows. The determinant is a scalar that indicates invertibility. The inverse undoes multiplication (A × A⁻¹ = I). RREF uses Gauss-Jordan elimination to solve linear systems.
Frequently Asked Questions
Related Tools
View all Math View all arrow_forwardTags
Data sourced from trusted institutions
All formulas verified against official standards.