Matrix Calculator: Determinant and Inverse

Type the entries in the grid or write the matrix, then choose determinant or inverse.

Example problem, solved below. Type your own above.

Answer

Determinant
det⁡A=5\det A = 5

Checked numerically before it is shown

Step-by-step solution

Solve by

Formula ad − bc

  1. Determinant formula

    For a 2×2 matrix, the determinant is ad − bc:

    det⁡A=ad−bc=2⋅3−1⋅1=5\det A = ad - bc = 2 \cdot 3 - 1 \cdot 1 = 5

Try an example

About this solver

How to use

  1. Fill the grid, or type the matrix as [[1, 2], [3, 4]] or [1 2; 3 4].
  2. Entries can be integers, decimals or fractions such as 1/2.
  3. Add the word inverse, or ^-1, to get the inverse instead of the determinant.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

A determinant is found by expanding along the row or column with the most zeros, by the rule of Sarrus for 3×3, or by row reduction to a triangular matrix.

An inverse is found with the adjugate (the transposed cofactor matrix divided by the determinant) or by Gauss–Jordan elimination on [A | I]. A matrix with determinant 0 has no inverse.

Frequently asked questions

Which methods are shown?

For a determinant: the ad − bc formula or cofactor expansion, the rule of Sarrus and row reduction. For an inverse: the adjugate and Gauss–Jordan elimination. Every method ends with the same exact answer.

Why does my matrix have no inverse?

A square matrix is invertible only when its determinant is not 0. When the determinant is 0 the solver says so and shows how the determinant was found.

Which sizes are supported?

2×2 and 3×3 matrices with numeric entries. Entries with letters are not supported yet.