When Do You Pay Capital Gains Tax on Real Estate?

You pay capital gains tax on real estate for the tax year in which your sale closes, and you settle it when you file that year’s federal return (or through estimated tax payments during the year). You do not pay anything at the closing table. And many home sales owe nothing at all, because a federal exclusion shelters up to $250,000 of profit on a primary residence ($500,000 for married couples filing jointly). Tax only applies when your gain exceeds the exclusion, or when the property was held as an investment.

The Closing Date Sets the Tax Year

The taxable event is closing, meaning the day the title legally transfers to the buyer. That date fixes the tax year. A sale that closes on December 28, 2026 belongs on your 2026 return, even though you won’t file until spring 2027. A sale that closes on January 3, 2027 belongs on your 2027 return, which can matter when planning around income in a particular year.

The closing agent or settlement attorney files Form 1099-S with the IRS reporting the gross sale proceeds, and you receive a copy. Even when the entire gain is excluded under the primary-residence rules, the IRS still sees the transaction, so report it on your return if a 1099-S was issued.1Internal Revenue Service. Instructions for Form 1099-S

How the Gain Is Calculated

Your taxable gain is the difference between what you net from the sale and your adjusted basis in the property. Subtract adjusted basis from net sale price, and the result is your gain. Anything that legitimately raises your basis or reduces your sale price shrinks the taxable amount, so records earn their keep here.

Net Sale Price

Start with the gross price on the contract, then subtract your selling expenses. Deductible selling costs include real estate commissions, advertising fees, legal fees, transfer taxes you paid as the seller, and any loan charges you covered that would normally be the buyer’s responsibility.2Internal Revenue Service. Publication 523, Selling Your Home The result is sometimes called the amount realized.

Adjusted Basis

Basis begins with what you paid for the property, including settlement costs at purchase such as title insurance, legal fees, and recording fees. Two categories of adjustment then move it up or down over the years you owned the property.

  • Capital improvements increase basis. A new roof, an added bathroom, a full kitchen renovation, or a new HVAC system all qualify because they add value, extend useful life, or adapt the property to a new use.
  • Depreciation you claimed on investment or rental property decreases basis. Depreciation is mandatory for rental real estate, so the IRS treats it as claimed whether you actually deducted it or not.

Routine maintenance, such as fixing a leaky faucet or repainting a room, does not raise basis. On rentals, those costs are deductible as operating expenses in the year they occur, but they don’t reduce your eventual gain. The improvement-versus-repair line is a common audit trigger, and the IRS draws it at whether the work materially adds value or merely keeps the property functional.

Holding Period and the Rate That Applies

How long you owned the property before selling determines which rate applies. The holding period starts the day after you acquired the property and ends on the closing date of the sale.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Held for one year or less, the gain is short-term and taxed at your ordinary income rates, which run from 10% to 37% in 2026.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Short-term real estate gains are uncommon outside of flipping, but the tax bite is steep when they happen.

Held for more than one year, the gain is long-term and benefits from lower rates. For the 2026 tax year, the long-term brackets are:

  • 0% on taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
  • 15% on taxable income above that up to $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
  • 20% on taxable income above the 15% ceiling.

These thresholds apply to your total taxable income for the year, not just the gain from the sale.4Internal Revenue Service. Revenue Procedure 2025-32 Most sellers of investment real estate land in the 15% bracket.

When a Primary Residence Sale Owes Nothing

The most valuable break for home sellers is the Section 121 exclusion. It shields up to $250,000 of gain if you’re single, or $500,000 if you’re married filing jointly.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For the married threshold, both spouses must meet the use requirement, and at least one must meet the ownership requirement.

The Ownership and Use Tests

To claim the full exclusion, you need to pass two tests within the five-year window ending on the sale date. You must have owned the home for at least two of those five years and lived in it as your main residence for at least two of those five years. The two years don’t need to be consecutive, and the ownership and use periods don’t have to overlap.6Internal Revenue Service. Topic No. 701, Sale of Your Home You can only use the exclusion once every two years.

Gain above the exclusion is taxable. A married couple with a $600,000 gain excludes $500,000 and pays long-term capital gains tax on the remaining $100,000.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Partial Exclusions for Early Sales

Sell before the two years are up and you may still qualify for a prorated exclusion if the sale was primarily due to a job relocation, a health condition, or certain unforeseeable events. For a work-related move, the new job location generally needs to be at least 50 miles farther from the home than the old one. Health-related moves include selling to obtain or provide care for a family member’s illness or injury. Unforeseeable events include the home being destroyed, a divorce, or becoming unable to pay basic living expenses after a change in employment.2Internal Revenue Service. Publication 523, Selling Your Home

The partial exclusion multiplies the full $250,000 or $500,000 limit by the fraction of the two-year requirement you actually met. A single filer who lived in the home for 15 months before a qualifying job transfer gets 15/24 of $250,000, or $156,250.

Converting a Rental to Your Primary Residence

You can move into a former rental and eventually claim the exclusion, but any period after 2008 when the property was not your primary residence counts as nonqualified use, and the portion of gain allocated to that period cannot be excluded.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Divide nonqualified use by total ownership time to get the ratio. Ten years as a rental followed by three years as your home means roughly 77% of the gain is not excludable, and you still owe depreciation recapture on the rental years. If the property came to you through a 1031 exchange, you cannot claim Section 121 at all until you’ve owned it for at least five years after the exchange.2Internal Revenue Service. Publication 523, Selling Your Home

Extra Taxes on Investment Property

Two additional charges can raise the effective rate on non-primary-residence sales well above the headline 15% or 20%.

Depreciation Recapture

If you claimed depreciation on a rental or business property, the IRS recaptures that benefit when you sell. The portion of your gain equal to the total depreciation you claimed is taxed at a maximum rate of 25%, regardless of which long-term bracket you’d otherwise fall into.7Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed – Section: (h) Maximum Capital Gains Rate

Say you bought a rental, claimed $80,000 in depreciation over the years, and now sell at a $200,000 long-term gain. The first $80,000 is taxed at up to 25%. The remaining $120,000 is taxed at your regular long-term rate of 0%, 15%, or 20%. Sellers who forget about recapture when estimating their tax bill often find themselves short at filing time.

The 3.8% Net Investment Income Tax

Higher-income sellers face the Net Investment Income Tax on top of the capital gains rate. It adds 3.8% on the lesser of your net investment income or the amount your modified adjusted gross income exceeds these thresholds:8Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax

  • $250,000 for married filing jointly or qualifying surviving spouse.
  • $200,000 for single or head of household.
  • $125,000 for married filing separately.

These thresholds are not indexed for inflation, so they reach more taxpayers each year. Gains from investment real estate, including second homes, count as net investment income.9Internal Revenue Service. Topic No. 559, Net Investment Income Tax A seller in the 20% long-term bracket who also owes the NIIT pays an effective federal rate of 23.8% on the gain, plus 25% on any recapture portion. Real estate professionals who materially participate in their rentals can exclude that income from the NIIT, but the bar for that status is high.10Internal Revenue Service. Instructions for Form 8960

Situations That Delay or Change the Bill

1031 Exchanges

Owners of investment or business real estate can defer the tax entirely by rolling the proceeds into another qualifying property under Section 1031. The tax obligation carries forward to the replacement property rather than being paid now.11Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The rules are strict:

  • Investment or business use only. A primary residence, a personally used vacation home, or a property held mainly for resale does not qualify.
  • Real property for real property. Since 2018, only real estate qualifies, and U.S. property cannot be exchanged for foreign property.
  • Potential replacement properties must be identified in writing within 45 days of closing on the property you sold.
  • The replacement must be received within 180 days of the sale, or by the due date of your return for that year (including extensions), whichever comes first.
  • A qualified intermediary must hold the funds. You cannot touch the proceeds, and your attorney, accountant, real estate agent, or anyone who has worked for you in those roles within the previous two years cannot serve as the intermediary.11Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment

Miss either deadline or take constructive receipt of the proceeds and the exchange collapses, making the full gain taxable in the year of sale. Most failed exchanges break on the 45-day identification window in a tight market.

Installment Sales

If you finance the sale yourself and the buyer pays over multiple years, you can spread the gain across those payment years instead of recognizing it all at closing. Each payment consists of interest income (taxed as ordinary income), a tax-free return of basis, and the taxable gain portion, determined by your gross profit percentage.12Internal Revenue Service. Publication 537, Installment Sales Installment reporting happens automatically for qualifying sales unless you elect out on your return for the year of sale. It can be a useful way to keep a large gain from pushing you into the 20% bracket or triggering the NIIT.

Inherited and Gifted Property

How you acquired the property changes your starting point. Inherit real estate and your basis is generally the fair market value on the date the previous owner died, not what they paid. That stepped-up basis can erase decades of appreciation. A parent who bought a home for $60,000 in 1985 that was worth $400,000 at their death leaves you with a $400,000 basis; sell shortly after for $410,000 and your taxable gain is only $10,000.13Internal Revenue Service. Gifts and Inheritances In some cases the executor may elect an alternate valuation date six months after death, and your basis is the value on that later date.

Gifts work the opposite way. Your basis is the donor’s basis (a carryover basis), so all the appreciation that built up during their ownership becomes your taxable gain when you sell.14Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust

State Tax Applies Too

Federal tax is not the full bill. Most states tax capital gains at their ordinary income rates, which vary widely. A few states impose no income tax; others have top rates above 10%. Combined federal and state tax on a real estate gain can easily exceed 30% for high-income sellers in high-tax states, so check your state’s current rules before estimating your after-tax proceeds.

Paying the Tax: Filing and Estimated Payments

Report the sale on Form 8949, listing purchase date, sale date, sale price, and adjusted basis. The totals flow onto Schedule D (Form 1040), which combines your capital transactions for the year.15Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets If you’re claiming the Section 121 exclusion on a primary residence and received a Form 1099-S, you still file Form 8949.16Internal Revenue Service. 2025 Instructions for Schedule D, Form 1040

When Payment Is Due

The tax is due by the annual filing deadline, typically April 15 of the year after the sale. Waiting until April to pay a large capital gains bill can trigger an underpayment penalty, though. The IRS expects tax paid as income is earned, and a six-figure gain from a sale creates a significant gap between what you’ve paid in and what you owe.

You avoid the penalty if the total tax you’ve paid through withholding and estimated payments is at least 90% of what you owe for the current year, or at least 100% of your prior year’s tax. If your adjusted gross income exceeded $150,000 in the prior year ($75,000 if married filing separately), the prior-year safe harbor rises to 110%.17Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty

Estimated Tax Deadlines for 2026

If your sale creates a large enough tax liability to require an estimated payment, the quarterly deadlines for the 2026 tax year are:18Taxpayer Advocate Service. Making Estimated Payments

  • First quarter: April 15, 2026.
  • Second quarter: June 15, 2026.
  • Third quarter: September 15, 2026.
  • Fourth quarter: January 15, 2027.

Get the money to the IRS in the quarter you realized the gain, or at least before the underpayment penalty accrues enough to matter. For a large gain, running the numbers with a tax professional to size the right estimated payment is worth the cost.