Cholesky Decomposition Calculator

Enter your symmetric positive-definite matrix (2×2, 3×3, or 4×4) and the Cholesky Decomposition Calculator computes the lower triangular matrix L such that A = L × Lᵀ. Input each matrix element by row, select your matrix size, and get the full Cholesky factorization with all L matrix entries displayed, plus a validity check confirming whether decomposition is possible.

Select the size of your square matrix.

Results

L[1][1]

--

L[2][1]

--

L[2][2]

--

L[3][1]

--

L[3][2]

--

L[3][3]

--

L[4][1]

--

L[4][2]

--

L[4][3]

--

L[4][4]

--

det(A)

--

Decomposition Status

--

Lower Triangular Matrix L — Non-zero Elements

Results Table

Frequently Asked Questions

What is the Cholesky decomposition?

The Cholesky decomposition factors a symmetric positive-definite matrix A into the product A = L × Lᵀ, where L is a lower triangular matrix. It is named after French military officer André-Louis Cholesky and is widely used in numerical linear algebra for solving systems of equations and simulations.

What is a matrix decomposition?

A matrix decomposition (or matrix factorization) expresses a matrix as a product of two or more matrices with special properties. Just as the number 16 can be written as 4×4 or 2×8, a matrix A can be factored into simpler component matrices — making computations like solving linear systems much more efficient.

How do you determine whether a matrix has a Cholesky decomposition?

A matrix must be symmetric (A = Aᵀ) and positive-definite (all eigenvalues are strictly positive) to have a Cholesky decomposition. Equivalently, all leading principal minors (determinants of the top-left sub-matrices) must be positive. If the algorithm encounters a negative value under a square root, the matrix is not positive-definite and decomposition fails.

How do you calculate the Cholesky decomposition step by step?

Start from the top-left element: L[i][j] = (A[i][j] − Σ L[i][k]×L[j][k]) / L[j][j] for i > j, and L[i][i] = √(A[i][i] − Σ L[i][k]²) for diagonal entries. Compute entries column by column, filling in only the lower triangle. All upper-triangle entries of L are zero.

What are the applications of the Cholesky decomposition?

Cholesky decomposition is used in solving systems of linear equations, Monte Carlo simulations (generating correlated random variables), optimization (especially quadratic programming), kalman filters, and finite element analysis. It is roughly twice as fast as LU decomposition for symmetric positive-definite matrices.

What does the Cholesky decomposition do?

It splits a symmetric positive-definite matrix A into A = L × Lᵀ, producing a lower triangular matrix L. This factored form makes it much cheaper to solve Ax = b (solve Ly = b then Lᵀx = y), compute determinants (det(A) = (det(L))²), and generate correlated multivariate random samples.

What is a symmetric positive-definite matrix?

A symmetric matrix satisfies A = Aᵀ (the element at row i, column j equals the element at row j, column i). It is positive-definite if xᵀAx > 0 for every non-zero vector x — equivalently, all its eigenvalues are strictly positive. These properties together guarantee that the Cholesky decomposition exists and is unique.

How is Cholesky decomposition different from LU decomposition?

LU decomposition works on general square matrices, factoring A into a lower triangular L and upper triangular U. Cholesky decomposition is a specialization for symmetric positive-definite matrices and exploits that symmetry so that U = Lᵀ — requiring roughly half the arithmetic operations and storage, making it more efficient in those cases.

More Math Tools