Among VA patients, vitamin D3 and vitamin D2 supplementation reduced the associated risk of COVID-19 infection by 20% and 28%, and COVID-19 infection ending in death within 30-days by 33% and 25%. Black veterans receiving supplementation had a larger associated reduction than whites, although both were statistically significant, and the difference was not accounted for by differences in vitamin D serum levels. Patients with low vitamin D levels at baseline benefited more from supplementation than patients with higher serum levels. Finally, patients receiving higher cumulative dosages and higher average daily dosages had a greater associated reduction in COVID-19 infection rates than patients receiving lower dosages conditional on similar vitamin D serum levels. The most substantial dose–response relation was found in patients with the lowest vitamin D serum levels. As a widely available, inexpensive, and safe treatment, vitamin D3 could be a helpful tool for reducing the spread of COVID-19 infection and related mortality and reducing racial disparities in COVID-19 outcomes. Our findings are especially relevant to the US population, given that about half of Americans are estimated to have sub-optimal vitamin D serum levels.