The short answer
Some vaccines help prevent cancer by stopping infections that can lead to it. The HPV vaccine prevents infections that cause cervical and several other cancers, and the hepatitis B vaccine prevents an infection that can cause liver cancer. These preventive vaccines are different from treatment vaccines, which are used in people who already have cancer.
Some vaccines prevent cancer by stopping infections that can lead to it.
The HPV vaccine prevents infections that cause cervical and several other cancers.
The hepatitis B vaccine prevents an infection that can cause liver cancer.
Preventive (prophylactic) vaccines are given before infection to healthy people.
Choose how you want to understand this
The full explanation.
The simple version
Most people think of vaccines as protection against illnesses like the flu. But a few vaccines also help prevent cancer.
They do this in a clever way. Some viruses can cause cancer over time. Vaccines that stop those infections can also stop the cancers they might have led to.
The HPV and hepatitis B vaccines are the two main examples of cancer-preventing vaccines.
How a vaccine can prevent cancer
Certain viruses are known to cause cancer. When a vaccine prevents one of these infections, it can prevent the cancer that infection might have caused years later.
This is an indirect but powerful approach. The vaccine does not attack cancer cells. Instead, it trains your immune system to stop the virus before it can take hold and cause harm.
Because these viruses often lead to cancer only after many years of infection, preventing the infection early can lower cancer risk far into the future.
Preventive vaccines versus treatment vaccines
It helps to know that "cancer vaccine" can mean two very different things:
- Preventive (prophylactic) vaccines are given to healthy people before infection. Their goal is to stop a cancer-causing virus. The HPV and hepatitis B vaccines are this kind. This article is about them.
- Treatment vaccines are given to people who already have cancer. Their goal is to help the immune system fight the existing cancer. These are part of cancer treatment, not prevention.
Keeping these two apart avoids a lot of confusion.
The HPV vaccine
HPV, or human papillomavirus, is a common virus. Certain types can cause cancer. The HPV vaccine protects against the types most likely to lead to cancer.
By preventing these infections, the vaccine helps prevent:
- Cervical cancer
- Some anal, throat, penile, vulvar, and vaginal cancers
The vaccine works best when given before someone is exposed to the virus. That is why it is recommended for preteens. It can also be given to older teens and young adults, and in some cases up to age 45 after a conversation with a doctor.
The hepatitis B vaccine
Hepatitis B is a virus that infects the liver. A long-term infection can, over many years, lead to liver cancer.
The hepatitis B vaccine prevents this infection. By doing so, it lowers the risk of liver cancer down the road. This vaccine is a routine part of childhood immunization in many places, and it is also recommended for certain adults.
Vaccines and screening work together
Cancer-preventing vaccines are powerful, but they are not the whole story. They work best alongside screening.
For example, the HPV vaccine does not protect against every type of HPV that can cause cancer. So people should still follow cervical cancer screening guidelines even if they had the vaccine. Vaccines lower risk, and screening catches problems early. Together, they offer stronger protection than either alone.
Are they safe?
The HPV and hepatitis B vaccines have been studied widely and are considered safe and effective by health agencies like the CDC. As with any vaccine, some people have mild side effects, such as a sore arm or feeling tired for a day.
If you have questions about whether you or your child is due for these vaccines, or whether they make sense at your age, your care team is the best guide. They can look at your history and help you decide.
Why timing matters
For preventive vaccines, timing makes a real difference. They work best when given before a person is exposed to the virus.
That is why the HPV vaccine is recommended for preteens, well before most people could be exposed. It can still be given to older teens and young adults, but the benefit is greatest earlier. Similarly, the hepatitis B vaccine is often given in childhood so protection is in place for life.
This does not mean it is too late for everyone else. Depending on your situation, a vaccine may still be helpful. A conversation with your doctor can sort out what fits your age and history.
The bigger picture
Cancer-preventing vaccines are a good example of how science can stop some cancers before they start. By preventing the infections that cause them, these vaccines protect against several cancers at once, often for many years.
Getting recommended vaccines, staying up to date on screening, not smoking, and living healthy habits all work together to lower cancer risk. No single step covers everything, but each one adds protection. If you are unsure whether you or your family members are protected against HPV and hepatitis B, your care team can check your records and fill any gaps.
Words to know
Tap any term to see what it means.
Common questions
▸How can a vaccine prevent cancer?
Some viruses can cause cancer. Vaccines that prevent those infections can, in turn, help prevent the cancers they lead to. The HPV and hepatitis B vaccines work this way. They do not target cancer cells directly; they stop the infection that could cause cancer later.
▸Which cancers can vaccines help prevent?
The HPV vaccine helps prevent cervical cancer and several other cancers linked to HPV, such as some anal, throat, penile, vulvar, and vaginal cancers. The hepatitis B vaccine helps prevent liver cancer by preventing long-term hepatitis B infection.
▸What is the difference between preventive and treatment vaccines?
Preventive vaccines are given to healthy people before infection to stop a virus that could cause cancer. Treatment vaccines are given to people who already have cancer, to help the immune system fight it. This article is about the preventive kind.
▸Who should get the HPV vaccine?
The HPV vaccine is recommended for preteens, and it can be given through the mid-20s and, in some cases, up to age 45 after talking with a doctor. It works best when given before someone is exposed to the virus. Your care team can advise on timing.
▸Do these vaccines replace cancer screening?
No. For example, people should still follow cervical cancer screening guidelines even if they had the HPV vaccine, because the vaccine does not protect against every type. Vaccines and screening work together to lower risk.
▸Are these vaccines safe?
The HPV and hepatitis B vaccines have been widely studied and are considered safe and effective by health agencies like the CDC. As with any vaccine, some people have mild side effects like a sore arm. Your care team can answer specific questions.
Questions to ask your doctor
Being prepared helps you get the most out of your appointments. Save or print these questions.
Tap a question to save it to your list (kept on this device).
Test your knowledge
0 of 4 answered
This quiz checks understanding of educational content only. It is not medical advice. Open this quiz on its own page.