There are two HPV vaccines, Cervarix and Gardasil, that help protect against types of HPV that can cause health problems including cervical cancer. Cervarix helps prevent cervical cancer and precancers caused by HPV types 16 and 18. Gardasil helps protect against 4 types of HPV that cause about 90% of genital warts cases and 75% of cervical cancer cases. Both vaccines are given as a series of shots over 6 months but do not prevent all HPV types or treat existing HPV infections or cancers. Common side effects include pain, swelling and fever at the injection site.