🥝GuideKiwi
Free Guide

Free Guide to Capital Gains Tax on Home Sales

Understanding Capital Gains Tax on Home Sales When you sell a home for more than you paid for it, that profit is called a capital gain. The IRS taxes most ca...

GuideKiwi Editorial Team·

Understanding Capital Gains Tax on Home Sales

When you sell a home for more than you paid for it, that profit is called a capital gain. The IRS taxes most capital gains, but homes receive special treatment under U.S. tax law. Understanding how capital gains tax works on residential properties helps homeowners make informed decisions about selling real estate.

Capital gains come in two categories: long-term and short-term. If you own a home for more than one year before selling it, any profit falls into the long-term category, which typically receives lower tax rates than short-term gains. Short-term gains occur when you sell property owned for one year or less and are taxed at your ordinary income tax rate, which can be significantly higher.

The basic calculation is straightforward: subtract your adjusted basis (what you paid plus improvements) from your sale price to find your gain. For example, if you purchased a home for $250,000, spent $50,000 on renovations, and sold it for $400,000, your gain would be $100,000 ($400,000 minus $300,000 in basis).

Most homeowners do not pay capital gains tax on their primary residence due to the Section 121 Exclusion, a federal rule allowing you to exclude up to $250,000 of gain if you're single or $500,000 if you're married filing jointly. This exclusion applies if you owned and lived in the home as your primary residence for at least two of the five years before the sale.

State and local taxes vary significantly. Some states have no income tax or capital gains tax, while others tax capital gains as ordinary income. Understanding your state's rules is important because state taxes can substantially affect your net proceeds from a home sale.

Practical Takeaway: Calculate your potential gain by subtracting what you paid for the home (plus any major improvements) from the expected sale price. Check whether you meet the two-year ownership and use requirement for the primary residence exclusion, and research your state's capital gains tax rules.

The Primary Residence Exclusion: Who Qualifies and How It Works

The Section 121 Exclusion is the most important tax benefit for homeowners selling their primary residence. This federal rule allows individual filers to exclude $250,000 of capital gains from taxation, while married couples filing jointly may exclude $500,000. The exclusion significantly reduces or eliminates capital gains tax for most residential home sales.

Two key requirements must be met to use this exclusion. First, you must have owned the home for at least two of the five years immediately before the sale. The two years do not need to be consecutive, but they must fall within that five-year window. Second, you must have lived in the home as your primary residence for at least two of those same five years. The IRS defines primary residence as the place where you spent the most time during the ownership period.

The timing of ownership and use is measured differently than many people assume. If you sell on June 15, 2024, the five-year lookback period extends to June 15, 2019. You need two years of ownership and use somewhere within those five years, but they do not have to be the most recent two years. This means you could own and live in a home, move away, and still benefit from the exclusion if you sell within five years of moving.

Married couples filing jointly receive a higher exclusion amount ($500,000 instead of $250,000), but both spouses must meet the ownership and use requirements. There is an important exception: if one spouse meets the requirements but the other does not, you may still exclude $250,000. If neither spouse meets the requirements, neither can use the exclusion for that particular property.

The exclusion applies once every two years. You cannot use it multiple times in a 24-month period. If you sold a home and used the exclusion in March 2023, you cannot use it again until March 2025, even if you own multiple properties.

Practical Takeaway: Review your ownership and residence dates for the past five years. If you meet the two-year requirement in both categories, you likely can exclude significant gains from taxation. Keep records of when you purchased the home, made major life changes, and listed it for sale.

Calculating Your Cost Basis and Capital Gain

Your cost basis is what you paid for the home plus the cost of improvements you made. Calculating it accurately is essential because a higher basis means a lower taxable gain. Many homeowners underestimate their basis and pay more tax than necessary.

Start with your original purchase price, including closing costs. If you paid $300,000 for the home and paid $9,000 in closing costs (title insurance, inspection fees, attorney fees, and recording fees), your initial basis is $309,000. Do not include homeowners insurance, mortgage interest paid over the years, or property taxes in your basis—these are separate deductions on your income tax return but not part of home basis.

Capital improvements increase your basis. These are investments that add value, prolong the home's life, or adapt it to new uses. Examples include: a new roof ($15,000), kitchen renovation ($30,000), bathroom remodel ($20,000), addition of a room ($40,000), new HVAC system ($8,000), updated electrical system ($5,000), and professional landscaping ($3,000). Keep receipts and invoices for all improvements because you will need documentation if the IRS questions your basis.

Repairs and maintenance do not increase basis. These preserve the property's condition but do not add value. Repainting walls, fixing a leaky faucet, patching drywall, and replacing worn carpet are repairs. However, the distinction is not always clear. Replacing a few shingles is a repair; replacing the entire roof is an improvement. Refinishing existing hardwood floors is a repair; installing new hardwood floors in a previously carpeted room is an improvement.

Certain events decrease your basis. Casualty loss deductions (damage from fire, flood, or theft) reduce basis. If you claimed a $50,000 casualty loss deduction after a fire, you would reduce your basis by that amount. Depreciation deductions (if you claimed home office deductions) also reduce basis.

Your adjusted sales price affects the calculation differently. Selling costs—real estate agent commissions, title insurance, attorney fees, and transfer taxes paid by you as the seller—reduce your net proceeds but do not reduce your basis. If you pay a 6% commission on a $500,000 sale ($30,000), that reduces what you take home but is handled separately in the capital gain calculation for tax purposes.

Practical Takeaway: Gather all documentation of your purchase price, closing costs, and major improvements. Create a spreadsheet listing each improvement with its cost and date. Photograph or document major work completed. This basis calculation determines your gain, so accuracy saves money on taxes.

Tax Rates and How Much You Might Owe

Capital gains tax rates depend on your income level and filing status. Long-term capital gains (which apply to most home sales) receive preferential tax treatment compared to short-term gains or ordinary income. Understanding the rate structure helps you estimate your tax liability.

Federal long-term capital gains rates are 0%, 15%, or 20%, depending on your taxable income. These rates are lower than ordinary income tax brackets, which go as high as 37%. The 0% rate applies to lower-income taxpayers, 15% applies to middle-income taxpayers, and 20% applies to high-income taxpayers. These rates change annually and depend on your filing status and total income.

For 2024, the 0% long-term capital gains rate applies to single filers with taxable income up to $47,025 and married couples filing jointly with income up to $94,050. The 15% rate applies to single filers with income from $47,026 to $518,900 and married couples with income from $94,051 to $583,750. Income above these thresholds is taxed at the 20% rate. These thresholds adjust annually for inflation.

An important point: these are federal rates only. State capital gains taxes vary dramatically. California, Hawaii, Oregon, and Minnesota tax capital gains as ordinary income, potentially adding 10% or more to your federal tax. Other states like Florida, Texas, and Washington have no state income tax

🥝

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides →