Vitamin B5, also known as pantothenic acid, may help prevent hair loss or thinning by promoting hair growth and improving hair health.