Do Churches Pay Capital Gains Tax? UBIT, Debt-Financed Property, and State

In almost every situation, churches do not pay capital gains tax. A church recognized under Section 501(c)(3) owes no federal income tax, and that shield covers the profit on selling a building, a parcel of donated land, or an appreciated stock portfolio. The exemption has two real boundaries worth knowing: a church that behaves like a real estate dealer can be taxed on those sales, and a church that sells mortgaged property can be taxed on part of the gain even when nothing else about the sale looks commercial.

The Default Rule: No Tax on a Routine Sale

Churches qualify as tax-exempt automatically under Section 501(c)(3) without having to apply to the IRS, provided they are organized and operated for religious purposes and no earnings flow to private individuals.1Internal Revenue Service. Churches, Integrated Auxiliaries and Conventions or Associations of Churches2Internal Revenue Service. Exemption Requirements – 501(c)(3) Organizations That exemption covers capital gains tied to the church’s mission: selling an old sanctuary to relocate, liquidating donated securities, or disposing of property the congregation no longer uses.

What surprises many church leaders is how far the protection reaches even when a sale has nothing to do with ministry. Section 512(b)(5) of the Internal Revenue Code excludes gains from the sale of property from unrelated business taxable income. Only two kinds of property fall outside that exclusion: property that functions as inventory, and property held primarily for sale to customers in the ordinary course of business.3Office of the Law Revision Counsel. 26 U.S. Code 512 – Unrelated Business Taxable Income

So if a congregation receives a piece of donated land, holds it, and later sells it at a profit, the gain is generally not taxed, even though the land was never used for worship. The same is true of appreciated stock a donor contributes years earlier. One-off sales of appreciated assets are what most churches actually encounter, and the capital gains exclusion covers them.

When a Sale Does Become Taxable

The 512(b)(5) exclusion falls away when the property starts to look like inventory. A church that receives a large tract, subdivides it into lots, markets them, and sells them off one by one is acting as a real estate dealer. Those gains are no longer protected and become unrelated business income.

For income to be classified as unrelated business income in the first place, three conditions have to be present: the activity must be a trade or business, it must be regularly carried on, and it must not be substantially related to the church’s exempt purpose.4Internal Revenue Service. Unrelated Business Income Tax A single land sale almost never clears that bar. Repeated, systematic sales marketed to buyers do.

Where UBIT applies, the tax is on net income from the activity at the flat 21% federal corporate rate.5Office of the Law Revision Counsel. 26 U.S. Code 511 – Imposition of Tax on Unrelated Business Income of Charitable, Etc., Organizations Expenses directly connected to the activity come off first, so only the profit is taxed.

The Mortgage Trap: Debt-Financed Property

This is where churches most often get caught by surprise. Even a sale that would normally be protected by the capital gains exclusion can produce a tax bill if the property was financed with debt. Section 514 treats part of the gain as unrelated business income whenever “acquisition indebtedness” existed on the property at any point during the 12 months before the sale.3Office of the Law Revision Counsel. 26 U.S. Code 512 – Unrelated Business Taxable Income6Office of the Law Revision Counsel. 26 USC 514 – Unrelated Debt-Financed Income

The taxable share of the gain comes from a formula: the highest outstanding debt balance during the 12 months before the sale, divided by the average adjusted basis of the property.7eCFR. 26 CFR 1.514(a)-1 – Unrelated Debt-Financed Income and Deductions

A worked example: a church bought a building for $500,000 with a mortgage. In the 12 months before selling, the highest mortgage balance was $200,000, and the average adjusted basis stayed at $500,000. The taxable percentage is 40%. If the church sells for $700,000 and realizes a $200,000 gain, then $80,000 of that gain is treated as unrelated business income and taxed at 21%.

The idea behind the rule is to stop exempt organizations from using tax-free borrowing to earn leveraged investment returns that for-profit buyers would pay tax on. In practice it also catches ordinary churches that simply still owe money on a building when they decide to sell.

The 15-Year Land Carve-Out

Congress built in a specific protection for churches. Under Section 514(b)(3)(E), a church that acquires land intending to use it for its exempt purpose within 15 years is not treated as holding debt-financed property during that window, even with a mortgage on the land.6Office of the Law Revision Counsel. 26 USC 514 – Unrelated Debt-Financed Income Most other exempt organizations get only 10 years and must also meet a “neighborhood test” tying the land to existing property. Churches are not subject to the neighborhood requirement.

After year five there is a condition. If the church has held the land for more than five years, it has to be able to show the IRS that use of the land for its exempt purpose is reasonably certain before the 15 years run out.8eCFR. 26 CFR 1.514(b)-1 – Definition of Debt-Financed Property A church that buys land for a future campus and carries a mortgage for 12 years while fundraising is fine as long as the building plans stay credible. If the plans fall apart or the 15 years lapse without exempt use beginning, the protection disappears retroactively for the period after year five.

How to Avoid the Debt-Financed Tax

The cleanest fix is to pay off the mortgage before selling. If no acquisition indebtedness exists at any point during the 12 months before the sale, Section 514 does not apply. A church that can time a payoff ahead of a sale can often eliminate the tax entirely. Even partial paydowns help, because the formula uses the highest balance during that 12-month window: a lower peak means a lower taxable percentage.

The Bigger Risk: Losing Exempt Status

A church that leans too far into commercial activity faces something worse than a tax bill on the activity itself. The IRS applies an operational test requiring an exempt organization to engage primarily in activities that accomplish its exempt purpose.9Internal Revenue Service. Operational Test – Internal Revenue Code Section 501(c)(3) If more than an insubstantial part of what the church does serves non-exempt purposes, 501(c)(3) status itself can be revoked.

There is no published percentage that defines “too much.” The ambiguity is deliberate. A church that regularly flips property or runs other revenue ventures unconnected to its mission is walking a line that gets narrower the more it does. Revocation would make all of the church’s income taxable, not just the unrelated portion, so churches with sustained commercial activity should treat the status question, not the per-transaction UBIT, as the real exposure.

Filing and Paying When UBIT Applies

A church with $1,000 or more in gross income from an unrelated business must file Form 990-T, the Exempt Organization Business Income Tax Return.4Internal Revenue Service. Unrelated Business Income Tax This is a separate filing from Form 990. Churches generally are not required to file Form 990 at all, but they do have to file 990-T once taxable unrelated business income clears the threshold.

For a calendar-year church, Form 990-T is due May 15 of the following year, with an extended deadline of November 15 if an extension is filed.10Internal Revenue Service. Return Due Dates for Exempt Organizations – Form 990-T (Corporations) Electronic filing is mandatory.11Internal Revenue Service. Instructions for Form 990-T

If the church expects to owe $500 or more in UBIT for the year, quarterly estimated tax payments are also required, with Form 990-W used as the worksheet.12Internal Revenue Service. Estimated Tax: Unrelated Business Income A church planning a sale that will trigger debt-financed UBIT should budget the estimated payments in advance to avoid separate underpayment penalties.

Late Filing and Late Payment Penalties

Missing the 990-T deadline costs 5% of the unpaid tax per month the return is late, up to 25%. If the return runs more than 60 days late, the minimum penalty is the lesser of the tax due or $525.11Internal Revenue Service. Instructions for Form 990-T Filing on time but paying late carries a separate penalty of 0.5% per month of the unpaid balance, also capped at 25%, and interest accrues on top.13Internal Revenue Service. IRS Notices and Bills, Penalties and Interest Charges Both penalties can run at the same time. A church that discovers a debt-financed gain after the fact should file and pay quickly to stop the compounding.

State Tax Is a Separate Question

Federal exemption does not automatically carry over to state and local tax. Most states exempt 501(c)(3) organizations from state income tax, but some require a separate application, and the reach of the exemption varies. A church might be exempt from state tax on general operations and still owe state-level tax on unrelated business income, depending on how the state writes its code. Some states tax capital gains as ordinary income without any special exclusion for exempt organizations’ unrelated activities. Before assuming a property sale will be fully tax-free, confirm the church’s status under the relevant state’s law.