Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
Degrees of Freedom in Mechanics (Definition)

Degrees of Freedom in Mechanics

A mechanical system may be described with many coordinates, but not all of those coordinates are necessarily independent. The number of degrees of freedom is the minimum number of independent parameters required to specify the configuration of the system.

This idea becomes increasingly important as mechanics progresses. It explains why a pendulum needs only one generalized coordinate, why a free particle in three-dimensional space needs three, why a rigid body in space needs six, and why constraints can reduce a seemingly complicated problem to a much smaller one.

The basic counting idea is

degrees of freedom  = independent  coordinates needed to specify configuration.
(1)

For a system initially described by n coordinates and subject to m independent regular holonomic constraints, the local count is

f = n −  m.
(2)

This formula is powerful, but its assumptions matter. The constraints must actually be independent, and more advanced nonholonomic or singular constraints require greater care.

1 Coordinates are not automatically degrees of freedom

Suppose a particle moves in the xy plane. Its position can be specified by two Cartesian coordinates,

(x,y),
(3)

so an unconstrained particle in a plane has two degrees of freedom.

Now suppose the particle is restricted to a circle of fixed radius L:

x2 + y2 = L2.
(4)

Although two Cartesian coordinates still appear, they are not independent. Once x is chosen, y is restricted by the constraint, and vice versa. A single angular coordinate 𝜃 can describe the configuration:

x = L cos 𝜃,
(5)

y = L sin𝜃.
(6)

The constrained particle therefore has one degree of freedom.

PIC

Figure 1. Coordinates and degrees of freedom are not the same thing. A free particle in a plane needs two independent coordinates, while a particle constrained to a circle needs only one.

2 Configuration versus state

The word configuration refers to where the system is geometrically, not to how fast it is moving.

For a particle moving along a line, one coordinate x specifies its configuration. The system therefore has one configuration degree of freedom.

To predict future motion using Newtonian mechanics, one normally also needs the velocity ẋ. Thus the instantaneous dynamical state can be represented by

(x, ˙x).
(7)

That does not mean the particle suddenly has two configuration degrees of freedom. It still has one degree of freedom; position and velocity together specify its state.

In hamiltonian mechanics a system with f configuration degrees of freedom is commonly represented in a 2f-dimensional phase space with coordinates

(q1,...,qf,p1,...,pf).
(8)

This distinction between configuration-space dimension f and phase-space dimension 2f is important later in analytical mechanics.

3 Elementary examples

Several common systems provide useful reference points.

A particle restricted to a straight line has

f = 1.
(9)

A free particle in a plane has

f = 2.
(10)

A free particle in ordinary three-dimensional space has

f = 3.
(11)

Two independent free particles in three dimensions require six independent position coordinates, so

f = 6.
(12)

For N unconstrained particles in three dimensions,

f = 3N.
(13)

Constraints reduce this number.

4 Constraints reduce the number of independent coordinates

A constraint restricts the configurations available to a system. A holonomic constraint can be written as an equation involving the coordinates and possibly time:

g(q ,q ,...,q ,t) = 0.
   1  2      n
(14)

If there are m independent holonomic constraints,

g1 = 0,   g2 = 0,  ...,  gm  = 0,
(15)

then, under regular conditions, the number of independent degrees of freedom is

f = n −  m.
(16)

The word independent matters. Repeating the same physical constraint in different algebraic forms does not remove extra degrees of freedom.

5 Worked example 1: the simple pendulum

A point mass moving in a vertical plane has Cartesian coordinates (x,y), so without constraints it would require two degrees of freedom.

For a pendulum of fixed length L, the mass must satisfy

 2    2     2
x  + y  = L  .
(17)

There are two coordinates and one independent holonomic constraint, so

f = 2 − 1 = 1.
(18)

A convenient generalized coordinate is the angle 𝜃:

x = L sin𝜃,
(19)

y = − L cos𝜃.
(20)

Once 𝜃 is specified, both Cartesian coordinates are fixed. The pendulum therefore has one degree of freedom.

This example captures the main advantage of generalized coordinates: instead of carrying two coordinates plus a constraint equation, one may choose a single coordinate that automatically satisfies the constraint.

6 Configuration space

For a system with f degrees of freedom, the set of all allowed configurations forms an f-dimensional configuration space.

For a free particle in a plane, configuration space is the entire xy plane. For a particle constrained to a circle, the allowed configurations form only the circle itself, which is one-dimensional.

The system may be embedded in a higher-dimensional coordinate space while its actual configuration space has lower dimension because of constraints.

PIC

Figure 2. A constraint can reduce the dimension of configuration space. The circle is embedded in a two-dimensional plane but is itself a one-dimensional configuration space.

7 Generalized coordinates

A set of independent variables

q ,q,...,q
 1  2     f
(21)

that uniquely specifies the configuration is called a set of generalized coordinates.

Generalized coordinates do not have to be Cartesian distances. They may be angles, lengths along a curve, rotation parameters, or combinations of ordinary coordinates.

For example, a bead constrained to move on a fixed wire can often be described by a single path coordinate s. A pendulum can be described by one angle 𝜃. A planar rigid body can be described by two translation coordinates and one orientation angle.

The number of generalized coordinates required equals the number of degrees of freedom, provided the coordinates are independent and nonsingular in the region of interest.

8 Worked example 2: three particles forming a rigid triangle in a plane

Consider three point masses moving in a plane. Without constraints, each mass needs two coordinates, so the three-particle system has

n =  3(2) = 6
(22)

coordinates.

Now suppose the three pairwise distances are fixed:

|r1 − r2| = L12,
(23)

|r2 − r3| = L23,
(24)

|r3 − r1| = L31.
(25)

For a nondegenerate triangle these are three independent geometric constraints. Therefore

f = 6 − 3 = 3.
(26)

Those three degrees of freedom have a simple physical interpretation:

  1. translation of the whole triangle in the x direction,
  2. translation of the whole triangle in the y direction,
  3. rotation of the triangle in the plane.

Thus a rigid body moving in a plane has three degrees of freedom.

9 Rigid bodies

A rigid body contains an enormous number of atoms, but its internal distances are fixed to an excellent approximation. Those rigidity constraints remove almost all of the particle coordinates.

A rigid body moving freely in three-dimensional space has six degrees of freedom:

f = 6.
(27)

Three specify translation of a reference point, such as the center of mass:

x,   y,  z.
(28)

Three specify orientation.

Orientation may be represented in many ways: Euler Angles, a direction-cosine matrix, an axis-angle description, or a quaternion. Some of those representations use more numerical parameters than three, but extra algebraic constraints may be present. The physical orientation still has three degrees of freedom.

A unit quaternion, for example, uses four numbers but obeys one normalization condition. Therefore its four components do not represent four independent rotational degrees of freedom.

PIC

Figure 3. A free rigid body in three-dimensional space has six degrees of freedom: three translational and three rotational.

10 Worked example 3: a rigid dumbbell in three dimensions

Two point masses in three-dimensional space have six unconstrained coordinates:

(x1,y1,z1,x2,y2,z2).
(29)

Suppose they are connected by a massless rigid rod of fixed length L. The distance constraint is

        2     2
|r2 − r1|  = L .
(30)

This is one independent constraint, so

f = 6 − 1 = 5.
(31)

The result also has a direct physical interpretation. Three coordinates locate the center of mass. Two angles specify the direction of the rod in space. Rotation about the rod’s own axis does not change the configuration of two point masses, so no sixth degree of freedom appears.

This contrasts with a general three-dimensional rigid body, whose material distribution can change orientation under rotation about any of its body axes and therefore requires three independent orientation degrees of freedom.

11 Degrees of freedom and symmetries

A degree of freedom describes an independent way the configuration can change. A symmetry can make the associated coordinate dynamically simple, but symmetry does not automatically remove the degree of freedom.

For example, the azimuthal angle of a particle in a central force field remains a valid coordinate even if the Lagrangian does not depend explicitly on that angle. The coordinate is then cyclic, and its conjugate momentum is conserved. The degree of freedom still exists.

Thus it is useful to distinguish

absent degree of freedom
(32)

from

degree of freedom  with a conserved momentum.
(33)

12 When the simple counting rule needs care

The formula

f =  n − m
(34)

Works well for independent regular holonomic constraints. Several situations require more careful analysis.

Redundant constraints

If one constraint follows from the others, it does not reduce the dimension again.

Singular configurations

At special geometric configurations, the rank of the constraint equations may change. A counting formula valid in a regular region can then fail at the singular point.

Nonholonomic constraints

Some constraints involve velocities and cannot be integrated into coordinate-only equations. Rolling without slipping is a standard example. Advanced mechanics distinguishes carefully between the dimension of configuration space and the instantaneous velocity directions permitted by such constraints.

For the introductory use of degrees of freedom, the safest rule is to count independent coordinates after incorporating all independent geometric constraints.

13 Degrees of freedom in continua and fields

A continuous string, fluid, or electromagnetic field is described by a quantity defined at every spatial point. Such systems are often said to possess infinitely many degrees of freedom in the continuum idealization.

A vibrating string, for example, is described by a displacement field

y(x, t).
(35)

Discretizing the string into N movable masses produces approximately N coordinates. Taking the continuum limit sends the number of coordinates toward infinity.

This is one bridge from particle mechanics to continuum mechanics and classical field theory.

14 Degrees of freedom and normal modes

Near stable equilibrium, a system with f mechanical degrees of freedom often has f independent small-oscillation normal modes, after appropriate treatment of constraints and zero-frequency symmetries.

This connection will become important in the later small-oscillation sequence. Degrees of freedom determine the dimension of the coordinate problem; normal modes provide a particularly useful set of coordinates for the linearized dynamics.

15 A practical counting procedure

For elementary mechanics problems, the following procedure is reliable.

  1. Identify the objects whose configurations must be specified.
  2. Count the coordinates before constraints are applied.
  3. Write the independent geometric constraints explicitly.
  4. Subtract only independent constraints.
  5. Check whether a smaller set of generalized coordinates can describe the allowed configurations directly.
  6. Verify that changing any one proposed generalized coordinate can change the configuration independently, at least locally.

The process can be summarized as

coordinates −→  constraints − → independent  generalized coordinates −→  configuration space.
(36)

PIC

Figure 4. Degrees-of-freedom counting is a reduction from a possibly redundant coordinate description to the independent coordinates that span the allowed configuration space.

16 Common mistakes

  1. Counting every written coordinate as an independent degree of freedom.
  2. Counting velocities as extra configuration degrees of freedom.
  3. Subtracting constraints that are algebraically redundant.
  4. Assuming a four-component quaternion means four rotational degrees of freedom.
  5. Confusing a conserved coordinate momentum with removal of the coordinate itself.
  6. Applying f = n−m blindly to singular or nonholonomic systems without checking its assumptions.

17 Practice problems

M00-07-P01: Particle on a line

A particle is constrained to move along the x axis. How many configuration degrees of freedom does it have? Give one possible generalized coordinate.

M00-07-P02: Particle on a sphere

A particle moves on the surface of a sphere of fixed radius R. Starting from Cartesian coordinates (x,y,z), count the degrees of freedom and suggest a convenient pair of generalized coordinates.

M00-07-P03: Two free particles in a plane

Two independent particles move in a plane. How many degrees of freedom does the system have?

M00-07-P04: Two particles joined by a rigid rod in a plane

Two point masses move in a plane and remain separated by a fixed distance L. Count the degrees of freedom. Interpret them physically.

M00-07-P05: Bead on a rotating hoop

A bead is constrained to a circular hoop of fixed radius. The hoop’s rotation angle is prescribed externally as a known function of time. How many mechanical configuration degrees of freedom does the bead have?

M00-07-P06: Planar rigid body

Explain why a general rigid body moving in a plane has three degrees of freedom. Name a convenient set of generalized coordinates.

M00-07-P07: Spatial rigid body

A free rigid spacecraft is modeled as a rigid body in three-dimensional space. How many degrees of freedom does its configuration have? Explain why a four-component unit quaternion does not change that physical count.

M00-07-P08: Constrained particle system

Four particles move in three dimensions. Before constraints are applied, how many degrees of freedom are available? If three independent holonomic constraints are imposed, what is the local degree-of-freedom count?

18 Short answer check

  1. P01: one; for example x.
  2. P02: two; for example spherical angles 𝜃 and ϕ.
  3. P03: four.
  4. P04: three; two translations plus one orientation angle.
  5. P05: one, because the hoop motion is prescribed rather than an independent dynamical coordinate.
  6. P06: three; for example (xCM,yCM,𝜃).
  7. P07: six; the quaternion has four components plus one normalization constraint, leaving three independent orientation parameters.
  8. P08: twelve before constraints and nine after three independent constraints.

19 Where this article leads

Degrees of freedom are the natural bridge from elementary Newtonian mechanics to analytical mechanics. The next conceptual steps are generalized coordinates, constraints, virtual displacements, and Lagrange’s equations. Later articles will also use the same counting ideas for rigid-body dynamics, small oscillations, Hamiltonian phase space, continuum mechanics, and field theory.

References

[1]   J. R. Taylor, Classical Mechanics, University Science Books, 2005.

[2]   J. B. Marion and S. T. Thornton, Classical Dynamics of Particles and Systems, 5th ed., Brooks/Cole, 2004.

[3]   H. Goldstein, C. Poole, and J. Safko, Classical Mechanics, 3rd ed., Addison-Wesley, 2002.

[4]   Wikibooks, Classical Mechanics, sections on generalized coordinates and constraints, CC BY-SA.


"Degrees of Freedom in Mechanics" is owned by bloftin.
(view preamble)
View style:
Other names:  degrees of freedom, M00-07
Keywords:  degrees of freedom, generalized coordinates, constraints, configuration space, particle systems, rigid body, holonomic constraints, mechanics

Attachments:
GRE Physics Companion: Degrees of Freedom in Mechanics (Example) by bloftin

Cross-references: oscillations, Lagrange's equations, function, equilibrium, works, momentum, Lagrangian, field, force, unit, representations, quaternion, matrix, Euler Angles, center of mass, two-dimensional, coordinate space, mass, algebraic, dimension, hamiltonian, velocity, motion, Cartesian coordinates, position, formula, regular, rigid body, particle, generalized coordinate, mechanics, parameters, system
There is 1 reference to this object.

This is version 2 of Degrees of Freedom in Mechanics, born on 2026-09-27, modified 2026-09-27.
Object id is 1306, canonical name is DegreesOfFreedomInMechanics.
Accessed 15 times total.

Classification:
Physics Classification: 45.20.Jj (Lagrangian and Hamiltonian mechanics)
 45.20.-d (Formalisms in classical mechanics)
 45.40.-f (Dynamics and kinematics of rigid bodies)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add derivation | add example | add (any)