Matrix Calculator Online — Multi-Dimension Algebra, RREF, Determinants & Eigenvalues

Free online matrix calculator for M×N linear algebra. Calculate matrix multiplication, inverses, determinants, rank-nullity, eigenvalues, RREF Gauss-Jordan, and linear systems Ax=b with exact fractions and step-by-step derivations.

⚡ Interactive Calculation Engine Active

Please enable JavaScript in your browser to run live computations, 2D envelope diagrams, and export PDF reports.

How to Use Matrix Calculator

  1. Select your calculation mode: Arithmetic (A+B, A×B, Hadamard, Kronecker), Properties (det, A⁻¹, rank, trace, powers), Decompositions (RREF, Eigenvalues, LU, QR, Cholesky), Linear Systems (Ax=b), or 2D Transformation Visualizer.
  2. Configure Matrix A and Matrix B dimensions from 1×1 up to 6×6 using the row and column selectors, or load a preset (Identity, Symmetric, 2D Rotation, Hilbert, Markov).
  3. Enter numeric coefficients or fractions into the matrix input cells.
  4. Toggle between Decimal and Exact Rational Fraction (a/b) display modes.
  5. Inspect the computed solution matrix, scalar values, 2D geometric transformation canvas, and step-by-step Gaussian derivations.
  6. Export the resulting matrix as a CSV file or copy polyglot code in LaTeX, Python (NumPy), MATLAB/Octave, or JSON array format.

Matrix Algebra, Spatial Transformations & Linear Systems

Matrices are the bedrock of computational mathematics, artificial intelligence, computer graphics, structural mechanics, quantum physics, and economic modeling. A matrix represents a linear transformation between vector spaces, encoding rotations, scalings, shears, projections, and coordinate changes.

Matrix Decompositions & Modern Numerical Linear Algebra

Matrix factorizations allow decomposing complex operators into simpler, computationally efficient components. LU Decomposition (A = LU) accelerates solving multiple linear systems with identical coefficients. QR Decomposition (A = QR) produces an orthogonal matrix Q and upper-triangular matrix R for stable least-squares regression. Cholesky Decomposition (A = LLᵀ) provides an ultra-fast square-root factorization for symmetric positive-definite covariance and stiffness matrices.

Frequently Asked Questions

What is a matrix determinant and why is it important?
The determinant (det A or |A|) is a scalar value calculated exclusively for square matrices (n×n). Geometrically, it represents the scaling factor of the transformation on volume or area (e.g., in 2D it is the signed area of the transformed unit square). Algebraically, a matrix is invertible if and only if its determinant is non-zero (det A ≠ 0). A determinant of zero indicates a singular, rank-deficient matrix whose columns are linearly dependent.
What is the condition for matrix multiplication A × B?
Two matrices A (m×n) and B (p×q) can be multiplied (A × B) if and only if the number of columns in A equals the number of rows in B (n = p). The resulting product matrix C has dimension m×q, where each entry C[i][j] is the dot product of row i from A and column j from B.
What is Reduced Row Echelon Form (RREF) and Gauss-Jordan elimination?
Reduced Row Echelon Form (RREF) is the unique canonical form of a matrix obtained via elementary row operations (row swapping, row scaling, and row addition). In RREF, the leading entry (pivot) of every non-zero row is 1, each pivot is strictly to the right of the pivot in the row above, all entries in pivot columns other than the pivot itself are 0, and all rows consisting entirely of zeros are at the bottom. RREF is used to determine matrix rank, find bases for column and null spaces, and solve systems of linear equations.
What does the Rank-Nullity Theorem state?
For any m×n matrix representing a linear map from an n-dimensional vector space, the Rank-Nullity Theorem states that rank(A) + nullity(A) = n (the number of columns). The rank is the dimension of the column space (image/range), while the nullity is the dimension of the null space (kernel, solutions to Ax = 0).
What are eigenvalues and eigenvectors in linear algebra?
Given a square matrix A, a non-zero vector v is an eigenvector and λ is its corresponding eigenvalue if Av = λv. This means the linear transformation A acts on v purely by scaling it by a factor of λ without changing its spatial direction. Eigenvalues are calculated by finding the roots of the characteristic polynomial det(A - λI) = 0.
How does this calculator solve linear systems of equations (Ax = b)?
The calculator constructs the augmented matrix [A | b] and performs Gauss-Jordan elimination into RREF. According to the Rouché–Capelli theorem: if rank(A) < rank([A|b]), the system is inconsistent (no solution); if rank(A) = rank([A|b]) = n, the system has a unique solution vector; if rank(A) = rank([A|b]) < n, there are infinitely many solutions parameterized by n - rank(A) free variables.