Maths & numbers

Cholesky decomposition

Factor a small symmetric positive-definite matrix as L times its transpose.

Cholesky decomposition
Esc to restore

Your inputs

Up to 6 × 6. Entries separated by spaces or commas; finite magnitudes from 10⁻¹² to 10¹², or zero.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Computes a lower-triangular Cholesky factor for square matrices up to 6 × 6. Rejects asymmetry or non-positive pivots at tolerance 10⁻¹² × max(1, largest absolute input entry). The exported factor satisfies A≈L Lᵀ within floating-point error. Positive-semidefinite or near-singular inputs are not accepted; no automatic regularisation is applied.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Matrix: one row per line
4, 2
2, 3

Example result

Example result
FactorRowC1C2
L120
L211.41421356237

A = L × transpose(L). Symmetry/positive-definiteness tolerance is 10⁻¹² × max(1, largest absolute input entry).