C
CalcRiver

Matrix Calculator

Perform matrix addition, subtraction, and multiplication. Supports up to 5x5 matrices with automatic dimension validation.

Matrix A

×

Matrix B

×

Matrix Operations

Matrix Multiplication (A × B)

To multiply two matrices, the number of columns in the first matrix (A) must equal the number of rows in the second matrix (B). The resulting matrix will have the dimensions: Rows of A × Columns of B.

Matrix Addition & Subtraction

You can only add or subtract matrices that have the exact same dimensions (same number of rows and columns). The operation is performed element by element.

? Frequently Asked Questions

Yes. The inner dimensions match (3), so multiplication is possible. The result will be a 2x2 matrix.

Generally, no. A × B is not usually the same as B × A. In many cases, B × A isn't even possible if dimensions don't align.

Addition is defined element-wise. If the grids don't overlap perfectly, there is no corresponding element to add to.