Sign up
Matrix Calculator calculator →

Matrix Calculator guide

The Matrix Calculator handles operations for 2×2, 3×3, and 4×4 matrices, including determinant, transpose, addition, multiplication, inverse, and trace. It displays the result matrix clearly and highlights the calculations.

Worked examples

Find the determinant of a 2×2 matrix

  1. Select the 2×2 size.
  2. Choose the "Determinant" operation.
  3. Enter Matrix A: [[1, 2], [3, 4]].
Result: det(A) = -2

For a 2×2 matrix [[a, b], [c, d]], the determinant is ad - bc. Here: (1×4) - (2×3) = 4 - 6 = -2.

Multiply two 2×2 matrices

  1. Select the "Multiply" operation.
  2. Matrix A: [[1, 2], [3, 4]].
  3. Matrix B: [[5, 6], [7, 8]].
Result: AB = [[19, 22], [43, 50]]

The top-left entry is row 1 of A dot column 1 of B: (1×5) + (2×7) = 19. This is repeated for all four entries.

Find the inverse of a singular matrix

  1. Select the "Inverse" operation.
  2. Enter Matrix A: [[1, 2], [2, 4]].
  3. Click Calculate.
Result: Error: Singular matrix (no inverse)

The determinant is (1×4) - (2×2) = 0. A matrix with a zero determinant collapses space and cannot be reversed, so it has no inverse.

Tips

  • •Matrix multiplication is not commutative; AB does not usually equal BA.
  • •The inverse only exists if the determinant is non-zero.
  • •Use the Identity matrix to reset a matrix without clearing the size.

Frequently asked questions

What is a matrix?
A rectangular array of numbers arranged in rows and columns, used to represent linear transformations or systems of equations.
What is the determinant?
A scalar value that indicates how the matrix scales area (2D) or volume (3D). A determinant of zero means the matrix is singular.
What is a singular matrix?
A matrix whose determinant is zero. It has no inverse.
What is the transpose of a matrix?
A new matrix formed by swapping the rows and columns of the original matrix. The element at (i, j) moves to (j, i).
How do you add matrices?
Add the corresponding entries. Both matrices must have the exact same dimensions.
How do you multiply matrices?
Multiply the rows of the first matrix by the columns of the second. The number of columns in the first must equal the number of rows in the second.
Why is matrix multiplication not commutative?
Because the row-by-column dot product changes depending on which matrix is first. AB and BA often yield different results.
What is the identity matrix?
A square matrix with 1s on the main diagonal and 0s everywhere else. Multiplying by the identity matrix leaves a matrix unchanged (like multiplying a number by 1).
What is the inverse of a matrix?
A matrix that, when multiplied by the original, results in the identity matrix. Not all matrices have inverses.
What is the trace of a matrix?
The sum of the elements on the main diagonal (top-left to bottom-right). It equals the sum of the matrix’s eigenvalues.
Can you divide matrices?
No, division is not directly defined. Instead, you multiply by the inverse of the second matrix (A / B = A × B⁻¹).
What is a symmetric matrix?
A matrix that is equal to its own transpose. The elements mirror perfectly across the main diagonal.
How many sizes does this calculator support?
It supports 2×2, 3×3, and 4×4 matrices, which cover the vast majority of linear algebra coursework and engineering problems.
What are matrices used for?
They are used in computer graphics (transformations), solving systems of equations, statistics (regression), and quantum mechanics.
What is a scalar multiplication?
Multiplying every single entry in the matrix by the same number (the scalar).
What is a zero matrix?
A matrix where every element is zero. It acts like the number 0 (adding it to any matrix changes nothing).
Are the results rounded?
Yes, floating-point results (like in the inverse) are rounded to 4 decimal places to prevent visual clutter.
Can I use this for solving Ax = b?
Yes. If you find A⁻¹, the solution is x = A⁻¹b. However, this tool does not directly take a "b" vector.