The life of every living being is something you cannot make prediction about, and for hamsters it is much shorter than that of any other pet. However, "How long do hamsters live?" is still a question and the answer depends on many related factors. If hamsters are provided with good environment, they can live exceptionally for 5 years at maximum but most of the hamsters die before the age of four or less.
Another aspect regarding how long do hamsters live is the type or species they belong to. There are different kinds of hamsters, namely: