This **matrix calculator** can help you perform multiplication, addition or subtraction of two matrices no matter of their type in regard of the number of columns and rows (2x2 3x3 4x4). You can learn more about it below the form.

## How does this matrix calculator work?

This *matrix calculator* allows you perform **any of the following matrix calculations** between 2 matrices having maximum 4 columns and 4 rows:

1. **Matrix multiplication** between A which is a matrix with “r” rows and “m” columns (r x m) and B which is a matrix with “s” rows and “n” columns. The result of the multiplication A x B is a matrix called C defined by “r” rows and “n” columns (r x n).

2.** Matrix addition **between two matrices (A, B) which should have the same type in regard of the number of columns and rows. The result of the addition A + B is a matrix C having the same number of rows and columns as the initial matrices, while its entries are obtained by simply adding the two corresponding entries of the initial matrices.

3.** Matrix subtraction **between two matrices (A, B) which should have the same number of rows & columns in order to allow this operation. The result of the subtraction A - B is a matrix C having the same number of rows and columns, while its entries are obtained by subtracting the two linked entries of the initial matrices.

This matrix calculator *can support* both positive and negative numbers, with or without decimals *and even fractions*. In order to input fraction numbers you have to use "/" sign: for instance you can input 1/2 (which is a half or 0.5 in decimal format).