Qualified pension funds do not pay capital gains tax. A pension trust that meets the requirements of Internal Revenue Code Section 401(a) is exempt from federal income tax under Section 501(a), and that exemption covers every kind of investment earning the trust produces, including profits from selling stocks, bonds, and real estate. The tax bill arrives later, when retirees receive distributions, and those payments are taxed as ordinary income rather than at capital gains rates.
The Two Statutes Behind the Exemption
Section 401(a) sets the conditions a pension plan has to meet to be “qualified.” The trust must be organized in the United States and operated exclusively for the benefit of employees and their beneficiaries. Contributions and benefits cannot favor highly compensated employees over rank-and-file workers. The trust’s assets cannot be diverted to any purpose other than paying retirement benefits until every obligation to participants is satisfied.1Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans
Once a plan clears those hurdles, Section 501(a) exempts the trust from federal income tax entirely.2Office of the Law Revision Counsel. 26 USC 501 – Exemption From Tax on Corporations, Certain Trusts, Etc. The policy reason is straightforward: the government wants employers and workers to fund their own retirements. Shielding investment gains from tax lets the fund compound faster, so a smaller stream of contributions can grow into a larger pool of retirement benefits over a career.
Why Tax-Free Compounding Matters
Pension fund managers routinely buy and sell capital assets — equities, government bonds, commercial real estate — as part of ordinary portfolio management. An individual investor selling a stock at a profit in a taxable brokerage account would pay federal capital gains tax at 0%, 15%, or 20%, depending on income and holding period.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Inside a qualified pension trust, that same sale generates zero tax liability. The full profit stays in the fund and gets reinvested.
The effect compounds. If a pension fund sells a commercial property for a $5 million gain, every dollar goes back into the portfolio. A taxable investor in the same position might lose $750,000 to $1 million of that gain to federal and state taxes before reinvesting. Over decades of portfolio turnover, that gap is the single biggest structural advantage pension funds have over taxable investment accounts.
When a Pension Fund Actually Owes Tax
The exemption is broad, not absolute. Certain activities produce what the tax code calls unrelated business taxable income (UBTI), and the fund pays tax on those specific earnings even though everything else stays sheltered.
Directly Operating a Business
If a pension trust directly runs a business unrelated to providing retirement benefits — operating a factory, a restaurant, a hotel — the profits are taxable. The point is competitive fairness: a tax-exempt trust should not be able to undercut private businesses that pay tax on the same commercial activity.4Office of the Law Revision Counsel. 26 US Code 511 – Imposition of Tax on Unrelated Business Income of Charitable, Etc., Organizations
Because pension trusts are structured as trusts rather than corporations, UBTI is taxed at trust rates rather than the 21% flat corporate rate. Trust brackets are compressed: for 2026, the 37% top bracket kicks in at just $16,000 of taxable income. A specific deduction shelters the first $1,000, but beyond that even modest UBTI gets taxed at or near the highest individual rate.5Office of the Law Revision Counsel. 26 US Code 512 – Unrelated Business Taxable Income
Debt-Financed Investments
When a fund borrows to buy an investment, a proportional share of the income from that investment becomes taxable. Finance 60% of a building’s purchase price with a mortgage, and roughly 60% of the rental income and any later gain on sale gets pulled into UBTI.6Internal Revenue Service. Unrelated Business Income From Debt-Financed Property Under IRC Section 514 The taxable percentage is calculated by comparing the average outstanding debt to the property’s adjusted basis during the tax year.7Office of the Law Revision Counsel. 26 USC 514 – Unrelated Debt-Financed Income
Qualified pension trusts get a notable carve-out. They can borrow to acquire or improve real property without the debt triggering UBTI, as long as the financing terms meet certain conditions: the purchase price must be fixed at closing, payments can’t be tied to the property’s revenue, and the property can’t be leased back to the seller.7Office of the Law Revision Counsel. 26 USC 514 – Unrelated Debt-Financed Income This exception is one reason pension funds are major players in commercial real estate.
Pass-Through Investments
This is where plan managers sometimes get caught. When a pension fund invests in a pass-through entity such as a master limited partnership, the fund is treated as earning its share of the underlying business income. That income flows through as UBTI because the partnership’s commercial operations are unrelated to providing retirement benefits. The tax is based on the fund’s allocable share of the partnership’s business income reported on a K-1, not on whatever cash the fund actually receives. A fund generating more than $1,000 of total UBTI must file IRS Form 990-T and may need to make quarterly estimated tax payments.8Internal Revenue Service. Unrelated Business Income Tax Returns
If the Plan Loses Qualified Status
A plan that fails to maintain the requirements of Section 401(a) — through discrimination in favor of highly paid employees, misuse of assets, or operational failures — can be disqualified. The consequences hit from several directions at once.
The trust itself loses its tax exemption and must begin filing Form 1041, the income tax return for trusts, and paying tax on its investment earnings, including capital gains. Employees become taxable on vested employer contributions for the years the plan was disqualified. Highly compensated employees face a harsher outcome: if disqualification results from coverage or participation failures, they must include their entire vested account balance in taxable income. Distributions from a disqualified plan cannot be rolled over to an IRA or another qualified plan, which cuts off the main path to deferring the tax.9Internal Revenue Service. Tax Consequences of Plan Disqualification
How the Tax Eventually Gets Paid
The trust-level exemption doesn’t mean the money escapes tax forever. The government collects when retirees take distributions. Whether the payment is monthly income or a lump sum, the IRS treats a pension distribution as ordinary income, not capital gains.10Internal Revenue Service. Retirement Topics – Tax on Normal Distributions That distinction costs retirees real money: the top ordinary income rate for 2026 is 37%, while the maximum long-term capital gains rate is 20%.11Internal Revenue Service. Federal Income Tax Rates and Brackets Plan administrators report each distribution on Form 1099-R.12Internal Revenue Service. About Form 1099-R, Distributions From Pensions, Annuities, Retirement or Profit-Sharing Plans, IRAs, Insurance Contracts, Etc.
There is one bright spot at the individual level. Pension distributions are excluded from the 3.8% Net Investment Income Tax that applies to investment earnings above certain income thresholds. Distributions from plans described in Section 401(a) are specifically carved out of the NIIT’s definition of net investment income.13Internal Revenue Service. Questions and Answers on the Net Investment Income Tax
So the answer to whether pension funds pay capital gains tax is no at the fund level for qualified plans, yes for narrow slices of unrelated business income, and, for retirees, the money comes out taxed as ordinary income rather than as capital gains at all.