Matrix Multiplication Calculator (2×2)
Multiply two 2×2 matrices.
About Matrix Multiplication Calculator (2×2)
Matrix multiplication: element (i,j) of the product is the dot product of row i of A and column j of B.
$$AB = \begin{pmatrix} a_{11}b_{11}+a_{12}b_{21} & \cdots \\ \cdots & \cdots \end{pmatrix}$$
How to use this calculator
- Enter the four numbers for the first \(2\\times 2\) matrix and the four numbers for the second \(2\\times 2\) matrix.
- Check that the matrices are both \(2\\times 2\), because this tool is made for that size.
- Click calculate to multiply the matrices and get the product matrix.
- Review the displayed result and compare it with the formula if you want to understand each entry.
The formula explained
If the first matrix is \(A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}\) and the second is \(B = \begin{pmatrix} b_{11} & b_{12} \\ b_{21} & b_{22} \end{pmatrix}\), then the calculator computes \(AB\) by taking row by column products. Each entry of the product matrix is a sum of two products.
- \(a_{11}\) = top left entry of the first matrix
- \(a_{12}\) = top right entry of the first matrix
- \(a_{21}\) = bottom left entry of the first matrix
- \(a_{22}\) = bottom right entry of the first matrix
- \(b_{11}\) = top left entry of the second matrix
- \(b_{12}\) = top right entry of the second matrix
- \(b_{21}\) = bottom left entry of the second matrix
- \(b_{22}\) = bottom right entry of the second matrix
Step by step method
- Write the first row of \(A\) and the first column of \(B\), then multiply matching entries and add: \(a_{11}b_{11} + a_{12}b_{21}\).
- Use the first row of \(A\) and the second column of \(B\) for the top right entry: \(a_{11}b_{12} + a_{12}b_{22}\).
- Repeat with the second row of \(A\) to get the bottom row: \(a_{21}b_{11} + a_{22}b_{21}\) and \(a_{21}b_{12} + a_{22}b_{22}\).
Worked example
Problem. Multiply \(A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\) and \(B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}\).
- Top left entry: \(1 \cdot 5 + 2 \cdot 7 = 5 + 14 = 19\).
- Top right entry: \(1 \cdot 6 + 2 \cdot 8 = 6 + 16 = 22\). Bottom left entry: \(3 \cdot 5 + 4 \cdot 7 = 15 + 28 = 43\). Bottom right entry: \(3 \cdot 6 + 4 \cdot 8 = 18 + 32 = 50\).
- So the product is \(AB = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}\).
Answer. \(AB = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}\)
Tips and common mistakes
- Matrix multiplication is not done entry by entry, so do not multiply \(a_{11}\) with \(b_{11}\) alone and stop there, you must use a row and a column.
- The order matters, so usually \(AB \\neq BA\). Always keep the first matrix on the left and the second on the right.
Frequently asked questions
How do I multiply two 2x2 matrices with this calculator?+
Enter the four entries of the first matrix and the four entries of the second matrix, then calculate. The tool multiplies rows of the first matrix by columns of the second matrix to produce the 2x2 product.
What does the matrix multiplication formula mean for a 2x2 matrix?+
Each entry in the result comes from a dot product. For example, the top left entry is a11b11 + a12b21, which means take the first row of A and the first column of B, multiply matching entries, and add them.
Why is matrix multiplication not the same as multiplying numbers?+
Matrix multiplication is not commutative, so AB is usually different from BA. The order matters because the rows of the first matrix must match the columns of the second matrix.
What if one of my entries is zero or negative?+
That is completely fine, because the calculator handles zeros, negatives, and fractions the same way. Just be careful with signs when you multiply and add the terms for each entry.
Can I use this calculator to check whether two matrices commute or to find a determinant?+
You can use it to compare AB and BA to see whether the matrices commute, but it does not directly compute determinants. For determinants, you would use a different tool because that is a separate calculation.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.