When you sell a custom-built home, capital gains tax applies to the profit between your total cost basis and your final sale price — and understanding how that calculation works can save you tens of thousands of dollars.
Homeowners who built their own homes often underestimate their true cost basis, which means they overestimate their taxable gain. Getting this right before you sell is essential.
This guide explains how capital gains are calculated on custom-built homes, how the IRS primary residence exclusion applies, and what steps you can take to reduce your tax liability legally.
What Are Capital Gains on a Custom-Built Home?
Capital gains on a home sale represent the difference between what you received from the sale and what you originally paid to acquire and build the property. For a custom-built home, this calculation starts with your cost basis rather than a simple purchase price.
The IRS treats a custom-built home the same as any other residential property for capital gains purposes. The gain is the net sale proceeds minus your adjusted cost basis. If that number is positive, you have a capital gain. If it is negative, you have a capital loss — though losses on personal residences are not deductible.
How the IRS Defines Capital Gains on Real Property
The IRS defines a capital gain as the profit realized from the sale of a capital asset held for personal or investment purposes. For real property, this includes the land and any permanent structures on it. The gain is calculated as: Net Sale Proceeds minus Adjusted Cost Basis equals Capital Gain.
Understanding how capital gains tax applies to all home sales is the foundation for this topic — our capital gains tax overview covers the full framework, including how gains are calculated, what rates apply, and which exemptions are available to homeowners.
Custom-Built vs. Purchased Homes — Does It Change Your Tax Basis?
The core tax rules are the same whether you purchased a home or built one. The key difference is how the cost basis is established. For a purchased home, the basis is typically the purchase price plus closing costs. For a custom-built home, the basis is the sum of every dollar spent to bring the property into existence — land, construction, permits, and qualifying improvements.
How to Calculate Your Cost Basis for a Custom-Built Home
Your cost basis is the starting point for every capital gains calculation. For a custom-built home, the IRS requires you to add together all costs directly associated with acquiring the land and constructing the home.
The core components of your cost basis include:
- The purchase price of the land
- All construction costs paid to contractors and subcontractors
- Architect and design fees
- Building permits and inspection fees
- Utility connection fees paid during construction
- Interest on construction loans (subject to IRS capitalization rules)
- Legal fees directly related to the construction or land acquisition
Land Cost, Construction Costs, and Eligible Add-Ons
Every dollar you spent to build the home from the ground up is part of your basis. This includes materials, labor, and professional fees. If you acted as your own general contractor, the costs you paid to subcontractors and suppliers are all includable. Your own labor, however, does not count toward your basis under IRS rules.
How Home Improvements Affect Your Cost Basis
After the home is built and you move in, qualifying capital improvements you make over the years are added to your original basis. This is called your adjusted cost basis. A capital improvement adds value to the property, extends its useful life, or adapts it to a new use. Routine repairs and maintenance do not qualify.
Keeping accurate improvement cost records is one of the most effective ways to reduce your taxable gain — our improvement cost records guide explains which upgrades qualify, how to document them, and what the IRS requires for substantiation.
The IRS Primary Residence Exclusion and Custom-Built Homes
The most powerful tax benefit available to homeowners selling their primary residence is the Section 121 exclusion. This provision allows qualifying sellers to exclude a significant portion of their capital gain from federal income tax entirely.
The $250,000 / $500,000 Exclusion Rules Explained
Under IRS Section 121, single filers may exclude up to $250,000 of capital gain from the sale of their primary residence. Married couples filing jointly may exclude up to $500,000. This exclusion applies directly to the gain — not the sale price — and can eliminate most or all of the tax owed on a typical home sale.
For a custom-built home, this exclusion works exactly the same way. If your gain falls below the applicable threshold and you meet the ownership and use tests, you owe no federal capital gains tax on the sale.
Ownership and Use Tests — What Custom Home Builders Must Know
To qualify for the Section 121 exclusion, you must meet two tests during the five-year period ending on the date of sale. First, you must have owned the home for at least two years. Second, you must have used it as your primary residence for at least two years. The two years do not need to be consecutive.
For custom home builders, the ownership period begins when you take title to the land or the completed structure — not when construction begins. The IRS applies specific criteria to determine whether a homeowner qualifies for the exclusion — our guide to the ownership and use test walks through every requirement, including how partial exclusions work and what exceptions apply to custom home builders.
When Capital Gains Tax Applies After Selling a Custom-Built Home
Even with the Section 121 exclusion available, capital gains tax will apply in certain situations. Understanding when you will owe tax — and at what rate — helps you plan the timing of your sale effectively.
Short-Term vs. Long-Term Capital Gains Rates
The tax rate on your gain depends on how long you owned the property before selling. If you owned the home for one year or less, the gain is classified as short-term and taxed at your ordinary income tax rate. If you owned it for more than one year, the gain is long-term and taxed at preferential rates.
According to the IRS tax rate schedules, long-term capital gains rates for 2025 are 0%, 15%, or 20% depending on your taxable income. Most homeowners fall into the 15% bracket. The difference between short-term and long-term holding periods has a significant impact on how much tax you owe — our breakdown of long-term capital gains rates on real estate explains exactly how the IRS classifies each and what rate applies to your situation.
Situations Where the Full Exclusion May Not Apply
The full Section 121 exclusion may be reduced or unavailable in several circumstances. If you used any portion of the home for business or rental purposes, the exclusion does not apply to the business-use portion of the gain. If you claimed a home office deduction in prior years, depreciation recapture rules may apply. If you sell before meeting the two-year ownership and use requirements, only a partial exclusion may be available based on a qualifying exception such as a job relocation, health event, or unforeseen circumstance.
How to Reduce Capital Gains on the Sale of a Custom-Built Home
Reducing your taxable gain legally comes down to two strategies: maximizing your adjusted cost basis and deducting all allowable selling costs from your net proceeds.
Deductible Selling Costs and Qualified Improvement Tracking
Selling costs that reduce your net proceeds — and therefore your gain — include real estate agent commissions, attorney fees, title insurance, transfer taxes, and certain closing costs paid by the seller. These are subtracted from your gross sale price to arrive at your net sale proceeds before the gain is calculated.
On the cost basis side, every qualifying capital improvement you made during ownership increases your basis and reduces your gain dollar for dollar. This makes thorough documentation of all improvement projects critical. Many homeowners overlook legitimate expenses that reduce their taxable gain at closing — our resource on selling cost deductions identifies every eligible expense, from agent commissions to legal fees, and explains how to apply them correctly.
Reporting the Sale of a Custom-Built Home on Your Tax Return
Even if your gain is fully excluded under Section 121, you may still need to report the sale on your federal tax return. The IRS requires reporting in certain situations, and failing to file the correct forms can trigger notices or audits.
IRS Form 8949 and Schedule D — What to File
The sale of a home is reported using IRS Form 8949 and Schedule D of your Form 1040. Form 8949 captures the details of each property sale — the date acquired, date sold, proceeds, cost basis, and any adjustments. Schedule D summarizes all capital gains and losses for the tax year.
If your gain is fully excluded under Section 121 and you received a Form 1099-S from the closing, you must still report the sale on Form 8949 and indicate the exclusion. If you did not receive a Form 1099-S and your gain is fully excluded, reporting is optional but recommended. Accurately completing your tax return after a home sale requires specific IRS forms — our IRS Form 8949 filing guide explains every line, what information you need from your closing documents, and how Schedule D connects to your overall return.
Special Scenarios That Affect Capital Gains on Custom Homes
Several less common situations change how capital gains are calculated or reported on a custom-built home. Knowing these scenarios in advance prevents costly surprises.
Inherited Custom Homes and the Step-Up in Basis
If you inherit a custom-built home rather than building it yourself, the IRS applies a step-up in basis rule. Your cost basis is reset to the fair market value of the property on the date of the original owner’s death. This means any appreciation that occurred during the deceased owner’s lifetime is not subject to capital gains tax when you sell.
Inherited custom homes follow a different set of tax rules than homes you built yourself — our explanation of step-up in basis rules covers how the IRS resets the cost basis at the date of inheritance and what that means for your capital gains calculation.
Partial Business Use and Home Office Deductions
If you claimed a home office deduction for any portion of your custom-built home in prior tax years, the IRS requires you to recapture the depreciation you deducted when you sell. This depreciation recapture is taxed at a maximum rate of 25% under IRS Publication 523, regardless of your long-term capital gains rate. The business-use portion of the home also does not qualify for the Section 121 exclusion, which means that portion of the gain is fully taxable.
If you used a dedicated room exclusively for business and deducted it annually, calculate the total depreciation claimed over the years and set it aside as a separate taxable amount when you sell.
Conclusion
Selling a custom-built home involves the same capital gains framework as any residential sale, but the cost basis calculation is more complex and the documentation requirements are more demanding. Getting your adjusted cost basis right — including every construction cost, improvement, and eligible selling expense — is the single most important step in reducing what you owe.
The Section 121 exclusion remains the most powerful tool available, and most homeowners who meet the ownership and use tests will owe little or nothing in federal capital gains tax. Special situations like home office use, inherited properties, and short holding periods require separate analysis.
At Mr. Local Services, we work with homeowners at every stage of property ownership — from building and improving to maintaining and selling. Contact us today to connect with trusted professionals who help protect the value of your home year-round.
Frequently Asked Questions
Do I pay capital gains tax if I built my own home?
Yes, capital gains tax can apply when you sell a custom-built home. Your taxable gain is the difference between your net sale proceeds and your total adjusted cost basis, which includes land, construction costs, and qualifying improvements. The IRS Section 121 exclusion may eliminate most or all of the tax if you meet the ownership and use requirements.
What counts as cost basis for a custom-built home?
Your cost basis includes the land purchase price, all construction costs paid to contractors, architect and design fees, building permits, utility connection fees, and legal fees related to the build. Capital improvements made after construction is complete are added to your basis over time, reducing your eventual taxable gain.
How long do I need to live in my custom home to avoid capital gains?
You must have owned and used the home as your primary residence for at least two of the five years before the sale. The two years do not need to be consecutive. Meeting this requirement qualifies you for the Section 121 exclusion — up to $250,000 for single filers and $500,000 for married couples filing jointly.
Can home improvements reduce capital gains on a custom-built home?
Yes. Qualifying capital improvements increase your adjusted cost basis, which directly reduces your taxable gain. Eligible improvements include additions, renovations, new systems, and structural upgrades. Routine repairs and maintenance do not qualify. Keeping detailed records of all improvement costs is essential for substantiating your basis with the IRS.
What is the capital gains tax rate on a home sale in 2025?
Long-term capital gains rates for 2025 are 0%, 15%, or 20% depending on your taxable income. Most homeowners fall into the 15% bracket. If you owned the home for one year or less, the gain is taxed at your ordinary income rate, which is typically higher. Depreciation recapture on any home office portion is taxed at a maximum rate of 25%.
What IRS forms do I need when selling a custom-built home?
You will need IRS Form 8949 to report the details of the sale and Schedule D to summarize your capital gains and losses on Form 1040. If your gain is fully excluded under Section 121 and you received a Form 1099-S at closing, you must still report the sale and indicate the exclusion on Form 8949.