Property Details
Kitchen remodel, additions, major upgrades
Agent commissions, closing costs, staging
Rental property depreciation (recaptured at 25%)
Tax Profile
Your total income including this gain
Enter 0 if your state has no income tax
Please fill in all required fields correctly.
Capital Gains Tax Estimate — 2026
Sale Price
Adjusted Cost Basis
Capital Gain (before exclusion)
Primary Residence Exclusion
Taxable Capital Gain
Depreciation Recapture (25%)
Federal Capital Gains Rate
Federal Capital Gains Tax
NIIT (3.8%) — if applicable
State Tax
Total Estimated Tax
Net Proceeds After Tax
* This is an estimate for informational purposes only. Consult a licensed tax professional for advice specific to your situation. Federal rates are based on 2026 IRS guidelines.

Real Estate Capital Gains Tax Calculator 2026

What This Calculator Does and Why It Matters

When you sell a property for more than you paid for it, the profit is called a capital gain — and the IRS expects a share of it. Knowing how much you owe before you close a sale can change everything from your asking price to your investment strategy.

This free calculator gives you a clear estimate of your 2026 federal and state capital gains tax on real estate. It accounts for your filing status, holding period, depreciation recapture, primary residence exclusion, and the Net Investment Income Tax (NIIT) where applicable.

Whether you are selling a rental property, a second home, or a long-held investment, this tool helps you plan ahead and avoid surprises at tax time. For a broader look at other real estate costs, the real estate commission split calculator can help you understand what your agent will earn on the same sale.

How to Use This Calculator

Step-by-Step Instructions

  1. Enter the original purchase price of the property.
  2. Enter the sale price you received or expect to receive.
  3. Add any capital improvements made during ownership (additions, major renovations).
  4. Enter total selling costs such as agent commissions and closing fees.
  5. If this was a rental, enter the total depreciation you have claimed over the years.
  6. Select whether you held the property for more or less than one year.
  7. Enter your total annual taxable income and select your filing status.
  8. Indicate whether this was your primary residence (to apply the exclusion).
  9. Enter your state tax rate and click Calculate Tax.

The Formula Explained

Breaking Down the Formula

The taxable gain is not simply the difference between what you paid and what you sold for. The IRS uses your adjusted cost basis, which accounts for improvements and depreciation, to determine how much of your gain is actually taxable.

Here is the basic structure the calculator follows:

Adjusted Cost Basis = Purchase Price + Improvements − Depreciation Taken
Capital Gain = Sale Price − Adjusted Cost Basis − Selling Costs
Taxable Gain = Capital Gain − Primary Residence Exclusion (if applicable)
Total Tax = Federal CGT + Depreciation Recapture Tax + NIIT + State Tax

According to the IRS Topic 701, long-term capital gains on real estate are taxed at 0%, 15%, or 20% depending on your taxable income and filing status.

Example Calculation with Real Numbers

Say you bought a rental property in 2015 for $250,000, made $30,000 in improvements, claimed $40,000 in depreciation over the years, and sold in 2026 for $500,000. After $20,000 in selling costs, your adjusted basis is $240,000 and your gross gain is $240,000. Depreciation recapture of $40,000 is taxed at 25% ($10,000). The remaining $200,000 is taxed at the long-term rate. If you are single with $120,000 income, that rate is 15%, resulting in $30,000 in federal capital gains tax — plus any applicable NIIT and state tax.

When Would You Use This

Real Life Use Cases

This calculator is useful for any situation where a real property sale results in a profit. It is most valuable when you are planning ahead rather than reacting after the fact.

Sellers of rental properties need it to account for depreciation recapture, which catches many people off guard. Homeowners who have lived in their home for years may qualify for the primary residence exclusion and want to confirm exactly how much of their gain is shielded. Real estate investors comparing deals also use capital gains estimates to evaluate after-tax returns. If you evaluate investment deals regularly, the real estate syndication returns calculator is another useful tool for modeling equity and profit distribution.

Specific Example Scenario

A married couple sells their primary residence of 10 years for $850,000. They bought it for $400,000 and spent $50,000 on a kitchen remodel. Their adjusted basis is $450,000. Their gain is $400,000, but as a married couple filing jointly, they are entitled to a $500,000 exclusion — meaning they owe zero capital gains tax on this sale. This calculator would confirm that result instantly.

Tips for Getting Accurate Results

Know Your Adjusted Basis Before You Start

Many people forget that capital improvements — not repairs — add to your cost basis. A new roof, an added bathroom, or a full kitchen renovation all increase your basis and reduce your taxable gain. Routine maintenance like painting or fixing a leaky faucet does not count. Gather all your improvement receipts before entering numbers.

Track All Depreciation Claimed on Rental Properties

If you rented the property at any point, the IRS requires you to recapture that depreciation at a flat 25% rate — even if you never actually claimed it on a return. This is one of the most commonly missed elements. Check your prior year tax returns or consult a CPA for the correct total. You can learn more about how depreciation recapture works on Investopedia’s depreciation recapture guide.

Include All Selling Costs to Lower Your Gain

Agent commissions, title fees, transfer taxes, staging costs, and legal fees are all deductible selling expenses. These reduce your net gain dollar for dollar, so it pays to add them all up. A typical real estate commission alone can be 5% to 6% of the sale price — a meaningful reduction in your taxable amount. The closing costs estimator by state can help you tally all the fees involved.

Frequently Asked Questions

What is the capital gains tax rate on real estate in 2026?

For long-term gains (properties held more than one year), the federal rate is 0%, 15%, or 20% depending on your income and filing status. Short-term gains are taxed as ordinary income, which can be as high as 37%. Your state may also add its own tax on top of the federal rate.

What is the primary residence exclusion and how does it work?

If you owned and lived in your home as your primary residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain ($500,000 if married filing jointly) from taxation. This exclusion can only be used once every two years.

What is depreciation recapture and why does it matter?

If you claimed depreciation deductions on a rental property, the IRS taxes that depreciation amount at a maximum rate of 25% when you sell. This happens regardless of how long you held the property or what your normal capital gains rate is. It is a separate layer of tax on top of your regular capital gain.

What is the Net Investment Income Tax (NIIT)?

The NIIT is a 3.8% surtax applied to investment income — including real estate capital gains — for higher-income taxpayers. It kicks in when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). It applies to net investment income, not all income.

Can I defer capital gains tax with a 1031 exchange?

Yes. A 1031 exchange allows you to defer capital gains tax by reinvesting the proceeds into a like-kind investment property within a set timeframe. The gain is not eliminated but deferred until you eventually sell the replacement property without exchanging again. See the 1031 exchange tax deferral calculator for details.

Do all states tax real estate capital gains?

No. Several states, including Florida, Texas, Nevada, and Washington, have no state income tax, which means no separate state capital gains tax on real estate. Other states tax capital gains at their regular income tax rate. You should check your specific state’s rules or consult a local tax advisor.

Does the calculator account for losses from other investments?

This calculator focuses on real estate gains only. If you have capital losses from stocks or other investments, those can offset your real estate gains on your tax return, potentially lowering your overall tax bill. That netting happens at the return level, not here.

How accurate is this calculator?

This tool provides a solid estimate based on 2026 federal tax brackets and standard IRS rules. However, it does not account for every tax situation — such as installment sales, like-kind exchanges in progress, passive activity loss rules, or state-specific nuances. Always verify your final tax liability with a qualified CPA or tax professional before making major financial decisions.

Conclusion

Understanding your real estate capital gains tax before a sale is one of the smartest moves any property owner can make. This free calculator helps you estimate your 2026 federal and state tax exposure in minutes, covering everything from depreciation recapture to the primary residence exclusion.

Use it to plan your sale timing, compare net proceeds across scenarios, and make sure you are not caught off guard at closing. For other tools related to property transactions, explore the full suite of free real estate calculators at ToolCR.com.