Matrix Calculator
English

Matrix size tool

Matrix Multiplication Dimensions Checker

Choose the rows and columns of Matrix A and Matrix B to check whether A × B is defined, what size the result will be, and whether B × A is also possible.

Can These Matrices Be Multiplied?

Matrix A

Current size: 2 × 3

Rows 2
Columns 3

Matrix B

Current size: 3 × 2

Rows 3
Columns 2

A × B

A × B is possible

Matrix A: 2 × 3

Matrix B: 3 × 2

Inner dimensions 3 = 3

Result dimensions 2 × 2

The inner dimensions match, so A × B is defined. The result keeps the rows of A and the columns of B.

B × A

B × A is also possible

Inner dimensions 2 = 2

Result dimensions 3 × 3

The reverse order is defined for these dimensions, but it may produce a different result size.

Common Matrix Size Examples

  • (2 × 3)(3 × 2) → Result: 2 × 2
  • (3 × 3)(3 × 1) → Result: 3 × 1
  • (3 × 1)(1 × 3) → Result: 3 × 3
  • (2 × 2)(2 × 1) → Result: 2 × 1
  • (2 × 3)(2 × 2) → Not defined because 3 ≠ 2

How to Check Matrix Multiplication Dimensions

Check the inner dimensions

For A × B, compare the number of columns in A with the number of rows in B. The product is defined only when those two numbers match.

Read the result size

When A is m × n and B is n × p, the result keeps the rows of A and the columns of B, so A × B is m × p.

Does Matrix Order Matter?

Yes. A × B being possible does not mean B × A is possible. Even when both products are defined, their result dimensions can be different, and matrix multiplication is usually not commutative.

Frequently Asked Questions

Why must the inner dimensions match?

The columns of the first matrix must match the rows of the second matrix because each result entry is built from one row and one column with the same number of terms.

What size is the result of matrix multiplication?

If A is m by n and B is n by p, then A × B is defined and the result size is m by p.

Can A × B exist when B × A does not?

Yes. A × B depends on the columns of A and rows of B, while B × A depends on the columns of B and rows of A.

Does the order of matrix multiplication matter?

Yes. Matrix multiplication order usually matters. Even when both A × B and B × A exist, their result sizes or values can be different.

What matrix sizes can this checker test?

This checker tests row and column counts from 1 to 9, matching the current matrix calculator size controls.