Compression in physics is the process of squeezing or pressing an object or substance so that it shortens, shrinks in volume, or increases in density. It’s the opposite of tension (pulling apart). The concept shows up across nearly every branch of physics, from the stress on a building’s columns to the way sound travels through air to the heat generated inside an engine cylinder. At its core, compression always involves forces pushing inward on a material, and the material’s response to that force determines everything from whether a bridge stands to whether a star ignites.
Compressive Stress and Strain
In mechanics, compression is described using two related measurements: stress and strain. Compressive stress is the force applied perpendicular to a surface divided by the area of that surface. If you press down on a block of rubber with 100 newtons of force spread across 0.01 square meters, the compressive stress is 10,000 pascals. Compressive strain is the fraction by which the object shortens. If that rubber block was 10 cm tall and you squeezed it down to 9.5 cm, the strain would be 0.05, or 5%.
These formulas are identical to the ones used for tension, with one practical difference: the length change is negative because the object gets shorter rather than longer. Most materials behave elastically under small compressive loads, meaning they spring back to their original shape when you release the force. Push past a certain threshold and the material deforms permanently, or fails entirely.
Why Some Materials Handle Compression Better
Different materials resist compression to wildly different degrees. A property called the bulk modulus quantifies this resistance: it’s the ratio of pressure applied to the fractional change in volume. Steel has an enormous bulk modulus. Even at the bottom of a 4,000-meter ocean depth, where the pressure reaches about 40 million newtons per square meter, steel compresses by only about 0.025%. Water under that same crushing pressure compresses roughly 1.8%.
Concrete is a classic example of a material built for compression. Its compressive strength is roughly 10 to 12 times greater than its tensile strength, which is why concrete columns and foundations work so well but concrete beams need steel reinforcement to handle the stretching forces on their underside. Engineers choose materials based on whether they’ll primarily face compressive or tensile loads, and this ratio is one of the most important numbers in structural design.
Compression in Sound and Waves
Compression also describes a specific phase of how sound travels. Sound is a longitudinal wave, meaning the particles in the medium (air, water, metal) vibrate back and forth in the same direction the wave moves. When a speaker cone pushes forward, it shoves nearby air molecules closer together, creating a region of higher pressure called a compression. When the cone pulls back, it leaves a region of lower pressure called a rarefaction. These alternating zones of high and low pressure ripple outward from the source, and that pattern of compression and rarefaction is what your ear interprets as sound.
This is different from a transverse wave, like a wave on a guitar string, where the motion is perpendicular to the wave’s direction. Sound waves are always longitudinal. They can only travel through a medium that has some compressibility, which is why sound moves through air, water, and solids but not through a vacuum.
Gas Compression and Heat
When you compress a gas, you do work on it, and that work has to go somewhere. If the compression happens quickly enough that heat doesn’t have time to escape (an adiabatic process), all that energy stays in the gas as increased temperature. This is described by the first law of thermodynamics: the change in a system’s internal energy equals the heat added minus the work the system does. In adiabatic compression, no heat enters or leaves, so the work you do compressing the gas directly raises its internal energy, and therefore its temperature.
The relationship follows a precise rule. For an ideal gas compressed adiabatically, the product of temperature and volume raised to a specific power (related to the gas’s molecular structure) stays constant. Squeeze the volume down and the temperature must rise proportionally. This is the principle behind diesel engines, where air is compressed so forcefully that it gets hot enough to ignite fuel without a spark plug.
Compression Ratio in Engines
Internal combustion engines use compression as the key step in converting fuel into motion. The compression ratio is the ratio of the cylinder’s maximum volume (when the piston is at the bottom) to its minimum volume (when the piston is at the top). A typical gasoline engine runs a compression ratio around 10:1 or 11:1. Diesel engines run higher, often 15:1 to 22:1, because they rely on compression alone to heat the air enough to ignite fuel.
Higher compression ratios generally mean higher thermal efficiency, because more of the fuel’s energy gets converted to useful work rather than waste heat. Research into extreme-compression engines has pushed this idea to its limits. Experiments at compression ratios of 30:1 to 100:1 have achieved indicated efficiencies peaking around 57% to 60%, far beyond the 25% to 35% efficiency of a standard car engine. There are practical barriers to going this high in a production vehicle, but the physics is clear: more compression extracts more energy.
Compressible vs. Incompressible Flow
In fluid dynamics, whether compression matters depends on how fast the fluid is moving. The dividing line is a Mach number of about 0.3, which is 30% of the speed of sound in that fluid. Below Mach 0.3, the density changes in a flowing fluid are so small that engineers treat it as incompressible, simplifying the math considerably. Above Mach 0.3, the fluid’s density starts changing significantly as it flows, and those compressibility effects must be accounted for. This distinction is critical in aerospace engineering, where aircraft routinely operate in the compressible regime.
Gravitational Compression in Stars
On the largest scales, compression drives the life cycle of every star. A star forms when a cloud of gas collapses under its own gravity, compressing the core until temperatures reach millions of degrees. At that point, hydrogen nuclei are squeezed together closely enough and moving fast enough to overcome their mutual electrical repulsion and fuse into helium, releasing enormous energy. This energy creates outward pressure that balances gravity, and the star reaches a stable state.
When a star exhausts the hydrogen in its core, gravity wins again. The core contracts further, heating up, until it becomes hot enough to fuse the next heavier element. This cycle repeats through helium, carbon, oxygen, and so on. How far the process goes depends on the star’s initial mass, which determines how much gravitational compression its core can achieve. Massive stars can fuse elements all the way up to iron before their cores collapse catastrophically in a supernova. Smaller stars, like our sun, will stop at helium or carbon fusion because their cores never get hot or dense enough to go further.

