Condition Number Calculator

Matrix sensitivity κ(A)

CalculatorsFreeNo Signup
4.6(519 reviews)
All Tools

Loading tool...

About Condition Number Calculator

A condition number calculator for matrices. Computes κ(A) = σ_max/σ_min (ratio of largest to smallest singular value). High κ means ill-conditioned. Shows κ in 1-norm, 2-norm, and ∞-norm. Analyzes sensitivity of Ax=b. Select from preset matrices. All calculations are client-side.

Condition Number Calculator Features

  • κ₁ κ₂ κ∞
  • Sensitivity
  • Well/ill cond
  • Singular vals
  • Presets
Condition number: κ(A) = ||A||·||A⁻¹||. For 2-norm: κ₂ = σ_max/σ_min. κ ≈ 1: well-conditioned (stable). κ ≫ 1: ill-conditioned (small errors amplify). In 16-digit arithmetic, Ax=b loses ~log₁₀(κ) digits of accuracy.

How to Use

Enter a matrix:

  • A: Square matrix
  • Output: κ₁, κ₂, κ∞
  • Analysis: Digit loss estimate

Interpretation

κ = 1: perfect (orthogonal matrices). κ = 10³: lose ~3 digits. κ = 10¹⁵: result is meaningless in double precision. Hilbert matrices are famously ill-conditioned: κ grows exponentially with size.

Different Norms

  • κ₁: max column sum norm
  • κ₂: σ_max/σ_min (most useful)
  • κ∞: max row sum norm
  • All related: κ₁/n ≤ κ₂ ≤ n·κ₁

Step-by-Step Instructions

  1. 1Enter a matrix.
  2. 2View κ in all norms.
  3. 3See singular values.
  4. 4Check digit loss.
  5. 5Assess stability.

Condition Number Calculator — Frequently Asked Questions

What is an acceptable condition number?+

Depends on your precision needs. In double precision (16 digits): κ < 10⁶ is usually safe, κ > 10¹⁰ means significant digit loss, κ > 10¹⁵ means results are noise. For single precision (7 digits), divide thresholds by 10⁹.

How does condition number affect Ax=b?+

If b has relative error ε, then x has relative error up to κ·ε. With κ=10⁶ and b known to 16 digits, x is accurate to ~10 digits. The condition number is the worst-case error amplification factor.

What are famous ill-conditioned matrices?+

Hilbert matrices: H(i,j)=1/(i+j−1), κ grows like e^(3.5n). Vandermonde matrices with clustered nodes. Any matrix with nearly-dependent rows/columns. The 'inverse crimes' matrices in tomography.

Share this tool: