Home · Everyday · Matrices · LU Decomposition Calculator

LU Decomposition Calculator

Factor a square matrix as P·A = L·U with partial pivoting — the factorization behind fast linear solvers.

Your figures

Example result — edit the figures to make it yours

6

U₁₁ (first pivot of U)

Doolittle LU with partial pivoting: P·A = L·U, with L unit lower-triangular and U upper-triangular. The headline figure is the first pivot of U.

L (unit lower)[1, 0; 0.6667, 1]
Row permutation P2, 1
det(A) from U diagonal-6
U (upper triangular)
C1C2
R163
R201

What this calculator does

Factor a square matrix as P·A = L·U with partial pivoting — the factorization behind fast linear solvers. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Doolittle LU with partial pivoting: L unit lower-triangular, U upper-triangular

Enter matrices with rows separated by semicolons and entries by commas or spaces.

The operation is applied with the standard rules of matrix arithmetic; sizes must be compatible.

Results are rounded for display; exact fractions are kept internally where the method allows.

Worked example

With the example inputs this page opens with, the result is 6 — u₁₁ (first pivot of u). Doolittle LU with partial pivoting: P·A = L·U, with L unit lower-triangular and U upper-triangular. The headline figure is the first pivot of U.

Quick reference

U (upper triangular)
C1C2
R163
R201

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the LU Decomposition Calculator work?

Factor a square matrix as P·A = L·U with partial pivoting — the factorization behind fast linear solvers. Square matrix A → L, U and permutation. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the LU Decomposition Calculator need?

Square matrix A → L, U and permutation. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the LU Decomposition Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.