Black powder has a chemical formula consisting of C7H4O + S + KNO3. Black powder is a black powder. That will ignite under various circumstances. The chemical equation for the burning of gunpowder is 10KNO3 + 8C +3S = 2K2CO3 + 3K2SO4 + 6CO2 + 5N2