Biological carbon fixation or сarbon assimilation is the process by which inorganic carbon (particularly in the form of carbon dioxide) is converted to organic compounds by living organisms. The compounds are then used to store energy and as structure for other biomolecules. Carbon is primarily fixed through photosynthesis, but some organisms use a process called chemosynthesis in the absence of sunlight.
Organisms that grow by fixing carbon are called autotrophs, which include photoautotrophs (which use sunlight), and lithoautotrophs (which use inorganic oxidation). Heterotrophs are not themselves capable of carbon fixation but are able to grow by consuming the carbon fixed by autotrophs or other heterotrophs. "Fixed carbon", "reduced carbon", and "organic carbon" may all be used interchangeably to refer to various organic compounds. Chemosynthesis is carbon fixation driven by chemical energy, rather than from sunlight.  Sulfur- and hydrogen-oxidizing bacteria often use the Calvin cycle or the reductive citric acid cycle.