Taking hair loss medication Several medications for preventing hair loss are available. According to a 2019 review of studies , minoxidil, applied topically, is the go-to treatment for androgenetic alopecia in both men and women. Minoxidil is the active ingredient in Rogaine, which is available over the counter (OTC).