The formula of Rust is:

Fe(OH)3, nH2O

Fe(OH)3

Fe2O3

Fe2O3,nH2O