1 gallon gasoline
On average, one gallon of gasoline produces a little over 18 pounds of carbon dioxide (CO2).
Gasoline
Like jet fuel, gasoline is a mixture of hydrocarbons, the exact composition of which depends upon the crude oil from which it was refined. In addition, most gasoline contains additives like antioxidants, static inhibitors, corrosion inhibitors, and more.
What we purchase at the pump is a mixture of hundreds of compounds. However, given the boiling points used to distill gasoline (120 - 400 degrees Fahrenheit), we know its hydrocarbons have between 6 and 12 carbon atoms. Most people consider octane - C8H18 - an acceptable average value1. Octane has a density of 0.703 g/mL or 2,661.14 g/gal.
Combustion
In a gasoline engine, a mixture of gasoline and air is combusted to drive pistons. The pistons turn the drive shaft, and the drive shaft turns the wheels. In the combustion reaction, gasoline (aka, octane, C8H18) combines with atmospheric oxygen (O2) to produce carbon dioxide (CO2) and water (H20):
C8H18 + O2 -> CO2 + H20 (1)
This is the same combustion reaction that occurs in our bodies to generate energy from food. Of course, other elements in the air such as nitrogen and carbon dioxide are burned in the engine as well as oxygen. Those other elements will create other molecules like nitrates and ozone, but we'll ignore them in our calculations.
Of course, we need to balance the equation so the same number of elements enter and exit our reaction:
2C8H18 + 25O2 -> 16CO2 + 18H20 (2)
We can see for every two octane molecules that enter our combustion reaction, 16 carbon dioxide molecules are produced (or, reducing the fraction, one molecule of octane produces eight molecules of carbon dioxide). However, octane molecules and carbon dioxide molecules are not the same mass, and mass must be conserved.
To determine how many grams of carbon dioxide are produced, we need to calculate the molecular mass of carbon dioxide, the molecular mass of octane, and the ratio between the two:
(1 m * 12.011 amu) + (2 m * 15.999 amu) = 44.009 amu (3)
(8 m * 12.011 amu) + (18 m * 1.008 amu) = 114.232 amu (4)
44.009 amu / 114.232 amu = 0.385 (5)
We know that for every octane molecule that enters our reaction produces eight carbon dioxide molecules (Equation 2), and we know that one carbon dioxide molecule is 38.5% the mass of an octane molecule (Equation 5). As a result, we can calculate how many grams of carbon dioxide are produced by one gram of octane (aka, gasoline):
8 * 0.385 = 3.080 g CO2 / g C8H18 (6)
Given the density of octane (0.703 g/mL or 2,661.144 g/gal), we can calculate the pounds of carbon dioxide generated by one gallon of octane (aka, gasoline):
2,661.144 g C8H18/gal * 3.080 g CO2/g C8H18 * 1 lb/453.592 g = 18.07 lbs CO2/gal (7)
Conclusion
There you have it! To the best of our ability, on average, one gallon of gasoline produces 18.07 pounds of carbon dioxide. If your car gets 20 miles-per-gallon and you drive 10,000 miles in a year, you'll produce 4.5 short tons of carbon dioxide.