Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (2024)

If you’re like me, for most of your life you probably thought you’d be a doctor. But what if you realized you didn’t want to. It’s a difficult decision to make, even if it’s the right one.

In this post, I’ll show you how another path, becoming a software engineer, can be a much better choice. Even financially.

Software engineers can earn significantly more than physicians. They earn these high salaries much earlier in life and do not have medical school debt. Because of this, over time software engineers can have a significantly higher net worth.

Why Compare Doctors and Engineers?

First, these are two of the classic “successful” professions. Doctor, engineer (and of course, lawyer). While the reality is that you can be successful in a vast number of other professions, these are the ones that you hear about from your parents when they tell you what they think you should do with your life.

Secondly, I love engineering. For the longest time I couldn’t decide if I should go to medical school or become a software engineer. Something about thinking logically through complex problems and coming up with solutions resonated with me. It’s likely to be something you’re considering, too.

Oh, and the third reason: One of my friends did become a software engineer, and his company was recently acquired, making him a millionaire way sooner than any doctor, including me.

Do Doctors Earn More Than Engineers?

Maybe you’re worried that becoming an engineer means you won’t get that one thing all doctors seem to have: money. It’s not something they teach you about in medical school, but most pre-med students see becoming a “rich doctor” as the prize at the end of the race.

The data’s out there. Look up the best paying jobs and you’ll see medicine right there at the top. Not software engineers. But if doctors are so wealthy, then why did half the attending physicians on my clinical rotations tell me they wish they worked on wall street instead? Why aren’t doctors all rich?

And wait…do doctors really make less money than teachers?

Now, I checked the math behind that last article, the one that says doctors make less than teachers. It’s a bit misleading. Of course doctors make more money than teachers. The article draws its conclusion by comparing the dollars per hour earned by each profession which gives a huge disadvantage for physicians. I don’t like looking at it in that way. Instead I like to compare professions by comparing net worth.

So let’s run the numbers again, this time looking at software engineers and physicians by net worth.

Doctor vs Engineer Lifetime Earnings

I created this spreadsheet to show you the difference in lifetime earnings. Assuming the engineer goes to a four year undergraduate program and the doctor takes the traditional path. Also assuming average stock market gains of 8% per year. Here it is separated by major milestones.

We start in year 0, after both the doctor and the engineer graduated from undergraduate school. Both went to the same college and graduated with the same $29,200 in debt, the average debt for undergrad students in the US.

Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (1)

In year 4, the doctor finishes medical school, but also gained another $188,758 in debtand added some interest to her undergraduate loans. Meanwhile, the engineer gets a job straight out of college, making $77,718 after tax and lived like a student (30k post tax) for one year. With her debt paid off, she has been living comfortably on 50k/year post tax and is now able to invest the remainder.

Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (2)

While the doctor is in residency, she makes ~$42k/year and sees some pay raise year over year, but is only living on $30k/year post tax. By doing this, she can pay off ~12k/yr of student loans. Interestingly, despite this her debt still grows. During this time, our engineer keeps working and investing, growing their wealth.

Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (3)

At age 30, the doctor finally graduates residency and becomes an attending! She starts her job in primary care making $154,691 after tax and finally increases her spending to $100k/year. In real life, the engineer probably got a raise by now, but not in this simulation. She just keeps doing the same thing and becomes a millionaire at age 41. Well before the doctor whose net worth at the same time is ~$460k.

Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (4)

Who Is Richer? The Doctor or the Engineer?

Despite going into the very lucrative field of medicine and becoming another “rich doctor,” the the doctor’s wealth was outpaced by the engineer.

Now, there are a few things I want you to notice about this simulation:

1: The doctor has negative net worth until she’s 34 years old. That means she can’t grow her money in the market until she’s 34. Meanwhile, the engineer starts investingat age 23. Time in the market has a huge impact.

2: The engineer continues spending 50k/yr while the doctor increases their spending to 100k/yr once they become an attending. This is extremely common amongst physicians. While I don’t have data on the spending habits of engineers, they are likely to see pay raises later in their careers and could easily continue to invest 27k per year while increasing their lifestyle spending. This would not greatly change the results.

3: There is no denying that doctors make a lot of money. The key is that they start doing so much later in life.

Should you be a doctor or an engineer?

If doctors don’t have positive net worth until they’re 34, are you screwed if you become a doctor? Does this mean you should be an engineer?

ABSOLUTELY NOT.

I used to think this when I was weighing the decision to be a physician, and I hope I’ve shown you just how wrong it is.

The decision is yours. You can be an engineer, like I showed you above, or you can pick any number of other career paths and be perfectly fine financially. Want to see for yourself? Download the complete spreadsheet here and plug in your own numbers.

Yes, you will make money if you decide to be a doctor, but not until later. And choosing to be a doctor means committing to 7+ years of training. In addition, deciding not to be a doctor will not ruin you financially. In fact, you may actually be better off.Especially if there were other reasons you decided not to do it.

The last thing I want to leave you with is this. If you decide not to be a doctor, it’s ok.

In fact, for most of you, it’s better than ok. It just means you wanted to do something else, like being a software engineer. So go ahead, make the right decision for you. I hope this information helped.

What do you think? Would you rather be a doctor or an engineer? Let me know in the comments.

If you enjoy this content, don’t forget to subscribe to the newsletter to stay up to date with the latest from The Average Doctor.

A Quick Note On The Spreadsheet

  • All incomes are after tax using this tool https://smartasset.com/taxes/paycheck-calculator
  • Resident and physician incomes are based on the medscape data below.
  • Engineering data is all over the place and changes a lot with geography. Salary data was obtained from the link below.
    • If you’re more interested in actual software engineer salaries, I highly recommend [this video]
  • Of course not everyone will live off 50k/year post tax, numbers will change depending on your savings rate.
  • Market returns are assumed at 8% per year. Actual numbers may differ.
  • Finally, results will vary significantly if you’re a specialist vs a PCP. An engineer or an artist. etc.

Sources

Doctor vs Software Engineer: Lifetime Earnings Comparison | The Average Doctor (2024)

FAQs

Who earns most doctor or software engineer? ›

Although the difference in average pay between a doctor and a software developer is about $83,000 per year, the difference between a doctor's net worth and a software developer's net worth at retirement is about $3 million.

Do software engineers make more than physicians? ›

What Pays More Doctors or Computer Engineers? The answer is doctors. In general, physicians make more money than engineers.

Do software developers make more money than doctors? ›

Programmers generally do not make more than doctors. Some programmers, more accurately called software engineers or software developers might make over $200k per year, but most doctors make that and some doctors make a great deal more.

Which one is best MBBS or software engineering? ›

So in that case, engineers can get a good job earlier than doctors. After an engineering degree, it will be easier to get jobs, but after a medical degree, it won't be easy to open your own clinic or hospital if nobody in your family background is a doctor, or if you have no good connections with any doctor.

Which type of doctor earns more money? ›

Orthopedists are the highest-paid doctors, according to new research from Medscape which lists the average annual salaries for over 25 medical specialties.
...
How Much Money Can I Earn as a Doctor?
Orthopedics (bones/muscles)$489,000
General surgery$352,000
Ophthalmology (eyes)$345,000
Emergency medicine$339,000
23 more rows

Top Articles
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 6048

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.