Skip to content
Math

Matrix Norm Calculator

Enter your matrix elements and choose a size up to 4x4. The calculator instantly returns all five standard matrix norms: the 1-norm (maximum column sum), infinity norm (maximum row sum), Frobenius norm (square root of sum of squares), spectral 2-norm (largest singular value), and max norm (largest absolute entry). All five norms update as you type, and the show-your-work panel walks through each computation step by step.

Your details

Choose the number of rows and columns. Supported up to 4x4.
Element at row 1, column 1.
Element at row 1, column 2.
Element at row 1, column 3.
Element at row 1, column 4.
Element at row 2, column 1.
Element at row 2, column 2.
Element at row 2, column 3.
Element at row 2, column 4.
Element at row 3, column 1.
Element at row 3, column 2.
Element at row 3, column 3.
Element at row 3, column 4.
Element at row 4, column 1.
Element at row 4, column 2.
Element at row 4, column 3.
Element at row 4, column 4.
Frobenius NormLarge magnitude
14.2478

sqrt of the sum of all squared entries, the most commonly used matrix norm

1-Norm (max column sum)16
Infinity Norm (max row sum)15
Spectral 2-Norm13.0816
Max Norm9
Frobenius14.2478
1-Norm16
Inf-Norm15
Spectral13.0816
Max9

Frobenius norm: 14.2478

  • The spectral (2-)norm is 13.0816, which equals the matrix's largest singular value and bounds how much it can stretch a unit vector.
  • The 1-norm (16.0000) and infinity norm (15.0000) bound the spectral norm from above: spectral norm is always at most min(1-norm, inf-norm).
  • This is a 3x3 square matrix. The Frobenius norm satisfies ||A||_F >= ||A||_2 >= ||A||_max >= 0 for any matrix.

Next stepTo estimate the condition number of a square matrix, divide the spectral norm of A by the spectral norm of A^(-1). A condition number near 1 means the system is well-conditioned.

Formula

A1=maxjiaij,A=maxijaij,AF=i,jaij2,A2=λmax(AA),Amax=maxi,jaij\|A\|_1=\max_j\sum_i|a_{ij}|,\quad \|A\|_\infty=\max_i\sum_j|a_{ij}|,\quad \|A\|_F=\sqrt{\sum_{i,j}a_{ij}^2},\quad \|A\|_2=\sqrt{\lambda_{\max}(A^\top A)},\quad \|A\|_{\max}=\max_{i,j}|a_{ij}|

Worked example

For A = [[3, 1], [1, 5]]: Frobenius = sqrt(9+1+1+25) = 6, 1-norm = max(4, 6) = 6, inf-norm = max(4, 6) = 6, spectral 2-norm = sqrt(largest eigenvalue of A^T A) ≈ 5.236, max norm = 5.

What is a matrix norm?

A matrix norm is a function that assigns a non-negative real number to a matrix, measuring its "size" or "magnitude" in a precise mathematical sense. Just as the absolute value measures the size of a scalar and the Euclidean norm measures the length of a vector, a matrix norm tells us how large a matrix is. Every matrix norm must satisfy four axioms: non-negativity (||A|| >= 0), definiteness (||A|| = 0 only for the zero matrix), scalar homogeneity (||cA|| = |c| * ||A||), and the triangle inequality (||A + B|| <= ||A|| + ||B||). Additionally, sub-multiplicative norms satisfy ||AB|| <= ||A|| * ||B||, which is required for many convergence proofs in numerical analysis. The 1-norm, infinity norm, Frobenius norm, and spectral norm are all sub-multiplicative; the max norm is not.

The five standard matrix norms and when to use them

The 1-norm (maximum column sum) and infinity norm (maximum row sum) are the easiest to compute by hand and are widely used in error bounds for linear systems. They are dual to each other in the sense that the 1-norm of A equals the infinity norm of A^T. The Frobenius norm is the matrix analogue of the Euclidean vector norm: square every entry, sum them all, then take the square root. It is the default choice in machine learning and data science because it is differentiable everywhere and easy to compute for large sparse matrices. The spectral 2-norm equals the largest singular value of the matrix and controls how much the matrix can stretch a unit vector. It is the most meaningful norm for stability analysis and condition-number estimation, but it requires computing singular values, which is more expensive. The max norm (also called the entry-wise infinity norm or Chebyshev norm) is simply the largest absolute entry and is rarely a submultiplicative norm, but it is useful as a quick upper bound check.

How to read and compare matrix norms

For any matrix A, the five norms satisfy a partial ordering: the max norm is always at most the Frobenius norm, which is at most sqrt(m*n) times the max norm for an m x n matrix. The spectral 2-norm is always at most the Frobenius norm. These inequalities let you bound one norm using another when the exact computation is impractical. In numerical linear algebra, the condition number of a matrix is the ratio of its largest to smallest singular value, equal to ||A|| * ||A^-1|| when using the spectral norm. A condition number near 1 indicates a well-conditioned problem where small perturbations in input lead to small perturbations in output. A large condition number signals potential numerical instability.

Applications in machine learning and engineering

Matrix norms appear throughout modern computing. In deep learning, the Frobenius norm of a weight matrix is used as a regularization penalty (weight decay), and spectral normalization (dividing a weight matrix by its spectral norm) is a popular technique for stabilizing generative adversarial network training. In control theory, the H-infinity norm of a transfer function matrix controls the worst-case gain of a system, directly generalizing the spectral matrix norm to the frequency domain. In finite element analysis and numerical PDE solvers, the 1-norm and infinity norm of the system matrix guide preconditioning strategies. In compressed sensing and sparse recovery, the nuclear norm (sum of singular values) acts as a convex surrogate for matrix rank and is closely related to the Frobenius and spectral norms.

Standard matrix norm formulas

NormSymbolFormulaInterpretation
1-Norm||A||_1max_j sum_i |a_ij|Maximum absolute column sum
Infinity Norm||A||_infmax_i sum_j |a_ij|Maximum absolute row sum
Frobenius Norm||A||_Fsqrt(sum a_ij^2)Root sum of squares of all entries
Spectral (2-)Norm||A||_2sqrt(lambda_max(A^T A))Largest singular value of A
Max Norm||A||_maxmax_i,j |a_ij|Largest absolute entry

Summary of the five most common matrix norms for an m x n matrix A with elements a_ij.

Frequently asked questions

What is the difference between the Frobenius norm and the spectral (2-)norm?

The Frobenius norm sums the squares of all matrix entries and takes the square root. The spectral 2-norm equals the largest singular value of the matrix. For an n x n identity matrix, the Frobenius norm is sqrt(n) while the spectral norm is 1. The spectral norm is always at most the Frobenius norm. The Frobenius norm is easier to compute but does not directly correspond to how much the matrix can stretch a vector; the spectral norm does.

How do I compute the 1-norm by hand?

Sum the absolute values in each column separately, then take the maximum of those column sums. For example, for A = [[2, -3], [1, 4]], column 1 has sum |2| + |1| = 3, column 2 has sum |-3| + |4| = 7, so the 1-norm is 7.

What does it mean for a matrix norm to be sub-multiplicative?

A norm is sub-multiplicative if ||AB|| <= ||A|| * ||B|| for all compatible matrices A and B. This property is essential in numerical analysis because it ensures that the norm of a product does not grow unboundedly. The 1-norm, infinity norm, Frobenius norm, and spectral norm are all sub-multiplicative. The max norm is not, which is why it is less commonly used in convergence proofs.

Can a matrix norm be less than 1?

Yes. If a matrix shrinks all unit vectors rather than stretching them, all its norms will be less than 1. For example, the zero matrix has norm 0 for every norm. A matrix with all entries equal to 0.1 has a very small Frobenius norm. Norms less than 1 are important in convergence proofs: if the norm of an iteration matrix is strictly less than 1, the iterative method converges.

What is the matrix norm of the identity matrix?

It depends on which norm you use. For the n x n identity matrix I_n: the 1-norm is 1 (each column has exactly one entry equal to 1), the infinity norm is 1 (each row has exactly one entry equal to 1), the spectral 2-norm is 1 (its only singular value is 1), the Frobenius norm is sqrt(n) (there are n entries equal to 1), and the max norm is 1.

Why are there multiple matrix norms instead of just one?

Different norms capture different aspects of a matrix and are useful in different contexts. The Frobenius norm is easy to compute and differentiable, making it ideal for optimization. The spectral norm captures worst-case amplification and is central to stability analysis. The 1-norm and infinity norm bound the spectral norm and are computable in O(mn) time. Having multiple norms allows practitioners to choose the one that best matches their problem structure or computational budget.

Sources

Written by Dr. Rajiv Menon, PhD Applied Mathematician · Bengaluru, India

Applied mathematician bridging algebraic theory and computational tools for students, engineers, and everyday problem-solvers.

Search 3,500+ calculators

Loading search…