When scientists talk about degrees of freedom in physics and chemistry, they are talking about how much a particle, molecule, or object can move or change without breaking any rules or laws.
Think about playing with Legos. You can build your creation in different ways, but there are rules you have to follow so everything stays together. You need to make sure that each piece is connected to another piece or the baseplate, or else it will fall apart. This is similar to how atoms and molecules behave in the world of physics and chemistry.
If you have a molecule made up of different atoms, they can wiggle around and move in different directions. But they still have rules they have to follow, based on the laws of physics and chemistry. These rules dictate things like how far apart the atoms can be, how fast they can move, and how much energy they can have.
The degrees of freedom refer to the different ways that the molecules or particles can move or behave without breaking any of these rules. For example, a single helium atom has three degrees of freedom: it can move back and forth, up and down, and side to side. Adding another helium atom to make a helium molecule would increase the degrees of freedom to five, because now they can also spin around each other.
Scientists use degrees of freedom to help understand and predict how different molecules and particles will behave under different conditions. By knowing how many degrees of freedom a particle has, they can make calculations and experiments to figure out things like how much energy they will absorb or how they will respond to changes in temperature or pressure.