Singular Value Decomposition Calculator


Instructions: Use this calculator to compute the Singular Value Decomposition of the matrix you provide.

Number of Rows =    Number of Cols =   

\(A\) = \begin{bmatrix} & \\ & \end{bmatrix}

Open this calculator in the Dashboard →

More about the Singular-Value-Decomposition Calculator

This calculator factors any matrix \(A\) into three matrices, \(U\), \(\Sigma\), and \(V^t\), providing you its singular values and singular vectors in a single pass.

All you have to do is to provide a valid matrix and click on 'Calculate'. Instead of solving equations by hand, you get a complete decomposition that works for square matrices and rectangular ones alike.

What Is Singular Value Decomposition?

Breaking down A = UΣVᵗ

Singular Value Decomposition, or SVD, writes any real matrix \(A\) as a product of three pieces:

\[A = U \Sigma V^t\]

\(U\) is an orthogonal matrix whose columns are the left singular vectors of \(A\). \(V\) is another orthogonal matrix, and its columns are the right singular vectors; \(V^t\) is simply its transpose.

\(\Sigma\) sits between them as a diagonal matrix (with possibly rectangular padding of zeros) holding the singular values, arranged from largest to smallest.

Together, these three pieces describe how \(A\) stretches, rotates, and reflects space: \(V^t\) rotates the input, \(\Sigma\) scales it along the axes by the singular values, and \(U\) rotates the result into its final orientation.

Singular Value Decomposition Calculator

Why Does SVD Matter?

The singular values themselves carry a lot of information. The number of nonzero singular values equals the rank of \(A\), so SVD gives a quick, numerically stable way to determine rank even when rounding errors would confuse simpler methods.

The ratio between the largest and smallest singular value is the condition number, a key indicator of how sensitive a system \(Ax = b\) is to small errors in the data.

SVD also underlies dimensionality reduction techniques such as principal component analysis. By keeping only the largest singular values and their corresponding vectors, you can build a lower-rank approximation of \(A\) that preserves most of its structure while discarding noise.

This is why SVD shows up in image compression, recommendation systems, and noise filtering.

How the Calculator Finds Your Decomposition

From matrix_a to U, Σ, V

Enter your matrix, referred to internally as matrix_a, row by row into the input grid. The matrix can be square or rectangular; there is no requirement that rows equal columns.

Behind the scenes, the calculator carries out a sequence of standard linear algebra steps to produce the decomposition:

  • Step 1: Compute \(A^tA\) (or \(AA^t\), whichever is smaller) to set up an eigenvalue problem.
  • Step 2: Find the eigenvalues and eigenvectors of that product; the eigenvectors become the columns of \(V\) (or \(U\)).
  • Step 3: Take square roots of the eigenvalues to get the singular values, and arrange them in descending order along the diagonal of \(\Sigma\).
  • Step 4: Recover the remaining matrix, \(U\) or \(V\), using \(Av_i = \sigma_i u_i\), then normalize each vector.

The result is displayed as the three matrices \(U\), \(\Sigma\), and \(V\), ready to verify by multiplying them back together.

Singular Values or Eigenvalues: What's the Difference?

Relation to A^T A and A A^T

Singular values and eigenvalues are related but not identical. Eigenvalues are only defined for square matrices and can be negative or complex. Singular values, by contrast, are always real and non-negative, and they exist for any matrix, square or not.

The connection comes through \(A^tA\) and \(AA^t\), both of which are square and symmetric. The eigenvalues of these products are the squares of the singular values of \(A\), and the eigenvectors of \(A^tA\) and \(AA^t\) become the columns of \(V\) and \(U\) respectively.

When \(A\) is symmetric and positive semi-definite, its singular values and eigenvalues coincide, but in general they should not be treated as the same quantity.

Related Matrix and Linear Algebra Calculators

Since you are exploring the singular value decomposition, you might also find the Cholesky decomposition useful—it provides another way to factor a positive-definite matrix into a product of a lower triangular matrix and its transpose.

For solving or simplifying linear systems, the reduced row echelon form (RREF) calculator can quickly display the row‑reduced structure of a matrix, which is often the first step before applying more advanced factorizations.

log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in