Capital Gains Tax on Sale of Property: Rules, Rates and Worked Examples
Your federal tax on a property sale is the gain (what you realized minus your adjusted basis) times a rate set by how long you held it and your taxable income. Hold more than a year and the 2025 rates are 0%, 15% or 20%. Hold a year or less, or flip as a business, and the profit is taxed as ordinary income. The part of a rental gain that comes from depreciation is taxed at a maximum of 25%.
Step 1: Find the gain
Take the selling price, subtract selling expenses, and you have the amount realized. Subtract your adjusted basis and you have the gain or loss (IRS Pub 523). Basis is generally what the property cost you.
- Amount realized includes any mortgage or other debt the buyer takes over, or that the property is sold subject to (IRS Pub 544).
- Adjusted basis is your cost, plus buying costs and improvements, minus depreciation you took or were entitled to take (IRS Pub 523).
Step 2: Count the holding period
Held more than one year is long-term. Held one year or less is short-term. You count from the day after you acquired the property through the day you sold it. Net short-term gains are taxed as ordinary income at graduated rates (IRS Topic 409).
Step 3: Apply the rate
These are the 2025 long-term rates from IRS Topic 409. They apply to taxable income, not to the size of the gain alone.
| 2025 filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $48,350 | $533,400 | $533,400 |
| Married filing separately | $48,350 | $300,000 | $300,000 |
| Married filing jointly | $96,700 | $600,050 | $600,050 |
| Head of household | $64,750 | $566,700 | $566,700 |
Qualifying surviving spouses use the married-filing-jointly thresholds. The IRS page reviewed on September 24, 2026 lists 2025 figures, so check Topic 409 for the year you sell.
Depreciation on rentals
Unrecaptured section 1250 gain is generally the part of a long-term gain on real property that is due to depreciation. It is taxed at a maximum 25% rate. The 25% is a ceiling, not a flat rate, so the piece can be taxed lower if your ordinary rate is below it.
Flips and wholesale inventory
Property you hold mainly for sale to customers in your trade or business is not a capital asset (IRS Pub 544). If flipping or wholesaling is your business, the profit is ordinary income whatever the holding period, so a flip held 13 months does not get long-term capital gains rates.
Rental property and section 1231
Rental real estate held longer than a year is generally section 1231 property. A net section 1231 gain is ordinary income up to your nonrecaptured section 1231 losses from the previous five years. The rest is long-term capital gain.
Losses
Capital losses beyond your gains offset up to $3,000 of other income a year ($1,500 if married filing separately). The rest carries forward. Losses on personal-use property such as your home are not deductible.
Three worked examples
All three are federal only, use 2025 rates, ignore state tax and the net investment income tax, and are illustrations rather than tax advice.
A. Rental held 6 years
Assumptions: single filer; bought for $200,000 including buying costs; $30,000 of improvements; $40,000 of depreciation claimed; sold for $340,000 with $20,000 of selling expenses; $80,000 of other taxable income; no section 1231 losses in the prior 5 years.
- Amount realized: $340,000 - $20,000 = $320,000
- Adjusted basis: $200,000 + $30,000 - $40,000 = $190,000
- Gain: $320,000 - $190,000 = $130,000, long-term
- Depreciation piece: $40,000, taxed at no more than 25%, so at most $10,000
- Rest of the gain: $130,000 - $40,000 = $90,000. Taxable income of $210,000 ($80,000 other income + $130,000 gain) sits between $48,350 and $533,400 (single, 2025), so 15% applies: $13,500
- Federal tax on the sale: at most $10,000 + $13,500 = $23,500
The net investment income tax may add more (IRS Topic 559).
B. Flip held 5 months
Assumptions: bought for $152,000 including buying costs; $45,000 rehab; sold for $260,000 with $18,000 of selling expenses.
- Amount realized: $260,000 - $18,000 = $242,000
- Basis: $152,000 + $45,000 = $197,000
- Gain: $242,000 - $197,000 = $45,000
Held 5 months, it is short-term, so the $45,000 is taxed as ordinary income. If flipping is your business, it is ordinary income regardless of holding period.
C. Main home
Assumptions: owned and lived in for more than 24 of the last 60 months; bought for $300,000 including buying costs; $50,000 of improvements; never rented; sold for $760,000 with $40,000 of selling expenses.
- Amount realized: $760,000 - $40,000 = $720,000
- Basis: $300,000 + $50,000 = $350,000
- Gain: $720,000 - $350,000 = $370,000
- Married filing jointly: exclusion up to $500,000, so taxable gain is $0
- Single: $370,000 - $250,000 = $120,000 taxable long-term gain
The main-home exclusion
If you qualify, up to $250,000 of gain is tax free, or $500,000 if married and filing jointly. You must have owned the home at least 24 months and lived in it as your residence at least 24 months out of the 5 years before the sale. The 24 months of residence can fall anywhere in that window and need not be one block. You cannot exclude the part of the gain equal to depreciation allowed or allowable for periods after May 6, 1997, so depreciation from rental years stays taxable (IRS Pub 523).
Reporting and deferral
Report sales on Form 8949 and summarize them on Schedule D. A large gain may require estimated tax payments (IRS Topic 409). Investors who want to defer the gain on an investment property can read about the 1031 exchange.
Doing this in Deal Run
Deal Run is our product. Max Offer for a flip, rental or wholesale exit shows your spread before tax, built on MLS-grade comps and an AI repair estimate from the property's photos. Take that projected profit to your CPA and run the steps above. This page is not tax advice.
Frequently asked questions
How do I calculate capital gains on a property sale?
Subtract selling expenses from the selling price to get the amount realized, then subtract your adjusted basis. The result is your gain or loss. The amount realized includes any mortgage or other debt the buyer takes over or the property is sold subject to (IRS Pub 523 and Pub 544).
What is the holding period for long-term capital gains?
More than one year is long-term. One year or less is short-term, and net short-term gains are taxed as ordinary income at graduated rates. You count from the day after you acquired the property through the day you sold it (IRS Topic 409).
Is depreciation taxed when I sell a rental?
The part of a long-term gain that is due to depreciation is unrecaptured section 1250 gain. It is taxed at a maximum 25% rate. That 25% is a cap, not a flat rate (IRS Topic 409 and Pub 544).
Do flippers and wholesalers get long-term capital gains rates?
Not when flipping or wholesaling is your business. Property held mainly for sale to customers in your trade or business is not a capital asset (IRS Pub 544), so the profit is ordinary income whatever the holding period.
How much of a home sale gain is tax free?
If you qualify, up to $250,000 of gain is tax free, or $500,000 if married and filing jointly. You must have owned the home and lived in it at least 24 months out of the 5 years before the sale (IRS Pub 523).
Related
- Capital gains and cost basis in the glossary
- Depreciation
- Taxes when selling investment property
- Tax implications of wholesaling
- Fix and flip calculator and MAO calculator
Sources
- IRS Topic no. 409, Capital gains and losses, page last reviewed September 24, 2026, checked October 30, 2026
- IRS Publication 523 (2025), Selling Your Home, checked October 30, 2026
- IRS Publication 544 (2025), Sales and Other Dispositions of Assets, checked October 30, 2026