Matrix Norm Calculator
Welcome to the matrix norm calculator. We'll cover the theory behind matrix norms and what they are, as well as the simplified expressions for well-known norms such as the 1-norm, 2-norm, and Frobenius norm of a matrix. With our calculator, you can compute the norm for any matrix of up to size 3×3. So, grab a sandwich and let's get started!
What is the norm of a matrix?
Let's start with a disclaimer: the norm of a matrix does not represent magnitude the way the norm of a vector does. Instead, the norm of a matrix A (sometimes called an induced matrix norm) represents the maximum amount a unit vector x⃗ is stretched when multiplied by A. We can denote this definition, with matrix norm ∥A∥, as:
∥A∥ = max∥x∥=1 ∥Ax⃗∥
In this definition, A is an m×n matrix, and x⃗ is an n×1 unit vector. As per the rules of matrix multiplication, we end up with A·x⃗ as an m×1 vector. Therefore, ∥A·x⃗∥ is a vector norm of A·x⃗.
Just like with vector norms, there's more than one matrix norm. Which matrix norm we're computing depends on which vector norm we're using on A·x⃗. For example, if we pick ∥·∥ to be the 2-norm, then we'll be computing the 2-norm of the matrix, ∥A∥2. This is why many matrix norms are called "induced matrix norms". Matrix norms are most frequently used to calculate a matrix's condition number, which builds on the idea that a matrix norm measures how much a vector gets stretched.
How to calculate the norm of a matrix
The mathematical definition is valuable in theory, but it would be difficult to compute directly. Luckily, we can simplify the formula for several matrix norms. Our calculator returns all of the following at once:
-
The 1-norm, ∥A∥1 — sum the absolute values in each column
of A and take the largest:
∥A∥1 = max1≤j≤n Σi |ai,j|
-
The infinity norm, ∥A∥∞ — sum the absolute values in
each row of A and take the largest:
∥A∥∞ = max1≤i≤m Σj |ai,j|
- The 2-norm (spectral norm), ∥A∥2 — the largest singular value of A, equal to the square root of the largest eigenvalue of ATA.
-
The Frobenius norm, ∥A∥F — the square root of the sum of
the squares of every entry:
∥A∥F = √(Σi,j ai,j2)
-
The max norm, ∥A∥max — the largest absolute value among all
the entries:
∥A∥max = maxi,j |ai,j|
How to use the matrix norm calculator
- Choose the number of rows and columns (from 1 up to 3).
- Type the entries of your matrix into the grid — decimals and negative numbers are allowed.
- Optionally attach a metric, US/imperial, or currency context (12 world currencies, including the US dollar and the Russian ruble) if your entries stand for real-world quantities.
- Press Calculate norms and read off all five norms at once.
How to compute the matrix norm — an example
Consider the 3×3 matrix loaded by default:
1 2 0 -1 3 1 0 2 4
- 1-norm: column absolute sums are |1|+|-1|+|0| = 2, |2|+|3|+|2| = 7, |0|+|1|+|4| = 5. The largest is 7 (column 2).
- Infinity norm: row absolute sums are 3, 5, and 6. The largest is 6 (row 3).
- Frobenius norm: √(1+4+0+1+9+1+0+4+16) = √36 = 6.
- Max norm: the biggest absolute entry is 4.
- 2-norm: the largest singular value, roughly 5.30.
FAQs
Is the matrix norm the same as the vector norm?
No. A vector norm measures a vector's length, while a matrix norm measures how much a matrix can stretch a
unit vector (for induced norms) or aggregates the size of all entries (for the Frobenius and max norms).
Which matrix norm should I use?
It depends on the application. The 1- and infinity-norms are quick to compute by hand and are handy for
error bounds; the 2-norm (spectral norm) is the most "geometric" and appears in condition numbers; the
Frobenius norm is smooth and popular in optimization and machine learning.
Why is the 2-norm harder to compute?
Unlike the 1-, infinity-, Frobenius, and max norms, the spectral 2-norm has no simple row/column formula. It
equals the largest singular value of A, so you need the largest eigenvalue of
ATA — which our calculator finds for you.