What is counted vs. not counted when taking $250k deduction on sale of house?
I'm getting ready to sell my primary residence and trying to figure out how the capital gains exclusion works. I know you get a $250k deduction (single) on the sale of your house, but I'm confused about how the gain is actually calculated. Let's say I purchased my home for $375,000 five years ago. Now I'm selling it for $625,000. The realtor commissions, title policy, escrow fees, and taxes total around $50,000. Would my taxable gain be $200,000? Here's where I'm confused - as part of the sale, I agreed to pay $12,000 for a new HVAC system that the buyer demanded after inspection. This is being paid directly from closing proceeds. I'm also crediting the buyer $8,000 toward their closing costs. So the actual check I'll receive from escrow is much less. Do I owe capital gains on the full price difference, or can I deduct these expenses? What if I had replaced the HVAC system myself a month before listing? Would that be deductible then? Also, does escrow report all this to the IRS, and how exactly do they calculate what's taxable? Could my realtor increase their commission instead to include these repair costs, making it all deductible? I appreciate any insights on how this works!
20 comments


Ethan Campbell
The $250k exclusion ($500k if married filing jointly) applies to your gain, not the selling price. Your gain is generally calculated as selling price minus purchase price minus selling expenses minus capital improvements. In your example, if you bought for $375k and sold for $625k, your initial gain is $250k. But you can deduct the $50k in selling expenses (realtor commission, title fees, etc.), bringing your gain down to $200k. Since this is below the $250k exclusion, you'd have no taxable gain. For the HVAC system, since it's part of your selling expenses paid at closing, it's deductible from your gain. The $8k buyer credit is also considered a reduction of your selling price, so that reduces your gain too. For home improvements, timing matters. If you replaced the HVAC before deciding to sell, it would be a capital improvement that increases your basis (effectively reducing your gain). If it's negotiated as part of the sale, it's a selling expense. Your realtor can't just increase their commission to include repair costs - that would be misrepresenting the actual transaction and could be considered tax fraud. Escrow companies report the gross proceeds from real estate transactions to the IRS on Form 1099-S, but they don't calculate your gain - that's your responsibility when filing taxes.
0 coins
Yuki Watanabe
•Thanks for the detailed response! Quick follow-up - what about improvements we've made over the years? We replaced the roof 2 years ago ($18k) and renovated a bathroom last year ($15k). Do these count as capital improvements that increase our basis? And do we need receipts for everything or can we estimate?
0 coins
Ethan Campbell
•Yes, those are exactly the type of capital improvements that increase your basis! The roof replacement and bathroom renovation both count. You'd add those costs ($18k + $15k = $33k) to your original purchase price, raising your basis from $375k to $408k. This means your gain would be even lower - only $167k before the exclusion. You should definitely keep all receipts for improvements. While estimates might work, the IRS can challenge them if you're audited. Having documentation for everything is your best protection. Plus, many homeowners don't realize how much they've invested in improvements over the years, and good records can save you thousands in taxes.
0 coins
Carmen Sanchez
After struggling with this exact question when selling my house last year, I found an amazing tool called taxr.ai that really helped me figure out what counted toward my gain calculation. I was getting different answers from friends and even my realtor wasn't sure about how to handle the repairs I agreed to make as part of the sale. I uploaded my closing documents, purchase papers, and receipts for home improvements to https://taxr.ai and their AI analyzed everything to properly calculate my exact gain and what qualified for the $250k exclusion. It identified several capital improvements I had forgotten about (like a water heater from 3 years ago) that increased my basis. Their tool was able to distinguish between regular repairs (not deductible) and capital improvements (which reduce your gain). It even had a specific section for seller concessions and closing costs that helped me understand exactly what could be deducted from my gain.
0 coins
Andre Dupont
•How accurate was it? I'm in a similar situation with a ton of improvements over 10 years of ownership but spotty record keeping. Can it handle situations where you don't have perfect documentation for everything?
0 coins
Zoe Papadakis
•Sounds interesting but skeptical. Does it actually give you proper tax advice that's IRS-compliant? I've been burned before by tax software that missed important details. What happens if you get audited based on their guidance?
0 coins
Carmen Sanchez
•It was extremely accurate! I actually ended up with no taxable gain after it properly counted all my improvements. The tool is flexible with documentation - it helped me estimate values for improvements where I didn't have perfect records, though it does recommend having proper documentation for major items. As for IRS compliance, everything is based on actual tax code. It provides references to specific IRS publications for each calculation. It's not just software making guesses - it's built on tax regulations and provides a detailed report you can keep for your records in case of an audit. It actually helped me feel more confident that I was following the rules correctly rather than just guessing or relying on internet advice.
0 coins
Andre Dupont
Just wanted to follow up after trying taxr.ai from the recommendation above. I was worried about my spotty documentation for home improvements over the 10 years I owned my house, but this actually saved me thousands in taxes! I had only been tracking major renovations (kitchen and master bath), but completely forgot about the windows we replaced, the deck we rebuilt, and the landscaping drainage system we installed. The tool helped me properly document and value all these improvements, increasing my basis by over $45,000 that I would have missed. It also clearly separated what counts as a repair versus a capital improvement, which I was completely confused about before. Turns out the new roof and HVAC were improvements that increased my basis, while the painting and minor plumbing fixes weren't. Would have seriously overpaid on my taxes without this guidance!
0 coins
ThunderBolt7
If you're struggling to get clear answers from the IRS on what counts toward your home sale exclusion, I highly recommend using Claimyr. I was in a similar situation last year - sold my house with lots of repairs and buyer credits and couldn't figure out what was deductible. After wasting hours on hold with the IRS (literally 3+ hours each time) and getting disconnected twice, I tried https://claimyr.com and watched their demo video here: https://youtu.be/_kiP6q8DX5c They got me connected to an actual IRS representative in about 15 minutes instead of the 3+ hour wait I was experiencing before. The agent walked me through exactly how to calculate my basis, what selling expenses were deductible, and how to handle the repairs I agreed to as part of the sale. Turns out I was calculating everything wrong and would have significantly overpaid my taxes. The call with the IRS rep saved me thousands and gave me the confidence that I was filing correctly.
0 coins
Jamal Edwards
•How does this actually work? Does it just help you skip the IRS phone queue somehow? I'm confused about how a third party service can get you through to the IRS faster than calling directly.
0 coins
Mei Chen
•Yeah right. No way this is legit. The IRS phone system is designed to be impossible - there's no "secret backdoor" to talk to someone. Sounds like a scam to get your money with false promises.
0 coins
ThunderBolt7
•It's completely legitimate - they use technology that keeps trying the IRS line for you and navigates the phone tree automatically. When they get a live agent, they connect the call to your phone. It's like having someone wait on hold for you. Regarding whether it's a scam - I was skeptical too, but it absolutely works. They aren't claiming to have a "secret backdoor" - they're just automating the painful process of waiting on hold and navigating the phone system. The IRS agents you speak to are the same ones you'd eventually reach if you waited on hold yourself for hours. The difference is you don't waste half your day waiting.
0 coins
Mei Chen
I need to eat crow on my previous comment about Claimyr. After waiting on hold with the IRS for 4 hours yesterday only to be disconnected again, I was desperate enough to try the service I called a scam. I'm genuinely shocked - it actually worked exactly as advertised. I got connected to an IRS agent in about 20 minutes, and they resolved my question about calculating capital gains on my home sale with all the various closing costs and seller concessions. The IRS agent confirmed that I could deduct the roof repair I paid for at closing, explained how the buyer credits affect my sale price calculation, and clarified that my landscaping projects only count if they were improvements (not regular maintenance). Most importantly, they confirmed I needed documentation for all my improvement claims. Saved me from a potential audit headache since I was planning to just estimate some costs. I've never been happier to be wrong about something!
0 coins
Liam O'Sullivan
Don't forget about state capital gains taxes too! I made this mistake last year. I carefully calculated everything for federal taxes and stayed under the $250k exclusion, but my state (California) had different rules about certain deductions. Also, keep track of how long you've owned and lived in the house. You need to have owned AND used it as your primary residence for at least 2 of the last 5 years to qualify for the full exclusion. If you've only lived there for 1 year, you might only get half the exclusion.
0 coins
Aisha Mohammed
•I hadn't even thought about state taxes being different! I'm in Washington state - does anyone know if they follow the same federal rules for the $250k exclusion? And yes, we've lived here 5 years continuously as our primary residence, so we should be good on that requirement at least.
0 coins
Liam O'Sullivan
•Washington state has no income tax, so you're good there! You won't have to worry about state capital gains tax on your home sale. Since you've lived in the home for 5 years continuously, you definitely meet the 2-out-of-5 year requirement for the primary residence exclusion. Just make sure you still document everything properly for your federal return. The IRS has been increasing audits on home sales, especially when people claim the full exclusion and have a lot of basis adjustments from improvements.
0 coins
Amara Okonkwo
Has anyone here used the IRS's Interactive Tax Assistant for this? I tried using it but got confused about what counts as "improvements" versus "repairs" when calculating my basis.
0 coins
Giovanni Marino
•The basic rule is: if it adds value to your home, prolongs its useful life, or adapts it to new uses, it's an improvement. If it just keeps your home in good condition, it's a repair. Examples of improvements: adding rooms, remodeling kitchen/bath, new roof, new HVAC, finishing basement, adding deck/patio, major landscaping projects. Examples of repairs: painting, fixing leaks, replacing broken windows, repairing appliances, general maintenance. The IRS Publication 523 has more details, but that's the gist of it.
0 coins
Zoe Papadakis
Great question! I went through this exact process last year when selling my home. One thing that really helped me was keeping a detailed spreadsheet of all improvements from day one of ownership. Even seemingly small things like a new water heater or upgraded electrical outlets can add up to significant basis adjustments. For your situation, you're actually in pretty good shape. With a $250k gain before any adjustments, you're right at the exclusion limit. But remember that the $12k HVAC and $8k buyer credit will reduce your gain further, and any documented improvements over the years will increase your basis. A few practical tips: Keep ALL receipts from improvements (take photos and store them digitally too). For the HVAC situation, since it's being paid at closing as part of the sale negotiation, it's definitely a selling expense that reduces your gain. Don't let your realtor talk you into creative commission arrangements - stick to legitimate, documented transactions. Also, consider having a tax professional review your calculation before filing. Home sales can get complex quickly, and the potential tax savings usually justify the cost of getting it right the first time.
0 coins
Miguel Ortiz
•This is such helpful advice! I'm also going through a home sale right now and wish I had started that spreadsheet from day one. I've been scrambling to reconstruct 8 years of improvements from bank statements and old photos. Quick question - you mentioned keeping digital photos of receipts. Do you know if the IRS accepts digital copies during an audit, or do they require original paper receipts? I've been taking photos of everything but wondering if I should also keep the physical copies somewhere safe. Also, completely agree on getting a tax professional involved. The peace of mind alone is worth it when you're dealing with this much money!
0 coins