Condition Number Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the four entries of a 2×2 matrix A to see how much a small error in b can grow in the solution of Ax = b.
Result
Condition number, 2-norm (σmax ÷ σmin)
Determinant ad − bc
- Condition number, 1-norm (column sums)
- Condition number, ∞-norm (row sums)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Row 1, column 1: enter a number.
- Row 1, column 2: enter a number.
- Row 2, column 1: enter a number.
- Row 2, column 2: enter a number.
- Read the result: Condition number, 2-norm (σmax ÷ σmin); the panel also shows Determinant ad − bc, Condition number, 1-norm (column sums) and Condition number, ∞-norm (row sums).
How this calculator works
κ(A) = ‖A‖ × ‖A⁻¹‖. For a 2×2 matrix, A⁻¹ = (1 ÷ det)·[d −b; −c a] with det = ad − bc.
2-norm: κ₂ = σmax ÷ σmin, the ratio of the singular values. With F = a² + b² + c² + d² (the squared Frobenius norm), σmax² + σmin² = F and σmax·σmin = |det|, so κ₂ = (F + √(F² − 4det²)) ÷ (2|det|).
1-norm: ‖A‖₁ is the largest absolute column sum; ∞-norm: ‖A‖∞ is the largest absolute row sum. A singular matrix (det = 0) has an infinite condition number, shown as —. κ = 1 is the best possible value (orthogonal matrices, in the 2-norm).
The formula
| Symbol | Meaning |
|---|---|
| Row 1, column 1 | |
| Row 1, column 2 | |
| Row 2, column 1 | |
| Row 2, column 2 | |
| Determinant ad − bc | |
| Condition number, 2-norm (σmax ÷ σmin) |
Worked example
| Row 1, column 1 | 1 |
|---|---|
| Row 1, column 2 | 2 |
| Row 2, column 1 | 3 |
| Row 2, column 2 | 4 |
| Determinant ad − bc | -2 |
|---|---|
| Condition number, 1-norm (column sums) | 21 |
| Condition number, ∞-norm (row sums) | 21 |
Condition number, 2-norm (σmax ÷ σmin) 14.933
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the condition number of [[1, 2], [3, 4]]?
About 14.933 in the 2-norm, and 21 in both the 1-norm and the infinity norm (det = −2).
What does a large condition number mean?
Ax = b is ill-conditioned: a relative error in b can be multiplied by up to κ in the solution x.