With ideal conditions, mosquitoes can live as long as 2 months indoors. Male mosquitoes die within 3 to 5 days after breeding, but females can live much longer if the environment is warm and moist.
Though a mosquito generally begins its life cycle outdoors, if it becomes trapped indoors, it can survive by drinking human blood. The female mosquito uses this blood to feed her eggs. When those eggs hatch, the larvae require an aquatic environment. Once the female dies, the eggs are unlikely to hatch and develop into adults since an indoor environment rarely possesses water that is undisturbed long enough for the larvae to mature.