Matrix Norm Calculator

Matrix Norm Calculator

Emerging AI Skill PRO

Enter Calculation

Enter rows separated by new lines, values separated by spaces or commas. Empty cells default to 0.

Formula

‖A‖1=max1≤j≤m∑i=1n|aij|\|\text{A}\|_{1} = \max_{1 \le j \le \text{m}} \sum_{i=1}^{\text{n}} |a_{ij}|
Show calculation steps (3)
  1. L-infinity Norm (Max Row Sum)

    ‖A‖∞=max1≤i≤n∑j=1m|aij|\|\text{A}\|_{\infty} = \max_{1 \le i \le \text{n}} \sum_{j=1}^{\text{m}} |a_{ij}|

    Maximum absolute row sum of the matrix A.

  2. Frobenius Norm

    ‖A‖F=∑i=1n∑j=1maij2\|\text{A}\|_{F} = \sqrt{\sum_{i=1}^{\text{n}} \sum_{j=1}^{\text{m}} a_{ij}^{2}}

    Square root of the sum of squares of all entries of A.

  3. L2 Spectral Norm

    ‖A‖2=σmax⁡(A)=λmax⁡(ATA)\|\text{A}\|_{2} = \sigma_{\max}(\text{A}) = \sqrt{\lambda_{\max}\!\left(\text{A}^{\mathsf{T}}\text{A}\right)}

    Largest singular value of A, equal to the square root of the largest eigenvalue of A-transpose times A.

Usage stats

Advertisement

Results

L2 / Spectral Norm (largest singular value)
5.4649857042
Norm Value
L1 norm (max absolute column sum) 6
L2 / spectral norm (largest singular value) 5.4649857042
Frobenius norm 5.4772255751
L-infinity norm (max absolute row sum) 7

Report an error on this page

What this calculator does

This tool computes four of the most widely used matrix norms for any real n x m matrix \(A = \{a_{ij}\}\): the L1 norm (maximum absolute column sum), the L2 / spectral norm (the largest singular value), the Frobenius norm (root sum of squares of all entries), and the L-infinity norm (maximum absolute row sum). Matrix norms measure the "size" of a matrix and the maximum factor by which it can stretch a vector, making them essential in numerical linear algebra, optimization, machine learning and stability analysis. This is pure mathematics and is identical everywhere.

How to use it

Set the number of rows (\(n\)) and columns (\(m\)), then type the matrix into the text box one row per line, with entries separated by spaces or commas. Any blank cell is treated as 0. Choose how many significant digits to display, then read off all four norms. Negative entries are handled automatically because each formula uses absolute values where required.

Unit circle mapped to an ellipse with longest axis marking the largest singular value
The L2 (spectral) norm equals the largest singular value, the maximum stretch factor of the map.

The formulas explained

The 1-norm sums absolute values down each column and keeps the largest total. The infinity-norm does the same across each row. The Frobenius norm flattens the matrix into a vector and takes its Euclidean length: sqrt of the sum of every entry squared. The spectral norm equals the largest singular value \(\sigma_{\max}(A)\), found as the square root of the largest eigenvalue of the symmetric Gram matrix A-transpose A; we obtain that eigenvalue by power iteration. An all-zero matrix short-circuits every norm to 0.

$$\|\text{A}\|_{1} = \max_{1 \le j \le m} \sum_{i=1}^{n} |a_{ij}|$$$$\|\text{A}\|_{\infty} = \max_{1 \le i \le n} \sum_{j=1}^{m} |a_{ij}|$$$$\|\text{A}\|_{F} = \sqrt{\sum_{i=1}^{n} \sum_{j=1}^{m} a_{ij}^{2}}$$$$\|\text{A}\|_{2} = \sigma_{\max}(\text{A}) = \sqrt{\lambda_{\max}\!\left(\text{A}^{\mathsf{T}}\text{A}\right)}$$
Advertisement

Worked example

For \(A = [[1, 2], [3, 4]]\): column sums are 4 and 6 so the L1 norm is 6; row sums are 3 and 7 so the L-infinity norm is 7. The Frobenius norm is $$\sqrt{1+4+9+16} = \sqrt{30} = 5.4772255751.$$ The Gram matrix \(A^{\mathsf{T}}A = [[10,14],[14,20]]\) has eigenvalues solving \(\lambda^{2} - 30\lambda + 4 = 0\), giving \(\lambda_{\max} = 29.8660687473\), so the spectral norm is $$\sqrt{29.8660687473} = 5.4649857042.$$

Matrix grid with one column and one row highlighted showing column-sum and row-sum directions
L1 norm is the maximum column sum; L-infinity norm is the maximum row sum.

FAQ

Is the spectral norm the same as the Frobenius norm? Only for rank-1 matrices (such as a single row or column vector). In general \(\|A\|_2 \le \|A\|_F\), which is at most \(\sqrt{\text{rank}}\) times \(\|A\|_2\).

What about complex matrices? Replace each entry by its magnitude in the absolute-value parts and use the conjugate transpose for the spectral norm. This calculator targets real matrices.

Why does the L1 norm use columns and L-infinity use rows? These are the induced (operator) norms from the L1 and L-infinity vector norms, and they work out to maximum column and row sums respectively.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators