To become an endocrinologist, you need four years of medical school, three years of internal medicine residency, and two to three years of endocrinology fellowship. Endocrinologists earn between $228,600 and $305,400 annually, with a median salary of $262,100.