Carbon dioxide is an end product in organisms that obtain energy from breaking down sugars, fats and amino acids with oxygen as part of their metabolism. This is a process known as cellular respiration. This includes all plants, animals, many fungi and some bacteria. In higher animals, the carbon dioxide travels in the blood from the body's tissues to the lungs where it is breathed out. Plants take in carbon dioxide from the atmosphere to use in photosynthesis.