Advanced

Condition Number Calculator — 2×2 Matrix

Enter a 2×2 matrix to get its spectral condition number κ₂(A) = σ_max/σ_min, the Frobenius condition number, singular values and a stability interpretation.
Enter four numbers: row 1 then row 2, space or comma separated.
Condition number κ₂(A)
2.6180

Well-conditioned

κ₂(A) — spectral (2-norm)
2.618
κ_F(A) — Frobenius-norm
3
Singular value σ₁ (max)
3.618
Singular value σ₂ (min)
1.382
Determinant det(A)
5
Frobenius norm ‖A‖_F
3.873
Interpretation
Well-conditioned
Unit square transformed by A — stretching shows condition
Step by step
  1. 1

    Trace of AᵀA (Frobenius² norm)

    3² + 1² + 1² + 2² = 15
  2. 2

    Determinant det(A)

    3 × 2 − 1 × 1 = 5
  3. 3

    Discriminant

    15² − 4 × 5² = 125
    Used to find eigenvalues of AᵀA.
  4. 4

    Singular values σ_max, σ_min

    √((tr ± √disc) ÷ 2) = 3.618, 1.382
  5. 5

    Condition number κ₂

    3.618 ÷ 1.382 = 2.6180
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

κ₂(A) = σ_max / σ_min, where σ are the singular values (square roots of eigenvalues of AᵀA). For a 2×2 matrix [[a,b],[c,d]], compute tr = a²+b²+c²+d², det = ad−bc, then λ₁,₂ = (tr ± √(tr²−4·det²))/2. κ near 1 means well-conditioned; κ ≫ 1 means ill-conditioned.

Formula
κ₂(A) = σ_max / σ_min where σ are singular values; σ = √(eigenvalues of AᵀA)
How this is calculated

The condition number of a matrix quantifies how sensitive the solution of the linear system Ax = b is to small perturbations in A or b. A high condition number means small input errors can cause large errors in the solution — the matrix is ill-conditioned.

For a 2×2 matrix A = [[a, b], [c, d]], the singular values are the square roots of the eigenvalues of the symmetric positive-semidefinite matrix AᵀA. The trace of AᵀA equals the squared Frobenius norm: tr = a²+b²+c²+d². Its determinant equals det(A)² = (ad−bc)². The eigenvalues of AᵀA are λ₁,₂ = (tr ± √(tr²−4·det(A)²)) / 2; the singular values are σ₁ = √λ₁ ≥ σ₂ = √λ₂ ≥ 0. The 2-norm (spectral) condition number is κ₂ = σ₁ / σ₂.

As an alternative, the Frobenius condition number is computed as ‖A‖_F × ‖A⁻¹‖_F, where the matrix inverse exists only when det(A) ≠ 0. A condition number near 1 indicates a well-conditioned matrix; values in the thousands or millions indicate an ill-conditioned matrix where numerical computations in double precision (about 15–16 significant digits) may lose accuracy.

Frequently asked questions

Roughly, if κ(A) ≈ 10^k, you lose about k decimal digits of accuracy when solving Ax = b in floating-point arithmetic. A condition number of 1 is ideal (orthogonal matrix); a singular matrix has κ = ∞.

The spectral condition number uses the 2-norm (maximum stretching factor), while the Frobenius condition number uses the Frobenius norm (root-sum-of-squares). They usually give similar indications of conditioning but not the same numerical value. The spectral number is the standard one cited in numerical linear algebra textbooks.

This calculator is limited to 2×2 matrices to keep the arithmetic explicit and verifiable. For larger matrices, tools like NumPy (numpy.linalg.cond), MATLAB (cond), or Wolfram Alpha compute the condition number via full SVD.

Also known as

condition number calculator
matrix condition number
ill-conditioned matrix checker
singular values 2x2 matrix
spectral condition number
numerical stability matrix
frobenius condition number calculator

APA

TG we-Calculate Editorial Team. (2026). Condition Number Calculator — 2×2 Matrix [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/condition-number-calculator

Chicago

TG we-Calculate Editorial Team. "Condition Number Calculator — 2×2 Matrix." TG we-Calculate. 2026. https://we-calculate.com/calculator/condition-number-calculator.

IEEE

TG we-Calculate Editorial Team, "Condition Number Calculator — 2×2 Matrix," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/condition-number-calculator

BibTeX

@misc{wecalculate_condition_number_calculator, title = {Condition Number Calculator — 2×2 Matrix}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/condition-number-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?