Iran suffered a lot of losses in terms of people and widescale destruction of infrastructure.
But the US lost too, we come out of this war looking much weaker and more chaotic than we did going in, not to mention the amount of money we poured into it while accomplishing nothing (nothing we destroyed in Iran was a threat to us until we bombed them in the first place).