Your Home Went Up $600,000… But You Might Owe Zero Tax
Most homeowners calculate their home-sale gain the wrong way — and that mistake can cost thousands of dollars in unnecessary taxes!
You made a great decision.
You bought a home before COVID.
Now the value has gone up $600,000, and you want to sell.
People tell you:
“Only $500,000 of that gain is tax-free.”
But I say something different.
You may still pay zero tax when you sell it.
How is that possible?
Why “Sale Price Minus Purchase Price” Is Wrong
Many homeowners assume the gain from selling a house is calculated like this:
Sale price − purchase price = gain.
That shortcut is wrong under the tax law.
The IRS uses a specific formula to determine taxable gain on the sale of a principal residence:
Amount realized − adjusted basis = gain.
Meet Dr. Nvidia
After getting his first attending job in Santa Clara, California, Dr. Nvidia bought a small cottage for $1,000,000 in 2019.
This year, he sells it for $1,600,000.
Like most people, he thinks the gain is…
$1,600,000 − $1,000,000 = $600,000 gain
But the tax law doesn’t calculate it that way.
To determine the real gain, the IRS requires a three-step process.
Step 1 — Calculate the “Amount Realized”
The gain calculation does not begin with the gross sales price.
Instead, you start with the amount realized, which is:
Sales price - selling expenses.
Selling expenses typically include items on the closing statement that are paid to sell the property, such as:
Realtor commissions
Staging or advertising costs
Transfer taxes (city and county)
Escrow or attorney fees related to closing
Title insurance paid by the seller
Home warranty provided to the buyer
Example
Dr. Nvidia sells his home for $1,600,000.
At closing he pays:
$60,000 realtor commission
$10,000 staging
$20,000 transfer taxes
$10,000 escrow and title fees
Total selling costs = $100,000
Amount realized:
$1,600,000 − $100,000 = $1,500,000
This is the number the IRS uses in the gain formula — not the raw sale price.
Step 2 — Calculate Your “Adjusted Basis”
Next, we determine what the home actually cost you for tax purposes.
That’s your adjusted basis.
Start with the purchase price.
Then adjust for certain costs, including:
Certain buyer closing costs that are capital in nature
Transfer taxes on purchase
Buyer’s agent commission (if you paid it)
Capital improvements made over the years
Capital improvements generally include items that add value or prolong the life of the property, such as:
New roof
New HVAC system
Kitchen remodel
Built-in appliances (like a Wolf stove)
Structural additions
Permanent landscaping or hardscaping
ADU construction
Repairs do not count.
Painting, fixing leaks, and minor patch work are typically repairs and do not increase basis.
If you ever claimed depreciation on the home (for example during a rental period or for a home office), that depreciation reduces basis and the gain attributable to that depreciation cannot be excluded under §121.
Example
Dr. Nvidia purchased the home for $1,000,000 in 2019.
At purchase he paid:
$5,000 buyer’s realtor fee
$5,000 transfer tax
Later he installed:
New roof
New AC system
Wolf stove
Total improvements = $40,000
Adjusted basis becomes:
$1,000,000 (purchase price)
+ $5,000 buyer’s realtor fee
+ $5,000 transfer tax
+ $40,000 in improvements
Adjusted basis = $1,050,000
Step 3 — Calculate the Gain
Now we compare the two numbers.
Amount realized: $1,500,000
Adjusted basis: $1,050,000
Gain = $450,000
This is the gain before applying the §121 exclusion.
The Powerful Tax Break Under IRC §121
IRC §121 is a tax provision that I believe every doctors should understand as part of basic tax literacy.
Why?
Because it is one of the most taxpayer-friendly rules in the entire tax code, and it applies to almost every homeowner.
Under Internal Revenue Code §121, a homeowner who sells a principal residence can exclude:
Up to $250,000 of gain if single
Up to $500,000 of gain if married filing jointly
For physicians living in high-cost areas like California, this exclusion can eliminate a very large tax bill — sometimes entirely.
But first, you must calculate the gain correctly.
Applying the §121 Exclusion
If married filing jointly and the couple meets the §121 tests:
$450,000 gain − $500,000 exclusion
Taxable gain = $0
The entire gain is excluded because it is below the $500,000 cap.
If single:
$450,000 gain − $250,000 exclusion
Taxable gain = $200,000
That amount may be subject to capital gains tax and possibly the 3.8% Net Investment Income Tax (NIIT) depending on income levels.
Key Requirements for the §121 Exclusion
To qualify for the full exclusion under IRC §121, you must generally:
Own the home for at least 2 years during the 5-year period before the sale
Use the home as your principal residence for at least 2 years during that same period
Not have used the §121 exclusion on another home sale in the previous 2 years
Most doctors who live in their primary residence satisfy these rules.
However, complications can arise in situations such as:
• Converting the home to a rental (nonqualified use rules)
• Home office depreciation under the actual-expense method.
• Short ownership periods
• Divorce or other unforeseen events (which may allow a partial exclusion)
Why This Matters for Doctors
Many doctors live in rapidly appreciating housing markets.
It is common to see $500,000 or more in appreciation over 5–10 years.
If you fail to track:
Capital improvements
Purchase closing costs that increase basis
Selling expenses
you could overpay tens of thousands of dollars in capital gains tax.
Doctor Takeaway
Understanding IRC §121 is not an advanced tax strategy.
It is basic tax literacy.
Because almost every physician will sell a home at some point in their career.
Final Thought
When that day comes, IRC §121 can either be your best friend…
or a very expensive missed opportunity.
If You Enjoy Learning Practical Tax Strategies
If you enjoy learning how tax rules actually work in real life, consider subscribing.
I break down complex tax laws into clear explanations for doctors.



