IRS Form 8828 is how you calculate and report the recapture tax on a federal mortgage subsidy when you sell or otherwise dispose of a home financed with a qualified mortgage bond (QMB) loan or a mortgage credit certificate (MCC) within nine years of the original loan closing.1Internal Revenue Service. About Form 8828, Recapture of Federal Mortgage Subsidy You attach the completed form to your Form 1040 for the year of sale, and the recapture tax carries to Schedule 2, line 17b.2Internal Revenue Service. Schedule 2 (Form 1040) – Additional Taxes
Whether You Actually Owe Recapture
Three conditions have to line up before recapture applies: you received a mortgage funded by a tax-exempt QMB or used an MCC to reduce your federal taxes, you sold or otherwise disposed of the home within the first nine years after the loan closed, and you had a gain on the sale with income above the threshold set at closing. Disposing of the home covers more than a sale. Giving it away (except to a spouse or ex-spouse in a divorce) counts too, and you calculate the recapture as if you sold at fair market value.3Internal Revenue Service. Instructions for Form 8828
Even if the math produces zero recapture tax — because your income stayed at or below the adjusted qualifying income, for instance — you still file Form 8828 to document the sale if it happened inside the nine-year window.3Internal Revenue Service. Instructions for Form 8828
Several situations remove the tax entirely:
- Transfer to a spouse or former spouse in a divorce where no gain or loss is recognized. The receiving spouse takes on the recapture obligation if they later sell inside the original nine-year window.3Internal Revenue Service. Instructions for Form 8828
- A home destroyed by fire, storm, flood, or other casualty, if you replace it on the original site as your main home within two years after the end of the tax year of destruction.3Internal Revenue Service. Instructions for Form 8828
- A qualified home improvement loan funded by a QMB (as opposed to a purchase loan).3Internal Revenue Service. Instructions for Form 8828
- A disposition more than nine years after the original loan closing.
Refinancing is the trap. Refinancing the original subsidized loan does not by itself trigger recapture, but it does not release you from the obligation either. Sell within nine years of the original closing and you still owe recapture, calculated from that first closing date.3Internal Revenue Service. Instructions for Form 8828 Keep the refinance closing statement; you will need it.
Documents to Pull Before You Start
Have these in front of you:
- The lender or bond issuer notification letter from the original closing. It contains the adjusted qualifying income table (organized by family size and holding period), the federally subsidized amount (6.25% of the highest principal balance), and the holding period percentages. Without it, you cannot complete the form.3Internal Revenue Service. Instructions for Form 8828
- The original loan closing date, from your settlement statement or closing disclosure.
- The sale or disposition date.
- The sales price (or fair market value for a gift) and your selling expenses, including commissions, advertising, and legal fees.
- Your adjusted basis: original purchase price plus permanent improvements, minus any depreciation claimed. If part of the home was used for business, include only the residential portion.
- Modified adjusted gross income for the year of sale: AGI from Form 1040 line 11, plus tax-exempt interest received, minus any gain from the home sale included in gross income.3Internal Revenue Service. Instructions for Form 8828
If the notification letter is lost, contact the housing finance agency or bond issuer that originated the loan. The adjusted qualifying income table and the federally subsidized amount both come from that document.
How the Recapture Tax Is Calculated
The formula under 26 U.S.C. § 143(m) has three inputs, and the final tax is capped at 50% of your gain on the sale.4Office of the Law Revision Counsel. 26 USC 143 – Mortgage Revenue Bonds: Qualified Mortgage Bond and Qualified Veterans Mortgage Bond
Federally Subsidized Amount
This is 6.25% of the highest principal balance you ever owed on the subsidized loan. On a $200,000 loan, that’s $12,500. The figure appears on the notification letter and goes on line 19 of the form.3Internal Revenue Service. Instructions for Form 8828
Holding Period Percentage
The percentage climbs through year five and then tapers:
- Year 1: 20%
- Year 2: 40%
- Year 3: 60%
- Year 4: 80%
- Year 5: 100%
- Year 6: 80%
- Year 7: 60%
- Year 8: 40%
- Year 9: 20%
Year five is the worst year to sell for recapture purposes; years one and nine are the mildest. After year nine, the percentage is zero.4Office of the Law Revision Counsel. 26 USC 143 – Mortgage Revenue Bonds: Qualified Mortgage Bond and Qualified Veterans Mortgage Bond If you fully repaid the subsidized loan within the first four years (through a refinance, for example), the percentage ramps down to zero ratably over the following five years rather than following the standard table.
Income Percentage
Take your modified AGI in the year of sale, subtract the adjusted qualifying income from the lender’s table (matched to your family size and holding period), divide by $5,000, and round to the nearest whole percentage. Cap at 100%.4Office of the Law Revision Counsel. 26 USC 143 – Mortgage Revenue Bonds: Qualified Mortgage Bond and Qualified Veterans Mortgage Bond If modified AGI is at or below the adjusted qualifying income, the income percentage is zero and no recapture is owed, though the form still gets filed.
Combining the Three
Multiply the federally subsidized amount by the holding period percentage, then multiply that by the income percentage. Compare the result to 50% of your gain on the sale. You owe the lesser of the two.4Office of the Law Revision Counsel. 26 USC 143 – Mortgage Revenue Bonds: Qualified Mortgage Bond and Qualified Veterans Mortgage Bond Sold at a loss? No gain, no recapture.
An example. A $180,000 QMB loan, sold in year four. Federally subsidized amount: $11,250. Holding period percentage: 80%. That gives $9,000. Modified AGI exceeds the adjusted qualifying income by $3,200, so the income percentage is 64% ($3,200 ÷ $5,000, rounded). The recapture amount is $9,000 × 0.64 = $5,760. If the gain on the sale was $8,000, half of that is $4,000, and $4,000 is what you owe.
Filling Out the Form
Form 8828 has two parts. Part I identifies the property and the loan. Part II runs the calculation.5Internal Revenue Service. Form 8828 – Recapture of Federal Mortgage Subsidy
In Part I, line 1 is the home’s address. Line 2 asks whether the subsidy came from a QMB loan or an MCC. Line 3 requests additional information from the lender notification. Line 4 is the name and address of the original lender. Line 5 is the closing date of the subsidized loan. Line 6 is the date you sold or disposed of the home. Line 8 is the date the subsidized loan was fully repaid, if that happened early — this drives the adjusted holding period percentage.
In Part II, line 9 is the sales price (or fair market value for a gift). Line 10 is selling expenses. Line 12 is your adjusted basis. Line 13 produces your gain. Line 15 is your modified AGI for the year of sale. Line 16 is the adjusted qualifying income pulled from the notification letter’s table. Line 19 is the federally subsidized amount. Line 20 is the holding period percentage. The remaining lines multiply these figures and compare the product against 50% of the gain to produce the final recapture tax.3Internal Revenue Service. Instructions for Form 8828
Filing and Paying
Attach Form 8828 to your Form 1040 for the year you sold or disposed of the home. Move the recapture tax to Schedule 2 (Form 1040), line 17b, where it feeds into total additional taxes on line 21.2Internal Revenue Service. Schedule 2 (Form 1040) – Additional Taxes Tax software generally handles the transfer for you.
The filing deadline is April 15 of the year following the sale.6Internal Revenue Service. Pay Taxes on Time A Form 4868 extension buys six more months to file, but any tax owed, recapture included, is still due April 15.7Internal Revenue Service. Act Now to File, Pay, or Request an Extension Interest accrues on late payments. For the first half of 2026, the IRS underpayment rate for individuals is 7% in the first quarter and 6% in the second, compounding daily.8Internal Revenue Service. Quarterly Interest Rates
How Long to Keep the Paperwork
Keep the lender notification letter, original closing documents, improvement receipts, and a copy of the filed Form 8828 until the statute of limitations closes for the year of the sale. The IRS treats property records as running until that year’s limitations period expires.9Internal Revenue Service. How Long Should I Keep Records Three years from the return’s filing date is the usual mark, longer if you underreported income by more than 25% or never filed.