# Do You Pay Capital Gains Tax When You Sell Your Home?

> The IRS home sale exclusion in plain English: up to $250,000 ($500,000 married filing jointly), the two-out-of-five-year test and how often you can use it.

Source: https://myhomeservice360.com/homeowners/selling-and-moving/capital-gains-when-selling-a-home/

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](https://myhomeservice360.com/homeowners/home-records-when-you-sell/).

## 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.

## Keep reading

[Records for selling](https://myhomeservice360.com/homeowners/home-records-when-you-sell/) [What adds value](https://myhomeservice360.com/homeowners/selling-and-moving/what-adds-value-before-selling/) [Insurance and taxes](https://myhomeservice360.com/homeowners/insurance-and-taxes/) [Rent vs. buy](https://myhomeservice360.com/homeowners/calculators/rent-vs-buy/)

## More homeowner guides

[Budget a houseWhat a home really costs each month and each year](https://myhomeservice360.com/homeowners/budget-a-house/) [First-time buyersStep by step, plus Florida down payment help](https://myhomeservice360.com/homeowners/first-time-buyers/) [MortgagesPayments, PMI, rates and refinancing](https://myhomeservice360.com/homeowners/mortgages/) [Cost of livingHousing costs by ZIP and county, Florida first](https://myhomeservice360.com/homeowners/cost-of-living/) [Home history and permitsHow to look up permits and system ages](https://myhomeservice360.com/homeowners/home-history-and-permits/) [Filters and air qualitySizes, MERV and how often to change](https://myhomeservice360.com/homeowners/filters/) [MaintenanceFlorida-climate checklists and lifespans](https://myhomeservice360.com/homeowners/maintenance/) [Replacement costsRoofs, AC, water heaters and more](https://myhomeservice360.com/homeowners/replacement-costs/) [Insurance and taxesHomestead, wind mitigation, flood](https://myhomeservice360.com/homeowners/insurance-and-taxes/) [Selling and movingRecords, prep and moving costs](https://myhomeservice360.com/homeowners/selling-and-moving/) [Free calculators15 tools, no signup](https://myhomeservice360.com/homeowners/calculators/)

## Sources and method

- [IRS Publication 523, Selling Your Home](https://www.irs.gov/publications/p523)

---
MyHomeService360 · https://myhomeservice360.com/ · (844) 593-7694 · info@thecompendiumco.com
