Calculator Need
Categories

Math Calculators

Matrix Calculator

Add, subtract and multiply 2×2 matrices, or find a determinant and inverse — each entry worked out and shown.

Matrix A

Matrix B (used by Add, Subtract and Multiply)

Formulas: for A = [[a, b], [c, d]], det(A) = ad − bc, and A⁻¹ = (1 ÷ det) × [[d, −b], [−c, a]]. Matrix multiplication takes row × column dot products.

How to use the matrix calculator

  1. Enter the entries of matrix A, and of matrix B if the operation needs it.
  2. Pick the operation from the dropdown — Add, Subtract, Multiply, Determinant of A or Inverse of A.
  3. Press “Calculate” to see the result matrix or value.

Matrix calculation example

For A = [[2, 1], [5, 3]]: det(A) = 2 × 3 − 1 × 5 = 1, so A has an inverse: A−1 = [[3, −1], [−5, 2]]. Multiplying A by A−1 gives the identity matrix.

Tips for using the matrix calculator

  • Matrices can be multiplied only when the first has as many columns as the second has rows.
  • A × B is usually not equal to B × A.
  • A matrix with determinant 0 has no inverse; its rows are linearly dependent.

Matrix calculator: common questions

How is matrix multiplication worked out?
Each entry of A × B is the dot product of a row of A with a column of B: (A × B)₁₁ = a₁₁×b₁₁ + a₁₂×b₂₁. Order matters — A × B is usually not B × A.
When does a matrix have no inverse?
When its determinant is zero. A 2×2 matrix is invertible only if ad − bc ≠ 0; such a matrix is called singular.
What is the determinant used for?
It tells whether a matrix is invertible, and it appears in Cramer's rule for solving systems of equations. For a 2×2 matrix it is ad − bc.
Is my input stored?
No. The calculation runs in your browser.
What are matrices used for?
Solving systems of equations, computer graphics transformations, statistics and economics models.