The chickenpox virus is spread through direct contact with lesions and by inhalation. The infection in contagious for about 12 to 16 days. It is most contagious during the first two to five days of active illness, including the day or two before its characteristic rash appears.