Nicotinic acid was first discovered from the oxidation of nicotine. When the properties of nicotinic acid were discovered, it was thought prudent to choose a name to dissociate it from nicotine and to avoid the idea that either smoking provided vitamins or that wholesome food contained a poison. The resulting name 'niacin' was derived from nicotinic acid + in.
The liver can synthesize niacin from the essential amino acid tryptophan, but the synthesis is extremely slow and requires vitamin B6; 60 mg of tryptophan are required to make one milligram of niacin. Bacteria in the gut may also perform the conversion but are inefficient. For this reason, eating lots of tryptophan is not an adequate substitute for consuming niacin.