Sell Now Land Buyers logo light background

Understanding Capital Gains Tax on Real Estate w/ Calculator

Selling real estate can be one of life’s most significant financial transactions, and understanding the tax implications, particularly capital gains tax on real estate, is crucial.

In this comprehensive guide, we’ll break down key concepts, outline tax rates, explore significant exclusions, and provide an overview of state-specific considerations. You’ll come away with a solid understanding of capital gains tax and how to minimize it.

Just want the capital gains tax calculator? Feel free to skip ahead to that section.

Understanding Capital Gains on Real Estate

A capital gain occurs when you sell an asset, like real estate, for a price higher than its original purchase price plus certain qualified expenses. Simply put, it represents the profit you’ve made from the investment. Understanding this fundamental concept is the first step in navigating your tax responsibilities.

How to Calculate Your Capital Gain

Calculating your capital gain isn’t just about subtracting the purchase price from the sale price; it involves several key components. This detailed approach helps answer the question: how to calculate capital gains on property sale accurately.

Formula for Capital Gain: Net Selling Price - Adjusted Cost Basis = Capital Gain

Understanding the Components:

  • Cost Basis: This is typically your original purchase price of the property. It’s the starting point for all capital gain calculations.
  • Adjusted Basis: Your cost basis is adjusted for certain expenses and improvements. This includes the original purchase price, settlement costs, and the cost of capital improvements (e.g., home improvements, adding a well, or bringing in utilities). It also accounts for depreciation if the property was used for business or rental purposes, which would actually reduce the basis. A higher adjusted basis means a lower taxable gain.
  • Net Proceeds: This is your selling price minus eligible selling expenses. These can include real estate agent commissions, legal fees, appraisal fees, title insurance, and other closing costs associated with the sale.

Short-Term vs. Long-Term Capital Gains: The Holding Period

The duration you own a property before selling it, known as the holding period, significantly impacts how your capital gain is taxed. This distinction is critical for determining which tax rates apply, and it’s a key factor in tax planning when considering a property sale.

Short-Term Capital Gains

A capital gain is considered short-term if you’ve owned the property for one year or less before selling it. Federal capital gains are taxed at your ordinary income tax rates, which can be considerably higher than long-term rates. Understanding the difference between short-term vs long-term capital gains is key if you haven’t owned the property for very long.

Long-Term Capital Gains

A capital gain is considered long-term if you’ve owned the property for more than one year before selling it. These gains benefit from preferential tax rates, which are typically lower than ordinary income tax rates.

State Capital Gains Taxes on Real Estate

The tax implications of selling real estate can vary significantly depending on which state the property is in. While federal taxes are universal, state capital gains tax on real estate varies significantly across the United States. Some states levy no capital gains tax, others tax it as ordinary income, and a few have specific rates or exemptions.

Wondering how your state taxes capital gains?

📋 Click to see our capital gains tax guide for your state

AlabamaAlaskaArizonaArkansasCaliforniaColoradoConnecticutDelawareFloridaGeorgiaHawaiiIdahoIllinoisIndianaIowaKansasKentuckyLouisianaMaineMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaNevadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaOhioOklahomaOregonPennsylvaniaRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirginiaWashingtonWest VirginiaWisconsinWyoming

Federal Capital Gains Tax Rates

Federal tax rates for capital gains depend on whether the gain is short-term or long-term, and your overall taxable income. The capital gains rate you’ll pay depends on your overall income level.

2025 Federal Short-Term Capital Gains Tax Rates

Short-term capital gains are taxed as ordinary income, meaning they are subject to the same marginal tax brackets as your wages, salaries, and other regular income.

These rates apply to profits from assets held less than one year.

2025 federal ordinary income tax rates by filing status
Tax RateSingleMarried, Filing JointlyMarried, Filing SeparatelyHead of Household
10%$0 to $11,600$0 to $23,200$0 to $11,600$0 to $16,550
12%$11,601 to $47,150$23,201 to $94,300$11,601 to $47,150$16,551 to $63,100
22%$47,151 to $100,525$94,301 to $201,050$47,151 to $100,525$63,101 to $100,500
24%$100,526 to $191,950$201,051 to $383,900$100,526 to $191,950$100,501 to $191,950
32%$191,951 to $243,725$383,901 to $487,450$191,951 to $243,725$191,951 to $243,700
35%$243,726 to $609,350$487,451 to $731,200$243,726 to $365,600$243,701 to $609,350
37%$609,351 or more$731,201 or more$365,601 or more$609,351 or more

For long-term capital gains, the rates are typically more favorable: 0%, 15%, or 20%, depending on your taxable income.

2025 federal long-term capital gains tax rates

These rates apply to profits from assets held over one year and sold in 2025 (reported on your 2026 tax return).

2025 federal long-term capital gains tax rates by filing status
Tax Rate Single Married, Filing Jointly Married, Filing Separately Head of Household
0% $0 to $48,350$0 to $96,700$0 to $48,350$0 to $64,750
15% $48,351 to $533,400$96,701 to $600,050$48,351 to $300,000$566,701 to $566,700
20% $533,401 or more$600,051 or more$300,001 or more$566,701 or more

Case Study: Capital Gains Tax On Land Sale

Here’s a real-world example of calculating capital gains taxes for a vacant land sale.

Joseph bought a property for $125,000. He spent an additional $5,000 on improvements (such as bringing utilities to the property), so his cost basis is $130,000.

Eight years later he sells the property for $185,000. After deducting $15,000 in commissions and closing costs, his net proceeds are $170,000.

His capital gain is the net proceeds minus his cost basis: $170,000 - $130,000 = $40,000.

Joseph is single and has an ordinary taxable income of $80,000 (not including the land sale).

Federal capital gains

Let’s assume Joseph lives in a state without income tax, so we only need to consider federal taxes. Joseph’s $40,000 profit qualifies for federal long-term capital gains tax rates, as he owned the property for more than a year.

The tax rate for long-term capital gains is determined by a taxpayer’s total taxable income. Since Joseph’s ordinary income of $80,000 places him above the 0% capital gains bracket, his capital gain will start to be taxed at 15%.

His total taxable income of $120,000 ($80,000 ordinary income + $40,000 capital gain) remains within the 15% federal long-term capital gains tax bracket.

Therefore, his $40,000 capital gain will be taxed at 15%, resulting in a federal capital gains tax of $6,000 ($40,000 × 15%).

Capital Gains Tax Calculator

Curious about the potential capital gains tax on your property sale? Use our simple calculator below to get an estimate. Just enter your details to see how federal and state taxes might apply to your specific situation.

Capital Gains Tax Calculator

Use this tool to estimate your tax on assets sold in 2025 (reported on your 2026 tax return)

Results
Your pre-tax capital gain is:
$0
Your total taxable income, including your capital gain, is:
$0
Your marginal federal tax rate on capital gains is:
0%
State Capital Gains Tax
Estimated state capital gain tax:
$0
State marginal rate:
0%
Estimated total capital gain tax (Federal + State):
$0

Disclaimer: This estimate applies to a single investment, excluding state taxes, NII taxes, deductions, credits, or offsetting capital losses. It does not cover special capital gains rules for certain investments. Consult a tax advisor for details.

The Primary Residence Exclusion (Section 121)

One of the most significant tax benefits for homeowners is the ability to exclude a substantial amount of gain from the sale of their primary home. This can drastically reduce or even eliminate your tax burden when it comes to selling a house.

Overview of Section 121 Exclusion

Section 121 of the IRS tax code allows homeowners to exclude a portion of the capital gain from the sale of their main home from their taxable income.

Ownership and Use Tests

To qualify for the full primary residence exclusion, you must meet both an ownership and use test:

  • Ownership Test: You must have owned the home for at least 2 years during the 5-year period ending on the date of the sale.
  • Use Test: You must have lived in the home and used it as your primary residence for at least 2 years during the 5-year period ending on the date of the sale. The 2 years do not have to be continuous, offering some flexibility.

Rules for the $250,000/$500,000 Exclusion and Partial Exclusions

The maximum exclusion amount is $250,000 for single filers and $500,000 for married couples filing jointly. This $250,000/$500,000 rule applies to the net capital gain after calculating your adjusted basis and net proceeds.

Partial Exclusions: Even if you don’t meet both tests, you might still qualify for a partial exclusion. This can happen if the sale was due to unforeseen circumstances, such as a change in employment, health issues, or other qualifying events as defined by the IRS.

The Net Investment Income Tax (NIIT)

Beyond the standard capital gains tax rates, some high-income taxpayers may also be subject to an additional tax on their investment income. It’s an important consideration, especially if you are selling an investment property.

Explanation of the 3.8% NIIT

The Net Investment Income Tax (NIIT) is a 3.8% tax on certain net investment income of individuals, estates, and trusts who meet specific income thresholds. For individuals, this tax generally applies to the lesser of your net investment income (which can include capital gains from real estate sales) or the amount by which your modified adjusted gross income (MAGI) exceeds certain thresholds.

Thresholds:

  • Married Filing Jointly: $250,000
  • Single or Head of Household: $200,000
  • Married Filing Separately: $125,000

This tax can apply to capital gains from the sale of real estate, especially investment properties, for those exceeding these income thresholds. It’s an additional layer of taxation for higher earners that must be factored into your financial planning.

Strategies to Reduce Capital Gains

Several strategies can help you defer or reduce your capital gains tax liability. These options can make a significant difference in your net proceeds and overall financial picture. For more comprehensive strategies on minimizing your tax burden, see our dedicated guide: Avoid Capital Gains Tax on Real Estate.

1031 Exchange (Like-Kind Exchange)

To continue growing your real estate portfolio and increase investment power without immediate taxation, consider a 1031 Exchange. This strategy allows you to defer capital gains tax by selling an investment property and reinvesting the proceeds into another ‘like-kind’ property within specific timeframes.

Installment Sale

To create recurring cash flow and reduce your overall tax rate by spreading out tax liability, an Installment Sale allows the buyer to pay you in installments over multiple tax years. This method defers capital gains, so you’re taxed proportionately as you receive each payment, potentially keeping you in lower tax brackets and paying less tax overall.

Step-Up in Basis Upon Inheritance

To ensure your heirs can sell highly appreciated property without a large capital gains tax burden, consider holding it until you pass. Upon inheritance, your heirs receive a ‘step-up in basis’ to the property’s fair market value at the time of your death. This effectively eliminates the capital gains that accrued during your lifetime, offering significant tax advantages to your beneficiaries.

Tax Loss Harvesting

To reduce your current year’s taxable income and overall tax bill, you can utilize Tax Loss Harvesting. This involves strategically selling other investments that have lost value to generate capital losses, which can then offset capital gains from your real estate sale. If your losses exceed your gains, you may even be able to deduct a portion against your ordinary income.

Charitable Remainder Trust (CRT)

To achieve significant philanthropic goals, convert an illiquid asset into income, and defer capital gains, a Charitable Remainder Trust (CRT) is an option. You donate highly appreciated real estate to the trust, which sells it tax-free. The trust then pays you an income stream for a set period or life, with the remainder going to charity.

Gifting Property

To transfer wealth and assets to heirs during your lifetime and potentially reduce your taxable estate, you might consider gifting the property. However, be aware that the recipient typically inherits your original cost basis, meaning they will be responsible for capital gains based on your purchase price if they eventually sell. This strategy shifts rather than avoids the tax burden on the gain accrued while you owned the property.

Frequently Asked Questions (FAQ)

Here are answers to common questions regarding capital gains tax on real estate.

Can you deduct closing costs from capital gains?

Yes, certain closing costs can be deducted. Selling expenses, such as real estate commissions, appraisal fees, legal fees, and title insurance, reduce your net proceeds from the sale, effectively lowering your taxable capital gain. These are distinct from costs that increase your adjusted basis, like capital improvements, but both can help reduce your overall taxable profit.

At what age do you no longer have to pay capital gains tax?

There is no specific age at which you are exempt from paying federal capital gains tax. Eligibility for exclusions or lower rates is based on income thresholds, filing status, and specific use/ownership tests (like the primary residence exclusion), not age. For example, if you meet the Section 121 exclusion requirements, you could be 30 or 70 and still qualify. Your age does not directly influence your capital gains tax liability.

Can I sell my house and buy another without paying capital gains?

For your primary residence, yes, potentially. If you meet the ownership and use test for the Section 121 exclusion, you can exclude up to $250,000 (single) or $500,000 (married filing jointly) of the gain from the sale. This often allows homeowners to sell and buy a new home without paying any capital gains tax.

Conclusion

Understanding capital gains tax on real estate is a cornerstone of smart real estate transactions. While the rules can seem complex, it pays to be informed. Ultimately, by staying ahead of these tax implications, you can make smarter decisions and get the most out of your property sale.

📊 Ready to dive deeper? Explore our comprehensive State-by-State Capital Gains Tax Comparison to see how tax rates vary across all 50 states.

Please consult your financial advisor, accountant, real estate attorney, or tax specialist. This article is for informational purposes and is not tax or legal advice.