Matrix Calculator

A powerful free matrix calculator that supports addition, subtraction, multiplication, determinant, inverse, transpose, and more. Handle matrices up to 10x10.

Full original guide (expanded)

Matrix Calculator

Perform matrix operations including addition, multiplication, determinants, and inverses with step-by-step outputs.

Matrix A

Matrix B

Operations

Result

How to Use the Matrix Calculator

  1. Set Dimensions: Adjust the "Rows" and "Cols" for Matrix A and Matrix B to your desired size. The input grids will update automatically (max 10x10).
  2. Fill in Values: Enter the elements for each matrix. You can use integers (5), decimals (2.5), or fractions (1/2).
  3. Select Operation: Click the button for the operation you want to perform (e.g., [A + B], [A × B], [det(A)]).
  4. View Result: The result will be displayed in the "Result" section. If the operation is mathematically impossible (like adding matrices of different sizes), an error message will appear.

Understanding Matrix Operations

A matrix is a rectangular array of numbers arranged in rows and columns. This calculator supports the fundamental operations of linear algebra.

Matrix Addition and Subtraction (A ± B)

To add or subtract two matrices, they must have the **exact same dimensions**. The operation is performed by adding or subtracting the corresponding elements.

$(A + B)_{ij} = A_{ij} + B_{ij}$
$(A - B)_{ij} = A_{ij} - B_{ij}$

Matrix Multiplication (A × B)

To multiply Matrix A (dimensions $m \times n$) by Matrix B (dimensions $p \times q$), the number of **columns in A ($n$) must equal the number of rows in B ($p$)**. The resulting matrix will have dimensions $m \times q$.

$(AB)_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}$

This means each element $(AB)_{ij}$ is the dot product of the $i$-th row of A and the $j$-th column of B. Note that matrix multiplication is **not commutative** (A × B ≠ B × A).

Determinant of a Matrix (det(A))

The determinant is a scalar value that can only be computed for a **square matrix** (e.g., 2x2, 3x3). It provides important information about the matrix, such as whether it is invertible.

  • For a 2x2 matrix: $\text{det}(A) = ad - bc$
  • For a 3x3 matrix (Cofactor Expansion):
    $\text{det}(A) = a(ei - fh) - b(di - fg) + c(dh - eg)$

Inverse of a Matrix (A⁻¹)

The inverse of a matrix A, denoted $A⁻¹$, is a matrix such that $A \times A⁻¹ = I$ (the identity matrix). An inverse only exists if the matrix is **square** and **non-singular** (its determinant is not zero).

$A^{-1} = \frac{1}{\text{det}(A)} C^T$

Where $C^T$ is the transpose of the cofactor matrix (also known as the adjugate or classical adjoint of A). If $\text{det}(A) = 0$, the matrix is singular and has no inverse.

Transpose of a Matrix (Aᵀ)

The transpose of a matrix is found by swapping its rows and columns. The element at $A_{ij}$ becomes the element at $(A^T)_{ji}$.

Frequently Asked Questions (FAQ)

What is a matrix calculator used for?

What makes a matrix singular?

Is matrix multiplication commutative?

What is an identity matrix?


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted text)
$(A + B)_{ij} = A_{ij} + B_{ij}$ $(A - B)_{ij} = A_{ij} - B_{ij}$
Formula (extracted text)
$(AB)_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}$
Formula (extracted text)
$A^{-1} = \frac{1}{\text{det}(A)} C^T$
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).