Quick answer: For A = [[1,2],[3,4]] and B = [[5,6],[7,8]]: A + B = [[6,8],[10,12]], A x B = [[19,22],[43,50]], and det(A) = 1x4 - 2x3 = -2. Enter your two 2x2 matrices above, pick an operation, and see every step.
Last reviewed: November 2026
Key facts
- Addition is element-wise: add matching positions.
- Multiplication uses row-times-column dot products: C[i][j] = sum of A[i][k] x B[k][j].
- Determinant of [[a,b],[c,d]] is ad - bc.
- Matrix multiplication is not commutative: A x B usually differs from B x A.
A matrix calculator performs arithmetic on two 2x2 matrices: addition, multiplication, and the determinant. Enter the eight values, choose the operation, and get the result matrix or determinant with the working shown step by step.
Matrices are the workhorses of computer graphics, engineering, and data science, but the 2x2 case is where every student meets them first. Addition and the determinant are quick once you see the pattern; multiplication is the tricky one, because it is not the element-wise operation beginners expect. This free tool handles all three operations on 2x2 matrices and shows each step, so you can check homework or learn the mechanics properly.
How to use the matrix calculator
- Enter the four values of Matrix A (top-left, top-right, bottom-left, bottom-right).
- Enter the four values of Matrix B the same way.
- Choose the operation: Add (A+B), Multiply (A x B), or Determinant of A.
- Click Calculate to see the result with step-by-step working.
Matrix formulas for 2x2 matrices
Addition pairs each entry with its twin: top-left with top-left, and so on. Multiplication is richer: each entry of the answer is the dot product of a row of A with a column of B, which is why the inner dimensions must match (for 2x2 times 2x2 they always do). The determinant of [[a,b],[c,d]] is the product of the main diagonal minus the product of the off diagonal, ad - bc. A zero determinant means the matrix is singular: it has no inverse and squashes space flat.
Worked examples
Example 1: addition of A = [[1,2],[3,4]] and B = [[5,6],[7,8]]
Add matching entries: top-left 1 + 5 = 6, top-right 2 + 6 = 8, bottom-left 3 + 7 = 10, bottom-right 4 + 8 = 12. Result: [[6,8],[10,12]].
Example 2: multiplication and determinant of the same matrices
Multiply row by column: c11 = 1x5 + 2x7 = 19, c12 = 1x6 + 2x8 = 22, c21 = 3x5 + 4x7 = 43, c22 = 3x6 + 4x8 = 50, so A x B = [[19,22],[43,50]]. Determinant of A: 1x4 - 2x3 = 4 - 6 = -2.
Matrix operations reference table
| Operation | Rule | Requirement |
|---|---|---|
| A + B | Add entries in matching positions | Same dimensions |
| A x B | Each entry = row of A dot column of B | Columns of A = rows of B |
| det(A) | ad - bc for [[a,b],[c,d]] | Square matrix |
| det = 0 | Singular: no inverse exists | Check before inverting |
| A x I | Identity changes nothing: result is A | I = [[1,0],[0,1]] |
Tips for accurate matrix results
- Label your entries a11, a12, a21, a22 (row then column) before typing, so top-right never lands in bottom-left.
- For multiplication, work one entry at a time: cover the rest of the answer grid and compute a single dot product.
- A negative determinant is perfectly valid; only a zero determinant is a problem (no inverse).
- Remember that A x B and B x A are different calculations: always multiply in the stated order.
Common matrix mistakes to avoid
- Element-wise multiplication: multiplying matching entries is wrong for matrix multiplication. Each answer entry combines a whole row with a whole column.
- Adding det(A) + det(B) to get det(A+B): determinants do not distribute over addition. Compute the sum matrix first, then its determinant.
- det = ad + bc: the off-diagonal product is subtracted, not added. For [[1,2],[3,4]] the answer is -2, not 10.
- Dimension mismatch: in general, A x B needs the column count of A to equal the row count of B (automatic for 2x2 pairs).
Frequently asked questions
How do you add two 2x2 matrices?
Add the entries in matching positions: top-left with top-left, top-right with top-right, and so on. For A = [[1,2],[3,4]] and B = [[5,6],[7,8]], the sum is [[6,8],[10,12]].
How do you multiply two 2x2 matrices?
Each entry of the answer is the dot product of a row of the first matrix with a column of the second. For A x B, the top-left entry is (row 1 of A) dot (column 1 of B) = 1x5 + 2x7 = 19.
What is the determinant of a 2x2 matrix?
For [[a,b],[c,d]] it is ad - bc: the main diagonal product minus the off-diagonal product. For [[1,2],[3,4]] it is 1x4 - 2x3 = -2.
Why is matrix multiplication not commutative?
Because each answer entry mixes a row of the first matrix with a column of the second, swapping the matrices changes which rows meet which columns. In general A x B differs from B x A.
What does a determinant of zero mean?
The matrix is singular: it has no inverse and it collapses 2D space onto a line (or a point). You cannot divide by such a matrix or use it to solve a system uniquely.
How do you find the inverse of a 2x2 matrix?
Swap the main-diagonal entries, change the signs of the off-diagonal entries, then divide everything by the determinant: A^-1 = 1/(ad - bc) x [[d,-b],[-c,a]]. For A = [[1,2],[3,4]], the determinant is -2, so A^-1 = (-1/2) x [[4,-2],[-3,1]] = [[-2,1],[1.5,-0.5]]. Check it: A x A^-1 gives the identity matrix [[1,0],[0,1]]. An inverse exists only when the determinant is not zero.
What is B x A for the same matrices?
Multiply in the reverse order: B x A = [[23,34],[31,46]], because 5x1 + 6x3 = 23, 5x2 + 6x4 = 34, 7x1 + 8x3 = 31 and 7x2 + 8x4 = 46. Compare that with A x B = [[19,22],[43,50]]: every entry differs, which is the numerical proof that matrix multiplication is not commutative.
Related calculators: Quadratic Formula Calculator, Standard Deviation Calculator and Probability Calculator.
Sources
- OpenStax: College Algebra textbook, systems of equations and matrices chapter
- MIT OpenCourseWare: linear algebra course materials, matrix operations reference
Key takeaways
- Bookmark this tool for quick recalculations whenever your inputs change.
- Addition is element-wise; multiplication is row-times-column; det = ad - bc.
- A x B usually differs from B x A, so order matters.
- A zero determinant means no inverse; negative determinants are fine.
- For 2x2 pairs, dimensions always match, so every operation here is valid.

Comments
Leave a comment