When you sell a stock, you're taxed on the difference between your purchase price and selling price. The same basic idea applies to a home — with a few extra factors, and a generous exclusion that means many sellers owe little or nothing. Here's how it works in plain English.
The basics
Your gain is essentially what you walk away with above what the home cost you, all in. Figuring it out comes down to two numbers — your net proceeds and your adjusted cost basis — and then a possible exclusion that can wipe out much or all of the tax.
Heads up: This page is general educational information, not tax, legal, or financial advice. Tax rules and exclusion amounts can change and depend on your specific situation — please confirm the current details with a qualified tax professional or CPA, and see IRS Publication 523.
Step one
Add these three together. The total is your adjusted cost basis — your true, all-in cost in the home.
What you paid for the home when you bought it — not the cash you brought to closing.
Certain fees paid at purchase — transfer taxes, attorney fees, inspection costs. (Not mortgage points.)
Upgrades that add value, like a room addition or new deck. Regular repairs or replacements don't count.
The figure you'll subtract from your net proceeds.
This is your sale price minus selling expenses — real estate commissions, inspection fees, legal costs, title fees, and any fix-up expenses made specifically to prepare the home for market.
Capital Gain = Net Proceeds − Adjusted Cost Basis
Didn't quite reach two years? You may still qualify for a partial exclusion if you had to sell due to circumstances such as a job relocation, divorce, or certain health issues.
Full details on qualifying events and how to calculate full and partial exclusions: IRS Publication 523, Selling Your Home.
Get a free, no-pressure estimate of your Las Cruces home's value — the first number in the equation.
Why it's worth understanding
Understanding gain and the exclusion up front helps you plan your net and avoid unexpected tax questions.
Saving receipts for improvements and selling costs can raise your basis and lower your taxable gain.
The two-of-five-years rule means timing a sale — or knowing the partial-exclusion exceptions — can make a difference.
Good to know
Often not. Many homeowners owe little or nothing because the IRS lets you exclude a large amount of gain on a primary residence if you meet the requirements. Whether tax applies depends on your gain, filing status, and situation, so confirm with a qualified tax professional. This page is general information, not tax advice.
Under current IRS rules, you may exclude up to $250,000 of gain, or up to $500,000 for married couples filing jointly, if you meet the ownership and use tests. Amounts and rules can change, so verify the current figures with a tax professional or in IRS Publication 523.
Generally, you must have owned and lived in the home as your primary residence for at least two of the past five years, and you must not have claimed the exclusion on another home in the past two years. A tax professional can confirm whether your situation qualifies.
You may still qualify for a partial exclusion if you had to sell due to circumstances such as a job relocation, divorce, or certain health issues. IRS Publication 523 explains qualifying events and how partial exclusions are calculated; a tax professional can help you apply them.
Your capital gain is your net proceeds minus your adjusted cost basis. Net proceeds are the sale price minus selling expenses; adjusted cost basis is your purchase price plus eligible purchase costs and qualifying improvements. Knowing your likely sale price is the first piece — you can request a free home value report on this page.
Your journey home starts here
Your sale price drives the whole calculation. Get a free, no-pressure estimate of your Las Cruces home's value to begin planning your net.
Keep exploring
Part of the Seller's Resource Library — practical, no-pressure guides for Las Cruces home sellers.