🥝GuideKiwi
Free Guide

Free Guide to Capital Gains Tax on Real Estate

Understanding Capital Gains Tax Basics Capital gains tax is a tax you may owe when you sell real estate for more than you paid for it. The difference between...

GuideKiwi Editorial Team·

Understanding Capital Gains Tax Basics

Capital gains tax is a tax you may owe when you sell real estate for more than you paid for it. The difference between what you paid (your "basis") and what you sold it for (the sale price) is your capital gain. This is the amount that may be subject to federal income tax, and possibly state income tax depending on where you live.

The Internal Revenue Service (IRS) treats capital gains differently depending on how long you owned the property. If you owned it for one year or less, it's considered a short-term capital gain and taxed as ordinary income at your regular tax rate. If you owned it for more than one year, it's a long-term capital gain, which typically has lower tax rates: 0%, 15%, or 20% depending on your income level in 2024.

For example, suppose you bought a house for $250,000 and sold it five years later for $350,000. Your capital gain would be $100,000. If you're in the 15% long-term capital gains bracket, you might owe $15,000 in federal capital gains tax (before considering any deductions or other factors). However, the actual tax you owe depends on your total income, filing status, and other circumstances.

Capital gains tax applies to many types of real estate sales: primary homes, rental properties, investment properties, land, and commercial buildings. Each situation may be treated differently. Some sales may be subject to additional taxes like the Net Investment Income Tax, which is a 3.8% tax on certain investment income for higher earners. Understanding these basics helps you see why real estate sales can have significant tax consequences.

Practical Takeaway: When planning to sell real estate, calculate your potential capital gain by subtracting your purchase price from your expected sale price. This number tells you the amount that may be taxed. Knowing this figure early allows you to explore whether any deductions or exemptions might apply to your situation.

The Primary Residence Exemption

One of the most valuable tax benefits in the U.S. tax code is the primary residence exemption. If you owned and lived in a home as your main residence for at least two of the five years before you sold it, you may be able to exclude up to $250,000 of capital gains from taxes if you're filing as single, or up to $500,000 if you're married filing jointly. This means you only pay capital gains tax on any gain above these amounts.

This exemption has helped millions of homeowners avoid significant tax bills. For instance, if a married couple bought a house for $300,000, lived in it for seven years, and sold it for $650,000, their capital gain would be $350,000. With the $500,000 exemption, they would owe capital gains tax on zero dollars, because their gain is less than the exemption amount. This represents a potential tax savings of thousands of dollars.

However, this exemption has important conditions. You must have owned the home for at least two of the five years before the sale. You cannot have used this exemption on another home sale within the past two years. The two years of ownership and use do not need to be consecutive. If you inherited the home, different rules may apply. If you're married but filing separately, the exemption drops to $250,000 per person.

You also cannot use this exemption if you sold the home as part of a 1031 exchange (a like-kind exchange used to defer capital gains taxes). Additionally, if you used part of the home for business purposes—such as a home office that you depreciated for tax purposes—that portion of the gain may still be subject to tax even after the exemption is applied.

There are also situations where you may be able to use a reduced version of the exemption. If you sold the home because of a change in employment, health issues, or unforeseen circumstances, you might exclude a reduced amount even if you didn't meet the two-year ownership requirement. The IRS provides guidance on what situations qualify.

Practical Takeaway: If you're planning to sell your primary home, verify that you meet the two-year ownership and use test. Calculate your potential capital gain and compare it to the exemption amount ($250,000 or $500,000) to determine whether you might owe any capital gains tax. Keep records of when you moved into the home and when you moved out to document your eligibility for this exemption.

Calculating Your Basis and Adjustments

Your "basis" in a real estate property is generally what you paid for it, but it's often more complicated than the purchase price alone. Basis is important because it's subtracted from your sale price to determine your capital gain. The lower your basis, the higher your capital gain and potential tax. Understanding basis can sometimes reveal ways to reduce your taxable gain.

Your initial basis typically includes the purchase price plus certain costs directly related to acquiring the property. This includes closing costs such as legal fees, survey fees, title insurance, and recording fees. If you paid points on a mortgage, those may also be included. If you inherited the property, your basis is generally "stepped up" to the fair market value on the date of the owner's death, which can significantly reduce or eliminate a capital gain.

After you own the property, your basis can be adjusted upward or downward based on certain events and improvements. Capital improvements—those that add value to the property, prolong its life, or adapt it to new uses—increase your basis. Examples include adding a room, replacing the roof, installing new plumbing or electrical systems, or adding a deck. These are different from repairs, which maintain the property but don't increase basis. Painting, fixing a leaky faucet, or patching drywall are repairs and don't increase basis.

Basis can also be adjusted downward. If you depreciated the property for tax purposes (which rental and investment property owners often do), your basis is reduced by the depreciation amount. This is important because even though depreciation deductions lower your current taxes, they increase your capital gains when you sell. Additionally, if you took a casualty loss deduction due to damage like fire or flood, that reduces your basis.

Keeping detailed records of all capital improvements is essential. A home office renovation costing $15,000, a roof replacement for $12,000, and a kitchen remodel for $40,000 could total $67,000 in basis increases. If you sell the property years later, these improvements can meaningfully reduce your capital gain. Many homeowners lose tax benefits because they lack documentation of improvements they made.

Practical Takeaway: Create a file to track all capital improvements you make to your property, including receipts, invoices, and descriptions of the work. Keep records of your original purchase price and closing documents. When you're ready to sell, provide this information to your tax preparer so they can accurately calculate your basis and capital gain.

Depreciation Recapture and Rental Properties

If you own rental property or use real estate for business purposes, you've likely taken depreciation deductions on your tax returns. Depreciation allows you to deduct a portion of the building's value each year, even though you're not actually spending money. This reduces your taxable income annually. However, when you sell the property, depreciation comes back to haunt you through a concept called depreciation recapture.

Depreciation recapture means that the depreciation deductions you took (or were allowed to take) are added back into your taxable income when you sell. This recaptured depreciation is taxed at a 25% rate federally, which is higher than the long-term capital gains rate of 15% or 20% that applies to the remaining gain. This can make selling rental properties more expensive tax-wise than selling primary residences.

For example, consider an investor who bought a rental property for $300,000. Over 10 years of ownership, they took $100,000 in depreciation deductions, reducing their basis to $200,000. They then sold the property for $450,000. The total gain is $250,000 ($450,000 sale price minus $200,000 adjusted basis). Of this gain, $100,000 is depreciation recapture taxed at 25%, and $150,000 is long-term capital gain taxed at 15% or 20% depending on income. The total federal tax could be $37,500 or more, depending on their tax bracket and other factors.

🥝

More guides on the way

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

Browse All Guides →