Matrix Calculator

LINEAR ALGEBRA · 2×2 & 3×3 MATRICES

Matrix operations & inverses

Calculated on this device

MATRIX A (2 × 2)

Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.

MATRIX B (2 × 2)

Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.
Enter a finite real number between -1e9 and 1e9.

RESULT MATRIX (2 × 2)

1922
4350

Operation A × B completed on 2×2 matrix.

Linear Algebra Exact cofactor determinant and adjugate inverse in double-precision arithmetic

det(A)-2Invertible
Trace tr(A)5Sum of main diagonal

HOW IT WORKS

Matrix operations, determinants & inverses

A square n × n matrix represents a linear transformation. This tool evaluates element-wise sums/differences, row-by-column products, transposes, determinants, and adjugate inverses for 2 × 2 and 3 × 3 matrices.

01

Matrix multiplication (A × B)

Each entry (AB)ᵢⱼ is the dot product of row i of A and column j of B. Note that A × B ≠ B × A in general.

(AB)ᵢⱼ = Σₖ Aᵢₖ · Bₖⱼ
02

Determinant & singularity

For a 2 × 2 matrix, det(A) = ad − bc. For a 3 × 3 matrix, cofactor expansion computes the signed volume scale factor. If det(A) = 0, the matrix is singular.

03

Matrix inverse (A⁻¹)

Whenever det(A) ≠ 0, the unique inverse satisfies A × A⁻¹ = I:

A⁻¹ = adj(A) ÷ det(A)

MATRIX GUIDE

Determinants, transposes & solving linear systems

Why the determinant tells you if a matrix is invertible

Geometrically, |det(A)| measures how much a matrix scales area (in 2D) or volume (in 3D). When det(A) = 0, the transformation squashes space onto a line or plane, losing information—making it impossible to reverse the mapping with an inverse matrix A⁻¹.

Matrix transpose (Aᵀ) and trace

The transpose swaps rows and columns ((Aᵀ)ᵢⱼ = Aⱼᵢ), while the trace sums the main diagonal entries (tr(A) = Σ Aᵢᵢ). Both properties appear throughout statistics, computer graphics, and physics.

Need to solve a second-degree polynomial or round matrix outputs? Try our Quadratic Formula Calculator or Rounding Calculator.

Frequently asked questions

Why is matrix multiplication not commutative?

Because (A × B)ᵢⱼ pairs rows of A with columns of B, reversing the order pairs rows of B with columns of A, which generally produces a different matrix.

What happens if I try to invert a matrix with determinant 0?

Division by det(A) = 0 is undefined. The calculator detects singular matrices and displays an inline error explaining that no inverse exists.

Does transposing a matrix change its determinant?

No. For every square matrix, det(Aᵀ) = det(A).

Can I enter decimals or negative numbers in matrix cells?

Yes. Every cell accepts positive or negative integers, decimals, and scientific notation within ±1e9.

Your inputs are calculated in this browser and are not sent to a server.