This paper exploits location choices of all generalist physicians graduated in Brazil between 2001 and 2013 to study policies aiming at increasing the supply of physicians in underserved areas. We set up and estimate a supply and demand model for physicians. We estimate physicians' locational preferences using a random coefficients discrete choice model. The demand has private establishments competing for physicians with private and public facilities around the country. Policy counterfactuals indicate that quotas in medical schools for students born in underserved areas and the opening of vacancies in medical schools in deprived areas are more cost-effective than financial incentives.