Characteristic Polynomial Calculator
With the help of our characteristic polynomial calculator, you can quickly determine the characteristic polynomial of a 2×2, 3×3, or 4×4 matrix.
Do you want to learn how to find the characteristic polynomial? Keep reading, as we first recall what a characteristic polynomial is and then give the formulas as well as examples. In particular, there is a detailed explanation of how to find the characteristic polynomial of a 3x3 matrix.
If you're working with matrices, you might also find our eigenvalue and eigenvector calculator useful.
What is a characteristic polynomial?
We define the characteristic polynomial, p(λ)
, of a square matrix, A
, of size n × n
as:
p(λ):= det(A  λI)
where,
I
is the identity matrix of the sizen × n
(the same size asA
); anddet
is the determinant of a matrix. See the matrix determinant calculator if you're not sure what we mean.
Keep in mind that some authors define the characteristic polynomial as det(λI  A)
. We can obtain that polynomial from the one that we defined above by multiplying it by (1)ⁿ
. Hence, those polynomials coincide if n
is even. If n
is odd, you can go from one polynomial to the other by changing all their coefficients to opposite numbers (i.e., changing all of their signs). However, as long as we are concerned with the roots (i.e., the eigenvalues of A
), it doesn't matter which definition you use.
As you now know what a characteristic polynomial is, why not look at some examples of how to find the characteristic polynomial?
How to use this characteristic polynomial calculator?
You don't need to be a math expert to use the characteristic polynomial calculator. Just follow steps below:
 Tell us the size of the matrix for which you want to find the characteristic polynomial.
 Enter all the coefficients of your matrix  row by row.
 Our characteristic polynomial calculator works as fast as lightning  the characteristic polynomial of your matrix appears at the bottom! ⚡
 Should you want to use the alternative definition of a characteristic polynomial, go to the
advanced mode
.
Characteristic polynomial of a 2×2 matrix
The determinant of
is equal to
(a  λ)(d  λ)  bc = λ^{2}  (a + d)λ + (ad  bc)
This is because, to find the determinant of a 2×2 matrix, you need to multiply the elements from its upperleft and bottomright corners and subtract the product of the coefficients from the upperright and bottomleft corners.
Observe that we can write the characteristic polynomial of a 2×2 matrix A
as:
λ^{2} − tr(A)λ + det(A),
where,
tr(A)
is the trace ofA
, i.e., the sum of the diagonal elements ofA
.
Example
Let us take a look at an example. We will find the characteristic polynomial of the following matrix:
As we explained in the first section, we need to calculate the determinant of
We have
(2λ)(3λ)  3 * 4 = λ^{2}  5λ  6
Alternatively, we might have computed tr(A) = 2 + 3 = 5
and det(A) = 2 * 3  3 * 4 = 6
.
Characteristic polynomial of a 3x3 matrix
Before we give you the general formula, let's solve an example.
We will find the characteristic polynomial of
We need to calculate the determinant of
With the help of the
, we obtain:λ(3  λ)(2  λ) + 1×0×1 + 2×2×(1)  1×(3  λ)×2  (1)×0×(λ)  (2  λ)×2×1
which simplifies to:
λ^{3} + 5λ^{2}  2λ  14
In general, the characteristic polynomial of a 3x3 matrix:
reads:
λ^{3} + (a_{1} + b_{2} + c_{3})λ²  (a_{1}b_{2}  a_{2}b_{1} + a_{1}c_{3}  a_{3}c_{1} + b_{2}c_{3}  b_{3}c_{2})λ + (a_{1}b_{2}c_{3}  a_{2}b_{3}c_{1} + a_{3}b_{1}c_{2}  a_{3}b_{2}c_{1}  a_{1}b_{3}c_{2}  a_{2}b_{1}c_{3})
We see that the coefficient of λ²
is just tr(A)
, and the intercept equals det(A)
. Moreover, the coefficient of λ
is the sum of all of the 2x2 principal minors of A
. This is a part of the general rule, as we will explain in the next section.
How to find the characteristic polynomial of larger matrices?
In general, the characteristic polynomial of an n x n
matrix A
has the form:
(1)^{n}×λ^{n} + (1)^{n1}×S_{1}×λ^{n1} + ... + (1)^{k}×S_{nk}×λ^{k} + ... + S_{n}
where,
 S_{k} is the sum of all
k x k
ofA
fork = 0, ..., n
. In particular, S_{1} = tr(A) and S_{n} = det(A).
As you can see, it can be quite tedious to compute the characteristic polynomial by hand. That's why we've created this characteristic polynomial calculator! 😎
Properties of the characteristic polynomial of a matrix
Here are some useful properties of the characteristic polynomial of a matrix:

A matrix is invertible (and so has full rank) if and only if its characteristic polynomial has a nonzero intercept. To find the inverse, you can use Omni's inverse matrix calculator.

The degree of an eigenvalue of a matrix as a root of the characteristic polynomial is called the algebraic multiplicity of this eigenvalue.

The matrix,
A
, and its transpose,Aᵀ
, have the same characteristic polynomial:det(A  λI) = det(A^{T}  λI)

If two matrices are similar, then they have the same characteristic polynomial. However, the opposite is not true: two matrices with the same characteristic polynomial need not be similar!
Example: The following two matrices both have a characteristic polynomial equal to
(λ  2)²
, but they are not similar since the right one is diagonalizable (well, in fact it is diagonal) and the left one is not:
 The Cayley–Hamilton theorem says that every matrix satisfies its own characteristic equation. More precisely: by replacing
λ
byA
in the characteristic polynomial, we obtain the zero matrix (the intercept gets multiplied by the identity matrix).
Example:
We know that λ²  5λ  6
is the characteristic polynomial of
It follows that A²
is equal to
and 5A
is equal to
hence, A²  5A
is equal to
i.e., to 6I
, and so A²  5A  6I
is indeed the zero matrix.
A  = 
