A 501(c)(3) buys an apartment building as an endowment investment, takes out a 60% mortgage, and assumes the rental income flows through tax-free because the organization is exempt. Twelve months later, an auditor explains that 60% of the rent — and 60% of any eventual capital gain — is suddenly subject to corporate income tax on Form 990-T. The same conversation happens every year inside self-directed IRAs that finance rental property with non-recourse loans.
The culprit is Internal Revenue Code Section 514, the "unrelated debt-financed income" (UDFI) rule. It is one of the least intuitive corners of the tax code because it punishes tax-exempt organizations for doing something every taxable investor takes for granted: using leverage. This guide walks through what triggers UDFI, how the math actually works, which exceptions exist (including the famous Section 514(c)(9) carve-out for schools and pensions), and what to track in your books so a leveraged investment does not become a surprise tax liability.
Why Congress Added the UDFI Rules
The original Unrelated Business Income Tax (UBIT) regime, enacted in 1950, was a response to nonprofit hospitals and universities operating commercial businesses tax-free and undercutting taxable competitors. UBIT closed that loophole for active trades and businesses but left passive investment income — rents, royalties, dividends, interest, capital gains — fully exempt under Section 512(b).
That created a new loophole: a tax-exempt organization could buy real estate or a portfolio of securities almost entirely on borrowed money, treat the investment income as exempt, and use the spread between the borrowing rate and the investment yield to subsidize operations. The IRS called this "bootstrap" investing, and Congress shut it down in 1969 by enacting Section 514.
The rule is conceptually simple: to the extent an exempt organization buys an income-producing asset with debt, the income from that asset is treated as if the organization were a taxable investor. The "exempt" portion of the asset still earns exempt income; only the leveraged portion is taxed.
What Counts as Debt-Financed Property
Section 514(b)(1) defines debt-financed property as any property held to produce income for which there is "acquisition indebtedness" at any time during the year. Property does not have to be real estate — corporate stock, partnership interests, bonds, and even tangible personal property can qualify if held for investment and financed with debt.
Acquisition indebtedness, defined in Section 514(c), is broader than most people expect. It includes:
- Debt incurred to acquire or improve the property. A mortgage on a rental building is the textbook example.
- Debt incurred before acquisition if the indebtedness would not have been incurred but for the acquisition.
- Debt incurred after acquisition if it was reasonably foreseeable at the time of purchase and would not have been incurred but for the acquisition.
The "but for" test sweeps in arrangements that look benign at first glance. A nonprofit that takes out a line of credit on its operating account specifically to free up reserves for a real estate purchase may find that the line of credit counts as acquisition indebtedness on the property.
Property That Is Not Debt-Financed
Several categories of leveraged property are statutorily excluded:
- Property used substantially (85% or more) for exempt purposes. A university that mortgages its own dormitory does not trigger UDFI because the dormitory is used in carrying out the educational mission.
- Property whose income is already subject to UBIT as an unrelated trade or business — the income is taxed once, not twice.
- Property received by gift or bequest where the donor's debt has been outstanding for more than five years and the organization held the property for more than five years.
- Neighborhood land acquired for future exempt use within 10 years of churches and similar organizations near existing exempt-use property.
The Core Calculation: Debt/Basis Percentage
For each piece of debt-financed property, the organization computes a single fraction:
Average Acquisition Indebtedness
Debt/Basis = -----------------------------------
Average Adjusted BasisThat percentage is then applied to:
- Gross income from the property (rents, interest, dividends, capital gain on sale).
- Deductions directly connected to producing that income (depreciation, interest, property tax, insurance, management fees).
The product is the unrelated debt-financed income, which flows to Form 990-T and is taxed at corporate rates (currently 21%).
Computing Average Acquisition Indebtedness
For each month the property is held during the year, look at the outstanding principal on the first day of the month. Sum the 12 monthly balances and divide by 12. Note that this is principal balance, not interest. As the loan amortizes, the average acquisition indebtedness drops each year, which is why an old, well-amortized rental property eventually produces less UDFI than a freshly mortgaged one.
Computing Average Adjusted Basis
Average adjusted basis is the simple average of (i) basis at the beginning of the year (or acquisition date) and (ii) basis at the end of the year (or disposition date). Importantly, "basis" here means tax basis — original cost plus capital improvements minus accumulated depreciation. As you depreciate a building, average adjusted basis falls, which inflates the debt/basis percentage even when the loan balance is constant. The numerator and denominator move in opposite directions in ways that can surprise the finance team.
A Worked Example
A private foundation buys a $1,000,000 commercial rental building with a $600,000 mortgage and $400,000 of foundation cash. In year one:
- Average acquisition indebtedness: $595,000 (loan amortizing slightly during the year)
- Average adjusted basis: ($1,000,000 + $970,000) / 2 = $985,000 (assume $30,000 of straight-line depreciation on the building)
- Debt/basis percentage: 595,000 / 985,000 = 60.4%
- Gross rents: $80,000; directly connected deductions (depreciation, interest, taxes, repairs): $65,000; net income: $15,000
- UDFI gross income: $80,000 × 60.4% = $48,320
- UDFI deductions: $65,000 × 60.4% = $39,260
- Net UDFI: $9,060
- Federal UBIT at 21%: about $1,903
The foundation still nets a positive cash flow, but it owes tax it did not expect and must file Form 990-T to report it.
The Sale of Debt-Financed Property
Capital gain on the disposition of debt-financed property is also subject to UBIT. Section 514(a)(1) uses a slightly different percentage for sales: the numerator is the highest acquisition indebtedness in the 12 months preceding the sale, rather than the average for the year. The denominator remains average adjusted basis for the year of sale.
That rule produces a critical planning point. If an exempt organization pays off the mortgage and then waits 12 full months before closing on the sale, the highest indebtedness during the 12-month look-back is zero, the percentage becomes zero, and the entire capital gain is UBIT-free. The 12-month rule is one of the few reliable knobs available to retire UDFI exposure on appreciated property.
The Section 514(c)(9) Real Estate Exception
For schools, qualified pension trusts, and certain other "qualified organizations," Congress carved out a powerful escape hatch in Section 514(c)(9). When the exception applies, debt-financed real property does not generate UDFI at all.
Who Is a Qualified Organization
Section 514(c)(9)(C) lists:
- Educational institutions described in Section 170(b)(1)(A)(ii) and their Section 509(a)(3) support organizations.
- Qualified pension, profit-sharing, and stock bonus trusts under Section 401.
- Title-holding companies under Section 501(c)(25).
- Section 403(b) retirement income accounts.
Public charities that are not schools, private foundations, and donor-advised fund sponsors are not on the list. Critically, individual IRAs are not on the list either, which is why self-directed IRAs investing in leveraged real estate generally cannot use this exception (despite a persistent myth otherwise).
Conditions for the Exception
Even for qualified organizations, the real estate exception is conditional. Among other requirements, the debt must:
- Be incurred to buy or improve real property.
- Carry a fixed purchase price (no contingent payments tied to property revenue or appreciation).
- Not involve a sale-leaseback to the seller or a related party.
- Not be financed by a related party on terms that exceed market.
If a qualified organization holds the property through a partnership that has both qualified and nonqualified partners, the partnership allocations must additionally satisfy one of three tests: all partners are qualified, every allocation to a qualified partner is a "qualified allocation" under Section 168(h)(6)(B), or the allocations meet the notoriously intricate fractions rule under Section 514(c)(9)(E). The fractions rule essentially prevents shifting disproportionate income to tax-exempt partners and disproportionate losses to taxable partners. It is the principal reason real estate funds intended for university endowments and pension investors are structured with such careful waterfall language.
Self-Directed IRAs: The Big UDFI Trap
The fastest-growing source of UDFI litigation is self-directed IRAs that invest in real estate using non-recourse loans. The IRA is "qualified" in colloquial terms — it is a tax-favored retirement vehicle — but it is not a Section 514(c)(9) qualified organization. The narrow Section 514(c)(9) exception for retirement plans applies to trusts under Section 401, not to IRAs.
Practical consequences for self-directed IRA owners:
- Rental income during ownership is partially taxable as UDFI based on the loan-to-basis ratio.
- Capital gain on sale is partially taxable, calculated using the 12-month look-back to highest indebtedness.
- Depreciation, interest, property tax, and operating expenses are deductible against UDFI in the same proportion.
- Form 990-T must be filed by the IRA custodian using the IRA's EIN (not the owner's SSN). The tax is paid from IRA assets.
- Paying off the loan more than 12 months before sale eliminates UDFI on the gain.
Many self-directed IRA owners discover these rules only after closing their first leveraged deal. The math is rarely catastrophic — the marginal rate is 21% on a small fraction of income — but it complicates tax filing and can erode the simplicity that motivated the IRA structure in the first place.
Leveraged Securities and Margin Loans
Section 514 also applies to securities purchased on margin or otherwise financed with debt. A nonprofit that buys stock through a prime broker on margin generates UDFI on the dividends and capital gains in proportion to the margin balance. Section 514(c)(8) carves out income from securities loans — when an organization lends securities and receives substitute payments, the substitute payments are treated as relating to the loaned securities themselves and the collateral obligation is not "acquisition indebtedness."
Many investment committees do not realize that leveraged exchange-traded funds and certain alternative investment vehicles can pass through UDFI to nonprofit limited partners via Schedule K-1. Reviewing K-1s for footnotes on "debt-financed income" should be a standard part of an endowment's annual tax review.
Building the Books to Survive UDFI Season
UDFI is fundamentally a record-keeping problem. The tax is straightforward to compute if (and only if) the accounting system has captured the right data throughout the year. Practical steps:
- Tag each investment in the chart of accounts as either "debt-financed" or "exempt-only," and never let a leveraged investment sit in the wrong bucket.
- Track principal balances monthly. Most loan servicers issue 1098 forms with year-end summaries that are insufficient — you need beginning-of-month balances for every month the property was held.
- Track depreciation on a per-property tax basis, not just a book basis. Average adjusted basis is a tax concept, and book accumulated depreciation usually will not match.
- Allocate "directly connected" expenses at the time of payment. Reasonable allocation methods (e.g., square footage, time, head count) must be documented contemporaneously, not reconstructed at filing time.
- Maintain a separate ledger or sub-ledger for each debt-financed property so the auditor and 990-T preparer can pull every number without forensic reconstruction.
- Schedule a check-in 18 months before any planned disposition to evaluate whether paying off remaining debt and waiting out the 12-month look-back makes sense.
Plain-text accounting tools make these tagging conventions especially natural. Every transaction lives in a readable ledger file, accounts can be split as deeply as needed (Assets:Real-Estate:123-Main:Debt-Financed, Income:Rent:123-Main:UDFI-Portion), and historical records cannot drift because the entire history is version-controlled.
Common Mistakes and How to Avoid Them
- Assuming UDFI is "small" and skipping the 990-T. Failing to file a required 990-T exposes the organization to penalties under Sections 6651 and 6652, plus interest, regardless of whether tax is owed.
- Computing average acquisition indebtedness annually instead of monthly. This often understates the loan balance for fast-paying loans and overstates it for interest-only loans.
- Forgetting that depreciation is required. Tax basis must be reduced by allowable depreciation whether or not the organization actually claims it.
- Treating a 501(c)(3) "qualified organization" status as the Section 514(c)(9) exception. Most public charities are not on the qualified-organization list; only schools, certain pension trusts, and 501(c)(25) title-holding companies qualify.
- Ignoring K-1 footnotes on debt-financed income from real estate or alternative investment partnerships.
- Paying off the loan in the month of sale instead of 13 months earlier. A planning error of a few weeks can convert a tax-free disposition into a taxable one.
When to Get Outside Help
UDFI calculations on a single rental property are within the reach of an experienced bookkeeper using a spreadsheet. The complexity scales rapidly with:
- Multi-property portfolios with shared financing.
- Partnership investments and the fractions rule.
- Cross-border arrangements where foreign tax credits, withholding, or treaty issues interact with UBIT.
- Self-dealing or excess business holdings concerns for private foundations (Sections 4941 and 4943).
For any of these scenarios, an exempt-organization tax specialist is worth the fee. A surprise UBIT bill on a large gain can dwarf years of careful planning.
Keep Your Tax-Exempt Books Audit-Ready
Leveraged investments are not off-limits for nonprofits, foundations, or self-directed IRAs — but they require accounting discipline that the average general-ledger setup does not deliver out of the box. Beancount.io provides plain-text, double-entry accounting that lets you tag debt-financed assets, track monthly loan balances, and reconstruct every figure on Form 990-T with full version history. No black boxes, no vendor lock-in. Get started for free and see why nonprofit treasurers and self-directed retirement investors are switching to transparent, version-controlled bookkeeping.