The federal capital gains tax on real estate runs from 0 percent to 37 percent, depending on how long you owned the property, how much you earn overall, and whether the property was your home or an investment. A single homeowner can exclude up to $250,000 of profit on a primary residence; married couples filing jointly can exclude up to $500,000. Higher earners may owe an extra 3.8 percent surtax, and rental owners face a separate tax on prior depreciation deductions.
How Long You Owned It Sets the Rate
One year is the dividing line. Sell after owning the property for a year or less and the profit is a short-term capital gain, taxed at your ordinary income rate, which tops out at 37 percent for the 2026 tax year.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Hold for more than a year and the gain qualifies for the preferential long-term rates of 0, 15, or 20 percent.
The IRS counts your holding period from the day after you acquired the property through the day you sold it.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses A property bought on March 1, 2025 becomes long-term on March 2, 2026.
For the 2026 tax year, the long-term brackets are:2Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
- 0 percent on taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
- 15 percent above those thresholds up to $545,500 (single), $613,700 (joint), or $579,600 (head of household).
- 20 percent on taxable income above the 15 percent ceiling.
Most homeowners who owe anything land in the 15 percent bracket. The 20 percent rate generally reaches only high-income investors or very large gains.
The Primary Residence Exclusion
The biggest break in the code is Section 121. If the property was your home, you can exclude up to $250,000 of profit as a single filer or $500,000 filing jointly.3Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For many sellers, this eliminates the federal tax entirely.
Two tests. You must have owned the home and used it as your primary residence for at least two of the five years before the sale. The two years don’t have to be consecutive; any 24 months of ownership and use inside that five-year window counts. You can generally use the exclusion only once every two years.3Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
If You Sold Before Two Years
A job relocation, health issue, or other unforeseeable event can qualify you for a reduced exclusion. A work-related move counts if the new job is at least 50 miles farther from the home than your previous workplace. A health-related move qualifies when a doctor recommends the change or you’re relocating to care for a family member.4Internal Revenue Service. Publication 523 (2025), Selling Your Home
The partial exclusion is prorated by days lived in the home divided by 730, applied to the $250,000 or $500,000 base. A single filer who lived in the home for 365 days before an eligible transfer would get about $125,000 of exclusion.4Internal Revenue Service. Publication 523 (2025), Selling Your Home
Figuring Your Actual Gain
The taxable gain is not simply sale price minus purchase price. Two adjustments matter.
Start with your cost basis: what you paid for the property, including purchase-related closing costs. Add capital improvements made over the years. Improvements are projects that add value, extend the property’s useful life, or adapt it to a new use: a new roof, a kitchen renovation, adding central air, finishing a basement.4Internal Revenue Service. Publication 523 (2025), Selling Your Home Routine repairs like patching drywall or replacing a faucet do not count. The result is your adjusted basis. Keep receipts and contractor invoices; the IRS will expect documentation in an audit.
On the sale side, your amount realized is the sale price minus selling expenses such as agent commissions, legal fees, and advertising costs.4Internal Revenue Service. Publication 523 (2025), Selling Your Home Amount realized minus adjusted basis is your capital gain or loss.
The 3.8 Percent Surtax for Higher Earners
The Net Investment Income Tax adds 3.8 percent on top of the regular capital gains rate for individuals whose modified adjusted gross income exceeds $200,000 (single), $250,000 (joint), or $125,000 (married filing separately).5Internal Revenue Service. Topic No. 559, Net Investment Income Tax These thresholds are not indexed for inflation.
The surtax hits the lesser of your net investment income or the amount by which your income exceeds the threshold. Gain on a primary residence that qualifies for the Section 121 exclusion is not subject to the surtax, but any gain above the exclusion amount is. Gains on investment or rental property count in full.6Internal Revenue Service. Questions and Answers on the Net Investment Income Tax For a high-income investor selling a rental, the combined federal rate on long-term gain can reach 23.8 percent before depreciation recapture and state tax.
Rental and Investment Properties
Investment property doesn’t qualify for the primary residence exclusion, and it carries an extra tax layer many sellers don’t see coming.
Depreciation Recapture
While you own a rental, the IRS requires you to deduct depreciation each year against your rental income. When you sell, it claws that back by taxing the depreciation-related portion of the gain at a maximum rate of 25 percent.7Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 5 This is called unrecaptured Section 1250 gain.8Office of the Law Revision Counsel. 26 USC 1250 – Gain From Dispositions of Certain Depreciable Realty The remaining gain above your adjusted basis is taxed at the standard long-term rate.
Recapture applies whether or not you actually claimed the deductions in prior years, which is why skipping depreciation on a rental is almost always a costly mistake.
1031 Like-Kind Exchange
You can defer the entire tax by rolling proceeds from one investment property into another through a 1031 exchange. You have 45 days after the sale to identify the replacement property, and the whole transaction must close within 180 days.9Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment There are no extensions.
The proceeds must be held by a qualified intermediary. If cash passes through your hands before the exchange closes, the transaction can be disqualified and the full gain becomes taxable that year.10Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 Any proceeds you don’t reinvest (called “boot”) are taxed as gain in the year of sale.
Inherited or Gifted Property
How you acquired the property changes your basis, and this is where sellers most often overpay.
Inherited real estate gets a stepped-up basis: the fair market value on the date the previous owner died, not what they originally paid.11Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent If a parent bought a house in 1985 for $80,000 and it was worth $400,000 when they died, your basis is $400,000. Selling for $410,000 produces a taxable gain of just $10,000.
Property received as a gift during the donor’s lifetime is treated differently. Your basis is generally the donor’s basis: what they paid, adjusted for improvements.12Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If the fair market value at the time of the gift was lower than the donor’s basis, a special rule uses the lower figure for computing a loss. Any gift tax the donor paid may add to your basis. In short: inherited property usually comes with a much better tax basis than gifted property.
What About a Loss
A loss on the sale of your home or any other personal-use property is not deductible. The IRS won’t let you claim it against other income or carry it forward.13Internal Revenue Service. What if I Sell My Home for a Loss?
Investment property is different. A loss on investment real estate offsets capital gains dollar-for-dollar. If losses exceed gains for the year, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Anything left carries forward to future years until it’s used up.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
State Tax on Top
Federal is only part of the bill. Most states tax capital gains as ordinary income; top state rates run from zero in states with no income tax to over 13 percent in the highest-tax states. Some states follow the federal Section 121 exclusion for a primary residence, others set their own limits. Check with your state tax agency for the rate and rules that apply to your sale.
Reporting the Sale
Real estate gains are reported on your annual federal return using two forms that feed a third. You enter each transaction on Form 8949: property description, dates acquired and sold, sale proceeds, and cost basis.14Internal Revenue Service. 2025 Instructions for Form 8949 The totals flow to Schedule D (Form 1040), which is where the gain or loss lands on your return.15Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses If you’re claiming the primary residence exclusion, the sale still goes on Form 8949, with the excluded amount entered as a negative adjustment. Most tax software handles the coordination once you enter the transaction. The return is generally due April 15 of the year after the sale.
Don’t skip the reporting. Closing agents send Form 1099-S to the IRS, so the agency knows the sale happened. Underreporting or failing to report can trigger the accuracy-related penalty of 20 percent of the underpayment, plus interest running daily from the original due date.16Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments