The Self-DirectedThe plain-English desk for real estate inside a retirement account.

UDFI: what a mortgage does to your IRA's taxes

The Self-Directed · Updated September 27, 2026 · 4 min read

The short answer

UDFI is unrelated debt-financed income. When your IRA buys property with borrowed money, the percentage of the income attributable to that debt becomes taxable to the account, even though rent is normally exempt. The same percentage applies to the gain when the property sells.

Rent is exempt income to a retirement account. Borrow to buy the property and part of that rent stops being exempt. That part is unrelated debt-financed income.

The mechanic

Two numbers produce a percentage, and the percentage does all the work.

Average acquisition indebtedness for the year, divided by average adjusted basis of the property for the year, equals the debt-financed percentage.

Apply that percentage to net income from the property, after all the deductions the percentage lets you take, and you have unrelated debt-financed income. Subtract the $1,000 specific deduction and the remainder is taxable at trust rates on Form 990-T.

Both inputs are averages across the year, which matters. As the mortgage amortizes, average indebtedness falls. The percentage declines every year you hold, and so does the tax.

A year of rent, illustrated

An IRA buys a rental for $200,000. It puts in $80,000 and borrows $120,000 non-recourse.

Year one, roughly: average debt around $118,000 against average basis around $200,000, so the debt-financed percentage is about 59%.

The property's numbers: $21,000 of gross rent, $8,500 of operating expenses, $8,000 of mortgage interest, $5,800 of depreciation on the building. Net income for this purpose is $21,000 less $8,500 less $8,000 less $5,800, which is a loss of $1,300.

Taxable UDFI: none. The deductions, in particular depreciation and interest, absorbed the income entirely.

This is common in year one of a leveraged purchase and it is the reason the UDFI panic is often overblown. Depreciation is a real deduction here even though it is useless to the account in every other respect.

Now year eight. The loan has amortized to $95,000, basis is lower, interest is down to $6,200, depreciation is still $5,800, and rent has grown to $25,000 with $9,800 of expenses. Net income is $3,200. The debt-financed percentage is now around 49%, so UDFI is about $1,570. After the $1,000 specific deduction, $570 is taxable. The bill is well under $200.

Annual UDFI on a single leveraged rental is usually a nuisance, not a thesis breaker.

The sale is where it gets real

The same percentage applies to the capital gain, and a gain is a much larger number than a year of rent.

With one important twist: the percentage used at sale is based on the highest acquisition indebtedness during the 12 months preceding the sale, not the average.

Suppose the property sells in year eight for $280,000 with an adjusted basis around $155,000 after depreciation. The gain is roughly $125,000. If the highest debt in the trailing 12 months was $97,000 against average basis, the debt-financed percentage might be around 50%. So roughly $62,000 of that gain is taxable to the account at trust rates, which reach the top bracket fast. The bill can run into the high five figures.

That is the number to model before you buy, and almost nobody does.

The 12 month planning window

Because the sale calculation looks back 12 months, retiring the debt more than a year before closing eliminates UDFI on the gain.

If the account can pay off the remaining loan from its own resources, whether accumulated rent, another asset inside the account, or a contribution, and then wait a full 12 months before selling, the gain comes out exempt. Paying it off the month before closing accomplishes nothing.

This requires planning a year ahead of a sale that may not have a date yet. It is still the single highest value conversation to have with your CPA about a leveraged IRA property, and it is the reason to have it early.

Which structures create UDFI without a mortgage

You can get UDFI without ever signing a loan. An LP or LLC interest in a real estate partnership that uses leverage passes the debt through to you proportionately. Your K-1 arrives with unrelated business taxable income on it and the account has a filing obligation.

Investors are regularly surprised by this, because they bought what felt like a passive fund interest. Ask any sponsor directly, before you subscribe, whether the vehicle generates UBTI or UDFI for a retirement account investor, and whether they use a blocker structure. Get the answer in writing.

The account pays, so the account needs cash

The 990-T is filed by the IRA under its own taxpayer identification number and the tax comes out of the account. If the account is fully invested with no cash when the filing is due, you cannot cover it personally without committing a prohibited transaction.

Keep the reserve. This is one more reason the reserve is not optional.

If you have self employment income

A qualified plan, including a solo 401k, has a statutory exception for debt-financed real property that IRAs do not get. For a leveraged real estate strategy the difference can be the entire tax bill. Worth checking whether you are eligible before you commit to the IRA path.

Your CPA decides your situation. The arithmetic above shows how the rule behaves, not what your return will say.

Illustrative arithmetic, not a projection. The numbers are chosen to show how the mechanic works, not to describe any particular account or property. Your own result depends on facts we do not know. Your CPA decides your situation.

Get the next one

One letter a week on holding real estate inside a retirement account. The mechanics, the tripwires, and what changed.

Educational only. No advice, no offer of any security. One click to leave.

Common follow-ups

Does paying the loan down reduce UDFI?

Yes, and this is the most useful feature of the rule. The debt-financed percentage is based on average acquisition indebtedness over the year against the average adjusted basis, so as the loan amortizes the taxable percentage falls every year.

What happens if I pay the loan off before selling?

There is a 12 month lookback at sale. The percentage applied to the gain uses the highest acquisition indebtedness during the 12 months before the sale. So paying off the loan the month before closing does not help. Paying it off more than a year before closing eliminates UDFI on the gain entirely, which is a real planning opportunity worth discussing with your CPA well in advance.

Do I get depreciation against UDFI?

Yes. Ordinary and necessary expenses connected to the debt-financed income are deductible in the same proportion, and that includes depreciation and the mortgage interest itself. This is why the actual bill is usually far smaller than the headline suggests.

Read next

Educational only. Nothing here is investment, tax, or legal advice, and nothing here is an offer to sell or a solicitation to buy any security.