Condition Number Calculator

Compute the matrix condition number κ(A) in 1-norm, ∞-norm, and Frobenius norm. Checks if a matrix is well or ill-conditioned with sensitivity visualization.

Condition Number Calculator

Condition Number κ(A)
90,009.000200
κ(A) = ‖A‖ × ‖A⁻¹‖ using 1-norm
Assessment
Ill-conditioned
κ = 90,009.00 → ill-conditioned
Determinant
0.000000
Non-zero determinant — matrix is invertible
‖A‖₁
3.000200
1-norm: maximum absolute column sum
‖A‖∞
3.000200
Infinity-norm: maximum absolute row sum
‖A‖F
3.000100
Frobenius norm: square root of sum of squared entries
κ₁(A)
90,009.000200
1-norm condition = 3.00 × 30,001.00
κ∞(A)
90,009.000200
∞-norm condition = 3.00 × 30,001.00
Sensitivity Scale
1 (perfect)
10¹² (singular)
κ = 90,009.00Ill-conditioned

Norm Comparison

Norm Type‖A‖‖A⁻¹‖κ(A)
1-norm3.00020030,001.00000090,009.000200
∞-norm3.00020030,001.00000090,009.000200
Frobenius3.00010024,495.50981373,488.979153

Input Matrix (3×3)

1.0000001.0000001.000000
1.0000001.0001001.000000
1.0000001.0000001.000200

Inverse Matrix A⁻¹

15,001.000000-10,000.000000-5,000.000000
-10,000.00000010,000.0000000.000000
-5,000.0000000.0000005,000.000000
Planning notes, formulas, and examples

About the Condition Number Calculator

The condition number κ(A) measures how sensitive a linear system Ax = b is to small changes in A or b. A matrix with a low condition number (near 1) is well-conditioned — small perturbations in the input produce proportionally small changes in the output. A large condition number means the system is ill-conditioned and numerical solutions may be unreliable. This calculator computes κ(A) = ‖A‖ · ‖A⁻¹‖ using three different matrix norms: the 1-norm (maximum absolute column sum), the infinity-norm (maximum absolute row sum), and the Frobenius norm (root of the sum of all squared entries). Enter a square matrix up to 5×5, choose from classic presets like the notoriously ill-conditioned Hilbert matrix, and see the condition number, determinant, both the original and inverse matrices, and a color-coded sensitivity gauge. Engineers use condition numbers to assess whether finite-precision arithmetic will produce trustworthy results, and numerical analysts use them to choose appropriate algorithms and preconditioners for large linear systems.

When This Page Helps

Computing a condition number requires finding the matrix inverse and computing norms in multiple formulations — a tedious process for anything larger than 2×2. This calculator handles matrices up to 5×5, computes κ(A) in all three standard norms simultaneously, displays the inverse matrix, and provides a color-coded conditioning gauge. Classic ill-conditioned examples like the Hilbert matrix are available as presets, making it ideal for numerical analysis courses and engineering sensitivity checks.

How to Use the Inputs

  1. Set the matrix size using the Size field (1–5 for a square matrix).
  2. Enter the matrix values as a comma-separated list, row by row.
  3. Select the norm type (1-norm, ∞-norm, or Frobenius) from the dropdown.
  4. Click a preset like "Ill-conditioned" or "Hilbert 3×3" to load classic examples.
  5. Review the condition number, determinant, matrix norms, and conditioning assessment.
  6. Toggle Show Inverse to see the inverse matrix and its norms.
  7. Compare condition numbers across all three norms in the summary.
Formula used
κ(A) = ‖A‖ · ‖A⁻¹‖ ‖A‖₁ = max_j Σᵢ|aᵢⱼ| ‖A‖∞ = max_i Σⱼ|aᵢⱼ| ‖A‖F = √(Σᵢⱼ aᵢⱼ²)

Example Calculation

Result: κ ≈ 60,000 (ill-conditioned)

For the Hilbert matrix H₃, κ₁(H₃) ≈ 748. This means a 0.1% change in b could produce up to a 74.8% change in x.

Tips & Best Practices

  • Check that all inputs use the same scale and assumptions before trusting the result.
  • Compare the answer with the worked example or a rough estimate to catch entry mistakes.

What the Condition Number Means

The condition number κ(A) = ‖A‖·‖A⁻¹‖ bounds the worst-case amplification of relative errors when solving Ax = b. If κ = 1000, a 0.1% perturbation in the input could cause up to a 100% change in the solution. A well-conditioned matrix (κ close to 1) produces stable solutions; an ill-conditioned matrix (κ ≫ 1) means numerical solutions may lose many digits of accuracy. The identity matrix has κ = 1 in every norm — the theoretical best.

Famous Ill-Conditioned Matrices

The Hilbert matrix H with entries h_ij = 1/(i+j−1) is the classic example of severe ill-conditioning. For a 3×3 Hilbert matrix, κ ≈ 748; for 5×5, κ ≈ 476,000; for 10×10, κ exceeds 10¹³. This exponential growth means that solving Hx = b for large Hilbert matrices is essentially impossible in standard floating-point arithmetic. Vandermonde matrices with closely spaced nodes and matrices arising from polynomial interpolation are also notoriously ill-conditioned.

Norm Choices and Their Interpretations

The 1-norm (maximum absolute column sum) measures the maximum stretch along coordinate axes. The ∞-norm (maximum absolute row sum) is its dual. The Frobenius norm (√Σa²_ij) is an "average" measure that treats all entries equally. For the 2-norm (spectral norm), κ equals the ratio of largest to smallest singular values (σ_max/σ_min). All these norms give condition numbers within a constant factor of each other, so any norm reveals the same qualitative conditioning status.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It bounds the worst-case amplification of relative errors. κ(A) = 1000 means a small perturbation in inputs can be amplified up to 1000× in the output.