Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Condition Number Calculator

Row 1, column 1: enter a number. Prefilled example: 1.

Row 1, column 2: enter a number. Prefilled example: 2.

Row 2, column 1: enter a number. Prefilled example: 3.

Row 2, column 2: enter a number. Prefilled example: 4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Row 1, column 1: enter a number.
  2. Row 1, column 2: enter a number.
  3. Row 2, column 1: enter a number.
  4. Row 2, column 2: enter a number.
  5. 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

  1. Det=a×d−b×c+0
  2. K2=a2+b2+c2+d2+(a2+b2+c2+d2)2−4×Det22×|Det|
Symbols used in the formula
SymbolMeaning
aRow 1, column 1
bRow 1, column 2
cRow 2, column 1
dRow 2, column 2
DetDeterminant ad − bc
K2Condition number, 2-norm (σmax ÷ σmin)

Worked example

Row 1, column 11
Row 1, column 22
Row 2, column 13
Row 2, column 24
Determinant ad − bc-2
Condition number, 1-norm (column sums)21
Condition number, ∞-norm (row sums)21
  1. Det=1×4−2×3+0=−2
  2. K2=12+22+32+42+(12+22+32+42)2−4×(−2)22×|−2|=14.933

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.

Related calculators