Good tax shelters are the deductions, credits, and exclusions Congress deliberately wrote into the tax code to encourage specific behavior: saving for retirement, buying a home, investing in rental property, funding education, giving to charity, or lending to state and local governments. Used correctly, they lower your tax bill without crossing any legal lines. The trick is matching the shelter to your situation and following the rules that come with it.
What separates a legitimate shelter from an abusive one is simple. A legitimate shelter is tied to a real economic activity you would consider doing anyway. An abusive shelter manufactures losses out of paper transactions that exist only to cut taxes. Everything below sits firmly on the legitimate side.
Retirement Accounts
Employer plans and individual retirement accounts are the most widely used shelters in the country. They work in one of two ways: they either shrink your taxable income now, or they eliminate tax on your investment growth later.
Traditional 401(k) and IRA
Contributions to a traditional 401(k) come out of your paycheck before income tax is calculated. Your W-2 won’t include those contributions in taxable wages, so you get an immediate reduction in the income you report.1Internal Revenue Service. Topic No. 424, 401(k) Plans A traditional IRA works similarly, though the deduction may be limited if you or your spouse also participates in a workplace plan.2Internal Revenue Service. Retirement Topics – IRA Contribution Limits
Investments inside these accounts grow without generating any annual tax bill. You pay ordinary income tax only when you pull money out in retirement. The bet is that your rate then will be lower than it is now, which is usually true once wages stop.
Roth 401(k) and Roth IRA
Roth accounts flip the timing. You contribute money you’ve already paid tax on, so there’s no deduction upfront. The payoff comes later: qualified withdrawals in retirement, including every dollar of investment growth, are completely tax-free.3Internal Revenue Service. Roth IRAs That makes the Roth one of the few true tax exclusions available to individual taxpayers.
Roth IRAs have income limits. For 2026, single filers can make full contributions with modified adjusted gross income below $153,000, with eligibility phasing out completely at $168,000. Married couples filing jointly phase out between $242,000 and $252,000.
Health Savings Accounts
An HSA offers what no other account in the tax code can match: a triple tax benefit. Contributions reduce your taxable income, the money grows tax-free, and withdrawals for qualified medical expenses are never taxed.
To open and fund one, you must be enrolled in a high-deductible health plan. For 2026, you can contribute up to $4,400 with individual coverage or $8,750 with family coverage. If you’re 55 or older and not yet on Medicare, you can add another $1,000 as a catch-up contribution.
Where HSAs quietly become one of the best long-term shelters available is the way the funds behave over time. Balances never expire and stay yours regardless of job changes. After age 65, you can withdraw HSA money for any purpose without penalty; non-medical withdrawals at that point are taxed as ordinary income, so the account behaves like a traditional IRA. Medical withdrawals stay tax-free at any age. If you can afford to pay current medical costs out of pocket and let the HSA compound, it becomes one of the most powerful retirement tools you have.
Real Estate
Rental property combines several shelters at once, which is why real estate keeps showing up in tax planning at every income level.
Depreciation
The biggest tax advantage of a rental is depreciation, a deduction for the gradual wear on the building even though you haven’t spent a dime on repairs. The IRS lets you write off the cost of a residential rental structure over 27.5 years using the straight-line method.4Internal Revenue Service. Depreciation and Recapture 4 Land isn’t depreciable, so you split the purchase price between the structure and the lot.
This deduction frequently turns a property that generates positive cash flow into a paper loss for tax purposes. The catch arrives when you sell: all the depreciation you claimed gets recaptured and taxed at a maximum federal rate of 25%, which is higher than the long-term capital gains rate most investors pay on appreciation.
Operating Expenses and Interest
Landlords can deduct the ordinary costs of running a rental: property taxes, insurance, maintenance, management fees, and mortgage interest. The interest deduction alone can be substantial in the early years of a loan when payments are mostly interest.
Section 1031 Exchanges
When you sell an investment property at a profit, you normally owe capital gains tax plus depreciation recapture. A Section 1031 exchange lets you defer both by rolling the proceeds into another investment property of equal or greater value.5Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The gain isn’t forgiven; it’s pushed into the future by carrying the old property’s tax basis over to the new one.
The timelines are strict. You must identify the replacement property within 45 days of selling the old one and close within 180 days.5Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment A qualified intermediary must hold the sale proceeds during the exchange period; you never touch the cash. Investors who execute exchanges repeatedly can defer gains for decades, and if they hold the final property until death, the stepped-up basis may eliminate the deferred tax entirely.
Selling Your Home
Homeowners get their own shelter. When you sell a home you’ve lived in for at least two of the last five years, you can exclude up to $250,000 of gain from income, or up to $500,000 if you’re married filing jointly.6Internal Revenue Service. Sale of Your Home Unlike a 1031 exchange, this exclusion doesn’t defer the tax. It erases it.
The Passive Loss Boundary
Rental losses generally can only offset other passive income. An exception lets taxpayers who actively participate in managing the rental deduct up to $25,000 of rental losses against wages and other non-passive income, but that allowance phases out as adjusted gross income rises above $100,000 and disappears at $150,000. Real estate professionals who spend more than 750 hours per year in real estate businesses (and more than half their total working hours in those businesses) can treat rental losses as non-passive without that cap. For most W-2 earners, the depreciation deduction shelters the rental’s own income, not their salary.
Municipal Bonds
Interest earned on bonds issued by state and local governments is excluded from federal gross income.7Office of the Law Revision Counsel. 26 USC 103 – Interest on State and Local Bonds Bonds issued by your own state are often exempt from state income tax as well. For investors in higher brackets, this double exemption can make municipal bonds more valuable on an after-tax basis than corporate bonds with higher stated yields.
The exclusion applies to bonds issued by states, cities, counties, and their political subdivisions, but not to private activity bonds that fail to qualify under IRS rules.7Office of the Law Revision Counsel. 26 USC 103 – Interest on State and Local Bonds Municipal bond interest also avoids the 3.8% net investment income tax that applies to higher earners, making the effective savings larger for taxpayers with modified adjusted gross income above $200,000 single or $250,000 married filing jointly.8Internal Revenue Service. Net Investment Income Tax
529 Education Savings Plans
Earnings inside a 529 plan grow tax-free, and withdrawals are tax-free when used for qualified education expenses, including tuition, room and board, books, and required supplies at eligible colleges. The Tax Cuts and Jobs Act expanded the benefit to cover up to $10,000 per year in K–12 tuition as well. Many states also offer a state income tax deduction or credit for contributions.
Unlike retirement accounts, 529 plans have no federal income limits on who can contribute. Accounts are controlled by the owner (usually a parent), and unused funds can be transferred to another family member. Recent legislation allows limited rollovers from a 529 into a Roth IRA for the beneficiary, subject to conditions, providing a safety valve if the savings go unused.
Shelters for Business Owners
Section 179 and Bonus Depreciation
Businesses can front-load the tax benefit of buying equipment, vehicles, and other tangible property. Section 179 lets you deduct the full cost of qualifying property in the year you place it in service, up to an annual dollar limit that adjusts for inflation. Bonus depreciation is a separate provision that historically allowed businesses to deduct a large percentage of the cost of new or used assets in the first year. Under the Tax Cuts and Jobs Act phase-down schedule, the bonus depreciation rate has been declining from 100% in 2022 by 20 percentage points each year. For property placed in service in 2026, the rate is 20%.
Qualified Business Income Deduction
If you earn income through a sole proprietorship, partnership, or S corporation, you may qualify for a deduction of up to 20% of that income.9Internal Revenue Service. Qualified Business Income Deduction The deduction reduces taxable income whether or not you itemize.
The full deduction is available below certain thresholds, but limitations kick in for higher earners. Service-based businesses (law firms, medical practices, consulting) face phase-outs that can reduce or eliminate the deduction entirely once taxable income exceeds roughly $200,000 for single filers or $400,000 for married couples filing jointly. Above those levels, the deduction may also be limited by W-2 wages the business pays or depreciable property it holds.
R&D and Energy Credits
Tax credits cut your bill dollar-for-dollar, which makes them more valuable than deductions of the same size. The Research and Development Tax Credit rewards companies that invest in developing new products, processes, or software. Qualifying activities don’t have to be groundbreaking; they need to involve a process of experimentation aimed at improving functionality, performance, or reliability. Energy tax credits go to businesses that install solar panels, wind turbines, battery storage, or other qualifying clean energy property. The Inflation Reduction Act expanded these credits and extended their availability. Documentation requirements are extensive, but the payoff often justifies the compliance cost.
Tax-Loss Harvesting
Investors with taxable brokerage accounts can turn losing positions into a tax benefit. Selling investments that have fallen below their purchase price realizes a capital loss that offsets gains earned elsewhere in your portfolio. If losses exceed gains, you can deduct up to $3,000 of the net loss against ordinary income each year ($1,500 if married filing separately).10Internal Revenue Service. Topic No. 409, Capital Gains and Losses Remaining losses carry forward indefinitely.
Watch the wash sale rule. If you buy a substantially identical investment within 30 days before or after selling at a loss, the IRS disallows the loss. The workaround is straightforward: replace the sold position with a similar but not identical investment. Sell one S&P 500 index fund and buy a total market fund, for example. You stay invested in roughly the same market exposure while locking in the tax loss.
Harvesting is most valuable for high-income investors who also face the 3.8% net investment income tax on top of regular capital gains rates.8Internal Revenue Service. Net Investment Income Tax
Charitable Giving Structures
Donating to charity can reduce your taxes, but the real power lies in what you donate and how you structure the gift.
Contributing appreciated stock or other property directly to a qualified charity lets you deduct the full fair market value while avoiding capital gains tax on the appreciation entirely. If you bought shares for $10,000 years ago and they’re now worth $50,000, donating them saves you both the income tax deduction and the capital gains tax you’d owe if you sold first.
Donor-advised funds work similarly but add flexibility. You make a lump-sum contribution, often of appreciated assets, take the full deduction in the contribution year, and then distribute grants to charities over time. This lets you bunch multiple years of giving into a single year to clear the standard deduction, then take the standard deduction in off years.
Charitable remainder trusts go further for people with large concentrated positions. You transfer appreciated assets into an irrevocable trust that sells them without triggering immediate capital gains tax. The trust pays you an income stream for a set period, and the remainder goes to charity when the trust terminates. Capital gains are recognized gradually as income is distributed.
Life Insurance
Cash value life insurance (whole life and universal life) grows on a tax-deferred basis. You can access the cash through policy loans without triggering a taxable event, provided the policy stays in force, and the death benefit passes to beneficiaries income-tax-free. These features make permanent life insurance a niche but genuine shelter, though costs are high compared with buying term insurance and investing the difference.
If a policy is classified as a modified endowment contract because too much money was contributed too quickly relative to the death benefit, policy loans and distributions become taxable and may carry a 10% penalty before age 59½. For wealthier families, an irrevocable life insurance trust can remove the death benefit from your taxable estate entirely. If you transfer an existing policy into the trust, you must survive at least three years after the transfer for the exclusion to work; setting up the trust before purchasing the policy avoids that waiting period.
Where Legitimate Shelters End
Every strategy above uses provisions Congress wrote into the code on purpose. Abusive shelters are a different animal. They manufacture artificial losses, hide income through layers of shell entities, or rely on transactions with no economic purpose beyond cutting taxes.
The clearest warning sign is a pitch that sounds too good: guaranteed deductions several times your investment, no risk, “IRS-proof” structures, or secrecy about the details. Legitimate tax planning is transparent. If the promoter won’t explain exactly how the deduction arises, or discourages you from running the strategy past your own accountant, walk away. The IRS imposes steep accuracy-related penalties on underpayments tied to abusive transactions, and criminal prosecution for tax evasion remains on the table for the worst schemes. A good shelter aligns with a genuine investment or business activity you’d consider on its own merits. If you wouldn’t do it without the tax benefit, that’s worth pausing to reconsider.