Closed PilotBay Area closed pilot active with select brokerages.

Supervision/Guides/Tax & Equity Protection

IRS Section 121: How to Calculate Capital Gains on a Home Sale

Published: 2026-10-11•Verified by Supervision Engineering
Key Takeaway & Answer Summary

Under Internal Revenue Code Section 121, homeowners who have owned and lived in their primary residence for at least 2 of the past 5 years can exclude up to $250,000 (single filers) or $500,000 (married filing jointly) in capital gains upon sale. Any capital gains exceeding this threshold are taxed at federal capital gains rates (up to 20% + 3.8% NIIT), but can be legally reduced dollar-for-dollar by adding the cost of permanent capital improvements to your Adjusted Cost Basis.

The 2-Out-Of-5-Year Ownership & Use Test

To qualify for the Section 121 exclusion, you must satisfy two statutory rules during the 5-year window ending on the date of sale: 1. Ownership Test: You owned the home for at least 24 months (730 days). 2. Use Test: The home was your primary residence for at least 24 months. Married couples filing jointly qualify for the full $500,000 exemption if either spouse meets the ownership requirement and both spouses meet the residency use test.

How to Calculate Your Adjusted Cost Basis

Your net capital gain is calculated as: Net Capital Gain = (Final Selling Price - Closing Costs) - Adjusted Cost Basis Your Adjusted Cost Basis starts with your original purchase price + purchase closing costs (title insurance, transfer taxes). You then add the documented cost of all permanent capital improvements made during your ownership period.

Capital Improvements vs. Routine Repairs (IRS Publication 523)

Not all home expenses increase your basis. The IRS strictly distinguishes between: • Capital Improvements (Adds to Basis): Work that prolongs the useful life of the property, adapts it to new uses, or materially enhances its structural value (e.g. replacing a roof, complete electrical rewire, new HVAC heat pump, kitchen remodel). • Routine Repairs (Disallowed for Basis): Routine maintenance that simply preserves the property in normal operating condition (e.g. repainting a room, fixing a leaky faucet, patching a shingle). On primary residences, repair costs cannot be added to basis.
IRS Publication 523: Capital Improvement vs. Repair Classification
Home ProjectIRS ClassificationAdds to Basis?Audit Evidence Required
Full Kitchen RemodelCapital ImprovementYes (100%)Itemized contractor contract, supply receipts
Fixing Leaky Garbage DisposalRoutine RepairNo ($0)None (Disallowed on primary home)
New 200A Electrical PanelCapital ImprovementYes (100%)Electrician invoice, municipal permit sign-off
Exterior Paint (Routine Touchup)Routine RepairNo ($0)Disallowed unless part of full remodel
Architectural Shingle RoofCapital ImprovementYes (100%)Roofer contract, warranty, permit
New Central Heat PumpCapital ImprovementYes (100% less tax credit)HVAC invoice + AHRI certificate

Frequently Asked Questions

Can I use credit card statements to prove capital improvements during an audit?

Generally no. The IRS routinely disallows credit card or bank statements because they show only the vendor (e.g. 'The Home Depot $4,500') rather than the itemized materials purchased. You must provide itemized receipts showing materials (e.g. lumber, cabinets, copper pipe) or signed contractor scopes.

What if my receipts are printed on thermal paper that has faded?

Thermal receipt paper fades to blank in 18 to 24 months. If audited, the IRS places the burden of proof entirely on the taxpayer. Having digital, high-resolution scans with extracted line items and SKU verification protects you against disallowed deductions.

Calculate Your Exact Basis & Estimated Tax Savings

Model your original purchase price, renovation investments, and Section 121 exclusions in under 60 seconds with our free interactive calculator.

Open Free Tax Basis Calculator →