Hamsters have a lifespan of two years while gerbils live for about three. Both species have been known to live longer but were going on the average lifespan of both pets.