A normal vector is a nonzero vector perpendicular to a line, a plane, or the tangent space of a geometric object at a specified point. In Euclidean space, perpendicularity is measured by the dot product: a vector is normal to a tangent direction when . Normal vectors describe the orientation of surfaces and boundaries and are used throughout analytic geometry, differential geometry, physics, and computer graphics. A unit normal is a normal vector of length one.
Definition and normal spaces
Let be a smooth -dimensional submanifold of , and let . The normal space at is the orthogonal complement of its tangent space:
Its dimension is . Strictly speaking, the normal space contains the zero vector, but a vector used to specify a normal direction is required to be nonzero.
For a smooth surface in three-dimensional space, the tangent space is a plane and the normal space is a line. Consequently, every normal vector at a given point is a scalar multiple of any other one. There are exactly two unit normals, pointing in opposite directions:
Here denotes the Euclidean norm. “Normal” does not mean “normalized”: normality specifies perpendicularity, whereas normalization specifies unit length.
A curve in three-dimensional space has a two-dimensional normal space, so perpendicularity to the curve alone does not select a unique normal direction. More generally, a submanifold has a unique normal line only when its dimension is one less than that of the ambient space.
In an inner-product space, the definition uses the relevant inner product in place of the Euclidean dot product. Normality therefore depends on the metric, not just on the underlying coordinates.
Lines, planes, and hyperplanes
A line in with equation
has normal vector . A direction vector along the line is , whose dot product with is zero.
Similarly, the plane
has normal vector , provided its coefficients are not all zero.
In , a hyperplane can be written as
where is a point on the hyperplane and is a normal vector. The normal determines the hyperplane’s orientation, while determines its position.
Distance and projection
Once a direction for the unit normal has been chosen, the signed distance from a point to is
Its absolute value is the ordinary perpendicular distance. The orthogonal projection of onto the hyperplane is
For example, the plane has normal vector , of length . The distance from to the plane is therefore
Computing surface normals
Implicit surfaces and gradients
Suppose a surface is described locally by a level equation
where is continuously differentiable. At a point where the gradient is nonzero,
is normal to the surface.
This follows from the chain rule. If is a curve lying on the surface and passing through , then
Thus the gradient is perpendicular to every tangent direction. The corresponding tangent plane at is
For a sphere centered at the origin,
the gradient is . On a sphere of radius , the outward unit normal is therefore
The condition is essential to this construction. If the gradient vanishes, the formula supplies no direction. This can indicate either a genuinely singular surface or an unsuitable defining equation. For example, defines the smooth plane as a level set, but its gradient vanishes everywhere on that plane.
Graphs of functions
For the graph of a differentiable function , use
An upward-pointing normal vector is
and the upward unit normal is
The negative of this vector gives the downward unit normal.
Parametric surfaces
For a regular parametrized surface
the partial derivatives and span the tangent plane. Their cross product gives a normal:
Regularity requires the cross product to be nonzero. Reversing the order of the parameters reverses the normal direction.
For a triangle with noncollinear vertices , the same construction gives a face normal:
Its magnitude equals twice the triangle’s area.
Several simultaneous constraints
Suppose a submanifold is defined locally by
with linearly independent gradients at the point under consideration. Its normal space is
If is the Jacobian matrix whose rows are these gradients, then
This connects surface geometry with the null space and image of a matrix.
Normals to curves
For a regular plane curve , rotating the tangent vector through a right angle gives a normal vector:
Either sign may be chosen.
For a space curve, every vector perpendicular to its tangent is normal in the broad sense. A particular choice, the principal normal, is defined using the change of the unit tangent. With arc length and unit tangent ,
where . The curvature is
Thus the principal normal is defined where curvature is nonzero, and points in the direction in which the tangent turns. It should not be confused with an arbitrary member of the curve’s normal space or with the normal to a surface containing the curve.
Orientation and normal fields
Choosing a unit normal at every point of a surface produces a normal vector field. A continuous choice distinguishes two sides of the surface.
For a smooth embedded surface in , the existence of a globally continuous unit normal is equivalent to orientability. An orientable surface admits such a choice; a Möbius strip does not, although normals can still be chosen in sufficiently small neighborhoods.
For a smooth boundary enclosing a region, the usual convention is the outward unit normal, pointing away from the region’s interior. Changing this choice reverses the sign of oriented flux integrals.
At edges, corners, and other nonsmooth points, there may be no unique tangent plane and hence no unique classical surface normal. Each adjacent smooth face may have its own normal. In convex optimization, this ambiguity is handled by a normal cone. For a convex set and , one convention defines
At a smooth boundary point of a full-dimensional convex region, this cone consists of the outward normal ray together with zero.
Applications
Flux and boundary conditions
The flux of a vector field through an oriented surface is a surface integral:
The dot product extracts the component crossing the surface rather than moving tangentially along it. The divergence theorem relates outward flux through a closed boundary to the volume integral of divergence:
Normals also specify boundary data in partial differential equations. The normal derivative of a scalar field is
Prescribing this derivative is a common form of Neumann boundary condition in a boundary-value problem.
Constrained optimization
At a regular constrained stationary point of a differentiable function on a surface ,
The geometric meaning is that has no component along feasible tangent directions: it lies in the normal space of the constraint. This is the basis of the method of Lagrange multipliers.
Computer graphics and transformations
In computer graphics, surface normals are used for lighting, visibility tests, reflection, and shading. A polygon has a geometric face normal; interpolated vertex normals may instead be used to give a mesh a visually smooth appearance. Such shading normals need not equal the exact normals of the polygonal surface.
Normals do not generally transform in the same way as positions or tangent vectors. Under an invertible affine transformation
a normal transforms, up to nonzero scale, as
Indeed, for a transformed tangent ,
The resulting vector must usually be normalized. Applying directly to a normal works for orthogonal transformations and uniform scaling, but generally fails under nonuniform scaling or shear. If orientation is tracked through ordered surface tangents, the sign of the transformation’s determinant must also be accounted for.