Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Magnitude of a Vector






Measuring Length and Extracting Direction

Every nonzero vector carries two pieces of information: how long it is and which way it points. The norm isolates the first piece — it assigns a single non-negative number to each vector, measuring its length in a way that is consistent across any dimension. Once the norm is defined, distance between vectors follows immediately, and normalization provides a way to strip away length entirely, leaving behind a unit vector that encodes pure direction. The concepts on this page underpin nearly everything that follows in the section, from the angle formula in the dot product to the area interpretation of the cross product.



Magnitude in Two and Three Dimensions

In R2\mathbb{R}^2, the magnitude of a vector v=(v1,v2)\mathbf{v} = (v_1, v_2) is the length of the hypotenuse of the right triangle formed by its components:

v=v12+v22\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2}


This is a direct application of the Pythagorean theorem — the horizontal component v1v_1 and the vertical component v2v_2 form the two legs, and the vector itself is the hypotenuse.

In R3\mathbb{R}^3, the same reasoning applies in two stages. A vector v=(v1,v2,v3)\mathbf{v} = (v_1, v_2, v_3) can be decomposed into a component in the xyxy-plane with length v12+v22\sqrt{v_1^2 + v_2^2} and a vertical component v3v_3. Applying the Pythagorean theorem a second time gives:

v=v12+v22+v32\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}


The geometric intuition is the same in both cases: the magnitude is the straight-line distance from the tail of the vector to its tip. The only difference is the number of perpendicular components being combined.
v1×3v1v2v3squares1×3v1²v2²v3²‖v‖√(v1²+v2²+v3²)
Squares summed, root about to be taken

The squares of the components have been accumulated into a single number and the square root is the last step left. Every component contributes its square and nothing else, which is why the sign of a component cannot affect the length, and why the formula reads the same in two dimensions as in twenty. Run it on your own vector on the magnitude visualizer.

The same sum-of-squares pattern is what the next section generalises to any number of dimensions.

Norm Notation

Notation

Norm Notation

Why the bars come in pairs, the subscripts that name a whole family of lengths, and the hat that promises length one.
Bold marking and Rn\mathbb{R}^nvector notation; single bars on scalars — absolute value.
v\|\mathbf{v}\|
The norm of v; the magnitude of v
Double bars for vector length — the bar count is doing real work: one pair for a scalar's absolute value, two for a vector's norm, and the scalar-vector split is spelled out in The General Norm below. The mathematical keyboard carries the double pair as its own key, so the count is never a typing accident.
CasesThe scaling law mixes both in one line: cv=cv\|c\mathbf{v}\| = |c|\,\|\mathbf{v}\| — single bars on the scalar, double on the vector, each pair applying its own operation.
Also writtenv|\mathbf{v}| — single bars for magnitude, standard in physics and engineering texts; unambiguous there because bold already marks the vector, but it collides with the determinant's bars once matrices arrive.
Do not confuseParallel lines or “evaluated at” bars. The paired-delimiter reading is the only one — and nothing here is a fraction: v\|\mathbf{v}\| wraps, it never divides.
v1  v2  v\|\mathbf{v}\|_1 \; \|\mathbf{v}\|_2 \; \|\mathbf{v}\|_{\infty}
The one-norm, two-norm, and infinity-norm of v
The subscript selects a member of the norm family that The General Norm below names in words: 11 sums absolute values, 22 is the Euclidean default, \infty takes the largest component. An unsubscripted v\|\mathbf{v}\| means the 22-norm.
CasesThe same family carries the script-ell names 1,2,\ell^1, \ell^2, \ell^{\infty} — the letter honours Lebesgue, and the script form exists because a plain ll drowns among 11 and II in print.
Also writtenvp\|\mathbf{v}\|_p — the general member, exponent pp inside the sum, pp-th root outside.
Do not confuseA component index. v2\|\mathbf{v}\|_2 is not “the norm of the second component” — on a norm, the subscript picks the measuring rule, not a slot.
u^\hat{\mathbf{u}}
u hat
The hat is a promise: whatever wears it has norm exactly 11. Writing u^\hat{\mathbf{u}} asserts u^=1\|\hat{\mathbf{u}}\| = 1 with no further words — the convention behind Unit Vectors below.
CasesThe coordinate directions carry two naming traditions: mathematics writes e1,e2,e3\mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3; physics writes ı^,ȷ^,k^\hat{\imath}, \hat{\jmath}, \hat{k} — dotless letters under the hats, same three vectors.
Also writtenu/u\mathbf{u}/\|\mathbf{u}\| — the normalization recipe spelled out, as in Normalization below; the hat names its result.
Do not confuseAn estimator. In statistics the same hat means “estimate of” — p^\hat{p} has nothing to do with unit length; the glyph changes fields and changes jobs.

The General Norm

The pattern from R2\mathbb{R}^2 and R3\mathbb{R}^3 extends without modification to any Rn\mathbb{R}^n. For a vector v=(v1,v2,,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n):

Vector Norm
v=v12+v22++vn2=i=1nvi2\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2} = \sqrt{\sum_{i=1}^{n} v_i^2}
Learn more about this formula: Vector Norm →


This quantity is called the Euclidean norm, or equivalently the 2\ell^2 norm. The subscript distinguishes it from other ways of measuring vector size — the 1\ell^1 norm sums absolute values, the \ell^\infty norm takes the largest absolute component — but when "norm" appears without qualification in this section, it always refers to the Euclidean norm.

The double-bar notation v\|\mathbf{v}\| is standard for the norm. Single bars x|x| are reserved for the absolute value of a scalar. The distinction matters: magnitude is a property of vectors, absolute value is a property of numbers, and the notational separation keeps the two from being confused.

In dimensions beyond three, the formula cannot be visualized as a geometric length, but it retains the same algebraic role. It measures how far v\mathbf{v} sits from the origin in the coordinate system of Rn\mathbb{R}^n, generalizing the concept of length purely through algebra.

Properties of the Norm

The Euclidean norm satisfies three properties that any reasonable notion of length should obey. Together, they are what make the norm a reliable measure of vector size.

Non-Negativity


v0,with equality if and only if v=0\|\mathbf{v}\| \geq 0, \quad \text{with equality if and only if } \mathbf{v} = \mathbf{0}


The sum of squared components is never negative, and its square root is zero only when every component is zero. Length is always non-negative, and the only vector with zero length is the zero vector itself.

Scaling


cv=cv\|c\mathbf{v}\| = |c|\,\|\mathbf{v}\|


Multiplying a vector by a scalar cc multiplies its length by c|c|. The absolute value is necessary because a negative scalar reverses the direction without producing a negative length. This property connects the norm directly to scalar multiplication: scaling a vector by cc does exactly what the geometric picture suggests — it stretches or compresses by c|c| and possibly flips.

Triangle Inequality


a+ba+b\|\mathbf{a} + \mathbf{b}\| \leq \|\mathbf{a}\| + \|\mathbf{b}\|


The length of a sum never exceeds the sum of the individual lengths. Geometrically, in the tip-to-tail picture of vector addition, the direct path from start to finish (the sum) is never longer than the path that follows both vectors end to end. Equality holds only when a\mathbf{a} and b\mathbf{b} point in the same direction — when the path is already straight. The triangle inequality is proved using the Cauchy–Schwarz inequality, which is developed on the dot product page.
Vectors · magnitude

Properties of the norm

Three axioms define a norm; everything below them is derived. Watch the equality cases — each one identifies a geometric configuration, not just an edge case in the algebra.

06properties
Unconditional3
ii
Absolute homogeneity§ 3cv=cv\|c\mathbf{v}\| = |c| \, \|\mathbf{v}\|
Scaling by c multiplies the length by |c|, not by c.
Unconditional
Requires
any scalar cc
Common error
dropping the absolute value — 2v=2v\|{-2}\mathbf{v}\| = 2\|\mathbf{v}\|, not 2v-2\|\mathbf{v}\|

Scaling by cc multiplies the length by c|c|, not by cc. The absolute value is doing real work: for c>0c > 0 the direction is preserved, for c<0c < 0 it reverses, and in both cases the length grows by the same factor. A negative length would violate the axiom above.

iv
Reverse triangle inequality§ 3uvuv\bigl|\, \|\mathbf{u}\| - \|\mathbf{v}\| \,\bigr| \leq \|\mathbf{u} - \mathbf{v}\|
A lower bound to go with the upper one.
Unconditional
Requires
derived, not assumed

A lower bound to go with the upper one. It says two vectors of very different lengths cannot be close together — which is what makes the norm a continuous function, and is used constantly in analysis.

v
Norm and the dot product§ 2v2=vv\|\mathbf{v}\|^2 = \mathbf{v} \cdot \mathbf{v}
Length is the square root of the self-dot product.
Unconditional
Requires
the Euclidean norm specifically

Length is the square root of the self-dot product. This is the bridge between the two: positive definiteness of the dot product is the same statement as non-negativity of the norm, seen from the other side.

Conditional3
i
Non-negativity§ 3v0\|\mathbf{v}\| \geq 0
Length is never negative, and only the zero vector has zero length.
Conditional
Holds when
equality iff v=0\mathbf{v} = \mathbf{0}

Length is never negative, and only the zero vector has zero length. The second half is the load-bearing part — without it a nonzero vector could have length zero and normalization would break, since dividing by the magnitude assumes it is nonzero.

iii
Triangle inequality§ 3u+vu+v\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|
The direct path is never longer than the tip-to-tail path.
Conditional
Holds when
equality iff u\mathbf{u} and v\mathbf{v} point the same way

The direct path is never longer than the tip-to-tail path. Equality holds exactly when one vector is a non-negative multiple of the other — the triangle degenerates to a line. This is the axiom that makes distance a metric, and it follows from the Cauchy–Schwarz inequality.

Both extremesu = (3, 0), v = (4, 0): ‖7‖ = 7 = 3 + 4 equality
u = (3, 0), v = (0, 4): ‖5‖ = 5 < 3 + 4 strict
vi
Unit vector§ 5v^=1\|\hat{\mathbf{v}}\| = 1 where v^=v/v\hat{\mathbf{v}} = \mathbf{v} / \|\mathbf{v}\|
Immediate from absolute homogeneity with c = 1/\|v\|.
Conditional
Holds when
v0\mathbf{v} \neq \mathbf{0}
Fails when
v=0\mathbf{v} = \mathbf{0} — division by zero

Immediate from absolute homogeneity with c=1/vc = 1/\|\mathbf{v}\|. The zero vector cannot be normalised, which is the same fact as it having no direction.

Unconditional
Conditional
v0\|\mathbf{v}\| \geq 0
Holds when
equality iff v=0\mathbf{v} = \mathbf{0}
Length is never negative, and only the zero vector has zero length. The second half is the load-bearing part — without it a nonzero vector could have length zero and normalization would break, since dividing by the magnitude assumes it is nonzero.
Read the full section
cv=cv\|c\mathbf{v}\| = |c| \, \|\mathbf{v}\|
Requires
any scalar cc
Common error
dropping the absolute value — 2v=2v\|{-2}\mathbf{v}\| = 2\|\mathbf{v}\|, not 2v-2\|\mathbf{v}\|
Scaling by cc multiplies the length by c|c|, not by cc. The absolute value is doing real work: for c>0c > 0 the direction is preserved, for c<0c < 0 it reverses, and in both cases the length grows by the same factor. A negative length would violate the axiom above.
Read the full section
u+vu+v\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|
Holds when
equality iff u\mathbf{u} and v\mathbf{v} point the same way
The direct path is never longer than the tip-to-tail path. Equality holds exactly when one vector is a non-negative multiple of the other — the triangle degenerates to a line. This is the axiom that makes distance a metric, and it follows from the Cauchy–Schwarz inequality.
Both extremesu = (3, 0), v = (4, 0): ‖7‖ = 7 = 3 + 4 equality
u = (3, 0), v = (0, 4): ‖5‖ = 5 < 3 + 4 strict
Read the full section
uvuv\bigl|\, \|\mathbf{u}\| - \|\mathbf{v}\| \,\bigr| \leq \|\mathbf{u} - \mathbf{v}\|
Requires
derived, not assumed
A lower bound to go with the upper one. It says two vectors of very different lengths cannot be close together — which is what makes the norm a continuous function, and is used constantly in analysis.
Read the full section
v2=vv\|\mathbf{v}\|^2 = \mathbf{v} \cdot \mathbf{v}
Requires
the Euclidean norm specifically
Length is the square root of the self-dot product. This is the bridge between the two: positive definiteness of the dot product is the same statement as non-negativity of the norm, seen from the other side.
Read the full section
Unit vector§ 5Conditional
v^=1\|\hat{\mathbf{v}}\| = 1 where v^=v/v\hat{\mathbf{v}} = \mathbf{v} / \|\mathbf{v}\|
Holds when
v0\mathbf{v} \neq \mathbf{0}
Fails when
v=0\mathbf{v} = \mathbf{0} — division by zero
Immediate from absolute homogeneity with c=1/vc = 1/\|\mathbf{v}\|. The zero vector cannot be normalised, which is the same fact as it having no direction.
Read the full section
Any function satisfying the first three is a norm, and the Euclidean length is only one of them. The taxicab and maximum norms satisfy all three while measuring distance differently — which is why the axioms are stated separately from the square-root formula that happens to satisfy them.
Properties of the norm·/linear-algebra/vectors/magnitudeLearn Math Class

Distance Between Vectors

The norm provides a natural way to measure how far apart two vectors are. The distance between a\mathbf{a} and b\mathbf{b} is defined as the norm of their difference:

Distance Between Vectors
d(a,b)=ab=(a1b1)2+(a2b2)2++(anbn)2d(\mathbf{a}, \mathbf{b}) = \|\mathbf{a} - \mathbf{b}\| = \sqrt{(a_1 - b_1)^2 + (a_2 - b_2)^2 + \cdots + (a_n - b_n)^2}
Learn more about this formula: Distance Between Vectors →


When a\mathbf{a} and b\mathbf{b} are interpreted as position vectors — arrows from the origin to points in space — this formula gives the straight-line distance between those points. In R2\mathbb{R}^2, it reduces to the familiar distance formula from coordinate geometry. In R3\mathbb{R}^3, it extends to three-dimensional Euclidean distance. In higher dimensions, the algebraic expression remains identical even though the geometry can no longer be drawn.

Distance inherits its behavior from the norm. It is always non-negative, equals zero only when the two vectors are identical, is symmetric (d(a,b)=d(b,a)d(\mathbf{a}, \mathbf{b}) = d(\mathbf{b}, \mathbf{a}), since ab=ba\|\mathbf{a} - \mathbf{b}\| = \|\mathbf{b} - \mathbf{a}\|), and satisfies its own triangle inequality: d(a,c)d(a,b)+d(b,c)d(\mathbf{a}, \mathbf{c}) \leq d(\mathbf{a}, \mathbf{b}) + d(\mathbf{b}, \mathbf{c}). These properties make the Euclidean distance a metric — a formal measure of separation on Rn\mathbb{R}^n.

Unit Vectors

A unit vector is a vector whose norm equals exactly 11:

u^=1\|\hat{\mathbf{u}}\| = 1


A unit vector retains all the directional information of the original vector while discarding any notion of scale. It answers the question "which way?" without saying "how far."

The standard basis vectors are the most immediate examples. In R3\mathbb{R}^3:

e1=(1,0,0),e2=(0,1,0),e3=(0,0,1)\mathbf{e}_1 = (1, 0, 0), \quad \mathbf{e}_2 = (0, 1, 0), \quad \mathbf{e}_3 = (0, 0, 1)


Each has exactly one component equal to 11 and the rest equal to 00, giving a norm of 11. These unit vectors point along the coordinate axes, and any vector can be decomposed as a linear combination of them: v=v1e1+v2e2+v3e3\mathbf{v} = v_1\mathbf{e}_1 + v_2\mathbf{e}_2 + v_3\mathbf{e}_3.

But unit vectors are not confined to the coordinate directions. Any direction in Rn\mathbb{R}^n has a corresponding unit vector. The vector (12,12)\left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right) is a unit vector in R2\mathbb{R}^2 pointing at 45°45° to both axes. The set of all unit vectors in R2\mathbb{R}^2 traces the unit circle; in R3\mathbb{R}^3, the unit sphere.

Normalization

Normalization is the process of converting any nonzero vector into the unit vector that shares its direction. Given v0\mathbf{v} \neq \mathbf{0}, the normalized form is:

Normalization
v^=vv=1v(v1,v2,,vn)\hat{\mathbf{v}} = \frac{\mathbf{v}}{\|\mathbf{v}\|} = \frac{1}{\|\mathbf{v}\|}(v_1, v_2, \ldots, v_n)
Learn more about this formula: Normalization →


This divides every component by the same positive scalar v\|\mathbf{v}\|, which is a special case of scalar multiplication by 1v\frac{1}{\|\mathbf{v}\|}. The scaling property of the norm guarantees that the result has magnitude 11:

vv=vv=1\left\|\frac{\mathbf{v}}{\|\mathbf{v}\|}\right\| = \frac{\|\mathbf{v}\|}{\|\mathbf{v}\|} = 1


Because the scalar 1v\frac{1}{\|\mathbf{v}\|} is positive, the direction of v\mathbf{v} is preserved — the normalized vector v^\hat{\mathbf{v}} points exactly the same way as v\mathbf{v}, just with unit length.

The zero vector cannot be normalized. It has 0=0\|\mathbf{0}\| = 0, and dividing by zero is undefined. This is consistent with the geometric fact that the zero vector carries no directional information — there is no "way" it points, so extracting a direction from it is impossible.

Normalization appears throughout the rest of this section. The angle formula on the dot product page involves the quantity abab\frac{\mathbf{a} \cdot \mathbf{b}}{\|\mathbf{a}\|\|\mathbf{b}\|}, which is the dot product of the two normalized vectors a^b^\hat{\mathbf{a}} \cdot \hat{\mathbf{b}}. Orthogonal projection decomposes a vector relative to a direction, and that direction is specified most cleanly through a unit vector. Whenever a formula isolates the directional component of a vector, normalization is doing the work underneath.
v1×3v1v2v3÷‖v‖√(v1²+v2²+v3²)=1×3v1/‖v‖v2/‖v‖?
Dividing through by the norm

Each component is being divided by the length just computed, so the direction survives untouched while the size collapses to exactly one. This is why normalisation fails for the zero vector alone — it is the single case with no length to divide by and no direction to preserve. Normalise a vector of your choosing on the magnitude visualizer.

A normalised vector is therefore a pure direction, which is what makes it the natural building block for bases and projections later on.

Summary: Norm and the Concepts Built from It

The norm is the foundation of three related concepts this page has developed: distance (the norm of a difference), unit vector (a vector with norm exactly 1), and normalization (rescaling any nonzero vector to unit length). The table below collects each alongside its definition, formula, and direct relationship to the norm ‖v‖ &mdash; showing the family tree of ideas that grow out of a single length measurement.
Concept Definition Formula Built from the norm by
Norm ‖v length of v √(v₁² + v₂² + ⋯ + vₙ²) (the base concept — everything below is derived from this)
Distance d(a, b) straight-line distance between two vectors viewed as points ab‖ = √(Σ(aᵢ − bᵢ)²) applying the norm to the difference ab
Unit vector û a vector that carries pure direction with no scale û‖ = 1 requiring the norm to equal exactly 1
Normalization turn any nonzero vector into the unit vector pointing the same way = v / ‖v dividing v by its own norm (undefined for v = 0)

Vector Magnitude FAQ

Why does the norm use double bars instead of single ones?

+
The bar count marks what is being measured. One pair takes the absolute value of a scalar, two pairs take the length of a vector. The scaling law puts both in a single line: cv=cv\|c\mathbf{v}\| = |c|\,\|\mathbf{v}\|. Physics texts often write single bars for magnitude, which is fine until determinants arrive and claim the same glyph.Read more →

What does the subscript in v2\|\mathbf{v}\|_2 refer to?

+
The measuring rule, not a component. The 11-norm sums absolute values, the 22-norm is the familiar Euclidean length, and the \infty-norm takes the largest component. An unsubscripted v\|\mathbf{v}\| means the 22-norm by default. Reading it as the norm of the second component is a common misparse.Read more →

What does the hat in u^\hat{\mathbf{u}} promise?

+
That the vector has length exactly 11. Writing u^\hat{\mathbf{u}} asserts u^=1\|\hat{\mathbf{u}}\| = 1 without further comment, which is why normalizing a vector is described as putting a hat on it. Watch the field, though: in statistics the same hat means "estimate of" and says nothing about length.Read more →