The federal long-term capital gains tax on real estate is 0%, 15%, or 20% of your profit, and which rate you pay turns on your total taxable income for the year, not the size of the gain by itself. “Long-term” means you owned the property for more than one year before selling. On top of the base rate, high earners owe an additional 3.8% surtax, and if the property was a rental, the portion of the gain equal to the depreciation you claimed is taxed separately at up to 25%.
What Counts as Long-Term
The IRS draws the line at one year. Hold the property for more than a year before the sale closes, and the profit is a long-term capital gain taxed at the preferential rates below. Hold it for one year or less, and the profit is short-term, taxed at your ordinary income rate, which can run as high as 37%.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The clock starts the day after your acquisition closing date and runs through the closing date of the sale. Rental properties, vacation homes, and personal residences are all capital assets for this purpose. The exception is property held as inventory by someone in the business of buying and selling real estate; those profits are ordinary business income no matter how long the property sat.
The 2026 Long-Term Capital Gains Rate Brackets
For 2026, the rate you pay depends on where your total taxable income lands:2Internal Revenue Service. Revenue Procedure 2025-32
- 0% if your taxable income is up to $49,450 (single) or $98,900 (married filing jointly).
- 15% if your taxable income is above those amounts but not over $545,500 (single) or $613,700 (joint).
- 20% on income above the 15% thresholds.
Most sellers of real estate land in the 15% bracket. The 0% rate is realistic only when total taxable income, including the gain itself, stays under the threshold, which is uncommon in a meaningful property sale. The 20% rate applies only to the portion of income above the cutoff, not the full gain.
The 3.8% Net Investment Income Tax
Higher-income taxpayers owe an additional 3.8% Net Investment Income Tax on capital gains from real estate. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single) or $250,000 (joint). Those thresholds are not indexed for inflation and have not changed since 2013.3Internal Revenue Service. Topic No. 559, Net Investment Income Tax
For a high earner in the 20% bracket, the combined federal rate on a long-term real estate gain reaches 23.8%.
Figuring the Gain the Tax Applies To
The rate is only half the calculation. The other half is what it applies to, which is your net gain, not the sale price.
Start with your basis. That’s usually the purchase price plus settlement costs like title insurance and recording fees. Some closing costs never enter the basis: fire insurance premiums, mortgage insurance premiums, appraisal fees required by a lender, and utility charges for use before closing.4Internal Revenue Service. Publication 530, Tax Information for Homeowners
Then adjust it. Capital improvements (a new roof, an addition, a major renovation) raise your basis because they add lasting value. Depreciation you deducted on rental or investment property lowers it. Casualty loss deductions and insurance reimbursements also reduce basis. The result is your adjusted basis.
To get the net gain, subtract the adjusted basis from the amount realized, which is the sale price minus selling expenses like real estate commissions and attorney fees.
A worked example. You bought a rental for $500,000, spent $50,000 on improvements, and claimed $100,000 in depreciation. Your adjusted basis is $450,000. You sell for $1,000,000 with $60,000 in selling costs, so the amount realized is $940,000. Net gain: $490,000. That full $490,000 does not get taxed at a single rate, though, because depreciation recapture pulls out a slice.
Depreciation Recapture on Rentals
If you deducted depreciation on a rental or investment property, the IRS takes some of that benefit back when you sell. The portion of your gain equal to the cumulative depreciation you claimed is taxed at a maximum federal rate of 25%, separately from the long-term capital gains rate on the rest of the gain.5Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed
In the example above, $100,000 of the $490,000 gain is recapture, taxed at up to 25%. The remaining $390,000 is taxed at 0%, 15%, or 20% based on your income. Add the 3.8% NIIT for a high earner and the recapture piece can hit 28.8%, with 23.8% on the rest. Recapture is often the part of the bill that catches rental sellers off guard, because deductions taken over the years function, in effect, as a loan against a future tax event.
If the Property Is Your Home, Different Rules Apply
A primary residence has its own regime. Up to $250,000 of gain is excluded from income for single filers, and up to $500,000 for married couples filing jointly, so many homeowners owe zero federal tax on a home sale.6Internal Revenue Service. Topic No. 701, Sale of Your Home
Two tests must be met during the five years ending on the sale date:
- Ownership: you owned the home for at least two of those five years.
- Use: you lived in it as your principal residence for at least two of those five years (24 months total, not necessarily consecutive).
The exclusion is available only once every two years. For joint filers, both spouses must meet the use test individually, and at least one must meet the ownership test.7Internal Revenue Service. Publication 523 (2025), Selling Your Home
A partial exclusion is available if you fall short of the two-year tests because of a job change, health issue, or other unforeseen circumstance. It’s prorated by the fraction of the requirement you met. Gain above the exclusion is taxed at the long-term rate that fits your income. If the home was ever rented, any depreciation you claimed during that period is still subject to the 25% recapture treatment, even when the rest of the gain qualifies for the exclusion.
Ways to Defer or Reduce the Tax
1031 Like-Kind Exchange
For investment property, the strongest deferral tool is a like-kind exchange. Rather than selling and paying tax, you exchange one investment property for another and carry your original basis forward. Tax is deferred until you eventually sell the replacement property outside of another exchange.8Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment
The mechanics are strict. You cannot touch the sale proceeds; a qualified intermediary holds the funds. You must identify potential replacement properties within 45 days of the sale and close on one within 180 days. Miss either deadline and the exchange fails, leaving a fully taxable sale. Any cash, debt relief, or non-real-estate property you receive (called “boot”) is taxable in the year of the exchange, though the rest of the gain remains deferred.
Installment Sale
If you finance part of the sale yourself and the buyer pays over time, the installment method spreads recognition of the gain across the years payments arrive, rather than the entire gain hitting in the year of sale. It’s available whenever at least one payment is received after the close of the tax year of the sale.9Office of the Law Revision Counsel. 26 U.S. Code 453 – Installment Method
Each payment breaks into three pieces: tax-free return of basis, taxable gain, and interest income. The gain portion is set by your gross profit percentage (total gain divided by contract price). Interest on the note is ordinary income.10Internal Revenue Service. Publication 537 (2025), Installment Sales The installment method is unavailable for dealer property and inventory, and it doesn’t apply to sales at a loss. You can also elect out and report the full gain in the year of sale if that works better.
Qualified Opportunity Fund (With a 2026 Catch)
Investing a capital gain into a Qualified Opportunity Fund within 180 days defers tax on that gain, and holding the fund investment for at least ten years permanently excludes appreciation of the fund investment itself from tax.11Internal Revenue Service. Opportunity Zones Frequently Asked Questions
The 2026 catch: deferral on the original gain ends on December 31, 2026, or when you sell the fund investment, whichever comes first. Any gain deferred through a QOF investment will come due on the 2026 return regardless of whether you have sold the investment. The ten-year exclusion on later fund appreciation still works if you keep holding.
Using Losses to Offset Gains
If you sell one investment property at a loss the same year you sell another at a gain, the loss reduces the taxable gain. Long-term losses first offset long-term gains, short-term losses offset short-term gains, and any leftover net loss in one category then offsets the other.
If total capital losses for the year exceed total capital gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Any loss beyond that carries forward indefinitely.12Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses
One boundary worth knowing: losses on personal-use property, including your home or vacation house, are not deductible. The loss deduction is only for investment or business property.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
What This Doesn’t Cover: State Tax and FIRPTA
Federal is one layer. Most states tax capital gains as ordinary income, and state rates run from zero in no-income-tax states to above 13% at the top end. A few states give reduced treatment for long-term gains, but most do not. Check your state before projecting net proceeds.
If you are a non-resident foreign seller of U.S. real estate, the buyer generally has to withhold 15% of the gross sale price at closing under FIRPTA and remit it to the IRS on Form 8288 within 20 days of the sale. The withholding is not the final tax; you file a U.S. return to report the actual gain, and any overpayment is refunded. A reduced withholding certificate can be requested before closing if the expected tax is lower.13Internal Revenue Service. FIRPTA Withholding14Internal Revenue Service. Reporting and Paying Tax on U.S. Real Property Interests