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.
Well-conditioned
- 1
Trace of AᵀA (Frobenius² norm)
3² + 1² + 1² + 2² = 15 - 2
Determinant det(A)
3 × 2 − 1 × 1 = 5 - 3
Discriminant
15² − 4 × 5² = 125Used to find eigenvalues of AᵀA. - 4
Singular values σ_max, σ_min
√((tr ± √disc) ÷ 2) = 3.618, 1.382 - 5
Condition number κ₂
3.618 ÷ 1.382 = 2.6180
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
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
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
TG we-Calculate Editorial Team. "Condition Number Calculator — 2×2 Matrix." TG we-Calculate. 2026. https://we-calculate.com/calculator/condition-number-calculator.
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
@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?
