IRS Section 121: How to Calculate Capital Gains on a Home Sale
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
How to Calculate Your Adjusted Cost Basis
Capital Improvements vs. Routine Repairs (IRS Publication 523)
| Home Project | IRS Classification | Adds to Basis? | Audit Evidence Required |
|---|---|---|---|
| Full Kitchen Remodel | Capital Improvement | Yes (100%) | Itemized contractor contract, supply receipts |
| Fixing Leaky Garbage Disposal | Routine Repair | No ($0) | None (Disallowed on primary home) |
| New 200A Electrical Panel | Capital Improvement | Yes (100%) | Electrician invoice, municipal permit sign-off |
| Exterior Paint (Routine Touchup) | Routine Repair | No ($0) | Disallowed unless part of full remodel |
| Architectural Shingle Roof | Capital Improvement | Yes (100%) | Roofer contract, warranty, permit |
| New Central Heat Pump | Capital Improvement | Yes (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 →