How to Shelter Income From Taxes: Accounts, HSAs, and Real Estate

You can legally shelter income from taxes by routing it into accounts and investments the Internal Revenue Code specifically rewards: workplace retirement plans, IRAs, health savings accounts, self-employed plans, municipal bonds, and real estate held with an eye on depreciation, the primary residence exclusion, and 1031 exchanges. A 2026 salary can absorb $24,500 through a 401(k) before the IRS sees it, and stacking an IRA, HSA, or rental property on top compounds the savings. Everything below is tax avoidance built into the code, not evasion. The trick is picking the right mix and staying clear of the penalties that follow a misstep.

Workplace Retirement Plans

The 401(k) is the most common shelter because contributions come out of your paycheck before federal income tax is calculated. For 2026, the elective deferral limit for a traditional 401(k) or 403(b) is $24,500.1Internal Revenue Service. Retirement Topics – 401(k) and Profit-Sharing Plan Contribution Limits That amount drops your taxable income dollar for dollar. Someone in the 24% bracket saves roughly $5,880 in federal tax just from maxing the deferral.

Catch-Up Contributions

Workers 50 and older can add $8,000 above the standard limit in 2026, bringing the total deferral to $32,500. Between ages 60 and 63, the catch-up jumps to $11,250 for a maximum deferral of $35,750.2Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 The 60–63 window comes from SECURE 2.0 and is worth using aggressively during peak earning years.

The Roth Option

Many 401(k) and 403(b) plans now offer a Roth bucket. Roth contributions don’t reduce today’s taxable income, but qualified withdrawals in retirement come out entirely tax-free, growth included. The same $24,500 limit applies whether you split it across pretax deferrals, Roth deferrals, or both. If you expect a higher bracket in retirement, or you want a pool of tax-free income later, Roth is the more powerful long-term shelter.

Individual Retirement Accounts

If you have no workplace plan, or want to shelter more than a 401(k) allows, an IRA is the next layer. For 2026 you can contribute up to $7,500 to a traditional or Roth IRA, with a $1,100 catch-up at age 50 or older.2Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500

A traditional IRA works like a pretax 401(k): the contribution may be fully deductible, cutting your taxable income for the year. The deduction phases out if you also participate in an employer plan and your adjusted gross income exceeds certain thresholds. A Roth IRA reverses the timing (no deduction now, tax-free withdrawals later) and comes with income limits that can reduce or eliminate your ability to contribute at all.3Internal Revenue Service. Retirement Topics – IRA Contribution Limits The annual cap applies across all your IRAs combined, so watch the total if you have more than one.

Self-Employed Retirement Plans

Self-employed people and small business owners get access to accounts with much higher ceilings. The two main options are the SEP IRA and the Solo 401(k).

A SEP IRA lets you contribute up to 25% of net self-employment income, with a 2026 maximum of $69,000.4Internal Revenue Service. SEP Contribution Limits (Including Grandfathered SARSEPs) You can fund it as late as your tax filing deadline, extensions included. The limitation is that only the employer side contributes; there’s no employee elective deferral.

A Solo 401(k) is more flexible. You get employee deferrals up to $24,500 plus employer profit-sharing of up to 25% of compensation on top.2Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 The combined limit runs higher than a SEP, and you can put the employee deferral in a Roth. If you have no employees other than a spouse, the Solo 401(k) is usually the better choice.

Health Savings Accounts

An HSA gives you a triple tax benefit no other account matches: deductible contributions, tax-free growth, and tax-free withdrawals for qualified medical expenses. For 2026, the contribution limit is $4,400 for individual coverage and $8,750 for family coverage.5Internal Revenue Service. Expanded Availability of Health Savings Accounts Under the One, Big, Beautiful Bill Act (OBBBA) Notice 2026-5

Eligibility is the boundary. You must be enrolled in a High Deductible Health Plan meeting the minimum deductible and maximum out-of-pocket thresholds set by the IRS, and you can’t be enrolled in Medicare or claimed as a dependent.6Office of the Law Revision Counsel. 26 USC 223 – Section: (c) Definitions and Special Rules Check your plan’s summary of benefits before contributing.

An underused move is treating the HSA as a long-term investment account. Nothing forces you to spend HSA money in the year you contribute it. If you can pay current medical bills out of pocket, you can invest the balance, let it grow tax-free for decades, and reimburse yourself for those old expenses in retirement. HSA balances roll over indefinitely, unlike Flexible Spending Accounts, which typically must be used within the plan year or shortly after.

Municipal Bonds and Tax-Loss Harvesting

Outside retirement and health accounts, certain investments carry their own tax advantages. Interest 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 For someone in a high bracket, a muni yielding 3.5% can deliver more after-tax income than a taxable bond yielding 5%. Keep these in a regular taxable brokerage account; putting them inside an IRA wastes the exclusion.

Tax-loss harvesting works differently. You sell investments that have dropped, lock in the capital loss, and use it to offset capital gains elsewhere. If losses exceed gains for the year, you can deduct up to $3,000 of the excess against ordinary income, and the rest carries forward.8Internal Revenue Service. Topic No. 409, Capital Gains and Losses Harvesting trades must settle by the last business day of the calendar year to count for that tax period.

The trap is the wash sale rule. Sell a security at a loss and buy the same or a substantially identical security within 30 days before or after, and the IRS disallows the loss.9Internal Revenue Service. Case Study 1: Wash Sales The disallowed amount gets added to the cost basis of the replacement shares, so it isn’t lost forever, but you lose the immediate benefit. The workaround is replacing the sold holding with something similar but not identical, such as one large-cap index fund for a different provider’s version of the same strategy.

Real Estate Tax Strategies

Real estate has some of the most powerful shelters available to individual taxpayers. Depreciation, the primary residence exclusion, like-kind exchanges, and the step-up in basis at death can let a well-held property generate substantial income while producing little or no taxable gain for decades.

Depreciation on Rental Property

When you own residential rental property, the IRS lets you deduct a portion of the building’s cost each year as depreciation, even if the property is appreciating. Residential rental buildings depreciate over 27.5 years; commercial buildings use 39 years.10Office of the Law Revision Counsel. 26 USC 168 – Accelerated Cost Recovery System Only the building is depreciable, so subtract the land value from your cost basis first.

Take a rental bought at $400,000 with $100,000 attributed to land. The depreciable basis is $300,000, or roughly $10,909 a year to deduct against rental income on Schedule E. Keep receipts for capital improvements like a new roof or HVAC system; those costs get added to the depreciable basis and raise future deductions.

The Primary Residence Exclusion

Selling your home is one of the few times the code lets you pocket a large gain without owing anything. Under Section 121, you can exclude up to $250,000 of capital gain from the sale of your principal residence, or $500,000 filing jointly.11Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence You must have owned and used the home as your primary residence for at least two of the five years before the sale. The 24 months don’t have to be consecutive.

The exclusion is available repeatedly across your lifetime, though generally not more than once every two years. For many homeowners, it’s the largest single tax benefit they’ll ever receive, and it requires nothing beyond reporting the sale on your return.

Like-Kind Exchanges

A Section 1031 exchange lets you sell an investment property and defer the entire capital gain by reinvesting into a replacement property of equal or greater value. The timelines are strict: you must identify potential replacements in writing within 45 days of the sale and close within 180 days.12Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

A Qualified Intermediary must hold the sale proceeds during the exchange. If you personally receive the funds at any point, even briefly, the exchange fails and the full gain is taxable immediately. Any cash or non-like-kind property you receive as part of the deal (known as “boot”) is taxable even when the rest of the exchange qualifies. You report the deferred gain on Form 8824 with your annual return.12Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

Miss either deadline and there’s no extension or appeal. The full gain becomes taxable in the year of the original sale. Have your intermediary and tax advisor coordinating well before day 45.

Step-Up in Basis for Inherited Property

Under Section 1014, when someone inherits real estate the cost basis resets to fair market value on the date of the owner’s death. If your parent bought a house for $80,000 and it was worth $600,000 at death, your basis as heir is $600,000. Sell it for $620,000 and you owe tax on $20,000 of gain instead of $540,000. The step-up erases a lifetime of unrealized appreciation and applies to stocks and other inherited assets too. For families with highly appreciated real estate, it can be the single biggest tax event in the estate plan.

Withdrawal Rules and Common Pitfalls

The tax benefits of sheltered accounts come with strings. Ignore them and you can wipe out years of tax savings.

Early Withdrawal Penalties

Pull money from a traditional IRA or 401(k) before age 59½ and you owe a 10% penalty on top of regular income tax on the distribution. On a $50,000 early withdrawal in the 24% bracket, that’s roughly $17,000 gone to taxes and penalties. Exceptions exist for disability, qualifying medical expenses above 7.5% of AGI, first-time home purchases up to $10,000, and separation from service after age 55.13Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions SIMPLE IRA withdrawals in the first two years of participation carry a 25% penalty rather than 10%.

Required Minimum Distributions

Tax-deferred accounts don’t let you shelter income forever. Starting at age 73, you must begin taking required minimum distributions from traditional IRAs, SEP IRAs, SIMPLE IRAs, and most workplace retirement plans each year.14Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs Miss one and the penalty is steep. If you’re still working and don’t own more than 5% of the business, you can delay RMDs from that current employer’s plan until you actually retire. IRAs have no such exception.

Roth IRAs are the notable exception overall: no RMDs during the original owner’s lifetime, one reason they work so well as long-term shelters.

Excess Contributions

Contributing more than the annual limit to any tax-advantaged account creates a problem that worsens the longer you ignore it. Excess 401(k) deferrals not corrected by April 15 of the following year get taxed twice: once in the year you contributed them, and again when you eventually withdraw.15Internal Revenue Service. Consequences to a Participant Who Makes Excess Annual Salary Deferrals If you contribute to multiple employer plans in the same year, the combined deferrals count toward a single annual limit, so track totals carefully when you change jobs mid-year.