Matrix calculator (up to 4 × 4)

Type each matrix row by row: numbers in a row separated by spaces, rows by “;” or a new line.

Matrix calculator (up to 4 × 4)

Example: 1 2; 3 4

Result

2 × 2Result size (rows × columns)

Row 1
[ 0.6 -0.7 ]
Row 2
[ -0.2 0.4 ]
Determinant
10
Condition number (1-norm)
14.3

Matrix calculator (up to 4 × 4)

Inputs

Operation
Inverse of A
Matrix A
4 7; 2 6

How it is calculated

Sum and difference: entry by entry, both matrices must have the same size.

Result

Result size (rows × columns)

2 × 2
Row 1
[ 0.6 -0.7 ]
Row 2
[ -0.2 0.4 ]
Determinant
10

How it is calculated

  1. Sum and difference: entry by entry, both matrices must have the same size.
  2. Product A × B: the number of columns of A must equal the number of rows of B.
  3. Determinant and inverse by Gauss–Jordan elimination with partial pivoting.
  4. Condition number = ‖A‖₁ × ‖A⁻¹‖₁: the larger it is, the less reliable the inverse.

Example

A = [4 7; 2 6]: determinant 10, inverse [0.6 −0.7; −0.2 0.4], condition number 14.3.

Good to know

  • Maximum size 4 × 4. Every row must have the same number of entries.
  • A matrix with a zero determinant (singular) has no inverse.
  • Decimal arithmetic: very small values (about 10⁻¹²) are rounded to 0.

When to use it

  • Check linear algebra exercises and calculations.
  • Find the determinant or inverse of a small matrix.
  • Solve a small system of linear equations by multiplying the inverse by the column of constants.

Frequently asked questions

Is A × B the same as B × A?

Usually not. Matrix products depend on order, and one of them may not even exist when the sizes do not match.

How can I check an inverse?

Multiply the matrix by its inverse. The result should be the identity matrix, with 1 on the diagonal and 0 elsewhere.

What does the determinant say about a system of equations?

If it is not 0, the system has exactly one solution. If it is 0, there is either no solution or infinitely many.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.