What is the Chemical Formula for Rust?

The chemical formula for rust is Fe2O3.nH2O. Rust is caused by the corrosion of iron and occurs in the alloy of steel. Man has spent countless hours and dollars working on solutions for the prevention of rust.