Capital gains tax on real estate is the tax you owe on the profit you make when you sell a property for more than you paid for it

When you buy a house, rental property, or land and later sell it at a higher price, the difference between what you paid and what you received is your capital gain. The federal government taxes this profit as income, but not in the same way it taxes your salary. The tax rate depends on how long you owned the property and how much you earned that year.

Real estate capital gains are taxed separately from ordinary income because Congress treats investment profits differently from wages. You do not pay Social Security or Medicare tax on capital gains. You also may may have access to for lower tax rates than you would on regular income, which is why understanding this category matters for your overall tax bill.

The calculation is straightforward in concept but varies in practice. Your gain equals the sale price minus your original purchase price, minus certain costs you can subtract (called your basis). If you bought a rental house for $200,000 and sold it for $300,000, your gain is $100,000 before any adjustments. That $100,000 is what gets taxed.

Key Takeaways

  • Capital gains tax applies to the profit you make on real estate, not the full sale price, and the rate depends on whether you owned the property for more than one year.
  • Long-term capital gains (property owned over one year) are taxed at 0%, 15%, or 20% depending on your total income that year, which is usually lower than your ordinary income tax rate.
  • Short-term capital gains (property owned one year or less) are taxed as ordinary income at your regular tax bracket rate, which can be much higher.
  • Your primary residence may may have access to for an exclusion of up to $250,000 (or $500,000 if married filing jointly) in gains, meaning you owe no tax on that portion of your profit.
  • You can reduce your taxable gain by subtracting the cost of improvements you made to the property, property taxes you paid, and certain selling expenses.

Long-Term Versus Short-Term Capital Gains

The length of time you owned the property determines which tax rate applies. If you owned it for more than one year, your gain is a long-term capital gain. If you owned it for one year or less, it is a short-term capital gain. This distinction is the single biggest factor in how much tax you owe.

Long-term capital gains receive preferential tax treatment. The federal rates are 0%, 15%, or 20%, depending on your total taxable income for the year. Most people fall into the 15% bracket. Short-term capital gains, by contrast, are taxed at your ordinary income tax rate — the same rate that applies to your wages, which can range from 10% to 37%. For someone in the 24% tax bracket, selling a rental property after holding it eleven months instead of thirteen months could cost thousands more in tax on the same profit.

The IRS counts ownership time from the date you purchased the property to the date you sold it. If you bought on June 15, 2022, and sold on June 16, 2023, you meet the one-year threshold and may have access to for long-term rates. The date matters precisely.

How Your Tax Bracket Affects Long-Term Capital Gains Rates

Long-term capital gains rates are tied to your ordinary income tax brackets, but they are not the same as your bracket. The IRS has separate income ranges for the 0%, 15%, and 20% capital gains rates. Your total income for the year — wages, business income, rental income, and other sources — determines which rate applies to your real estate gain.

In 2024, for example, single filers with taxable income up to roughly $47,000 may pay 0% on long-term capital gains. Income from $47,000 to roughly $518,000 is taxed at 15%. Income above that is taxed at 20%. These thresholds change each year and are different for married couples filing jointly, heads of household, and other filing statuses. The IRS publishes updated ranges annually.

This structure means your capital gains rate depends on your total income picture, not just the gain itself. If you earned $40,000 in wages and sold a rental property for a $50,000 gain, part of that gain might fall into the 0% bracket and part into the 15% bracket. A tax professional or tax software can calculate exactly how your income stacks to determine your rate.

The Primary Residence Exclusion

If you sell your main home, you may exclude up to $250,000 of your capital gain from taxation if you are single, or $500,000 if you are married filing jointly. This is called the Section 121 exclusion, and it is one of the largest tax breaks available to homeowners.

To may have access to, you must have owned the home and lived in it as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive. If you bought a house, lived in it for three years, moved for work, rented it out for two years, then sold it, you would not may have access to because you did not live there for two of the last five years.

This exclusion applies only once every two years. If you sold a home and used the exclusion in 2022, you cannot use it again until 2024. Married couples filing jointly can each have used the exclusion within the past two years and still both benefit on a joint return, but the limit is still $500,000 combined.

Rental properties, investment properties, and vacation homes do not may have access to for this exclusion. Only your primary residence does. If you converted your home to a rental property and later sold it, you would lose the exclusion for any gain that accrued after the conversion date.

Adjusting Your Basis to Lower Your Taxable Gain

Your basis is what you paid for the property, and it is the starting point for calculating your gain. But you can increase your basis by adding certain costs, which reduces your taxable profit dollar-for-dollar. Understanding what counts is important because it directly lowers your tax bill.

Capital improvements — permanent upgrades that add value or extend the life of the property — increase your basis. A new roof, a kitchen renovation, an addition, or a new HVAC system all count. Repairs and maintenance do not. Painting the house, fixing a leaky faucet, or replacing a broken window are repairs and do not increase basis. The distinction is whether the work adds value or merely restores the property to its previous condition.

You can also add certain closing costs from when you purchased the property, such as title insurance, recording fees, and attorney fees. When you sell, you can subtract selling expenses like real estate commissions, attorney fees, and title transfer taxes. Keep receipts and documentation for all of these, because the IRS may ask for proof if you are audited.

If you inherited the property, your basis is "stepped up" to the fair market value on the date of death, not the original purchase price. This can eliminate or dramatically reduce capital gains tax. If your parent bought a house for $100,000 and it was worth $400,000 when they died, your basis is $400,000. If you sell it when ready for $400,000, you owe no capital gains tax.

State and Local Capital Gains Taxes

Federal capital gains tax is only part of the picture. Some states also tax capital gains on real estate, and the rates vary widely. A few states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — have no state income tax at all. Others tax capital gains as ordinary income at rates up to 13% or higher.

California, for example, taxes long-term capital gains at the same rate as ordinary income, with no preferential rate. New York taxes them at ordinary rates as well. Other states have separate capital gains tax rates or explore their income tax only to capital gains above a certain threshold. Some states also impose local taxes on top of state tax.

If you are selling real estate, research your state's rules before calculating your total tax liability. A state with no income tax can make a significant difference in your after-tax proceeds, which is why some people consider timing a sale around a move to a lower-tax state.

Depreciation Recapture on Rental and Investment Properties

If you owned the property as a rental or investment property, you likely deducted depreciation on your tax returns each year. Depreciation is a deduction that assumes the building loses value over time, even though real estate usually appreciates. When you sell, the IRS recaptures those deductions and taxes them at a flat 25% rate, separate from your regular capital gains rate.

For example, if you deducted $50,000 in depreciation over ten years on a rental property, and you sell it for a $100,000 gain, you owe tax on $50,000 at the 25% recapture rate ($12,500) and $50,000 at your long-term capital gains rate (0%, 15%, or 20%, depending on your income). The recapture tax is in addition to, not instead of, your capital gains tax.

This is one reason rental property owners sometimes hold properties longer than they otherwise would — the recapture tax is unavoidable once you sell, so the math of holding versus selling changes. Some investors use strategies like 1031 exchanges to defer this tax by reinvesting the proceeds into another may have access to property, though those rules are complex and require professional guidance.

Frequently Asked Questions

Do I owe capital gains tax if I sell my home at a loss?

No. You only owe capital gains tax on a profit. If you sell for less than you paid, you have a capital loss. You cannot deduct a loss on your primary residence. On investment or rental properties, you can use capital losses to offset capital gains from other sales, and excess losses can offset up to $3,000 of ordinary income per year, with unused losses carried forward to future years.

What if I inherited real estate and then sold it?

Your basis is stepped up to the fair market value on the date the person died, not the original purchase price. If you sell shortly after inheriting, you typically owe little or no capital gains tax. If you hold it for years and it appreciates further, you owe tax only on the gain after the date of death, not on the appreciation that occurred before.

Can I avoid capital gains tax by doing a 1031 exchange?

A 1031 exchange allows you to defer capital gains tax by selling one investment property and buying another similar property within strict timelines. You do not avoid the tax — you postpone it. The gain carries forward to the new property. When you eventually sell without doing another exchange, the tax becomes due. This strategy requires following detailed IRS rules and typically involves a may have access to intermediary.

How do I report capital gains from real estate on my tax return?

You report the sale on Form 8949 (Sales of Capital Assets) and Schedule D (Capital Gains and Losses). Your real estate closing statement will show the sale price and your cost basis. If you used a real estate agent, they typically provide a settlement statement with these figures. Tax software guides you through entering this information, or a tax professional can prepare the forms for you.

Does the time of year I sell affect my capital gains tax?

The calendar year you sell determines which tax year the gain is reported and taxed. If you sell in December versus January, the gain is taxed in different years with potentially different tax brackets and rates. Some people time sales to spread gains across years or to years when their income is lower, which can result in a lower overall tax rate on the gain.