Gasoline vs. Diesel
Interactive Feature
An Interactive Explainer

What's Really the Difference Between Gasoline and Diesel?

Two fuels distilled from the same barrel of crude oil, refined into entirely different products. One ignites by spark, the other by pressure alone. Here's the science, the economics, and the history behind every fill-up.

Scroll to explore

On any given day, Americans consume roughly 390 million gallons of gasoline and 130 million gallons of diesel. Both flow from crude oil. Both burn in piston engines. Yet they are fundamentally different substances — engineered for different tasks, priced by different market forces, and optimized through more than a century of competing technological development.

The differences run deeper than the color of the pump handle. Diesel carries 15 percent more energy per gallon, but costs more to make and taxes more heavily. Gasoline is lighter, more volatile, and universal — but diesel engines outlast them by hundreds of thousands of miles. Understanding what separates these two fuels explains a surprising amount about how the global economy works.

Chapter I

At the Pump

The numbers on the display tell only part of the story. Tap each fuel to see what you're actually paying for.

Tap a card to expand

Regular Unleaded

$3.39
National Average / Gallon

Regular unleaded (87 octane) is the dominant motor fuel in the U.S., powering roughly 280 million passenger vehicles. Its octane rating reflects resistance to pre-ignition knock — not energy content.

  • Octane Rating87 (Regular)
  • Energy Density~120,238 BTU/gal
  • Federal Excise Tax18.4¢/gal
  • Ignition MethodElectric spark
  • Tailpipe CO₂19.6 lbs/gal
  • Sulfur Content≤30 ppm
🛢️

Ultra-Low Sulfur Diesel

$3.85
National Average / Gallon

Ultra-low sulfur diesel (#2 ULSD) powers the freight network — long-haul trucks, trains, marine vessels, farm equipment, and construction machinery. Its cetane rating measures how readily it self-ignites under compression.

  • Cetane Rating40–55
  • Energy Density~137,381 BTU/gal
  • Federal Excise Tax24.4¢/gal
  • Ignition MethodCompression only
  • Tailpipe CO₂22.4 lbs/gal
  • Sulfur Content≤15 ppm (since 2006)
Chapter II

The Chemistry

Both fuels begin as crude oil. The refinery separates them by boiling point: gasoline vaporizes first, at lower temperatures, producing shorter hydrocarbon chains. Diesel condenses later, heavier and denser, its longer chains storing more energy per molecule.

Gasoline — Octane (C₈H₁₈)
8 carbon atoms per chain  ·  120,238 BTU/gallon
Boiling range 95–220°F  ·  Highly volatile
Diesel — Cetane (C₁₆H₃₄)
16 carbon atoms per chain  ·  137,381 BTU/gallon
Boiling range 370–650°F  ·  Dense, oily texture
Chapter III

By the Numbers

Diesel's energy advantage is real — but it doesn't translate simply into savings at the pump. The interplay of fuel economy, price premium, and use case determines which fuel wins the long-haul math.

0%
More energy in diesel
per gallon burned
Average per-gallon
premium for diesel
0%
Better real-world MPG
in diesel engines

That 14 percent energy advantage doesn't fully explain the 30 percent MPG gain. The rest comes from thermodynamics: diesel engines run at higher compression ratios (up to 23:1, vs. 10:1 for gasoline), which extracts more work from each combustion cycle. Rudolf Diesel designed his engine to approach the theoretical maximum efficiency that Sadi Carnot described in 1824.

A diesel engine doesn't just burn fuel differently — it squeezes more work out of every molecule before exhaust.

Chapter IV

Head to Head

The metrics that matter most — energy, economy, emissions, and longevity.

Energy Content (BTU per gallon)
Gasoline
120,238 BTU
Diesel
137,381 BTU
Fuel Economy — Mid-size sedan equivalent (MPG)
Gasoline
30 MPG
Diesel
40 MPG
Tailpipe CO₂ (lbs per gallon burned)
Gasoline
19.6 lbs
Diesel
22.4 lbs
Engine Longevity (miles before major overhaul)
Gasoline
~200K mi
Diesel
400K+ mi
Chapter V

The Real Cost of Driving

Diesel costs more per gallon — but diesel engines travel farther on each one. Drag the slider to find where the math tips in each fuel's favor.

Annual Miles Driven
12,000 miles / year

Gasoline

$1,356
30 MPG · $3.39/gal

Diesel

$1,155
40 MPG · $3.85/gal

At 12,000 miles/year, diesel saves you $201 annually — despite the higher per-gallon price, the fuel economy advantage wins.

Chapter VI

Why Does Diesel Cost More?

Diesel carries more energy and powers more efficiently — yet it consistently costs more at the pump than regular gasoline. The reasons span chemistry, regulation, taxation, and global trade.

Approximate pump price breakdown per gallon

Gas
Crude
Refining
Dist.
Tax
$3.39
Diesel
Crude
Refining
Dist.
Tax
$3.85
Crude oil cost
Refining & processing
Distribution & marketing
Federal + state taxes
🏛️

Higher Federal Tax

The federal excise tax on diesel is 24.4¢/gal — 6 cents more than the 18.4¢/gal levied on gasoline. Most states compound this: average combined diesel taxes run 6–12 cents higher than gasoline taxes. The Highway Trust Fund collects more per gallon from diesel because heavy trucks cause disproportionately more road wear.

+6¢ federal · +4–8¢ avg. state
⚗️

ULSD Refining Premium

Since 2006, the EPA has required highway diesel to contain no more than 15 parts per million of sulfur — down from 500 ppm. Removing that sulfur requires additional hydrotreating steps, specialized catalysts, and added energy. That process adds 5–10 cents per gallon to refining costs compared to earlier low-sulfur formulas.

15 ppm max sulfur since Oct. 2006
🛢️

Scarcer from Each Barrel

A typical 42-gallon barrel of crude yields roughly 19–20 gallons of gasoline and only 11–12 gallons of diesel. Refiners can crack heavier distillates into gasoline more easily than they can increase diesel yield, so diesel supply is relatively inelastic — small demand shifts produce larger price swings.

~29% of barrel vs. ~45% gasoline
🌍

Global Demand Competition

Diesel competes in a worldwide distillate market. The same refinery cut that becomes #2 diesel in a U.S. truck tank is virtually identical to heating oil burned in Northeast homes each winter and to the marine gas oil powering container ships globally. When Europe, Asia, or agriculture demand spikes, diesel prices worldwide feel it — often before gasoline does.

Trucks · ships · trains · farms · homes
📈

Seasonal & Geopolitical Swings

Diesel is more volatile than gasoline. Heating oil demand surges each autumn as Northeast homeowners fill tanks, pulling distillate inventories down. Geopolitical shocks — sanctions on major diesel exporters, war in grain-producing regions — ripple directly into distillate markets. In 2022, diesel briefly hit $5.80/gal nationally as European buyers rushed to replace Russian imports.

$5.80/gal national peak in 2022
Chapter VII

Emissions & Environment

Diesel burns dirtier per gallon — 22.4 lbs of CO₂ versus 19.6 lbs — but the higher fuel economy changes the calculus when you measure per mile traveled.

Gasoline

0.65lbs CO₂ per mile

Diesel

0.56lbs CO₂ per mile

Per-mile CO₂ emissions favor diesel by roughly 14%, mirroring the fuel economy gap. Source: EPA, DOE/EIA

The emissions picture is more complicated than CO₂ alone. Modern diesel engines paired with particulate filters (DPF) and selective catalytic reduction (SCR) systems have dramatically cut soot and NOₓ emissions — the pollutants that once made diesel synonymous with black smoke. The 2006 ULSD mandate was the foundation; modern Tier 4 Final standards brought diesel particulate emissions near zero.

But the Volkswagen "Dieselgate" scandal revealed that real-world NOₓ emissions from some 2009–2015 diesel vehicles ran 15–40 times higher than lab tests. The episode reinforced that the gap between certified and on-road performance matters as much as the numbers on a spec sheet.

Chapter VIII

A Brief History

Two fuels, two engineering philosophies — diverging at the dawn of the automobile age and still competing more than a century later.

1892

Rudolf Diesel files his patent

The German engineer described an engine that ignites fuel through compression alone — no spark required. His demonstration engine ran on peanut oil. He envisioned a motor that would free small workshops from dependence on coal-powered steam.

1908

Ford's Model T runs on gasoline

Henry Ford's mass-produced automobile, priced at $825 at launch, cemented spark-ignition gasoline engines as the fuel of personal transportation — a dominance that would persist for over a century.

1936

Mercedes-Benz 260D debuts

The first diesel passenger car produced in volume brings compression-ignition technology to everyday drivers. Its 2.6-liter four-cylinder engine delivered 45 hp and exceptional fuel economy by the era's standards.

1970

Clean Air Act reshapes refining

New federal emissions standards forced both gasoline and diesel toward cleaner formulations. Refiners invested heavily in catalytic reforming, cracking, and desulfurization — infrastructure that defines modern fuel quality.

2006

Ultra-Low Sulfur Diesel mandated

The EPA required highway diesel sulfur content to drop from 500 ppm to 15 ppm — a 97% reduction. This enabled catalytic aftertreatment that eliminated most particulate and NOₓ emissions from modern diesel engines.

2015

Dieselgate: VW's emissions scandal

Volkswagen admitted to programming 11 million diesel vehicles to cheat emissions tests globally. The scandal cost the company over $30 billion in settlements and permanently dampened consumer enthusiasm for diesel passenger cars in North America.

2026

The electrification pressure

Battery-electric vehicles have largely displaced diesel in passenger cars. But diesel's dominance in heavy transport remains unchallenged — a fully loaded long-haul truck would require a battery pack weighing several tons to match diesel's range and refueling speed.

Chapter IX

The Complete Picture

Every major dimension compared. ↗ indicates a clear advantage.

Property Gasoline Diesel
Ignition methodElectric spark plugCompression (no spark)
Rating systemOctane (87 regular)Cetane (40–55)
Energy per gallon120,238 BTU137,381 BTU
Average price/gal (2026)~$3.39~$3.85
Federal excise tax18.4¢/gal24.4¢/gal
Typical fuel economy25–32 MPG35–45 MPG
CO₂ per gallon burned19.6 lbs22.4 lbs
CO₂ per mile traveled0.65 lbs0.56 lbs
Engine compression ratio9:1 – 11:116:1 – 23:1
Engine service life~200,000 mi400,000+ mi
Peak torqueModerate; high RPMHigh; low RPM
Cold-weather reliabilityReliable to −40°FCan gel below 10–15°F
Refueling availabilityUniversalMost highway stations
Sulfur content≤30 ppm≤15 ppm (ULSD)

Two fuels from the same barrel — one light and eager, the other dense and relentless. Neither is simply better.

Gasoline and diesel represent more than a century of engineering optimized for different ends. Gasoline excels in light-duty applications where responsiveness, cold-weather reliability, and widespread availability matter most. Diesel dominates wherever sustained power output, torque, fuel economy over long distances, and extreme engine durability are required.

As electrification accelerates, passenger cars will continue shifting toward batteries. But diesel's role in heavy freight, agriculture, shipping, and construction is unlikely to fade quickly — the energy density and practicality of liquid distillate fuels still can't be matched by current battery technology for the world's hardest-working machines.

Understanding what separates these two fuels is, in part, understanding the infrastructure that keeps the modern economy running.