gunpowder, also called black powder, is a mixture of sulfur, charcoal, and potassium nitrate. It burns rapidly, producing a volume of hot gas made up of carbon dioxide, water, and nitrogen, and a solid residue of potassium sulfide. Because of its burning properties and the amount of heat and gas volume that it generates, gunpowder has been widely used as a propellant in firearms and as a pyrotechnic composition in fireworks. The term gunpowder also refers broadly to any propellant powder. Modern firearms do not use the traditional gunpowder (black powder) described here, but instead use smokeless powder.