A 2026 cross-sectional study of 130 people in Panama found that individuals with a specific genetic variant in the vitamin D receptor (BsmI BB genotype) had significantly lower vitamin D levels during tuberculosis infection. According to Gram Research analysis, this genetic difference was statistically significant (p = 0.004), suggesting that your genes influence how much vitamin D your body maintains when fighting TB. The study also showed vitamin D levels increased during the first month of TB treatment before returning to normal by month six.

A new study from Panama looked at how genes affect vitamin D levels in people with tuberculosis. Researchers tested 80 patients with TB and 50 healthy people, measuring their vitamin D and checking for genetic differences in the vitamin D receptor. They found that people with a specific genetic variant (called BsmI BB) had lower vitamin D levels. The study also showed that vitamin D levels increased during the first month of TB treatment but returned to normal by month six. These findings suggest that your genes play a role in how your body handles vitamin D when fighting tuberculosis.

Key Statistics

A 2026 cross-sectional study of 80 tuberculosis patients and 50 healthy controls in Panama found that people with the BsmI BB genetic variant had significantly lower vitamin D levels during TB infection (p = 0.004).

Women with active tuberculosis had vitamin D levels of 41.4 ng/mL compared to 19.5 ng/mL in healthy women, representing a 112% difference according to a 2026 Panamanian study of 130 participants.

TB patients within one month of starting treatment showed higher vitamin D levels (39.9 ng/mL) compared to healthy controls (32.5 ng/mL) in a 2026 pilot study, though this difference was not statistically significant.

A 2026 study found that unemployed TB patients had cathelicidin levels of 59.4 ng/mL compared to 28.2 ng/mL in healthy unemployed controls, suggesting socioeconomic factors influence immune response during tuberculosis.

The Quick Take

  • What they studied: Whether genetic differences in how people process vitamin D affect their vitamin D levels when they have tuberculosis
  • Who participated: 130 people total: 80 patients with active pulmonary tuberculosis and 50 healthy controls from Panama, ranging across different ages, genders, and ethnic backgrounds
  • Key finding: People with a specific genetic variant (BsmI BB genotype) had significantly lower vitamin D levels during tuberculosis compared to those with other genetic variants (p = 0.004)
  • What it means for you: Your genes may influence how much vitamin D your body maintains when fighting tuberculosis. If you have TB and your vitamin D is low, genetic factors could be partly responsible. This doesn’t change treatment, but it helps explain why different people respond differently to the same disease.

The Research Details

This was a pilot cross-sectional study, which means researchers took a snapshot in time of two groups of people—those with tuberculosis and healthy controls—and compared them. The researchers measured vitamin D levels in the blood using a standard lab test called ELISA. They also analyzed three different genetic variations in the vitamin D receptor gene (FokI, TaqI, and BsmI) using a molecular technique called PCR-RFLP, which identifies specific genetic differences.

The study was conducted in Colon, Panama, and included 80 patients with active pulmonary tuberculosis and 50 healthy control participants. Researchers collected blood samples and recorded information about each person’s age, sex, ethnicity, employment status, and (for TB patients) how long they had been receiving treatment.

They compared vitamin D levels between the TB group and healthy group, and also looked at how different genetic variants were associated with vitamin D levels. They also measured a protein called cathelicidin (LL-37), which is part of the immune system’s response to infection.

Understanding how genes affect vitamin D levels during tuberculosis is important because vitamin D plays a crucial role in fighting TB infections. If certain genetic variants make it harder for people to maintain adequate vitamin D, doctors might need to monitor or supplement vitamin D more carefully in those patients. This research helps explain why some people have different vitamin D levels even when they have the same disease.

This is a pilot study, which means it’s a small, preliminary investigation designed to test methods and generate ideas for larger studies. The sample size (130 people) is modest, which limits how much we can generalize the findings. The study was well-designed with clear measurements and appropriate statistical analysis. However, because it’s a cross-sectional study (a snapshot in time), it cannot prove that genes cause vitamin D differences—only that they’re associated. The researchers acknowledge these limitations and recommend larger, follow-up studies.

What the Results Show

The main finding was that people with the BsmI BB genetic variant had significantly lower vitamin D levels during tuberculosis compared to those with other genetic variants. This difference was statistically significant (p = 0.004), meaning it’s unlikely to have happened by chance.

Interestingly, overall vitamin D levels were slightly higher in TB patients compared to healthy controls, but this difference wasn’t statistically significant. However, when researchers looked at women specifically, they found that women with TB had higher vitamin D levels than healthy women (41.4 ng/mL versus 19.5 ng/mL). This suggests that sex (biological gender) plays a role in how vitamin D levels change during TB.

The study also tracked vitamin D levels at different stages of TB treatment. Patients who had been receiving TB treatment for about one month had higher vitamin D levels than healthy controls. However, by six months of treatment, vitamin D levels returned to normal. This pattern suggests that vitamin D levels change during the early stages of TB treatment but stabilize over time.

The study measured cathelicidin (LL-37), a protein that’s part of the immune system’s defense against TB. TB patients who were unemployed had higher cathelicidin levels than healthy unemployed controls. Similarly, Hispanic TB patients had higher cathelicidin levels than healthy Hispanic controls. These findings suggest that socioeconomic factors (like employment status) and ethnicity may influence immune response during TB. The researchers also noted differences in vitamin D levels between ethnic groups, with Hispanic TB patients showing different patterns compared to other groups.

Previous research has shown that vitamin D is important for fighting tuberculosis and that genetic variations in the vitamin D receptor can affect how much vitamin D the body maintains. This study adds to that knowledge by specifically examining the BsmI genetic variant in TB patients. The finding that vitamin D levels increase during early TB treatment is new and suggests that the body’s response to TB infection or TB medications may temporarily boost vitamin D levels. The study confirms that genetic factors matter for vitamin D metabolism, supporting earlier research while providing new details about specific genetic variants.

This is a pilot study with a relatively small sample size (130 people), so the findings may not apply to all populations. The study was conducted only in Panama, so results might differ in other geographic regions with different genetic backgrounds and environmental factors. Because it’s a cross-sectional study, researchers took measurements at one point in time, so they can’t determine whether genetic variants actually cause lower vitamin D or just happen to be associated with it. The study didn’t control for all possible factors that affect vitamin D, such as sun exposure, diet, or other health conditions. The researchers recommend larger, more detailed studies to confirm these findings.

The Bottom Line

If you have tuberculosis, ask your doctor to check your vitamin D levels, especially if you have risk factors for low vitamin D. If your vitamin D is low, your doctor may recommend supplementation. According to Gram Research analysis, genetic factors may explain why some TB patients have lower vitamin D levels, so don’t assume low vitamin D is entirely due to diet or sun exposure. These findings are preliminary (confidence level: moderate), so they should inform monitoring rather than change standard TB treatment.

People with active tuberculosis should be aware that their vitamin D levels may be affected by both their genes and their disease. Healthcare providers treating TB patients should consider checking vitamin D levels, particularly in the first month of treatment. People with family history of TB or those at risk for TB may want to know their vitamin D status. Healthy people without TB don’t need to change their behavior based on this study, though maintaining adequate vitamin D is always good for immune health.

Vitamin D levels appear to increase during the first month of TB treatment, then gradually return to normal by six months. If you’re starting TB treatment and have low vitamin D, you might see improvement within the first month, but don’t expect dramatic changes. If you’re supplementing vitamin D, it typically takes 4-8 weeks to see meaningful changes in blood levels. Full immune recovery during TB treatment takes several months, so be patient with the process.

Frequently Asked Questions

Does vitamin D help fight tuberculosis?

Vitamin D plays an important role in immune function and helps the body fight TB infections. A 2026 study found that TB patients showed changes in vitamin D levels during treatment, suggesting the body uses vitamin D as part of its TB defense. Adequate vitamin D is considered important for TB control.

Can your genes affect your vitamin D levels?

Yes. A 2026 study of 130 people found that people with the BsmI BB genetic variant had significantly lower vitamin D levels during TB infection (p = 0.004). This shows that genetic differences in the vitamin D receptor gene directly influence how much vitamin D your body maintains.

Should I get tested for vitamin D if I have tuberculosis?

Yes, according to this research. A 2026 study found that vitamin D levels change during TB treatment, with levels increasing in the first month then normalizing by month six. Your doctor should monitor your vitamin D status, especially early in treatment, to ensure adequate levels for immune function.

Why do women with TB have different vitamin D levels than men?

A 2026 study found women with TB had significantly higher vitamin D levels (41.4 ng/mL) than healthy women (19.5 ng/mL), while men showed different patterns. The reasons aren’t fully clear, but may involve hormonal differences, sun exposure patterns, or how the immune system responds differently in women versus men.

How long does it take to see vitamin D changes during TB treatment?

A 2026 study found vitamin D levels increased within the first month of TB treatment, then returned to normal by month six. If you’re supplementing vitamin D, expect 4-8 weeks to see meaningful changes in blood levels. Full immune recovery takes several months.

Want to Apply This Research?

  • Track your vitamin D levels monthly if you have TB, recording the date and lab value. Note your treatment stage (month 1, month 2, etc.) alongside each measurement to see if your levels follow the pattern described in this research.
  • If you have TB and low vitamin D, work with your doctor to establish a vitamin D supplementation plan. Use the app to set reminders for taking supplements and schedule monthly lab tests to monitor your levels. Record any dietary sources of vitamin D (fatty fish, fortified milk, egg yolks) to track total intake.
  • Create a long-term vitamin D tracking dashboard showing levels over your TB treatment course. Set alerts if levels drop below your doctor’s recommended threshold. After TB treatment ends, continue monitoring quarterly to ensure vitamin D levels stabilize and remain adequate for immune health.

This research is a pilot study and should not replace professional medical advice. If you have tuberculosis or suspect you do, consult with a healthcare provider for diagnosis and treatment. Vitamin D supplementation should only be undertaken under medical supervision, especially if you’re taking TB medications, as some interactions are possible. This study was conducted in Panama and findings may not apply to all populations. Always discuss genetic testing and supplementation with your doctor before making changes to your health regimen.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: Vitamin D receptor BsmI haplotype BB confers lower 25(OH)D levels during tuberculosis: a pilot cross-sectional study.Therapeutic advances in infectious disease (2026). PubMed 42389554 | DOI