Matrix Calculator

🌐 English
A (3×3)
Rows: 3
Cols: 3
B (3×3)
Rows: 3
Cols: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.

Learn Matrix Multiplication

New to matrix multiplication? Start with a simple guide, then practice with step-by-step examples.

Calculation Results

Matrix Multiplication Calculator With Steps (2x2, 3x3, and More)

Use this free matrix multiplication calculator with steps to multiply 2x2 matrices, 3x3 matrices, and larger matrices online. Enter your matrix values, click calculate, and get the result instantly with step-by-step solutions, formulas, and examples. This online tool supports integers, decimals, and negative numbers.

Matrix Multiplication Calculator for 2x2, 3x3, and Larger Matrices

This online matrix multiplication calculator works for 2x2 matrix multiplication, 3x3 matrix multiplication, and larger matrices. Whether you need a matrix multiplication calculator with solution, a step-by-step matrix multiplication example, or a fast way to multiply matrices online free, this tool is designed to help.

  • 2x2 Matrix Multiplication Calculator: Multiply small matrices quickly and check each entry step by step.
  • 3x3 Matrix Multiplication Calculator: Solve larger examples online with clear intermediate steps.
  • Matrix Multiplication With Steps: Understand how each row and column produce the final result.
  • Multiply Matrices Online Free: No signup, no download, instant results.

How to Multiply Matrices: Rules, Formula, and Step-by-Step Method

Matrix multiplication is the core operation in linear algebra. Unlike scalar multiplication, multiplying matrices involves the dot product of rows and columns.

1. The Condition for Multiplication

Can you multiply any two matrices? No. You must check the dimensions first:

The Rule: The number of Columns in the first matrix \( A \) must equal the number of Rows in the second matrix \( B \).

If Matrix \( A \) is size \( m \times n \) and Matrix \( B \) is size \( n \times p \), the resulting Matrix \( C \) will be size \( m \times p \).

$$ (m \times \mathbf{n}) \cdot (\mathbf{n} \times p) \rightarrow (m \times p) $$

2. The Formula

Let \( C = AB \). The element at row \( i \) and column \( j \) in the resulting matrix \( C \) is calculated using the following summation:

$$ c_{ij} = \sum_{k=1}^{n} a_{ik}b_{kj} = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{in}b_{nj} $$

In simple terms: Multiply the elements of Row \( i \) from the first matrix by the corresponding elements of Column \( j \) from the second matrix, then add them up.

Matrix Multiplication Example (Step-by-Step)

To clarify the process, let's multiply two \( 2 \times 2 \) matrices.

Problem: Calculate \( A \times B \).

$$ A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} $$

Calculation Process:

Step 1: Top-Left Element \( c_{11} \)

Dot product of \( A \)'s 1st Row [1, 2] and \( B \)'s 1st Column [5, 7]:

$$ c_{11} = (1 \times 5) + (2 \times 7) = 5 + 14 = \mathbf{19} $$

Step 2: Top-Right Element \( c_{12} \)

Dot product of \( A \)'s 1st Row [1, 2] and \( B \)'s 2nd Column [6, 8]:

$$ c_{12} = (1 \times 6) + (2 \times 8) = 6 + 16 = \mathbf{22} $$

Step 3: Bottom-Left Element \( c_{21} \)

Dot product of \( A \)'s 2nd Row [3, 4] and \( B \)'s 1st Column [5, 7]:

$$ c_{21} = (3 \times 5) + (4 \times 7) = 15 + 28 = \mathbf{43} $$

Step 4: Bottom-Right Element \( c_{22} \)

Dot product of \( A \)'s 2nd Row [3, 4] and \( B \)'s 2nd Column [6, 8]:

$$ c_{22} = (3 \times 6) + (4 \times 8) = 18 + 32 = \mathbf{50} $$

Final Result:

$$ C = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix} $$

Key Properties of Matrix Multiplication

  • Not Commutative (Order Matters): This is the most common mistake. Unlike regular numbers where \( 2 \times 3 = 3 \times 2 \), in matrices: $$ AB \neq BA $$ Changing the order often results in a different value or an undefined operation.
  • Associative Property: $$ (AB)C = A(BC) $$
  • Identity Matrix: Multiplying by the Identity Matrix \( I \) leaves the matrix unchanged: $$ AI = IA = A $$

Frequently Asked Questions (FAQ)

Q: Why do I get a "Dimension Error"?

This happens when the dimensions are incompatible. Ensure the number of columns in the first matrix exactly equals the number of rows in the second matrix. For example, a \( 2 \times 3 \) matrix cannot be multiplied by another \( 2 \times 3 \) matrix.

Q: Is Matrix Multiplication Commutative?

No, matrix multiplication is generally not commutative. This means \( AB \) is usually not equal to \( BA \).

Q: What is this used for in real life?

It is fundamental in Computer Graphics (for 3D rotations and scaling), Physics simulations, Quantum Mechanics, and formatting weights in Neural Networks (AI).

Q: Can this calculator solve 2x2 and 3x3 matrix multiplication?

Yes. This matrix multiplication calculator can solve 2x2, 3x3, and larger matrices as long as the number of columns in the first matrix equals the number of rows in the second matrix. It provides instant results and works for a wide range of matrix sizes.

Q: Does this matrix multiplication calculator show step-by-step solutions?

Yes. This page includes step-by-step explanations, formulas, and worked examples to help you understand how matrix multiplication is performed. You can follow each step to see how rows and columns are combined to produce the final result.

Learn matrix multiplication more easily in just 2 minutes with this free game.

Matrix Multiplication Game