Finasteride is a medication that is used to treat male pattern baldness (androgenetic alopecia) and benign prostatic hyperplasia (BPH). It works by inhibiting the conversion of testosterone to dihydrotestosterone (DHT), a hormone that is associated with hair loss and prostate enlargement. Finasteride is available in tablet form and is typically taken once a day.