That energy is consumed through growing and harvesting crops, as well as raising livestock. About 60 percent of the energy used in agriculture goes toward gasoline, diesel, electricity and natural gas. The other 40 percent is used to produce fertilizer and pesticides.