any of a group of essential complex organic acids found in all living cells: the two types are DNA and RNA and consist of long chains of nucleotide units with each unit composed of phosphoric acid, a carbohydrate, and a base derived from purine or pyrimidine