The two-dose vaccine is most effective when given at age 11-12, before a person is exposed to HPV. Beginning at age 15 and up to age 45, males and females require three doses for the vaccine to be effective. The vaccine is not recommended for adults age 46 and older.