There are many causes of hair loss that needs to be considered. A proper evaluation by your doctor is critical to determine the exact cause as treatment differs depending on the cause of the hair loss.
The most common cause of hair loss in the 40s is androgenetic alopecia which affects both men and women. Proven medical treatments, either topical or oral, that will enable hair regrowth to occur are available Your doctor will assess your suitability for these treatments based on your gender, underlying medical conditions and tolerability.
Hope this helps!