CalculatorWallah logoCalculatorWallah

Matrix Calculator

Calculate matrix multiplication, addition, subtraction, scalar multiplication, transpose, determinant, inverse, and RREF with dimension checks.

Last Updated: May 2026

Enter rows on separate lines. Separate entries with spaces, commas, semicolons, or tabs.

A x B

3 x 3

A Dimensions

3 x 3

B Dimensions

3 x 3

Trace

71

Result matrix

10	3	14
28	9	32
47	15	52
DetailValue
Formulac_ij = sum(a_ik x b_kj)
Rows in result3
Columns in result3
Minimum entry3
Maximum entry52
StepExplanation
1A is 3 x 3 and B is 3 x 3, so the product is 3 x 3.
Dimensions

Addition requires matching dimensions. Multiplication requires columns of A to match rows of B.

Determinants

Determinants and inverses only apply to square matrices.

RREF

RREF uses row operations and is useful for solving systems and checking rank.

Numerical Linear Algebra Notice

This calculator uses decimal arithmetic and rounding for display. Very ill-conditioned or nearly singular matrices may need exact symbolic tools or specialized numerical software for final coursework, engineering, or research use.

Reviewed For Methodology, Labels, And Sources

Every CalculatorWallah calculator is published with visible update labeling, linked source references, and founder-led review of formula clarity on trust-sensitive topics. Use results as planning support, then verify institution-, policy-, or jurisdiction-specific rules where they apply.

Reviewed By

Jitendra Kumar, Founder & Editorial Standards Lead, oversees methodology standards and trust-sensitive publishing decisions.

Review editor profile

Topic Ownership

Sales tax and tax-sensitive estimate tools, Education and GPA planning calculators, Health, protein, and screening-formula pages, Platform-wide publishing standards and methodology

See ownership standards

Methodology & Updates

Page updated May 2026. Trust-critical pages are reviewed when official rates or rules change. Evergreen calculator guides are checked on a recurring quarterly or annual cycle depending on topic volatility.

How to Use the Matrix Calculator

Choose the matrix operation, then paste Matrix A and Matrix B when needed. Put each row on its own line and separate entries with spaces, commas, semicolons, or tabs.

Use determinant and inverse modes for square matrices. Use RREF mode for row reduction or augmented systems where constants appear in the final column.

  1. Step 1: Choose an operation

    Select addition, subtraction, multiplication, scalar multiplication, transpose, determinant, inverse, or RREF.

  2. Step 2: Enter matrix rows

    Type each row on a new line and separate entries consistently.

  3. Step 3: Check dimensions

    Use the result cards and error messages to confirm the operation is valid.

  4. Step 4: Review the output

    Read the result matrix, scalar output, formula, and row-operation notes.

How This Matrix Calculator Works

Element-wise operations combine matching matrix entries. Matrix multiplication uses row-by-column dot products, so the inner dimensions must match.

Determinant, inverse, and RREF calculations use Gaussian-elimination style row operations. Inverse mode augments Matrix A with the identity matrix and row-reduces to isolate the inverse.

Results are rounded for readability, and very small values near zero are displayed as zero to reduce numerical noise.

Matrix Operation Guide

Matrix Operation Rules

OperationRequirementMeaning
Addition / subtractionsame dimensionsCombine matching entries element by element.
Multiplicationcolumns of A = rows of BEach result entry is a row-by-column dot product.
Scalar multiplyany matrixMultiply every entry by the same scalar.
Transposeany matrixRows become columns and columns become rows.
Determinantsquare matrix onlyReturns a scalar used for invertibility and scaling checks.
Inversesquare, nonsingular matrixA times A inverse equals the identity matrix.
RREFany rectangular matrixUses row operations to simplify a matrix or augmented system.

Input Format

Input partRuleExample
RowsPut each matrix row on its own line.Example: first row on line 1, second row on line 2.
ColumnsSeparate entries with spaces, commas, semicolons, or tabs.Example: 1 2 3 or 1, 2, 3.
DecimalsDecimal entries are accepted.Results are rounded for display.
Augmented systemsUse RREF mode with constants as the final column.Useful for linear systems.

Most matrix mistakes are dimension mistakes. Check rows and columns before doing multiplication, and remember that A x B usually differs from B x A.

For equation-level algebra, use the math equation solver. For numeric checks around entries or determinants, use the scientific calculator.

Keep the research moving with Scientific Calculator, Math Equation Solver, Statistics Calculator, and Probability Calculator.

Frequently Asked Questions

It supports addition, subtraction, multiplication, scalar multiplication, transpose, determinant, inverse, and reduced row echelon form.

Matrix A can multiply matrix B when the number of columns in A equals the number of rows in B.

A matrix must be square and nonsingular to have an inverse. If the determinant is zero or nearly zero, the inverse is not available.

Reduced row echelon form is used to simplify matrices, solve systems of linear equations, and inspect pivot structure.

Yes. Use RREF mode and include the constants as the final column of Matrix A.

Related Calculators

Sources & References

  1. 1.OpenStax Algebra and Trigonometry - Gaussian Elimination(Accessed May 2026)
  2. 2.NIST Engineering Statistics Handbook - Determinant and Eigenstructure(Accessed May 2026)
  3. 3.NIST JAMA Matrix Class Reference(Accessed May 2026)