Free for homeowners

Do I pay capital gains tax when I sell my house?

Often not on most of the gain. If you owned the home and lived in it as your main home for at least 24 months of the five years before the sale, the IRS lets you exclude up to $250,000 of gain, or $500,000 for most married couples filing jointly. You can generally use the exclusion once every two years.

Updated December 3, 2026 · By the MyHome360 editorial team · Sources

On this page: How the exclusion works How is the gain figured? When should I talk to a tax professional?

How the exclusion works

IRS Publication 523 sets two tests. Ownership: you owned the home for at least 24 months in the five years before the sale. Residence: you lived in it as your main home for at least 24 months in those five years. The months don't have to be consecutive. For married couples filing jointly, only one spouse needs to meet the ownership test, but both must meet the residence test for the full $500,000.

How is the gain figured?

Roughly, the sale price minus selling costs, minus your basis: what you paid plus certain purchase costs and the cost of improvements. That's another reason to keep receipts for a new roof, AC or addition: improvements can raise your basis. Repairs generally don't. Keep them with your home records.

When should I talk to a tax professional?

If your gain may exceed the exclusion, you rented the home out, used part of it for business, or sold within two years because of a job change, health or other unforeseen circumstances (Publication 523 describes partial exclusions). This page is general information, not tax advice.

Questions people ask

How much profit can I make on my house without paying taxes?

Up to $250,000 of gain, or $500,000 for most married couples filing jointly, if you meet the IRS ownership and residence tests.

Do the two years have to be in a row?

No. Publication 523 says the 24 months don’t have to be consecutive, as long as they fall within the five years before the sale.

How often can I use the home sale exclusion?

Generally once in any two-year period.

Track this for your own home, free

Put your home's numbers in one place: payment, taxes, insurance, maintenance and the equipment that will need replacing. MyHome360 is free for homeowners. Just your email to start.

MyHome360 is free for every homeowner. Your home record, filters, reminders and your pros in one place.