Capital Gains Tax on Real Estate: 2026 Guide

Capital gains tax on real estate is a federal tax on the profit you make when selling property for more than you paid. Short-term gains (property held under one year) are taxed as ordinary income, while long-term gains qualify for preferential rates of 0%, 15%, or 20% depending on your income bracket.

Section 01

Understanding Capital Gains Tax on Real Estate

Capital gains tax on real estate applies whenever you sell property for more than your adjusted cost basis—typically what you paid plus qualifying improvements. The IRS treats real estate profits as capital gains, which means the tax treatment depends on how long you owned the property before selling.

Your holding period determines whether gains are classified as short-term or long-term. Properties held for one year or less generate short-term capital gains, taxed at your ordinary income tax rate (10% to 37% in 2026).

Key takeaway

The difference in tax treatment can mean thousands of dollars. For someone in the 32% ordinary income bracket, a $100,000 short-term gain would trigger $32,000 in federal tax, while the same long-term gain might only cost $15,000 at the 15% long-term rate.

Section 02

How Capital Gains Tax Rates Work in 2026

Long-term capital gains tax rates for real estate follow three tiers based on your taxable income. These preferential rates are one of the key advantages of holding investment property for more than one year.

For single filers in 2026:

  • 0% rate: Taxable income up to $47,025
  • 15% rate: Taxable income from $47,026 to $518,900
  • 20% rate: Taxable income above $518,900
Key takeaway

For married filing jointly in 2026:

  • 0% rate: Taxable income up to $94,050
  • 15% rate: Taxable income from $94,051 to $583,750
  • 20% rate: Taxable income above $583,750

These brackets adjust annually for inflation. Note that your taxable income includes the capital gain itself, which can push you into a higher bracket.

Section 03

Calculating Your Real Estate Capital Gain

Your taxable gain isn't simply the difference between purchase and sale price. The IRS allows you to adjust your cost basis with certain expenses, reducing the amount subject to capital gains tax on real estate.

Key takeaway

Cost basis calculation:

  1. 1Start with the original purchase price
  2. 2Add closing costs from purchase (title insurance, legal fees, recording fees)
  3. 3Add cost of qualifying improvements (room additions, new roof, HVAC systems)
  4. 4Subtract any depreciation claimed (for rental properties)
  5. 5Result is your adjusted cost basis

Worked example: You bought a rental property in 2020 for $300,000. Purchase closing costs were $6,000.

  • Original purchase: $300,000
  • Purchase closing costs: +$6,000
  • Improvements: +$15,000 + $8,000 = +$23,000
  • Depreciation claimed: -$20,000
  • Adjusted basis: $309,000

Selling costs like real estate commissions, transfer taxes, and attorney fees reduce your proceeds. Maintenance and repairs don't increase basis—only permanent improvements that add value or extend the property's life.

Next step · Free

Talk to a vetted tax pro

Get matched with a tax specialist who handles situations like yours.

Find a tax pro

Takes about 2 minutes · No obligation

Section 01

Primary Residence Exclusion Rules

The most powerful tax break for capital gains tax on real estate is the Section 121 exclusion for primary residences. Qualifying homeowners can exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from taxation.

Qualification requirements:

  • You owned the home for at least two of the five years before selling
  • You used the home as your primary residence for at least two of those five years
  • You haven't used the exclusion on another home in the past two years
  • The two years don't have to be consecutive
Key takeaway

The ownership and use tests are separate. You might rent out your home for three years, move back in for two years, then sell and still qualify.

Partial exclusions are available for certain circumstances even if you don't meet the full two-year requirement. Qualifying reasons include job relocation beyond 50 miles, health-related moves, or unforeseen circumstances like divorce or multiple births.

Section 02

Investment Property and Rental Real Estate

Investment properties don't qualify for the primary residence exclusion, making tax planning more critical. You'll face capital gains tax on real estate profits plus potential depreciation recapture tax on rental properties.

Key takeaway

Depreciation recapture is taxed at a maximum rate of 25% for the amount of depreciation you claimed (or should have claimed) during ownership. This applies even if you never actually took the deduction—the IRS assumes you received the tax benefit.

Example of depreciation recapture: Your rental property has a $100,000 total gain. You claimed $30,000 in depreciation over the years.

Some investors use a 1031 exchange to defer capital gains tax on real estate by reinvesting proceeds into a similar property. This like-kind exchange must follow strict IRS rules: you must identify replacement property within 45 days and close within 180 days, and the new property must be of equal or greater value.

Section 03

State Capital Gains Taxes

Key takeaway

Most states add their own layer of capital gains tax on real estate on top of federal taxes. While some states have no income tax at all, others tax capital gains as ordinary income at their regular rates.

States with no income tax (no state capital gains tax):

  • Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming
  • New Hampshire (only taxes dividends and interest)

States with income tax typically tax long-term capital gains at the same rate as wages and other income. California has the highest top rate at 13.3%, meaning high earners could face a combined federal and state rate exceeding 33% on real estate gains.

Key takeaway

Some states offer preferential treatment. Wisconsin excludes 30% of long-term capital gains from state taxation. Arizona provides a 25% exclusion for long-term gains. Check your state's specific rules when calculating total tax liability.

Section 04

Strategies to Reduce Capital Gains Tax

Careful planning can significantly reduce capital gains tax on real estate. These strategies work within IRS rules to legally minimize your tax burden when selling property.

Timing strategies:

  • Hold property for at least one year and one day to qualify for long-term rates
  • Spread the sale across tax years using installment sales to stay in lower brackets
  • Time the sale for a year when your other income is lower
  • Harvest capital losses from other investments to offset gains
Key takeaway

Cost basis maximization:

  • Document all qualifying improvements with receipts and invoices
  • Include often-overlooked purchase costs like surveys and inspection fees
  • Track special assessments for improvements like sewer lines or sidewalks
  • Keep records for the entire holding period

Opportunity Zones allow investors to defer capital gains by reinvesting proceeds into Qualified Opportunity Funds within 180 days. Gains can be permanently reduced by 10% if held five years, with all appreciation on the new investment potentially tax-free after ten years.

Charitable strategies can eliminate capital gains entirely. Donating appreciated property to charity gives you a deduction for the full fair market value without recognizing the gain.

Section 05

Special Situations and Exceptions

Key takeaway

Certain scenarios create unique capital gains tax on real estate situations that require special attention and potentially professional guidance.

Inherited property receives a step-up in basis to fair market value at the date of death. This means heirs can often sell inherited real estate immediately with little or no capital gain, regardless of how much the property appreciated during the deceased's lifetime.

Divorce property transfers between spouses or former spouses incident to divorce are generally tax-free. The recipient takes over the transferor's basis, meaning the capital gain is deferred until eventual sale.

Key takeaway

Foreclosure and short sales can trigger taxable gains even without cash proceeds. If your mortgage debt exceeds your basis and the lender forgives the difference, you may face both cancellation of debt income and capital gains.

Mixed-use property (part personal residence, part rental) requires allocation between qualified and non-qualified use for the Section 121 exclusion. Post-2008 rules reduce your exclusion based on periods of non-qualified use after the last date you lived there as a primary residence.

Section 06

FAQ

Do I pay capital gains tax if I sell my house and buy another?

Yes, you typically owe capital gains tax on real estate profits even if you buy another property immediately, unless you qualify for the primary residence exclusion ($250,000/$500,000). Simply purchasing another home doesn't defer the tax.

How long do you have to live in a house to avoid capital gains?

Key takeaway

You must live in the house as your primary residence for at least two of the five years before selling to qualify for the capital gains exclusion. The two years don't need to be consecutive, and you can count periods totaling 24 months within that five-year window.

What happens if my capital gain exceeds the exclusion amount?

The amount exceeding the $250,000/$500,000 primary residence exclusion is taxed as a long-term capital gain at 0%, 15%, or 20% depending on your total taxable income for 2026. For example, if you're single with a $300,000 gain, you'd exclude $250,000 and pay capital gains tax on the remaining $50,000 based on your income bracket.

Can I deduct home improvements to reduce capital gains?

Yes, qualifying home improvements increase your cost basis and reduce your taxable capital gain. Improvements that add value, prolong the property's life, or adapt it to new uses qualify—such as room additions, new roofs, HVAC systems, or decks.

Next step · Free

Talk to a vetted tax pro

Get matched with a tax specialist who handles situations like yours.

Find a tax pro

Takes about 2 minutes · No obligation

Evaluate a side hustle or career income strategy

A side hustle is paid work performed outside a primary job, often as an employee, contractor, seller, or business owner. Before choosing among side hustle ideas, estimate startup costs, ongoing expenses, time requirements, demand, payment terms, and tax responsibilities. Side hustles from home may still require licenses, insurance, secure technology, recordkeeping, or permission under a lease, HOA rule, or local regulation.

Employment income may also grow through additional responsibilities, a promotion, a job change, or improved skills. When learning how to ask for a raise, document relevant duties, results, market information, and the requested change without assuming approval. Update skills to put on resume using accurate examples, and prepare for common interview topics. Compare gross pay, benefits, commuting costs, schedule, stability, and taxes rather than evaluating an opportunity by headline pay alone.

Common questions

People also search for

  • side hustle
  • side hustle ideas
  • side hustles
  • side hustles from home
  • what is a side hustle
  • side jobs
  • how to start a side business
  • how to start small business
  • how to start a business
  • how to ask for a raise
  • goal setting
  • skills to put on resume
  • resume tips
  • tax calculator
  • calculator tax
  • cd rates
  • calculator with tax
  • property tax
  • capital gains tax

Talk to a vetted tax pro

Start