Compute the Singular Value Decomposition of any matrix into A = UΣVᵀ. Get singular values, left and right singular vectors with detailed step-by-step solutions.
Enter a matrix and click Decompose
or press Enter
Explore more matrix decomposition methods with dedicated calculators and step-by-step explanations.
Factor a matrix into Lower and Upper triangular matrices. Essential for solving systems of linear equations efficiently.
Open calculator →Decompose into an orthogonal matrix Q and upper triangular R. Used in least squares regression and eigenvalue algorithms.
Open calculator →Efficient factorization for symmetric positive definite matrices into LLᵀ. Widely used in Monte Carlo simulations and optimization.
Open calculator →Find eigenvalues and eigenvectors. Fundamental to PCA, quantum mechanics, vibration analysis, and stability theory.
Open calculator →The Singular Value Decomposition is the most general and arguably the most important matrix decomposition in linear algebra. Every matrix — square or rectangular, real or complex — has an SVD. It factorizes any m×n matrix A into the product of three special matrices:
where:
Because U and V are orthogonal (UᵀU = I, VᵀV = I), the SVD reveals the fundamental geometric action of a matrix: any linear transformation can be decomposed into a rotation (Vᵀ), a scaling along coordinate axes (Σ), and a second rotation (U).
The SVD gives the clearest geometric picture of what a matrix does to space. When you multiply a vector by A = UΣVᵀ, three things happen in sequence:
This means every matrix maps the unit sphere to an ellipsoid. The singular values are the semi-axis lengths of that ellipsoid, and the singular vectors give the axis directions. This interpretation is why SVD is the natural tool for understanding the geometry of linear maps.
Computing the SVD is closely related to eigendecomposition. The standard approach works as follows:
In practice, production implementations (LAPACK, NumPy, MATLAB) use more numerically stable algorithms. The typical approach first reduces A to bidiagonal form via Householder reflections, then applies an iterative algorithm (the Golub-Kahan bidiagonalization or divide-and-conquer method) to extract the singular values and vectors from the bidiagonal matrix.
One of the most powerful results about SVD is the Eckart-Young-Mirsky theorem: the best rank-k approximation of a matrix (in both the Frobenius norm and the spectral norm) is obtained by keeping only the k largest singular values and zeroing out the rest.
Formally, if A = UΣVᵀ and we define Ak = UkΣkVkᵀ using only the top k singular values, then for any matrix B with rank(B) ≤ k:
This theorem is the mathematical foundation for data compression, noise reduction, and dimensionality reduction. It guarantees that truncated SVD is optimal — no other rank-k matrix is closer to the original.
SVD is ubiquitous across science and engineering. Here are the major application areas:
Computing the full SVD of an m×n matrix (with m ≥ n) requires O(mn²) floating-point operations. The bidiagonalization step costs O(mn²) operations, and the iterative phase for extracting singular values from the bidiagonal form costs O(n²) per iteration with rapid convergence. For large sparse matrices where only the top k singular values are needed, iterative methods like Lanczos bidiagonalization or randomized SVD reduce the cost to approximately O(mnk), making it feasible to decompose matrices with millions of rows and columns.
When should you choose SVD over another decomposition?
In summary, SVD is the most versatile decomposition. When in doubt, SVD is the safe and informative choice. The trade-off is computational cost, so prefer specialized decompositions when their assumptions are met and you do not need the extra information SVD provides.
Every calculation shows the full derivation, not just the answer. Learn the algorithm as you go.
All computations run in your browser. No server round-trips, no waiting, no sign-up.
Every decomposition is automatically verified by reconstructing the original matrix.
Responsive design works on phones, tablets, and desktops. Solve matrices on the go.