These days, most root beer gets its flavor from a combination of vanilla and wintergreen, plus ith small amounts of ginger, licorice, anise, juniper berries, dandelion, and sometimes cherry tree bark, nutmeg, or cinnamon and cane sugar. The wintergreen provides the minty quality that is unique to root beer.