Cholesky Decomposition Calculator
Instructions: Use this Cholesky Decomposition Calculator to find the decomposition for a provided matrix. First choose the desired matrix size (up to \(5 \times 5\) )
More About the Cholesky Decomposition
This calculator factors a Hermitian, positive-definite matrix into a lower triangular matrix and its conjugate transpose, saving you the manual arithmetic of the Cholesky algorithm.
Instead of grinding through square roots and back-substitution by hand, you enter the matrix and let the tool return the triangular factor directly.
What Does Cholesky Decomposition Actually Do?
Breaking A into L and L^T
Cholesky decomposition rewrites a matrix \(A\) as the product of a lower triangular matrix \(L\) and its transpose (or conjugate transpose for complex entries):
\[A = LL^T\]Every entry above the main diagonal of \(L\) is zero, which is what makes the factorization useful: triangular matrices are easy to work with in later computations, such as solving linear systems or computing determinants.
Because \(L^T\) is just the mirror image of \(L\), the whole decomposition is stored compactly, only the entries of \(L\) need to be reported.
Why Positive-Definite and Hermitian Matters
The calculator only accepts matrices that are Hermitian (equal to their own conjugate transpose, or simply symmetric for real matrices) and positive-definite (all eigenvalues strictly positive, or equivalently, \(x^TAx > 0\) for every nonzero vector \(x\)). These two conditions guarantee that a real-valued, unique lower triangular \(L\) exists.
If either condition fails, the algorithm breaks down. A non-symmetric matrix has no valid \(A = LL^T\) form to begin with, and a matrix that is not positive-definite will force the calculation to take the square root of a negative number at some step, which has no real solution. In that case, the calculator will flag the input rather than return a misleading result.
How the Lower Triangular Entries Are Found
Step-by-step elimination logic
The entries of \(L\) are computed one at a time, starting from the top-left corner and working row by row. Each diagonal entry is a square root, and each entry below it is a simple combination of previously computed values divided by that diagonal entry.
- Step 1: Compute the diagonal entry \(L_{jj} = \sqrt{A_{jj} - \sum_{k=1}^{j-1} L_{jk}^2}\).
- Step 2: For each row \(i\) below \(j\), compute \(L_{ij} = \frac{1}{L_{jj}}\left(A_{ij} - \sum_{k=1}^{j-1} L_{ik}L_{jk}\right)\).
- Step 3: Move to the next column and repeat, reusing all previously found entries.
Because each new entry depends only on entries already computed, the process never needs to backtrack, which is part of why Cholesky decomposition is faster than general-purpose elimination methods for matrices that meet its requirements.
Where Is This Decomposition Used?
Cholesky decomposition shows up wherever positive-definite matrices are common: solving systems of linear equations efficiently, inverting covariance matrices in statistics, and generating correlated random variables in Monte Carlo simulations.
Because the factorization is roughly twice as fast as standard Gaussian elimination for suitable matrices, it is often the preferred first step before solving \(Ax = b\).
For matrices that are not symmetric or positive-definite, or when you simply need to reduce a system to row-echelon form, the RREF Calculation calculator is a better fit.
Enter your matrix above and hit Calculate to get the lower triangular factor instantly.
Related Calculations
If you are working with Cholesky decomposition, you may be interested in other matrix operations such as computing the reduced row echelon form of a matrix, which is another fundamental technique for solving linear systems and understanding matrix properties.
In statistical contexts, Cholesky decomposition is often used in linear regression and multivariate analysis. You might need to calculate the residual sum of squares to assess model fit, or explore the chi-square distribution, which arises from sums of squared standard normal variables and is closely related to the underlying theory of Cholesky factorizations.