Matrix Multiplication Calculator

Matrix A
×
[
]
Matrix B
×
[
]
A (2×2) × B (2×2) → Result: 2×2

Embed This Calculator

Copy the code below and paste it into your website:

<!-- Matrix Multiplication Calculator from CalculateQuick.com -->
<iframe 
    src="https://calculatequick.com/embed/v1/matrix-multiplication/" 
    width="100%" 
    height="600"
    style="border: none;" 
    referrerpolicy="no-referrer-when-downgrade"
    title="Matrix Multiplication Calculator">
</iframe>
<p style="font-size: 14px; text-align: center; margin-top: 8px;">
    <a href="https://calculatequick.com/math/matrix-multiplication-calculator/">Matrix Multiplication Calculator</a>
    by <a href="https://calculatequick.com">CalculateQuick</a>
</p>

Tip: Adjust the height="600" value if needed.

WordPress

  1. Edit the page or post where you want the calculator
  2. Add a “Custom HTML” block
  3. Paste the embed code
  4. Update/Publish your page

Wix

  1. Open the Wix Editor
  2. Click “Add” (+) → “Embed Code” → “Embed HTML”
  3. Paste the embed code
  4. Adjust the size as needed
  5. Publish your site

Squarespace

  1. Edit your page
  2. Add a “Code” block
  3. Paste the embed code
  4. Save and publish

Shopify

  1. Go to Online Store → Pages
  2. Edit your page
  3. Click “Show HTML” (<>)
  4. Paste the embed code
  5. Save

Webflow

  1. Add an “Embed” element to your page
  2. Paste the embed code
  3. Publish your site

HTML Website

  1. Open your HTML file in an editor
  2. Paste the embed code where you want the calculator
  3. Save and upload to your server

Cite This Calculator

CalculateQuick. (2026). Matrix Multiplication Calculator. Retrieved from https://calculatequick.com/math/matrix-multiplication-calculator/
"Matrix Multiplication Calculator." CalculateQuick, 2026, https://calculatequick.com/math/matrix-multiplication-calculator/.
CalculateQuick. "Matrix Multiplication Calculator." Accessed January 29, 2026. https://calculatequick.com/math/matrix-multiplication-calculator/.

Share This Calculator

Send Feedback

Found a bug? Have a suggestion? Let us know how we can improve this calculator.

Thank you for your feedback!

How Matrix Multiplication Works

Matrix multiplication combines two matrices to produce a third. Unlike regular multiplication, order matters. A × B usually gives a different result than B × A, and sometimes one is possible while the other isn’t.

The Dimension Rule
Matrix A
m × n
×
Matrix B
n × p
=
Result
m × p
The highlighted values must match for multiplication to be possible

Each element in the result comes from a dot product. For position [i,j] in the result, take row i from matrix A and column j from matrix B, multiply corresponding elements, then sum them.

Multiplication Example: Finding C[1,2]
Matrix A
1
2
3
4
↑ Row 1
×
Matrix B
5
6
7
8
Col 2 ↑
=
Result C
?
22
?
?
C[1,2] = (1 × 6) + (2 × 8) = 6 + 16 = 22

Operation Reference

Multiplication (A × B)
A columns must equal B rows

Combines transformations, solves systems of equations, applies weights in neural networks. Result dimensions: A’s rows × B’s columns.

Addition / Subtraction
Matrices must be identical size

Element-by-element operation. Used for combining datasets, calculating differences between states, superimposing effects.

Transpose (Aᵀ)
Any matrix, result flips dimensions

Rows become columns, columns become rows. Element A[i,j] moves to position [j,i]. Essential for many formulas.

Determinant
Square matrices only

Single number revealing key properties. Zero means singular (no inverse). Non-zero means the transformation is reversible.

Inverse (A⁻¹)
Square matrices with det ≠ 0

Matrix equivalent of division. A × A⁻¹ = Identity. Used to solve AX = B by computing X = A⁻¹B.

Transpose Visualization

The transpose operation flips a matrix over its diagonal. Every row becomes a column, every column becomes a row.

Original (2×3)
1
2
3
4
5
6
Transposed (3×2)
1
4
2
5
3
6
Row 1 (purple) becomes Column 1 · Row 2 (yellow) becomes Column 2

The Identity Matrix

The identity matrix has 1s on the diagonal and 0s everywhere else. It functions like the number 1 in regular multiplication: any matrix multiplied by the identity returns unchanged.

2×2 Identity
1
0
0
1
3×3 Identity
1
0
0
0
1
0
0
0
1
4×4 Identity
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
A × I = A · Multiplying by identity returns the original matrix

Determinant: 2×2 Formula

For a 2×2 matrix, the determinant follows a simple cross-multiplication pattern:

a
b
c
d
=
(a × d)(b × c)
Example
3
8
4
6
= (3 × 6) − (8 × 4) = 18 − 32 = −14

Singular Matrices

A matrix with determinant zero is called singular. It represents a transformation that collapses at least one dimension, losing information that cannot be recovered. Singular matrices have no inverse.

 
When the calculator shows “Matrix is singular”

The determinant equals zero, so no inverse exists. This happens when rows or columns are linearly dependent (one row/column is a multiple of another, or can be created by combining others).

Practical Applications

Computer Graphics

Every rotation, scaling, and translation in 3D graphics is a matrix multiplication. Games chain dozens of transformations per frame.

Machine Learning

Neural networks are chains of matrix multiplications with activation functions. Training involves transposes and gradients.

Systems of Equations

Any system like 2x + 3y = 7 can be written as AX = B. Solving means computing X = A⁻¹B.

Engineering

Structural analysis models forces across elements. Circuit analysis and control systems use matrix equations extensively.

Common Mistakes

Mistake
Correct Understanding
Assuming A × B = B × A
Matrix multiplication is not commutative. Order matters and changes the result.
Multiplying elements directly
Matrix multiplication uses dot products, not element-wise multiplication (that’s a different operation).
Trying to invert non-square matrices
Only square matrices can have inverses. Non-square matrices may have pseudoinverses for specific uses.
Wrong dimension for result
(m×n) × (n×p) = (m×p). Result has first matrix’s rows and second matrix’s columns.

Matrix Properties Reference

Associativity
(AB)C = A(BC)
Distributivity
A(B + C) = AB + AC
Transpose of Product
(AB)ᵀ = BᵀAᵀ
Inverse of Product
(AB)⁻¹ = B⁻¹A⁻¹
Determinant of Product
det(AB) = det(A) × det(B)
Determinant of Inverse
det(A⁻¹) = 1/det(A)

Verifying Your Matrix Calculation

For multiplication: Check that result dimensions are correct. Verify a few elements manually using the dot product method shown above.

For inverse: Multiply your result by the original matrix. You should get the identity matrix (or very close, accounting for rounding).

For determinant: For 2×2, use ad − bc. For larger matrices, expansion along any row or column should give the same value.

 
Quick Sanity Check

When multiplying matrices of all positive numbers, the result should also contain positive numbers. If you see unexpected negatives, check your arithmetic or input values.