← Math Calculators

Matrix Calculator

Use this free matrix calculator to find the determinant and trace of a 2 by 2 matrix. Enter the four entries, a, b, c, and d, to work out both results in seconds. A determinant of zero means the matrix cannot be inverted, while a non-zero one can.

How it works

A 2 by 2 matrix is a square of four numbers, with a and b on the top row and c and d on the bottom row. Its determinant is a × d − b × c, and its trace is a + d, the sum of the numbers on the main diagonal from the top left to the bottom right.

For the matrix with rows 3, 2 and 1, 4, the determinant is 3 × 4 − 2 × 1 = 10, and the trace is 3 + 4 = 7. A determinant of zero means the matrix cannot be inverted, while a non-zero determinant means it can.

The determinant also measures how the matrix scales area: a matrix with determinant 10 stretches any shape it transforms to ten times its area, and a negative determinant flips the shape as well as scaling it. The trace shows up in the matrix's eigenvalues, which describe its stretching directions.

Example: For the matrix with rows 1, 2 and 3, 4, the determinant is 1 × 4 − 2 × 3 = -2.00 and the trace is 1 + 4 = 5.00.

Frequently asked questions

How do I find the determinant of a 2 by 2 matrix?

Multiply a by d and subtract b times c, where a and b are the top row and c and d are the bottom row. Enter the four entries and the calculator works it out.

What is the trace of a matrix?

The trace is the sum of the numbers on the main diagonal, from the top left to the bottom right. For a 2 by 2 matrix it is a plus d, and the calculator shows it next to the determinant.

More Math Calculators

← Back to all calculators