Are you taking any medicine? Is your hair coming out in patches or is it thinning all over? If it's coming out in patches then it's related to medication but if it's thinning all over it could be hereditary or you could have a thyroid problem.
You need to talk it over with your doctor or a dermatologist.