Przejdź do treści
Liczbnik
Current for 2026How we verify data: Methodology

2x2 Matrix Calculator

The matrix calculator allows you to perform basic operations on 2x2 matrices: addition, subtraction and multiplication. It also automatically calculates the determinants of both input matrices.

Na tej stronie

How to use the calculator?

Enter the elements of matrix A (a11, a12, a21, a22) and matrix B (b11, b12, b21, b22), select the operation and click Calculate. The result will appear as matrix C along with determinants.

Usage example

Multiply matrix A = [[1,2],[3,4]] by B = [[5,6],[7,8]]. Result: c11 = 1*5+2*7 = 19, c12 = 1*6+2*8 = 22, c21 = 3*5+4*7 = 43, c22 = 3*6+4*8 = 50. Determinant of A = 1*4-2*3 = -2.

Frequently asked questions

What is a 2x2 matrix?

A 2x2 matrix is an arrangement of numbers in 2 rows and 2 columns. It is the simplest example of a square matrix used in linear algebra.

How do you multiply 2x2 matrices?

Matrix multiplication proceeds row by column. Element c11 = a11*b11 + a12*b21, c12 = a11*b12 + a12*b22, c21 = a21*b11 + a22*b21, c22 = a21*b12 + a22*b22.

What is the determinant of a matrix?

The determinant of a 2x2 matrix is a scalar value computed as det(A) = a11*a22 - a12*a21. It determines, among other things, whether the matrix is invertible.

A matrix is singular (non-invertible) when its determinant equals 0. This means the system of linear equations described by the matrix has no unique solution.

No, matrix multiplication is not commutative. In general A*B ≠ B*A. The order of factors in matrix multiplication is essential to the result.

Matrices are added element by element: each element of the result matrix is the sum of the corresponding elements of the component matrices. Both factors must have the same dimensions.

The 2x2 identity matrix has 1s on the diagonal and 0s elsewhere: [[1,0],[0,1]]. It is the neutral element of matrix multiplication — A*I = I*A = A.

For matrix [[a,b],[c,d]] the inverse is (1/det)*[[d,-b],[-c,a]], where det = a*d - b*c. The inverse exists only when the determinant is non-zero.

Matrices are used in computer graphics (3D transformations), cryptography, statistics, quantum physics, machine learning and for solving systems of linear equations.

Transposition swaps rows and columns (a12 swaps with a21), while the inverse matrix satisfies A*A⁻¹ = I. These are different mathematical operations.

The calculator results are indicative and intended for educational purposes only. The calculator does not constitute mathematical or scientific advice.

  • New

    Percentage calculator

    Calculate the percentage of a number, a percentage increase and a percentage decrease. Free percentage calculator.

    Math calculators
  • New

    Area of Geometric Shapes Calculator

    Calculate the area and perimeter of geometric shapes online: square, rectangle, triangle, circle, trapezoid, rhombus, regular hexagon and ellipse.

    Math calculators
  • New

    Triangle Calculator

    Calculate triangle area, perimeter and angles using Heron's formula. Enter three sides or two sides and an angle — free geometry calculator online.

    Math calculators
  • New

    Compound Interest Calculator

    Calculate final capital with compound interest. Enter annual rate, term and compounding frequency — free investment calculator with PLN result online.

    Math calculators

See all calculators: Math calculators →

Result matrix C2C[1,1]
C[1,2]
1
C[2,1]
1
C[2,2]
3
Determinant det(A)
1
Determinant det(B)
5