The average life expectancy of hamsters is usually between 2 and 3 years. The lifespan of different hamster breeds varies slightly:
Dwarf Winter White Russian Hamsters and Campbell's Dwarf Hamsters: These are the most common domesticated breeds. Generally, they can live for 2 to 3 years. If they are properly cared for, they can reach the full 2-year lifespan.

Roborovski Hamsters (Robo Hamsters, including male and female): They are smaller in size and have a relatively shorter lifespan, approximately 1.5 to 2.5 years. Since they are lively and active and prone to stress, special attention is needed.
Syrian Hamsters (Golden Hamsters or Teddy Bear Hamsters): They are larger in size and have a longer lifespan, able to live up to 3 to 4 years. If well taken care of, they may even live longer.
Factors that affect the lifespan of hamsters include:
Genetic factors: The lifespan of different hamster breeds is different.
Raising environment: A suitable environment, a healthy diet, and good hygiene conditions can extend the lifespan of hamsters.
Diseases and health conditions: Common diseases such as colds and diarrhea can have a serious impact on the health of hamsters and may even lead to death.
To extend the lifespan of hamsters, the following measures can be taken:
Provide a high-quality diet: Ensure that the diet contains enough protein, fat, and calcium. Avoid overfeeding high-fat foods such as sunflower seeds. Fresh vegetables need to have the water controlled, and no more than 3 dried mealworms should be fed per day.
Create a good living environment: Keep the environment clean and hygienic to prevent the growth of bacteria and parasites.
Regularly check the health status: Observe the condition of the hamster at any time. Once any abnormalities are found, send it to the veterinary hospital for treatment in a timely manner.