What happens when you take ketoconazole with calcium?
Oral ketoconazole is a systemic azole antifungal used for serious fungal infections like blastomycosis, coccidioidomycosis, histoplasmosis, and chronic mucocutaneous candidiasis. It depends critically on an acidic stomach environment to dissolve from its tablet form before it can be absorbed. The key threshold from clinical pharmacology studies is a gastric pH below about 2.5; above that, ketoconazole dissolution is incomplete and absorption falls.
Calcium carbonate, the active ingredient in many over-the-counter antacids (Tums, Rolaids with calcium, Maalox tablets, and similar products), neutralizes stomach acid and raises gastric pH, often well above 4. Calcium-containing supplements taken with meals can have a similar acid-buffering effect, particularly when taken in large doses. When ketoconazole is taken at the same time as calcium carbonate or other antacids, the tablet fails to dissolve adequately and ketoconazole blood concentrations can drop substantially.
Why is this important?
For systemic fungal infections, ketoconazole's antifungal activity depends on achieving blood concentrations above the fungus's minimum inhibitory concentration. A meaningful drop in absorption from concurrent antacid use can convert effective therapy into ineffective therapy, leading to persistent infection, relapse, or development of resistance. The risk applies to any agent that raises gastric pH, including calcium carbonate antacids, magnesium-aluminum antacids, H2-receptor blockers (famotidine, ranitidine, nizatidine, cimetidine), proton pump inhibitors (omeprazole, esomeprazole, lansoprazole, pantoprazole, rabeprazole), and clinical achlorhydria from any cause.
The same logic applies to itraconazole capsules, which share ketoconazole's pH-dependent absorption profile. Fluconazole and voriconazole are more pH-independent and not affected by this mechanism. The systemic ketoconazole prescription has become less common because of FDA label restrictions on liver toxicity, but the pH-dependent absorption issue remains clinically important for patients still using the oral form for indicated diseases.
This is technically a timing and absorption interaction rather than a metabolic conflict. The calcium itself is not toxic with ketoconazole; the issue is the buffering effect on gastric pH. Spacing the doses can fully mitigate the interaction.
What should you do?
If you take oral ketoconazole, separate it from any antacid, calcium-containing supplement, or other acid-reducer by at least 2 hours. The standard pharmacy guidance is to take ketoconazole first and wait 2 hours before any calcium carbonate or magnesium-aluminum antacid. If you take a proton pump inhibitor, the buffering effect lasts much longer than 2 hours and a simple spacing strategy is inadequate; discuss with the prescriber whether a different antifungal is more appropriate, or whether the PPI can be paused for the duration of antifungal therapy.
You can enhance ketoconazole absorption by taking it with an acidic beverage such as a regular Coke or Pepsi, particularly if you have low baseline stomach acid. Some clinicians recommend taking ketoconazole with food to maximize absorption, especially with the acidic beverage.
Disclose all calcium-containing products to the prescriber, including bone health supplements (calcium citrate, calcium carbonate combined with vitamin D), multivitamins with high calcium content, calcium-fortified juices and almond milks, and antacids used for heartburn or indigestion. If you depend on calcium for osteoporosis prevention, you do not need to stop calcium during a ketoconazole course; you simply need to space the doses.
Which specific products are affected?
The ketoconazole side covers oral ketoconazole tablets (Nizoral oral tablets and generics). Ketoconazole shampoo (Nizoral A-D and similar) and ketoconazole topical cream have minimal systemic absorption and are not affected. The calcium side covers calcium carbonate antacids (Tums, Rolaids with calcium carbonate, Maalox tablets, Mylanta tablets, Pepto-Bismol does not contain calcium), calcium citrate supplements (Citracal and similar), calcium carbonate supplements (Caltrate, Os-Cal), and calcium-fortified foods and drinks taken in large amounts.
The same principle applies to other gastric pH raisers, including magnesium hydroxide (Milk of Magnesia), aluminum hydroxide antacids, sodium bicarbonate, H2 blockers (famotidine/Pepcid, cimetidine/Tagamet, nizatidine), and proton pump inhibitors (omeprazole/Prilosec, esomeprazole/Nexium, lansoprazole/Prevacid, pantoprazole/Protonix). For PPIs in particular, simple time-spacing is insufficient and a clinician should advise on the overall plan.
The bottom line
Calcium carbonate antacids and large calcium supplements can substantially reduce oral ketoconazole absorption by raising gastric pH. Separate the two by at least 2 hours, and consider taking ketoconazole with an acidic beverage. Tell the prescriber about all acid-reducing medications, including PPIs and H2 blockers, before starting an oral azole antifungal course.