A unit vector is a vector with magnitude . Conventionally written with a hat: .

For any nonzero vector , the unit vector in its direction is

So any vector decomposes cleanly as — magnitude times direction.

Standard unit vectors

In Cartesian coordinates:

They are mutually orthogonal and obey the cyclic cross-product rule .

In Cylindrical coordinates: . In Spherical coordinates: . These curvilinear unit vectors are position-dependent: their direction changes from point to point. The Cartesian unit vectors are constant.

Why we care

Picking off a component. The dot product is the scalar projection of onto the direction — “how much of points along .”

Specifying a direction without committing to a magnitude. Surface normals, tangent directions to curves, axes of rotation, polarization vectors — all stated as unit vectors so the magnitude carries other information.

Normalizing for stability. Computational algorithms (Gram–Schmidt, QR factorization, gradient descent step-direction) often normalize intermediate vectors to unit length to avoid numerical issues.

Unit tangent

For a curve parameterized by , the Unit tangent vector is . It’s the heading at each point, separated from speed.

Unit normal

For an oriented surface, the unit normal specifies which side counts as “out.” It enters surface integrals and the flux integral .

Caveat: only nonzero vectors have a direction

The zero vector has no direction, so it doesn’t correspond to any unit vector. Dividing by is meaningless. Always check the vector you’re normalizing is nonzero — common source of singularities and bugs in numerical code.