Let's low ball things and say the self employed primary care doc makes 160k a year and has 300k in loans after interest for their medical education. Let's say they are single, according to no deductions at max federal taxes they'll pay about 35k a year. On their debt with a 20 year repayment plan with 6.5% interest they'll pay 27k a year in loans. They'll pay roughly 15500 in social security (employee and employer contribution) and let's say they pay 2400 to Medicare (I don't know what employer match is for medicare). Now, let's take 7,500 a year for malpractice insurance and tack on 4k a year for licensure/clinic/business fees or whatever else. Net they are making is near $69,000 after taxes, loans, fees, malpractice, and everything else I thought of. Let it be known that I tried to make a more worst case scenario with the finances and most physicians are going to have it off far better than these estimations.
The average high school teacher, according to the BLS, makes $55k a year. They will not be self employed either. According to the same tax calculation for the physician, the teacher will pay 7k in fed taxes about 4200 so SS and Medicare, and if they have 30k in student loans with the same repayment plan and interest rate will pay about $225 a month. No need to worry about license fees, malpractice, etc.
Their net for the year is roughly $41,000 after taxes and loans.
Say the physician started working at 30 in primary care and practiced for 35 years until they hit 65.
20 x 69000 = $1,380,000 + 15 x 96000 = 1,440,000. Total is $2,820,000
The teacher started working at 22 straight out of college and worked for 43 years until 65.
20 x 41000 = $820,000 + 23 x 43,7000 = $1,825,100
At the end of their careers the physician is still near $1 million on top assuming a worst case scenario for the physician.