Your account was flagged as a duplicate of an existing one. If you think this is a mistake please reach to support through our messaging system on the website or email support@lofty.ai

Click here to complete verification and unlock investing, deposits, and withdrawals. →

Click here to verify your email address. We will send you a code to

InvestAboutLearnLendingList Property
Log InSign Up
←All calculators

Section 121 exclusion

Home Sale Capital Gains Calculator

Estimate the tax on selling your primary residence: realized gain, the $250,000/$500,000 Section 121 exclusion, federal and state capital gains, depreciation recapture for converted rentals, and what you keep after tax.

Your numbers

Sale
Cost basis
Tax rates

Your estimate

Updates as you type

Estimated tax owed

$0

Fully excluded

Federal capital gains + depreciation recapture + state tax after the Section 121 exclusion.

Taxable gain after exclusion

$0

Section 121 exclusion applied

$192,000

Net proceeds after tax

$517,000

Estimated results

Overview

What is a home sale gains calculator?

A home sale capital gains calculator estimates the tax owed when selling a primary residence by computing the realized gain (sale price minus selling costs and adjusted basis), subtracting the Section 121 exclusion: up to $250,000 for single filers or $500,000 for married couples filing jointly who lived in the home 2 of the last 5 years, and applying federal and state capital gains rates to whatever gain remains. Most owner-occupied sales owe no tax at all.

What your scenario is telling you

The exclusion covers your entire gain

The Section 121 exclusion absorbs the full $192,000 gain. Under these inputs you owe no capital gains tax on this sale.

How investors usually read these numbers

MetricOften strongWatch outWhy it matters
Gain vs exclusionGain fully under $250K/$500KGain well above the exclusionGains within the exclusion owe zero federal tax; only the excess is taxed at 15% or 20% plus state.
Ownership and use2+ of the last 5 years owner-occupiedUnder 2 years without a qualifying exceptionFailing the 2-of-5 test forfeits the exclusion unless a partial exclusion applies (job move, health, unforeseen circumstances).
Documented improvementsEvery project receipted and added to basisNo records of renovationsEach documented improvement dollar reduces the taxable gain dollar for dollar above the exclusion.
Depreciation recapture$0 (never rented)Large recapture from rental yearsRecapture is taxed at up to 25% and the exclusion never covers it, the hidden tax in house-hack exits.
Time since moving outSelling within 3 years of moving outMore than 3 years as a rentalAfter roughly 3 years of renting the former home, the 2-of-5 test fails and the exclusion is generally lost.

How to run a home sale gains analysis

  1. 1

    Enter the sale details

    Add the expected sale price and selling costs, agent commissions plus closing costs typically total 6% to 8%.

  2. 2

    Build your adjusted basis

    Enter the original purchase price and every capital improvement you can document: additions, renovations, new roof, HVAC, and major systems.

  3. 3

    Add depreciation if the home was ever rented

    House-hackers and owners who converted a rental must enter the depreciation claimed (or allowable) during the rental years, it is recaptured at 25% regardless of the exclusion.

  4. 4

    Set your exclusion and tax rates

    Use $250,000 if filing single or $500,000 if married filing jointly (and both spouses meet the use test). Pick your federal rate from the 2026 brackets and add your state rate.

  5. 5

    Read the tax estimate and net proceeds

    The calculator shows how much gain the exclusion absorbs, what remains taxable, the total estimated tax, and what you keep after tax (before paying off any mortgage).

The math behind the result

Core formulas

  • Amount realized = sale price - selling costs.
  • Adjusted basis = original purchase price + capital improvements - depreciation taken.
  • Realized gain = amount realized - adjusted basis.
  • Depreciation recapture = min(depreciation taken, gain), taxed at 25% federal. The Section 121 exclusion never covers it.
  • Taxable gain = max(gain - recapture portion - Section 121 exclusion, 0).
  • Federal tax = taxable gain x federal LTCG rate. State tax = (taxable gain + recapture portion) x state rate.
  • Estimated tax owed = federal tax + depreciation recapture tax + state tax.
  • Net proceeds after tax = amount realized - estimated tax owed (before mortgage payoff).

Expert takeaways

  • Most primary-residence sales owe zero tax. The $250,000/$500,000 Section 121 exclusion covers the full gain on the large majority of U.S. home sales, the calculator shows exactly how much of yours it absorbs.
  • The 2-of-5-year rule is the gate: you must have owned and used the home as your main residence for at least 24 months (they need not be consecutive) of the five years before sale, and not have claimed the exclusion in the prior two years.
  • Track capital improvements from day one. A new roof, HVAC, addition, or kitchen renovation raises your basis dollar for dollar, shrinking the gain, and receipts are your proof if the IRS asks.
  • Depreciation taken while the home was rented is never excluded. It is recaptured at up to 25% federal even when Section 121 wipes out the rest of the gain, which regularly surprises house-hackers and owners who converted a rental.
  • Sell before the exclusion expires. Once you move out, you generally have three years to sell (keeping 2-of-5 status) before the exclusion is lost, and post-2008 rental years can make part of the gain "nonqualified use" that the exclusion never covers.
  • Gains above the exclusion can also trigger the 3.8% NIIT if the sale pushes your MAGI above $200K single / $250K MFJ. This calculator does not add NIIT; large-gain sellers should model it with a CPA.

Key terms in plain English

Section 121 exclusion
Up to $250K/$500K of home-sale gain, tax-free.
Section 121 of the tax code lets a seller exclude up to $250,000 of gain ($500,000 married filing jointly) on the sale of a primary residence, provided they owned and used the home as their main residence for 2 of the last 5 years and have not used the exclusion in the prior two years. It can be claimed repeatedly over a lifetime.
2-of-5-year rule
Own and occupy 24 months of the last 60.
To qualify for the full exclusion, you must have both owned the home and used it as your principal residence for at least 24 months within the five years ending on the sale date. The months need not be consecutive, and only one spouse must meet the ownership test, but both must meet the use test for the full $500,000.
Adjusted basis
Purchase price + improvements - depreciation.
Your adjusted basis is what the tax code treats as your investment in the home: the original price, increased by documented capital improvements, and decreased by any depreciation claimed while the property was rented. A higher basis means a smaller taxable gain.
Partial exclusion
Prorated exclusion for qualifying early sales.
If you sell before meeting the 2-of-5 test because of a work relocation (50+ miles), health reasons, or unforeseen circumstances such as divorce or multiple births, you may claim a prorated exclusion, for example, 12 qualifying months earns half the maximum. The proration applies to the exclusion cap, not to your gain.
Nonqualified use
Post-2008 rental years that reduce the exclusion.
Years after 2008 in which the home was not your principal residence (before it became one) count as nonqualified use, and the corresponding slice of the gain cannot be excluded under Section 121. Renting the home after you move out, before selling within the 3-year window, generally does not count against you.

People also ask

How much tax will I pay when I sell my house?
For most primary-residence sellers: nothing. Your gain is the sale price minus selling costs minus your adjusted basis (purchase price plus documented improvements). If you owned and lived in the home 2 of the last 5 years, up to $250,000 of gain (single) or $500,000 (married filing jointly) is excluded under Section 121. Only gain above the exclusion is taxed: at 0%, 15%, or 20% federal depending on income, plus state tax and depreciation recapture if the home was ever rented.
What is the Section 121 exclusion?
Section 121 lets homeowners exclude up to $250,000 of capital gain on the sale of a primary residence, or $500,000 for married couples filing jointly, when they have owned and used the home as their main residence for at least 2 of the 5 years before the sale. Unlike the old rollover rules, you do not need to buy a replacement home, and you can claim the exclusion again on a future home after two years.
What is the 2-of-5-year rule?
You must have owned the home and used it as your principal residence for at least 24 months during the five years ending on the sale date. The 24 months do not need to be consecutive: two years of occupancy, a move-out, and a sale within three years still qualifies. For the full $500,000 married exclusion, both spouses must meet the use test, though only one needs to meet the ownership test, and neither can have claimed the exclusion within the prior two years.
What counts as a capital improvement to my basis?
Projects that add value, prolong the home's life, or adapt it to new uses: additions, kitchen and bath renovations, a new roof, HVAC, water heater, flooring, landscaping hardscape, a deck, or a finished basement. Repairs and maintenance: repainting, fixing leaks, replacing broken hardware, do not count. Keep receipts: every documented improvement dollar raises your basis and directly shrinks any gain above the exclusion.
What are the 2026 capital gains rates on a home sale?
Gain above the exclusion is taxed as long-term capital gain (assuming more than a year of ownership): 0% up to roughly $49,450 single / $98,900 married filing jointly of taxable income, 15% up to about $545,500 / $613,700, and 20% above that. Large gains can also trigger the 3.8% net investment income tax above $200,000 single / $250,000 MFJ MAGI, and most states tax the gain as ordinary income at rates from 0% to about 13.3%.
Can I get a partial exclusion if I sell before two years?
Yes, if the early sale is due to a qualifying reason: a job relocation of 50 miles or more, health-related moves, or unforeseen circumstances such as divorce, death, or multiple births from one pregnancy. The exclusion is prorated by time: living in the home 12 of the required 24 months earns 50% of the cap, or $125,000 single / $250,000 MFJ. Selling early just because prices rose does not qualify.
I rented out my home before selling. Do I still get the exclusion?
Often yes, with two catches. First, timing: you generally must sell within about three years of moving out so the home still passes the 2-of-5 test. Second, depreciation: every dollar of depreciation claimed (or allowable) during the rental years is recaptured at up to 25% federal, and the Section 121 exclusion never covers it. Rental years before the home became your residence (after 2008) also create "nonqualified use" that reduces the excludable portion.
What is depreciation recapture on a former rental?
If the home was ever a rental, including house-hacking a unit or renting rooms, the depreciation deductions from those years are taxed at up to 25% federal when you sell, separately from the capital gain and outside the exclusion. For example, $30,000 of depreciation claimed while renting generates roughly $7,500 of recapture tax even if Section 121 wipes out the rest of your gain. The IRS applies this to depreciation "allowed or allowable," so skipping the deduction does not avoid the tax.
How is selling a primary residence different from selling an investment property?
A primary residence gets the Section 121 exclusion but cannot use a 1031 exchange; an investment property is the reverse, no exclusion, but a 1031 exchange can defer the entire tax bill by rolling proceeds into replacement property. Investment sales also face depreciation recapture on the full holding period and NIIT more often. If you are selling a rental rather than your home, use the 1031 exchange calculator, which models that comparison side by side.
Do I pay taxes on the sale if I inherited the house?
Inherited homes get a stepped-up basis: your basis becomes the fair market value at the previous owner's death, not what they paid. If you sell soon after inheriting, the gain is usually small or zero regardless of exclusions. If you move in and live there 2 of 5 years, you can add the Section 121 exclusion on top of the stepped-up basis. Inherited property gains are automatically treated as long-term no matter how quickly you sell.
Does my mortgage payoff affect the capital gains calculation?
No. The gain is based on sale price, selling costs, and adjusted basis, the mortgage is irrelevant to the tax math. A seller with a large loan can owe tax on a big gain while walking away with little cash, and a free-and-clear seller with a small gain can pocket a lot tax-free. This calculator's net proceeds figure is before mortgage payoff; subtract your loan balance to estimate the actual check at closing.
How do I report a home sale on my taxes?
If your entire gain is excluded and you did not receive a Form 1099-S, you generally do not need to report the sale at all. If you received a 1099-S, or part of the gain is taxable, report the sale on Form 8949 and Schedule D, claiming the exclusion there. Depreciation recapture from rental years is reported as unrecaptured Section 1250 gain. Keep your closing statements and improvement receipts for at least three years after filing.

Compare your result

Want real estate exposure without buying the whole property?

Lofty lets investors browse fractional U.S. rental properties, compare listed assumptions, and start with a smaller minimum than a traditional down payment.

Browse marketplaceCreate free account

Related real estate calculators

Defer capital gains tax

1031 Exchange Calculator

Estimate the federal capital gains, depreciation recapture, NIIT, and state tax that a 1031 exchange may defer when you sell a rental or investment property.

Annual deduction and tax savings

Rental Property Depreciation Calculator

Calculate annual rental property depreciation, first-year mid-month deduction, depreciable basis, and yearly tax savings over the 27.5-year recovery period.

Monthly payment estimate

Mortgage Calculator

Estimate principal, interest, taxes, insurance, HOA, PMI, and a year-by-year amortization schedule.

Browse all free real estate calculators or read our latest real estate investing guides.

Lofty

Buy and own real estate shares. Earn daily rent. Sell anytime.

Start investing→

Follow us

Invest

  • Invest
  • Lending
  • List your property

Company

  • About us
  • Reviews
  • Compare

Resources

  • How Lofty works
  • Investing guides
  • Calculators
  • Blog
  • Help center
  • Refer a friend
  • Store
  • Contact us

Legal

  • Privacy Policy
  • Terms of Service
Investor Resources
  • Real estate glossary
  • Market data
  • Landlord-tenant laws by state
  • Airbnb laws by city
  • 1031 exchange rules by state

Disclosures

This site is operated by Lofty AI, Inc., which is not a registered broker-dealer or investment advisor. Lofty AI, Inc. does not provide investment advice, endorsement or recommendations with respect to any properties listed on this site. Nothing on this website should be construed as an offer to sell, solicitation of an offer to buy or a recommendation in respect of a security. You are solely responsible for determining whether any investment, investment strategy or related transaction is appropriate for you based on your personal investment objectives, financial circumstances and risk tolerance. You should consult with licensed legal professionals and investment advisors for any legal, tax, insurance or investment advice. Lofty AI, Inc. does not guarantee any investment performance, outcome or return of capital for any investment opportunity posted on this site. By accessing this site and any pages thereof, you agree to be bound by the Terms of Service and Privacy Policy.

All investments involve risk and may result in partial or total loss. By accessing this site, investors understand and acknowledge 1) that investing in real estate, like investing in other fields, is risky and unpredictable; 2) that the real estate industry has its ups and downs; 3) that the real property you invest in might not result in a positive cash flow or perform as you expected; and 4) that the value of any real property you invest in may decline at any time and the future property value is unpredictable. Before making an investment decision, prospective investors are advised to review all available information and consult with their tax and legal advisors. Lofty AI does not provide investment advice or recommendations regarding any offering posted on this website.

Any investment-related information contained herein has been secured from sources that Lofty AI believes to be reliable, but we make no representations or warranties as to the accuracy or completeness of such information and accept no liability therefore. Hyperlinks to third-party sites, or reproduction of third-party articles, do not constitute an approval or endorsement by Lofty AI of the linked or reproduced content.

Lofty Marketplace trades are completed using USD Coin (USDC cryptocurrency) and smart contracts on a blockchain. If you use a payment method other than USDC to submit a buy order for a traded property, then you agree to purchase an equivalent quantity of USDC at the then current exchange rate. That is, you agree that your currency will be converted to USDC, and your buy order will be executed using USDC. USDC is a 1:1 representation of the US dollar on the blockchain that may fluctuate in value. In the event that your order is cancelled or expires, any unspent USDC will be returned to your Lofty Wallet. If you later submit a sell order for your property shares, and your sell order is filled, you will receive payment in USDC which can be converted to USD via third party cryptocurrency exchanges.

© 2026 Lofty AI, Inc.·Privacy·Terms·Cookies·

Version: dev

LOFTY