First of all, you need three things for fire to happen, heat, fuel and oxygen. Oxygen is not a fuel but provides a required component to the equation. Take away any one of these three components, and you can’t have fire.
Fire is a reaction, and during that reaction, some molecules release ~~are transformed into~~ their energy, in this case, heat and light. The fire itself is essentially mass-less. But the mass of the oxygen and fuel is being transformed into other compounds. ~~energy~~.
Edit: Oversimplification led to inaccuracy.
Latest Answers