LU Decomposition Calculator
Factor a square matrix as PA = LU — lower-triangular L, upper-triangular U and the row permutation P — with the determinant.
Factor a square matrix as PA = LU — lower-triangular L, upper-triangular U and the row permutation P — with the determinant.
Results
About This Calculator
Type the matrix row by row: separate rows with semicolons (or new lines) and entries with spaces or commas — e.g. 1 2; 3 4 is the 2 × 2 matrix [[1, 2], [3, 4]]. Up to 10 × 10. Gaussian elimination stores its multipliers in L; row swaps for stability go in P. Solving Ax = b then takes two triangular solves.
Example
Example: U = [ 4 -6 0 ] [ 0 4 1 ] [ 0 0 1 ]
Assumptions
Partial pivoting (mathjs lup).
Frequently Asked Questions
Why use LU decomposition?
To solve many systems with the same A quickly.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile