Scientific Converters Precise unit conversions for science & engineering.

    Loading…

    LU Decomposition Calculator

    LU decomposition writes A as a lower times an upper triangular matrix: [[2, −1, −2], [−4, 6, 3], [−4, −2, 8]] factors with det A = 24.

    One row per line; separate entries with spaces or commas.

    det A = product of U’s diagonal =

    24

    Method
    Doolittle (L has 1s on its diagonal)
    L (lower) and U (upper) factors, A = LU
    col 1col 2col 3
    L row 1100
    L row 2-210
    L row 3-2-11
    U row 12-1-2
    U row 204-1
    U row 3003
    Step-by-step solution
    1. uᵢⱼ = aᵢⱼ − Σₖ lᵢₖuₖⱼ for j ≥ i
    2. lⱼᵢ = (aⱼᵢ − Σₖ lⱼₖuₖᵢ) ÷ uᵢᵢ for j > i
    3. det A = Π uᵢᵢ = 24

    LU Decomposition Formula

    A = LU, uᵢⱼ = aᵢⱼ − Σ lᵢₖuₖⱼ, lⱼᵢ = (aⱼᵢ − Σ lⱼₖuₖᵢ)/uᵢᵢ

    Doolittle: L has 1s on the diagonal

    Worked Example

    The matrix [[2, −1, −2], [−4, 6, 3], [−4, −2, 8]]:

    1. uᵢⱼ = aᵢⱼ − Σₖ lᵢₖuₖⱼ for j ≥ i
    2. lⱼᵢ = (aⱼᵢ − Σₖ lⱼₖuₖᵢ) ÷ uᵢᵢ for j > i
    3. det A = Π uᵢᵢ = 24
    L (lower) and U (upper) factors, A = LU
    col 1col 2col 3
    L row 1100
    L row 2-210
    L row 3-2-11
    U row 12-1-2
    U row 204-1
    U row 3003

    GATE tip

    GATE XE-A lists LU decomposition by name. Questions usually ask for one entry of L or U, so compute only the row and column you need: u₂₂ = a₂₂ − l₂₁u₁₂.

    More Linear Algebra Calculators

    Frequently asked questions

    Why use LU decomposition instead of Gauss elimination?

    Once A = LU is found, each new right-hand side b is solved by two cheap triangular substitutions (Ly = b, then Ux = y) without repeating the elimination.

    What is the difference between Doolittle and Crout?

    Doolittle puts 1s on the diagonal of L; Crout puts them on the diagonal of U. Both give the same determinant.

    Sources

    Last reviewed: . Factors are stored exactly and computed with 50-digit decimal arithmetic. See how we verify conversion factors.

    Cite this page

    APA

    Scientific Converters. (2026, October 15). LU Decomposition Calculator. Retrieved October 25, 2026, from https://scientificconverters.com/calculators/lu-decomposition-calculator/

    IEEE

    Scientific Converters, "LU Decomposition Calculator," scientificconverters.com. Accessed: Oct. 25, 2026. [Online]. Available: https://scientificconverters.com/calculators/lu-decomposition-calculator/

    Send feedback

    Found a wrong value, a missing unit or an idea? Tell us. We read every message.

    What is it about?

    We store your message, the page you were on and your email if given. See the privacy policy.