MultiShift
MultiShift

Home / Calculators / Real Estate Capital Gains Tax Calculator (Section 121 vs. 1031 Exchange)

Real Estate Capital Gains Tax Calculator (Section 121 vs. 1031 Exchange)

Selling real estate in the United States triggers critical tax implications under the Internal Revenue Code. For primary residences, the IRS Section 121 exclusion shields up to $250,000 of profit for single filers and $500,000 for married couples filing jointly if ownership and use tests are met (2 out of the prior 5 years). For rental and investment properties, gains are exposed to federal Long-Term Capital Gains brackets (15% or 20%), the 3.8% Net Investment Income Tax (NIIT), state capital gains taxes, and 25% Section 1250 depreciation recapture—unless deferred entirely via an IRS Section 1031 Like-Kind Exchange. This tool models your adjusted cost basis, capital improvements, and net cash proceeds.

Real Estate Capital Gains Tax Calculator (Section 121 vs. 1031)

Calculate your IRS Section 121 primary home exclusion ($250k/$500k), federal LTCG brackets, 3.8% NIIT, depreciation recapture, and 1031 exchange deferral.

Transaction Parameters

$60.000

New roof, room addition, kitchen/bath remodeling, HVAC system (excludes routine painting or basic maintenance).

Title fees, transfer taxes when bought
Realtor commissions (5-6%) + escrow/title
Determines LTCG bracket and 3.8% NIIT
Total Capital Gains Tax Liability
$0100% Tax-Free
Estimated Net Cash Proceeds$799.000
Full Section 121 Tax Shield: Your capital gain of $277.000 is completely covered by your exclusion allowance of $500,000. You owe $0.00 in capital gains taxes on this sale!
Gross Selling Price$850.000
(-) Selling Closing Costs & Broker Commissions-$51.000
(=) Net Amount Realized$799.000
(-) Adjusted Cost Basis (Purchase + Improvements)-$522.000
(=) Total Realized Capital Gain$277.000
(-) Section 121 Primary Exclusion-$277.000
(=) Taxable Capital Gain$0
Key IRS Real Estate Tax Rules:
  • Satisfying the 2-out-of-5-Year Rule: The 24 months of occupancy do not have to be continuous; accumulating 730 days of primary residence living within the 5-year window qualifies you.
  • Save invoices for capital improvements: General repairs don't count, but roof replacements, room extensions, remodeled kitchens, and HVAC upgrades increase your basis dollar-for-dollar, lowering capital gains taxes.
  • Exclusion Frequency: The Section 121 $250k / $500k tax exemption can be used repeatedly once every 2 years.
Report a problem

How it works

  1. Select whether the property sold was your Primary Residence or a Rental/Investment Property.

  2. Enter your original purchase price, anticipated selling price, and buying/selling closing fees.

  3. Include qualifying capital improvements (roof replacement, additions, HVAC) to increase your adjusted basis.

  4. Review your Section 121 tax-free exclusion, federal LTCG and NIIT liability, or potential 1031 exchange tax deferral.

The Mechanics of Real Estate Capital Gains Taxation in the US

Taxable real estate capital gains are not simply calculated as selling price minus purchase price.

Under Internal Revenue Code standards, your Taxable Net Gain equals: Net Amount Realized (Gross Sales Price minus Broker Commissions and Selling Closing Costs) minus Adjusted Cost Basis (Original Acquisition Price plus Buyer Closing Costs plus Documented Capital Improvements).

The Section 121 Home Sale Exclusion: Shielding $250k to $500k of Profit

Section 121 provides one of the single most lucrative tax shelters available to American homeowners.

If you satisfy the two-year ownership and use tests (occupying the property as your primary dwelling for 24 months within the 5 years ending on the sale date), the first $250,000 of net gain for single filers—or $500,000 for married couples filing jointly—is completely exempt from federal and state income taxes. Profits surpassing the statutory thresholds are taxed at favorable Long-Term Capital Gains rates (15% or 20%).

Establishing Your Adjusted Cost Basis: Capital Improvements vs. Routine Repairs

Meticulously tracking capital additions directly shields your home equity from future capital gains taxes:

Capital Improvements (Basis Increasing): Installing a new roof, upgrading central HVAC condensers, kitchen gut renovations, room additions, swimming pools, paving driveways, and installing storm-impact windows.

Repairs and Maintenance (Non-Deductible on Personal Residences): Routine touch-up painting, fixing broken window panes, clearing gutters, and servicing furnaces represent operational maintenance and cannot legally be capitalized into personal residence cost basis.

Rental and Investment Property Liabilities: LTCG, NIIT (3.8%), and Section 1250 Recapture

Non-owner-occupied properties and residential rentals are fully excluded from Section 121 tax relief.

Disposition profits face a trifecta of taxation: federal Long-Term Capital Gains (up to 20%), the 3.8% Net Investment Income Tax (NIIT) assessed on higher earners, state capital gains rates (up to 13.3% in CA), and a flat 25% federal tax on all cumulative straight-line depreciation under Section 1250 recapture rules.

Deferring 100% of Taxes via Section 1031 Like-Kind Exchanges (45/180-Day Rules)

Real estate investors routinely defer millions in cumulative taxes using IRS Section 1031 Like-Kind Exchanges.

By utilizing a licensed Qualified Intermediary (QI) to handle closing escrow without constructive receipt of cash, an investor can transfer equity into higher-yielding replacement properties. Compliance requires formally identifying prospective replacement assets within 45 calendar days and closing the purchase within 180 calendar days of the initial settlement.

Frequently asked questions

How does the IRS Section 121 primary residence exclusion work?

Under IRC Section 121, homeowners can exclude up to $250,000 in capital gains ($500,000 for married couples filing jointly) from the sale of their principal residence. To qualify, you must have owned and occupied the home as your primary residence for at least 2 of the 5 years (730 days) leading up to the sale date. This exclusion can generally be claimed once every 2 years.

What expenses increase my adjusted cost basis?

Qualifying capital improvements that add substantial value or prolong property life—such as replacing a roof, finishing a basement, kitchen/bath remodeling, or adding square footage—increase your cost basis dollar-for-dollar, reducing your capital gains. Routine repairs and maintenance (e.g., painting, fixing leaky faucets) do not qualify for basis adjustments on personal residences.

How does an IRS Section 1031 Like-Kind Exchange defer taxes?

Section 1031 permits real estate investors to defer 100% of federal and state capital gains taxes, net investment income taxes, and depreciation recapture by rolling proceeds into 'like-kind' replacement investment property. The transaction must adhere to strict statutory deadlines: identifying target replacement properties within 45 calendar days and closing within 180 calendar days through a Qualified Intermediary (QI).

What is Section 1250 depreciation recapture?

When you operate an income-producing rental property, the IRS mandates that you depreciate the building over 27.5 years. Upon disposition, the cumulative depreciation claimed (or allowable) is recaptured and taxed at a flat federal rate of 25%, independent of standard capital gains brackets.

Is this tool free?

Yes. The site is supported by ads, so you never pay or need to create an account.

Does it work on mobile?

Yes. The page adapts to your screen and does not require installing any app.