Researchers at the University of Sydney tested whether that laboratory effect would hold up in people who had already had multiple skin cancers, giving high-risk patients either nicotinamide twice daily or a placebo for a year and counting every new cancer that appeared.
Among 386 patients with a history of at least two nonmelanoma skin cancers, those taking nicotinamide developed 23 percent fewer new skin cancers over the year than those on placebo, with a 30 percent reduction in squamous cell carcinomas specifically and fewer precancerous actinic keratoses as well.
Nicotinamide is not sunscreen and does not prevent sunburn, and the protection faded once patients stopped taking it, meaning the benefit only lasts as long as someone keeps taking the pill. It is inexpensive and available without a prescription, which has made it a common add-on recommendation for dermatology patients at high skin cancer risk, alongside sunscreen rather than instead of it.

Read the original study
A vitamin pill cut new skin cancers in those most at risk.
Source
- Chen, A. C., Martin, A. J., Choy, B., Fernández-Peñas, P., Dalziell, R. A., McKenzie, C. A., Scolyer, R. A., Dhillon, H. M., Vardy, J. L., Kricker, A., St George, G., Chinniah, N., Halliday, G. M., & Damian, D. L. (2015). A Phase 3 Randomized Trial of Nicotinamide for Skin-Cancer Chemoprevention. New England Journal of Medicine, 373(17), 1618–26. https://doi.org/10.1056/NEJMoa1506197