Skip to content

Capital Gains Guide

Capital Gains Tax on a Home Sale and Other Real Estate: Rates, Exemptions, Calculator

Capital gains tax on a home sale applies only to gain above the Section 121 exclusion: up to $250,000 for a single owner or $500,000 for a married couple who owned and lived in the home two of the last five years. Anything above that is taxed at 0%, 15% or 20%. This reference covers homes, rentals and commercial property, with 2026 rates and the ways to defer.

  • Clear feedback on your deal, typically within 48 hours
  • 5 to 100+ units, stabilized or distressed, listed or off-market
  • Owners, agents, and brokers welcome; every conversation is confidential

We buy:Tired landlordsEstate & trust sales1031 exchangesDeferred maintenanceHigh vacancyPartnership splits

In This Guide: The $250,000/$500,000 home exclusion · What the 2025 law did and did not change · 2026 capital gains rates · Investment and commercial property · Ways to defer the tax · Home sale worked example

By Skyline Capital Investments · · 8 min read

Capital gains tax on a home sale: the short answer

Most homeowners owe no capital gains tax on a home sale, because Section 121 lets you exclude up to $250,000 of gain, or $500,000 on a joint return, from the sale of your main home. You owe capital gains tax on a home sale only when your gain is larger than the exclusion or you fail the ownership and use tests.

Your gain is the sale price, minus selling costs such as commissions and transfer tax, minus your basis. Basis is what you paid plus closing costs on the purchase plus improvements like an addition, a new kitchen or a replaced roof. Keep the receipts; IRS Publication 523 lets improvements raise basis, and they are often the easiest way to shrink a taxable gain.

Capital gains tax on real estate that is not your home works differently. A rental, a vacation home or a commercial building gets no exclusion, and the depreciation you deducted comes back as taxable gain. The sections below cover each kind of property in turn.

Did the 2025 tax law change the home sale exclusion?

No. The 2025 tax law, P.L. 119-21 (the One Big Beautiful Bill Act), did not amend Section 121, so the exclusion for 2026 sales is still $250,000 for single filers and $500,000 for married couples filing jointly. The amounts are written into the statute and are not adjusted for inflation.

Bills to raise or remove the cap have been introduced in Congress, including the No Tax on Home Sales Act (H.R. 4327). As of October 2026 none has become law. If one passes, the effective date will matter, so check before you time a sale around it.

The 2025 law did change other real estate rules that matter to sellers of investment property. It made 100% bonus depreciation permanent for property acquired after January 19, 2025 (IRS Notice 2026-11) and rewrote the opportunity zone rules for gains invested from 2027. It left the 0%, 15% and 20% capital gains rates in place.

Who qualifies for the home sale exclusion

You qualify if you owned the home and lived in it as your main home for at least 24 months of the 5 years before the sale, and you have not excluded gain on another home in the 2 years before. The 24 months do not have to be continuous, and the ownership and use periods do not have to overlap.

For the full $500,000 on a joint return, either spouse can meet the ownership test, but both must meet the use test and neither can have used the exclusion in the prior 2 years. If only one spouse qualifies, each spouse’s own limit applies.

RuleWhat it saysSource
Maximum exclusion$250,000; $500,000 on a joint returnSec. 121(b)(1), (b)(2)
Ownership testOwned at least 2 of the 5 years before saleSec. 121(a)
Use testLived in it as main home at least 2 of the 5 yearsSec. 121(a)
FrequencyOnce in any 2-year periodSec. 121(b)(3)
Surviving spouse$500,000 if sold within 2 years of the spouse’s death and not remarriedPub. 523
Military and foreign service5-year window can be suspended up to 10 years during qualified extended dutyPub. 523
Home acquired in a 1031 exchangeNo exclusion if sold within 5 years of acquisitionSec. 121(d)(10)

Partial exclusion if you sell early

If you sell before meeting the 2-year tests because of a job move, a health reason or an unforeseeable event, you can still take part of the exclusion. The partial amount is the full limit times the share of the 2 years you met the tests.

A single owner who lived in a home for 12 months and then moved for a new job at least 50 miles farther from the home than the old job could exclude up to 12/24 of $250,000, or $125,000. Publication 523 lists the qualifying events, which include divorce, a death in the household, multiple births from one pregnancy and job loss that qualifies for unemployment compensation.

When part of a home sale gain is still taxed

Even when you meet the tests, three kinds of gain fall outside the exclusion. These come up most for owners who rented the home, used part of it for business or got it through a 1031 exchange.

  • Depreciation: gain equal to depreciation allowed or allowable after May 6, 1997 is never excluded. It is taxed at up to 25%, the same as on any rental. A basement unit or home office you depreciated counts.
  • Nonqualified use: gain is prorated for periods after 2008 when the home was not your main residence, such as years as a rental before you moved in. Time after you move out, within the 5-year window, does not count against you.
  • Homes from a 1031 exchange: a rental you received in an exchange and later moved into must be held 5 years before any exclusion applies.
  • Gain over the cap: anything above $250,000 or $500,000 is taxed at long-term rates, and may also owe the 3.8% net investment income tax.

Worked example: capital gains tax on a home sale

A married couple bought their home in 2010 for $350,000 and spent $90,000 on an addition and a kitchen. They sell in 2026 for $1,150,000 and pay $69,000 in commission and closing costs. Their basis is $440,000, so the gain is $1,150,000 − $69,000 − $440,000 = $641,000.

They exclude $500,000, leaving $141,000 of long-term gain. Before the sale their MAGI is $210,000 and their taxable income, after the $32,200 standard deduction for 2026, is $177,800. Adding the gain brings taxable income to $318,800, under the $613,700 line where 20% begins, so the gain is taxed at 15%: $21,150. Their MAGI rises to $351,000, $101,000 over the $250,000 NIIT threshold, so the NIIT is 3.8% × $101,000 = $3,838. Federal tax: $24,988, before any state tax.

The same sale by a single owner with the same $210,000 of MAGI shows how much the joint exclusion is worth. After the $16,100 single standard deduction, taxable income before the sale is $193,900. Only $250,000 is excluded, $391,000 is taxable, the top $39,400 of it crosses into the 20% bracket, and the NIIT applies to the full $391,000. Federal tax is about $75,478. With no exclusion at all, as on a rental, the couple would owe about $129,243 on the same $641,000 before counting any depreciation.

Same $641,000 gainExcludedTaxable gainCapital gains taxNIITFederal total
Married filing jointly$500,000$141,000$21,150$3,838$24,988
Single owner$250,000$391,000$60,620$14,858$75,478
No exclusion (couple, investment property)$0$641,000$106,405$22,838$129,243

Capital gains tax rates on real estate in 2026

Long-term capital gains on real estate held more than a year are taxed at 0%, 15% or 20% in 2026, depending on taxable income, and the gain is stacked on top of your other income to find the rate. The thresholds come from Revenue Procedure 2025-32. The 2025 law made the ordinary brackets permanent but kept these three rates.

2026 filing status0% on taxable income up to15% up to20% above
Married filing jointly$98,900$613,700$613,700
Head of household$66,200$579,600$579,600
Single$49,450$545,500$545,500
Married filing separately$49,450$306,850$306,850

Which rate applies to which part of the gain

A real estate gain can carry up to four federal rates at once, and the type of property decides which ones show up. A home sale under the cap usually has none. A rental or commercial building almost always has three.

Part of the gain2026 federal rateHomeRental or commercial
Gain on property held 1 year or less10% to 37% (ordinary)Yes, if not excludedYes
Long-term gain0%, 15% or 20%Only above the exclusionYes
Unrecaptured Section 1250 gain (building depreciation)Up to 25%Only if depreciatedYes
Section 1245 recapture (cost segregation items)10% to 37% (ordinary)RareIf a study was done
Net investment income tax3.8% above $200,000 / $250,000 MAGIOn gain above the exclusionYes, unless a real estate professional business

Short-term vs long-term capital gains on real estate

Real estate you hold for one year or less produces a short-term gain, taxed at ordinary rates up to 37%; hold it one day longer than a year and the gain is long-term. IRS Publication 544 counts from the day after you acquire the property through the day you sell.

Short-term gains mostly affect flippers and owners who sell soon after buying. A flipper who buys and sells as a business may be a dealer, and dealer gains are ordinary income no matter how long the property is held. Dealer property also cannot be used in a 1031 exchange, because property held primarily for sale does not qualify.

Capital gains tax on investment property

Capital gains tax on investment property is figured on the full gain with no exclusion, and the depreciation you took is taxed first at up to 25%. Investment property means a rental house, an apartment building, land held for appreciation or a vacation home you rent out.

Two things make the bill larger than on a home. Depreciation lowers your basis every year, so the gain grows even if the price does not. And the 3.8% NIIT usually applies, since gain on investment property is investment income and a sale pushes most sellers over the threshold.

Investment property also has a deferral tool homes do not: a 1031 exchange into other investment real estate. If you sell a rental, our guide to taxes when you sell a rental property walks through recapture, released passive losses and a full $3 million building example.

Capital gains tax on commercial property

Capital gains tax on commercial real estate uses the same federal rates as residential rentals: 0%, 15% or 20% on long-term gain, up to 25% on building depreciation and the 3.8% NIIT. The difference is the depreciation schedule, which runs 39 years for office, retail and industrial buildings against 27.5 years for residential rentals under Section 168.

A slower schedule means a smaller 25% layer for each year owned. On $2,000,000 of building basis held 8 years, a 39-year schedule produces about $410,256 of depreciation and a 27.5-year schedule about $581,818. Commercial owners who did a cost segregation study will also have Section 1245 recapture taxed at ordinary rates on the reclassified items.

An apartment building of five or more units is commercial real estate to a lender, but for tax purposes it is residential rental property as long as at least 80% of gross rent comes from dwelling units. Mixed-use buildings with large retail rents can fall on the 39-year side of that line.

State capital gains tax on real estate

Most states tax real estate gains as ordinary income at their regular rates, so your state bill depends on your bracket in that state. The state where the property sits usually taxes the gain even if you live elsewhere, and your home state may give a credit for it.

A few states have no income tax on a real estate gain, including Texas, Florida, Nevada, South Dakota and Wyoming. New Hampshire repealed its interest and dividends tax for periods beginning after December 31, 2024. Washington has a capital gains tax but exempts real estate. Many states follow the federal home sale exclusion, but check your state’s rules, and expect withholding at closing in some states when the seller lives out of state.

How to defer capital gains tax on real estate

Deferring capital gains tax on real estate means postponing it to a later year, and for investment property the main tool is a 1031 exchange. For a home, the exclusion is the main tool, and there is no rollover into a new home under current law.

MethodWorks forWhat it doesKey limit
1031 exchangeInvestment and business real estateDefers all gain and recapture45 days to identify, 180 days to close; reinvest all proceeds
Delaware statutory trust via 1031Investment real estatePassive replacement property for an exchangeSame 1031 rules; most DSTs sell to accredited investors
Installment saleAny real estateSpreads gain over the years you collectSection 1245 recapture taxed in the year of sale
Opportunity zone fundAny capital gainDefers up to 5 years for gain invested from 2027, 10% basis increase at 5 yearsInvest within 180 days; gain deferred under the old rules is due at the end of 2026
Hold until deathAny real estateHeirs take a basis equal to market valueYou keep the property
Section 121 plus 1031A home that became a rentalExclude part, defer the restRev. Proc. 2005-14; plan with a CPA

Inherited and gifted real estate

Inherited real estate takes a basis equal to its market value on the date of death under Section 1014, and any gain when the heir sells is long-term no matter how soon the sale happens. That step-up also erases the prior owner’s depreciation, so an heir who sells quickly often owes little or nothing.

A gift works the other way. The person receiving it generally takes the giver’s basis, along with the giver’s depreciation history, so giving away an appreciated rental moves the tax to the recipient rather than removing it.

Reporting the sale and using the calculator

Report a taxable home sale on Form 8949 and Schedule D. If the whole gain is excluded and you did not receive Form 1099-S, you generally don’t need to report it. Rentals and commercial property go on Form 4797. A loss on your own home is not deductible, but a loss on investment property usually is.

For a sale of a rental or apartment building, our capital gains tax calculator estimates the recapture, capital gains, NIIT and state tax from your price, basis and depreciation. Use the depreciation recapture calculator first if you need to estimate depreciation taken.

If you own an apartment building of five or more units, we buy directly, close on your timeline, and can work inside 1031 deadlines.

Selling? Spread the tax with seller-carry terms

If a large tax bill is what is keeping you from selling, an installment sale may help. When you carry part of the price as a note, the gain is generally reported as you receive payments instead of all in the year of sale. Some parts of the gain, such as certain depreciation recapture, can still be due up front, so run the numbers with your CPA first.

Skyline Capital Investments buys apartment buildings with five or more units and can offer seller-carry terms, or a delayed closing that fits your 1031 timeline. Send the address and unit count and we typically respond within 48 hours. How seller financing works · How an installment sale is taxed · Seller financing calculator.

Get A Seller-Carry Offer

Common Questions

Do I pay capital gains tax when I sell my house?

Usually not. If you owned and lived in the house as your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly. You pay capital gains tax only on gain above that amount, on depreciation you claimed, or if you fail the ownership and use tests.

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

Two years. You must own the home and use it as your main residence for at least 24 months during the 5 years before the sale. The months do not have to be in a row. If you sell sooner because of a job move, health reason or unforeseeable event, a partial exclusion based on the months you lived there may apply.

Did the One Big Beautiful Bill change capital gains tax on home sales?

No. The 2025 law did not change Section 121, so the home sale exclusion stays at $250,000 for single filers and $500,000 for joint filers in 2026, with no inflation adjustment. It also kept the 0%, 15% and 20% long-term capital gains rates. Proposals to raise or remove the exclusion cap had not become law as of October 2026.

Can I avoid capital gains tax by buying another house?

No. Buying a more expensive home no longer defers the gain on the one you sold; that rule no longer exists. Today the Section 121 exclusion is how homeowners avoid tax, and it is used up by each qualifying sale. A 1031 exchange can defer gain, but only on investment or business real estate, not on a personal residence.

What is the capital gains tax on investment property?

Investment property gain is taxed at 0%, 15% or 20% in 2026 if held more than a year, with no home sale exclusion. Gain equal to depreciation on the building is taxed at up to 25%, and cost segregation items at ordinary rates. The 3.8% net investment income tax applies above $200,000 or $250,000 of MAGI, plus state tax where the property sits.

Is capital gains tax on commercial property different from residential?

The rates are the same: 0%, 15% or 20% on long-term gain, up to 25% on building depreciation and the 3.8% NIIT. The difference is that office, retail and industrial buildings depreciate over 39 years instead of 27.5, so each year of ownership adds less to the 25% recapture layer. Commercial property can also be exchanged under Section 1031.

Is there a capital gains exemption for seniors selling a home?

No. There is no age-based exemption under current law. Sellers of every age use the same Section 121 exclusion of $250,000, or $500,000 for married couples, if they meet the 2-of-5-year ownership and use tests. Older owners who die holding a home pass a stepped-up basis to heirs, which is often a bigger tax saving than any sale.

How do you defer capital gains tax on real estate?

For investment property, a 1031 exchange into other real estate defers the entire gain if you reinvest all proceeds within 180 days. An installment sale spreads the gain over the years you receive payments. Investing the gain in a qualified opportunity fund defers it for up to five years for investments made from 2027. Holding until death gives heirs a stepped-up basis.

Two Ways To Work With Us

Bring Us A Deal, Or Invest In One

For Agents, Brokers & Owners

Have A Multifamily Property?

We buy apartment buildings and income-producing residential assets nationwide — listed or off-market, stabilized or value-add.

  1. 1
    Send the basicsAddress, units and asking price.
  2. 2
    We review itAgainst our buy box, confidentially.
  3. 3
    Clear answer in 48 hoursA yes, a no, or the questions we need answered.
See our buy box
Takes 60 seconds
For Investors

Looking To Invest In Multifamily?

Join our investor network to learn how we structure partnerships and to be notified when new opportunities are available to qualified investors.

  • Disciplined, conservative underwriting
  • Professionally managed, passive ownership
  • Clear reporting and direct access to the team
  • Education first — no pressure, no hype
Call Text Submit Deal Invest