SVD Calculator

Singular value decomposition A = U Σ Vᵀ.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a matrix to get its singular value decomposition. [1 2; 3 4] has singular values 5.46499 and 0.365966, whose product 2 equals the absolute determinant.

How to use

1
Step 1
Type the matrix.
2
Step 2
Choose svd.
3
Step 3
Press Calculate to see U, S and V.

How it works

SVD writes A as U·S·Vᵀ, with U and V orthogonal and S diagonal with non-negative singular values sorted from large to small. The ratio of largest to smallest singular value is the condition number, a measure of how sensitive solving Ax = b is.

A = UΣVᵀ      |det(A)| = product of singular values      condition = σmax ÷ σmin

Worked example

A diagonal matrix

Input
[3 0; 0 4]
Output
S = [4 0; 0 3]
Walkthrough
The singular values of a diagonal matrix are the absolute diagonal entries, sorted descending, so 4 comes before 3 and U, V swap the axes.

Limitations

  • Entries must be real numbers; complex entries are refused.
  • Results are numerical, shown to about six significant digits.
  • Singular vectors are only determined up to sign.

Questions

What are the singular values of [1 2; 3 4]?
5.46499 and 0.365966.
What are the singular values of [3 0; 0 4]?
4 and 3.
How are singular values related to the determinant?
Their product equals the absolute value of the determinant: 5.46499 × 0.365966 = 2 for [1 2; 3 4].

Features

  • U, Σ and V shown
  • Sorted singular values
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Variables, expressions, and equations

    Khan Academy

    Expression language for scientific and expression calculators.

    Watch on YouTube
  • Introduction to scientific notation

    Khan Academy

    Scientific notation for calculator and number tools.

    Watch on YouTube
  • Data Index

    Math is Fun

    Stats and probability explainers for data tools.

  • OpenStax Math

    OpenStax

    Free textbooks for algebra through calculus.