A gas compressor works by reducing the volume of a gas, which forces its molecules closer together and increases the pressure. This is a direct application of Boyle’s Law: pressure and volume are inversely proportional, so when you halve the volume of a trapped gas, you roughly double its pressure. Every type of compressor uses this principle, but the mechanical method for shrinking that volume varies widely depending on the design.
The Core Physics
Think of gas molecules bouncing around inside a container. If you shrink the container, those molecules hit the walls more frequently and with the same energy, which registers as higher pressure. A compressor does exactly this: it traps a quantity of gas, mechanically reduces the space it occupies, and then releases it at the higher pressure into a pipe, tank, or system downstream.
Compression also generates heat. When gas molecules are forced closer together, the energy put into compressing them converts partly into thermal energy, raising the gas temperature. This is why compressed air feels warm coming out of a compressor and why cooling systems are a critical part of the design. The hotter the gas gets, the more energy is wasted as heat rather than stored as useful pressure.
Reciprocating (Piston) Compressors
A reciprocating compressor works like a bicycle pump scaled up for industrial use. A piston inside a cylinder moves back and forth, driven by a crankshaft. The cycle has two main strokes:
- Intake stroke: The piston moves down (or back), expanding the cylinder volume. This drop in pressure opens an inlet valve, and gas flows in to fill the space.
- Compression stroke: The piston moves up (or forward), shrinking the cylinder volume. The inlet valve closes, trapping the gas. As the volume decreases, pressure rises. Once the gas reaches the target pressure ratio, a discharge valve opens and the compressed gas is pushed into the outlet system.
This is called positive displacement compression because a fixed volume of gas is physically sealed off and then squeezed. Reciprocating compressors are common in natural gas production, where they compress gas at the wellhead for transport into gathering pipelines. They’re also used in smaller workshop air compressors and refrigeration systems. Their main advantage is the ability to produce very high pressures. The tradeoff is that the piston’s back-and-forth motion creates vibration and pulsating output rather than a smooth, continuous flow.
Rotary Screw Compressors
Rotary screw compressors use two tightly meshing spiral rotors, one male and one female, spinning inside a housing. Gas enters at the intake end, where the space between the rotor lobes is large. As the rotors turn, the interlocking spirals push the gas along the length of the housing. Here’s the key: the male lobe is small at the intake end and grows larger toward the discharge end, while the female lobe does the opposite. This means the gap between each pair of lobes steadily shrinks as the gas travels from one end to the other.
That shrinking gap is the compression. By the time the gas reaches the exhaust port, it occupies a much smaller volume and exits at higher pressure. Unlike a piston compressor, there’s no back-and-forth motion, so the output is smooth and continuous. Rotary screw compressors are workhorses in manufacturing plants, automotive shops, and any setting that needs a steady supply of compressed air without the pulsation of a reciprocating design.
Centrifugal Compressors
Centrifugal compressors take a fundamentally different approach. Instead of trapping gas in a shrinking space, they use speed. A high-speed spinning disc called an impeller flings gas outward at very high velocity, converting motor power into kinetic energy. The fast-moving gas then enters a component called a diffuser, which is a stationary passage with a gradually expanding cross-section. As the passage widens, the gas slows down, and that kinetic energy converts into static pressure.
This two-step process (accelerate, then decelerate) is what makes centrifugal compressors unique. They handle enormous volumes of gas and are the go-to choice for large-scale operations like natural gas pipeline transmission, LNG processing, and big industrial HVAC systems. They run smoothly at high speeds with relatively few moving parts, but they’re less efficient at low flow rates and aren’t practical for small-scale applications.
Managing the Heat of Compression
Because compression always generates heat, most compressor systems include cooling equipment. In multi-stage compressors, where gas passes through two or more compression steps in sequence, an intercooler sits between stages. It’s a heat exchanger that cools the gas before it enters the next compression stage, which reduces the energy needed for subsequent compression and prevents dangerously high temperatures.
An aftercooler performs a similar job at the final outlet. It cools the compressed gas after it leaves the last compression stage, bringing the temperature down to a usable range. Cooling the gas also causes water vapor to condense into droplets, which can then be drained off through a moisture separator. Without this step, water would collect in downstream pipes and equipment, causing corrosion and performance problems. Aftercoolers can be air-cooled (using fans and finned tubes) or water-cooled, depending on the installation.
Oil-Lubricated vs. Oil-Free Designs
Oil-lubricated compressors, sometimes called oil-flooded, inject oil into the compression chamber. The oil serves three purposes: it seals the tiny gaps between moving parts and the housing (improving efficiency), it absorbs heat from the compressed gas, and it lubricates bearings. Because the oil closes the gap between the rotor and housing, you get more airflow for less input power. The downside is maintenance. The oil and filters need regular changing, and the oil that mixes with the compressed air must be separated out, filtered, and disposed of properly.
Oil-free compressors eliminate oil from the compression chamber entirely. They rely on special coatings, water injection, or precision engineering that prevents metal-to-metal contact. The benefit is clean output air with no risk of oil contamination, which matters in food processing, pharmaceutical manufacturing, and electronics production. The tradeoff is real, though: oil-free compressors run hotter, operate less efficiently, and generally have shorter lifespans because there’s no oil cushioning the internal components. They also typically need larger air dryers to handle the extra heat and moisture. Both types still require external filtration, because ambient air itself carries contaminants that concentrate during compression.
Where Gas Compressors Are Used
The natural gas industry is one of the largest users. Compressors work at nearly every stage of the supply chain: at the wellhead to compress gas for removal from the well and equalize pressure with gathering systems, at processing plants to separate gas components, along transmission pipelines to keep gas moving across hundreds of miles, and at underground storage facilities to inject and withdraw gas as demand fluctuates. LNG import and export terminals also rely heavily on compression.
Beyond oil and gas, compressors are essential in refrigeration and air conditioning (where they circulate refrigerant), in manufacturing plants that run pneumatic tools and automation equipment, in chemical processing for pressurizing reactors, and in power generation for feeding combustion turbines. Even the air brake systems in trucks and trains depend on compressors. The type chosen for each job depends on the required pressure, flow volume, whether the gas needs to stay oil-free, and how continuous the demand is.
Efficiency and Energy Standards
Compressor efficiency is typically measured by comparing the actual energy consumed to the theoretical minimum energy needed for compression. This ratio, called isentropic efficiency, tells you how much of the electrical or mechanical power input actually goes toward compressing the gas versus being lost as heat and friction. Higher efficiency means lower energy bills and less wasted heat to manage.
Energy use is significant enough that the U.S. Department of Energy now regulates commercial and industrial air compressors. Standards that took effect in January 2025 set minimum energy conservation requirements, codified in federal regulations. Testing procedures are also standardized, including corrections for differences in altitude (since atmospheric pressure affects the pressure ratio a compressor has to achieve). These standards push manufacturers toward more efficient designs, which matters because compressed air systems can account for a substantial share of an industrial facility’s electricity consumption.

