The heater in our current house was a little over 20 years old before it started showing signs of leakage, it was a premium model the original homeowner had bought. Talking with the crew that was switching it out, they mentioned the really cheap units last only about five years.
Nibiru is right in that maintenance is key to how long the unit will last... all the sediment in the bottom of a water heater can actually be heard... if you hear the boiling, bubbling, or the unit sounds like a peculating coffee pot then it's extremely past due for a cleaning. The sediment will block the heat from the burners, forcing it to heat for longer and hotter periods... this eventually will damage the metal / glass at the bottom of the tank and will quickly accelerate the decay until it begins leaking.
Maybe not even six months after we moved into our previous house (we stayed for one year) I luckily noticed the water heater had begun to leak... the heat from the burner would even evaporate the leak, but it only took about a week before it escalated into a small stream going across the garage floor. Once they begin leaking, they need to be replaced ASAP.
If you've ever seen the Mythbusters episode where they test the explosive power of a water heater, you will get an idea for just how much pressure (power) is contained in one of these things after they are heated. This is pretty much why they have temperature cutoffs and emergency vents [ame="[MEDIA=youtube]9bU-I2ZiML0[/MEDIA]"]Mythbusters Water Heater Explosion‏ - YouTube[/ame]