The short answer
The main difference between a gas and a diesel engine is how the fuel is ignited. A gasoline engine mixes fuel with air, compresses the mixture moderately, and lights it with a spark plug. A diesel compresses air alone, much harder, until it is hot enough that injected fuel ignites by itself. Almost every other difference, from compression ratio and torque to engine weight and fuel economy, flows from that.
Both are four-stroke internal combustion engines with pistons, valves and a crankshaft. If you want the full diesel walkthrough first, see how diesel engines work.
Side-by-side comparison
| Gasoline engine | Diesel engine | |
|---|---|---|
| Ignition | Spark plug | Heat of compression |
| What’s drawn in | Air and fuel (or air, with direct injection) | Air only |
| Typical compression ratio | About 8:1 to 12:1 (some modern engines higher) | About 14:1 to 25:1 |
| Power control | Throttle limits airflow | Amount of fuel injected |
| Typical rev range | Higher | Lower |
| Character | More horsepower per litre, revs freely | More torque at low rpm |
| Construction | Lighter | Heavier, built for higher pressures |
| Fuel economy | Lower | Typically better for the same size vehicle |
| Main emissions challenge | CO, HC, NOx handled by a three-way catalyst | NOx and soot, needing EGR, DPF and SCR |
| Purchase price | Usually lower | Usually higher |
How each engine runs through the four strokes
Both engines use intake, compression, power and exhaust strokes, but they do different things in each.
- Intake: a gasoline engine with port injection draws in an air-fuel mixture. Many newer gas engines use direct injection and spray fuel into the cylinder instead, but still ignite it with a spark. A diesel draws in air only.
- Compression: the gasoline engine has to limit compression, because squeezing fuel and air too far makes the mixture ignite on its own, which is called knock. The diesel compresses air only, so it can go much higher and in fact depends on reaching self-ignition temperature.
- Ignition and power: the spark plug fires near the top of the stroke in a gasoline engine. In a diesel, the injector sprays fuel into the hot air and it lights after a very short delay. Either way, expanding gas pushes the piston down.
- Exhaust: essentially the same in both; the exhaust valve opens and the piston pushes the burnt gas out.
Diesel fuel vs gasoline: the fuels themselves
The fuels are built for opposite jobs. Gasoline needs to resist self-ignition, which is what its octane rating measures. Diesel needs to self-ignite readily, which is what its cetane number measures.
Diesel fuel is also:
- Heavier and oilier, evaporating much more slowly than gasoline.
- More energy-dense by volume. A gallon of diesel commonly contains roughly 10 to 15 percent more energy than a gallon of gasoline.
- A lubricant for the high-pressure fuel pump and injectors. This is why putting gasoline in a diesel can be so damaging; see what happens if you put gasoline in a diesel engine.
- Prone to gelling in severe cold, because waxes in the fuel can crystallise. Winter-blend diesel and additives exist to deal with this.
Efficiency and fuel economy
Diesels usually use less fuel than a comparable gasoline engine. The reasons are:
- Higher compression ratio, which extracts more work from each combustion event.
- No throttle losses. A gasoline engine at light load has to pull air past a partly closed throttle, which wastes energy. A diesel runs unthrottled and just injects less fuel.
- Lean combustion, with more air than is strictly needed.
- More energy per gallon of fuel.
Figures from US government and industry sources commonly put the fuel-economy advantage of a diesel at somewhere around 20 to 35 percent over a similar gasoline engine, though real results depend heavily on the vehicles being compared and how they’re driven. Modern hybrids and efficient turbo gasoline engines have narrowed the gap in many passenger cars.
How many miles does a gallon of diesel give you?
There’s no single answer, because it depends on the vehicle far more than the fuel. As a rough guide:
- Heavy semi-trucks often get somewhere in the single digits, very roughly 6 to 8 miles per gallon loaded.
- Heavy-duty diesel pickups commonly land in the mid-teens to low 20s unloaded, and less when towing.
- Small diesel cars can exceed 40 or even 50 miles per US gallon on the highway.
Check official ratings or owner reports for a specific model.
Torque, horsepower and towing
A diesel makes its torque at lower engine speeds, which is why it suits towing, hauling and heavy equipment. A gasoline engine typically makes its power higher in the rev range and can often produce more horsepower from the same size engine because it can rev higher.
Horsepower is torque multiplied by engine speed, so both engine types can be powerful; they just get there differently. The detailed reasons a diesel produces more torque, including compression, stroke length, turbocharging and combustion shape, are in why diesel engines make more torque than gas engines.
Durability and lifespan
Diesels have a reputation for long life, and it’s partly earned. Because cylinder pressures are higher, the block, head, crankshaft, rods and bearings are built heavier. Diesels also tend to spend more of their lives at lower rpm, so the moving parts complete fewer cycles per mile.
The catch is that modern diesels have expensive fuel injection and emissions systems, and those are what most often end a vehicle’s economic life. We look at this in more detail in how long a diesel car engine will last.
Maintenance, repairs and running costs
Running costs for a diesel are typically higher in several areas:
- Oil changes can need more oil, and diesel-rated oil.
- Fuel filters and water separators need regular attention.
- Emissions consumables and repairs: DEF refills, DPF cleaning or replacement, EGR valve and cooler problems, sensors.
- Fuel injection parts, especially high-pressure pumps and injectors, are costly to replace.
Gasoline engines usually need spark plugs, which diesels don’t, but in general their parts are cheaper and more widely available. For a rundown of where diesels typically fail, see common diesel engine problems.
Why diesel sometimes costs more per gallon
The price gap between diesel and gasoline moves around a great deal and in some periods and places diesel is the cheaper fuel. When diesel costs noticeably more, the usual reasons include:
- Taxes, which in many places are higher per gallon on diesel.
- Demand, since diesel competes with trucking, farming, shipping, rail and heating oil, and that demand peaks in different seasons from gasoline.
- Refining and supply, including the extra processing needed to make ultra-low sulphur diesel and the balance of global refining capacity.
- Market shocks, which have at times hit diesel supply harder than gasoline.
Emissions and aftertreatment
A diesel generally emits less carbon dioxide per mile than a similar gasoline engine, because it burns less fuel. But diesel combustion produces more nitrogen oxides (NOx) and soot (particulate matter), and a simple three-way catalytic converter can’t handle NOx in lean diesel exhaust.
So modern road diesels carry extra hardware:
- EGR to lower combustion temperature and NOx.
- A diesel particulate filter to trap soot; see how DPF regeneration works.
- SCR with diesel exhaust fluid (DEF) to convert NOx into nitrogen and water.
This equipment works well when the engine is used as intended, but it adds cost and complexity and can struggle with lots of short trips or long idling.
Noise, refinement and cold weather
Diesels are traditionally noisier, with the familiar clatter caused by the rapid pressure rise at ignition. Modern common rail systems use small pilot injections to soften this, so current diesels are much quieter than older ones. Our guide to common rail diesel injection explains how.
In cold weather a diesel can be harder to start, because cold air and a cold engine make it harder to reach ignition temperature. Glow plugs, intake heaters and block heaters handle this; see how diesel engines start.
Will diesel still be available after 2030?
Almost certainly, yes. Several countries and regions have set dates to end sales of new cars powered only by gasoline or diesel, with targets falling in the 2030s. Those policies apply to new vehicle sales, not to fuel at the pump, and they generally don’t cover heavy trucks, farm and construction machinery, ships, rail and generators, which run largely on diesel today. Existing diesel cars will remain on the road for many years after any sales cutoff. Exact rules differ by country and have been revised more than once, so check current local policy if it affects a purchase.
Which should you choose?
A diesel tends to make sense if you:
- Tow or haul regularly.
- Drive long distances, especially at steady highway speeds.
- Keep vehicles for high mileage.
A gasoline engine (or a hybrid) tends to make more sense if you:
- Mostly make short trips, which can cause problems for diesel emissions systems.
- Want lower purchase and repair costs.
- Don’t need the extra low-speed torque.
If your driving is mostly short and urban, the issues described in why you shouldn’t let diesels idle apply in a similar way to frequent short runs.