Cancer is not a virus, but some viruses can increase your risk of developing certain cancers
Cancer itself is not contagious and is not caused by a virus you catch from another person. Cancer starts when cells in your body begin to grow abnormally and out of control. However, a small number of viruses can damage cells in ways that make cancer more likely to develop over time. These viruses do not cause cancer directly — instead, they create conditions inside your body that increase the risk.
The key difference: you cannot catch cancer from someone else, and you cannot catch a virus that automatically gives you cancer. But certain viruses, if they infect you, may raise your chances of developing specific types of cancer years or even decades later.
Key Takeaways
- Cancer is not a virus and cannot spread from person to person like an infection.
- Some viruses — including HPV, hepatitis B, hepatitis C, and EBV — can increase the risk of certain cancers if they persist in your body.
- Most people infected with these viruses never develop cancer, and infection does not mean cancer is inevitable.
- Vaccines exist for HPV and hepatitis B, which can prevent the infections that raise cancer risk.
- Regular screening and medical care can catch virus-related cancers early, when treatment is often more effective.
Which viruses are linked to cancer
Human papillomavirus (HPV) is the most common virus linked to cancer. It causes most cervical cancers and can also lead to cancers of the throat, anus, and other areas. HPV spreads through sexual contact, and most sexually active people encounter it at some point. Your immune system usually clears the infection on its own within a year or two. If the virus persists for many years, it can damage cells and eventually lead to cancer — but this happens in only a small percentage of people infected.
Hepatitis B and hepatitis C are viruses that infect the liver. Both can cause long-term infection, and over decades, they may lead to liver cancer or cirrhosis (scarring of the liver that increases cancer risk). Hepatitis B spreads through blood and body fluids; hepatitis C spreads mainly through blood-to-blood contact. Many people with hepatitis B or C have no symptoms and do not know they are infected.
Epstein-Barr virus (EBV) is extremely common — most adults have been infected at some point. It is usually associated with mononucleosis in younger people. In rare cases, particularly in people with weakened immune systems, EBV can be linked to certain lymphomas (cancers of immune cells).
Human T-cell leukemia virus (HTLV-1) is less common in the United States but is found in other parts of the world. It can lead to a type of leukemia (blood cancer), though most infected people never develop the disease.
How a virus might increase cancer risk
Viruses linked to cancer typically work in one of two ways. Some viruses produce proteins that damage the genes inside cells — the instructions that tell cells when to grow, divide, and die. When these genes are damaged, cells may start dividing uncontrollably. Other viruses cause chronic inflammation, meaning your body stays in a state of irritation and repair for years. This constant inflammation can eventually lead to cancer.
The process is slow. A virus does not transform a healthy cell into a cancer cell overnight. Instead, it sets off a chain of changes over many years. Most people whose cells are exposed to these viruses never develop cancer because their immune system controls the infection or because other protective factors in their body prevent the damage from progressing.
Your risk if you have been exposed to one of these viruses
If you have been infected with HPV, hepatitis B, hepatitis C, or another virus linked to cancer, your risk of developing cancer is higher than someone who was never infected — but it is still relatively low. For example, most women infected with HPV clear the virus and never develop cervical cancer. Among those with persistent HPV infection, cervical cancer develops in only a fraction of cases, and usually only after many years.
Your actual risk depends on several factors: which virus you have, how long the infection has lasted, the strength of your immune system, and whether you have other risk factors (such as smoking, heavy alcohol use, or a family history of cancer). A doctor who knows your medical history can discuss your individual risk and recommend screening or monitoring that makes sense for you.
Screening and prevention for virus-related cancers
If you have been infected with a virus linked to cancer, regular screening can catch cancer early, when it is often easier to treat. For cervical cancer, the Pap test and HPV test can detect abnormal cells before they become cancerous. For liver cancer, people with hepatitis B or C may have ultrasounds or blood tests at regular intervals. Your doctor will recommend a screening schedule based on your specific situation.
Prevention is also possible. Vaccines for HPV and hepatitis B can prevent these infections before they occur. The HPV vaccine is recommended for people up to age 26 (and may be given to older adults in some cases), and the hepatitis B vaccine is part of routine childhood immunizations. If you were not vaccinated as a child, talk to your doctor about whether vaccination makes sense for you now.
What happens if you learn you have one of these viruses
A diagnosis of HPV, hepatitis B, hepatitis C, or another virus linked to cancer does not mean you will develop cancer. Many people live with these viruses for their entire lives without ever developing a related cancer. Your doctor will discuss your specific situation, explain your risk level, and recommend monitoring or treatment options if they are available.
For some viruses, treatments exist that can clear the infection or reduce the damage it causes. For others, the focus is on monitoring and catching any changes early. In all cases, managing other health factors — not smoking, limiting alcohol, maintaining a healthy weight, and keeping up with recommended screening — can lower your overall cancer risk.
Frequently Asked Questions
Can I catch cancer from someone who has it?
No. Cancer is not contagious and cannot spread from one person to another. You cannot catch cancer through contact, shared food, or breathing the same air. However, you can catch certain viruses that may increase cancer risk — but infection with these viruses does not mean you will develop cancer.
If I have HPV, will I definitely get cervical cancer?
No. Most people infected with HPV clear the virus on their own and never develop cancer. Cervical cancer develops in only a small percentage of people with persistent HPV infection, and usually only after many years. Regular Pap tests and HPV tests can catch abnormal changes early, before cancer develops.
Can hepatitis B or C be cured?
Hepatitis B can be managed with medications that suppress the virus, though it may not be completely cleared. Modern treatments for hepatitis C can cure the infection in most people. If you have either virus, your doctor can discuss treatment options and monitoring to reduce your cancer risk.
Should I get vaccinated if I am already an adult?
That depends on your age, health history, and which vaccine you are considering. The HPV vaccine is most effective before exposure to the virus, but may still be offered to adults up to age 26 and sometimes older. The hepatitis B vaccine can be given to adults who were not vaccinated as children. Talk to your doctor about whether vaccination is right for you.
Does having a virus linked to cancer mean I need to tell my family?
Some of these viruses can spread to others, so it is worth discussing with your doctor. HPV spreads through sexual contact, and hepatitis B and C spread through blood-to-blood contact. Your doctor can advise you on whether family members or partners should be tested or vaccinated, and how to reduce transmission risk.