It takes two shots help prevent cancer. The HPV vaccine is given as a series of two shots six to 12 months apart. Doctors recommend that girls and boys get vaccinated against HPV at age 11 or 12, but can be started as early as age 9. The series should be complete by age 13.