A low serum level of vitamin D has been associated with an increased incidence of gastrointestinal tract cancers. However, the effects of vitamin D3 have not been investigated in gastric cancer and cholangiocarcinoma. In the present study, we found that vitamin D3 treatment significantly suppressed the viability of gastric cancer and cholangiocarcinoma cells. Moreover, vitamin D3 had a synergistic effect with other anti-cancer drugs, such as paclitaxel, adriamycin, and vinblastine, for suppressing cell viability. To determine the underlying mechanism involved in the regulation of viability by vitamin D3, we examined the effects of vitamin D3 on expression of hedgehog signaling target genes, which has been associated with gastric cancer and cholangiocarcinoma. Vitamin D3 treatment decreased the level of mRNA expression of patched1 , Gli1 , cyclin D1 , and Bcl2 , suggesting the possibility that vitamin D3 may act through regulation of hedgehog signaling. From the above results, we conclude that vitamin D3 regulates cell viability in gastric cancer and cholangiocarcinoma.