fdrrr

Matrix Calculator

Enter one or two matrices and choose an operation. The calculator works with exact fractions, so inverses and solutions show 1/3 rather than 0.3333, and it lists the row operations used for Gauss–Jordan elimination so you can follow or check your own working. Matrices up to 8 × 8 are supported.

Matrix calculator

Row operation steps

    Linear Algebra Practice Pack

    Printable matrix operations cheat sheet, determinant and inverse practice worksheets with worked answers, a Gauss–Jordan elimination template and a matrix practice log.

    Formats: PDF, DOCX, XLSX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out by Kedop.

    $4.00 USD, one-time

    Secure card checkout by Stripe. Full refund within 7 days — see the refund policy and license.

    What the calculator can do

    OperationRequirementResult
    A + B, A − BSame sizeEntry-by-entry sum or difference
    A × BColumns of A = rows of BMatrix product
    TransposeAny matrixRows become columns
    DeterminantSquareA single number; zero means singular
    InverseSquare, non-zero determinantA⁻¹ with A·A⁻¹ = I
    RREFAny matrixReduced row echelon form
    RankAny matrixNumber of independent rows
    PowerSquareA multiplied by itself n times
    Solve Ax = bb has one entry per rowUnique, none or infinitely many solutions

    Entering matrices

    Type each row on its own line and separate entries with spaces or commas. You can use integers, decimals (0.25) or fractions (3/4); decimals are converted to exact fractions. For a system of equations, put the coefficients in A and the right-hand side in B as a single column. The default example is the system 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3, whose solution is x = 2, y = 3, z = −1.

    Gauss–Jordan elimination

    Most operations here use Gauss–Jordan elimination: three row operations — swapping rows, multiplying a row by a non-zero number, and adding a multiple of one row to another — turn the matrix into reduced row echelon form, with leading 1s and zeros above and below them. Applied to [A | b], it solves linear systems; applied to [A | I], it produces the inverse; and the product of the pivots (with sign changes for swaps) gives the determinant. The steps list shows the operations used, such as “R2 − (−3/2)·R1”.

    Determinants and invertibility

    A square matrix is invertible exactly when its determinant is not zero. The determinant also tells you how the matrix scales area or volume: a 2 × 2 matrix with determinant 3 triples areas; a negative determinant flips orientation. For a 2 × 2 matrix [[a, b], [c, d]], det = ad − bc and the inverse is (1/det)·[[d, −b], [−c, a]].

    Matrix multiplication rules

    Worked example

    For A = [[2, 1, −1], [−3, −1, 2], [−2, 1, 2]] and b = [8, −11, −3], “Solve Ax = b” reduces the augmented matrix to reduced row echelon form and reads off x₁ = 2, x₂ = 3, x₃ = −1. Switching to “Determinant” gives det(A) = −1, confirming the system has a unique solution, and “Inverse” shows A⁻¹ with integer entries because the determinant is ±1.

    Where matrices are used

    Matrices appear throughout science and engineering: solving circuits and structural systems, transforming coordinates in computer graphics, representing networks, running statistics and machine learning, and modelling population or economic changes over time with matrix powers.

    Special matrices

    MatrixProperty
    Identity (I)1s on the diagonal, 0 elsewhere; AI = IA = A
    Zero matrixAll entries 0; A + 0 = A
    DiagonalNon-zero entries only on the diagonal; determinant is the product of the diagonal
    TriangularZeros above or below the diagonal; determinant is the product of the diagonal
    SymmetricA = Aᵀ
    OrthogonalAᵀA = I; its inverse is its transpose
    SingularDeterminant 0; no inverse

    Eigenvalues and beyond

    Many courses move on from determinants and inverses to eigenvalues and eigenvectors, which describe directions a matrix only stretches. For a 2 × 2 matrix, eigenvalues solve λ² − (trace)·λ + det = 0. The determinant equals the product of the eigenvalues and the trace (sum of the diagonal) equals their sum — a handy check once you study them.

    Checking your answers

    Limits and accuracy

    The calculator uses exact rational arithmetic with standard JavaScript numbers, which is precise for typical classroom and textbook matrices. Very large entries or large matrices can overflow the safe integer range; in that case results may lose accuracy. For numerical work with large matrices, specialist software using floating-point methods is more appropriate.

    Privacy

    All calculations run in your browser; nothing is uploaded or stored.

    Frequently asked questions

    How do I find the inverse of a matrix?

    Enter A and choose Inverse; the calculator row-reduces [A | I] to [I | A⁻¹].

    When does a matrix have no inverse?

    When its determinant is zero (it is singular).

    Can I enter fractions?

    Yes, type them like 3/4; results stay exact.

    Why can’t I multiply my matrices?

    The number of columns in A must equal the number of rows in B.

    What is RREF?

    Reduced row echelon form: leading 1s with zeros above and below them.

    What does rank tell me?

    The number of linearly independent rows or columns; a square matrix is invertible when its rank equals its size.

    Why is AB not equal to BA?

    Matrix multiplication combines rows of the first with columns of the second, so swapping the order usually changes the result.

    Can it solve systems with more equations than unknowns?

    Yes; it reports a unique solution, no solution or infinitely many.

    Is my data stored?

    No, it runs in your browser.