A few months ago a 67-year-old neighbor showed me a tax return that stopped me in my tracks. He had brought in $100,000 that year and paid zero in federal income tax. No loophole, no creative accounting. He had mastered something called source allocation.

It is possible to pay $0 taxes on retirement income at six figures, but only if the portfolio is built for it ahead of time. You cannot pull $100,000 out of a traditional IRA and expect this to work. The math depends on four distinct income buckets and on the order the IRS applies its own rules.

The four buckets

Assume a married couple filing jointly. The foundation is Social Security, and in this example their combined benefit is $62,000 a year.

The second bucket is private mortgage note interest, $18,000 a year. The payment on a note is set by the note itself rather than by a share price, so the amount arriving each month is known in advance. That makes it straightforward to plan around when you are trying to land under a specific tax threshold.

The third bucket is qualified dividends, $10,000 a year, coming from a taxable brokerage account. At a 3% yield, that takes roughly $333,000 in invested assets.

The fourth bucket is capital gains from selling stock in that brokerage account, also $10,000. Remember that when you sell, you are not taxed on the whole sale. You are taxed on the profit after subtracting your cost basis. Assume this couple bought the stock for half of what it is worth today. They sell $20,000 worth, and $10,000 of that is taxable gain.

Add it up and this is a couple with roughly $800,000 to $1 million in invested assets alongside a strong Social Security benefit. $100,000 of spendable cash hits their account across the year. Now look at why the IRS does not touch any of it.

Most of the Social Security check never reaches the tax return

Social Security taxation starts with a formula called provisional income, which decides whether any of the benefit gets added to your return and how much. The formula is half of your Social Security plus all of your other taxable income.

Half of $62,000 is $31,000. Add the $18,000 in note interest, the $10,000 in dividends, and the $10,000 in capital gains, and the other taxable income comes to $38,000. Provisional income lands at $69,000.

That number runs through a ladder of thresholds. For a married couple filing jointly, the first $32,000 is completely tax free. The amount between $32,000 and $44,000 causes 50% of benefits to become taxable, and anything above $44,000 causes 85% to become taxable. Run $69,000 through that ladder and only $27,250 of the Social Security becomes taxable income.

This is the single most important efficiency point in the whole plan. The couple received $62,000 in benefits, and the IRS sees $27,250 of it. The other $34,000 is effectively invisible.

This is also where most retirees wreck their own plan. They pull too much out of an IRA, provisional income climbs, 85% of the benefit becomes taxable, and they hand over far more than they needed to.

After the provisional income step, the running total looks like this: $27,250 of taxable Social Security, $18,000 in note interest, and $20,000 in investment income, for $65,250 in taxable income. There is still a ways to go.

The senior tax shield in 2026

Most people would owe tax on that $65,250. Retirees in 2026 get a specific combination of deductions that I call the senior tax shield, and it has three layers.

The first layer is the standard deduction for married filing jointly, $32,200, which you get regardless of age or income source. The second is the extra senior bonus. Once you turn 65 the IRS adds a bonus deduction, and if both spouses are over 65 that adds $3,300. The third is the One Big Beautiful Bill Act deduction, worth an extra $6,000 per person, or $12,000 for the couple.

Stack the three layers and the total shield is $47,500. That is the magic number. It is how much ordinary income this couple can report before owing a single penny.

The ordinary income test

The IRS does not treat all income the same. It splits income into ordinary income and investment income, and they get taxed under separate rules. Social Security and private note interest are ordinary. Qualified dividends and long-term capital gains are handled separately.

So the ordinary income here is $18,000 of note interest plus $27,250 of taxable Social Security, or $45,250. The shield is $47,500. The couple lands under the magic number with about $2,000 of room to spare, and none of that ordinary income is taxed.

Why the investment income escapes too

That leaves $10,000 in qualified dividends and $10,000 in long-term capital gains unaccounted for. This is where the stacking rules come in, and they are widely misunderstood.

Picture your income as a building. The lower floors are ordinary income: Social Security, interest, wages. The penthouse is investment income: dividends and long-term gains. The IRS requires your deductions to attack the foundation first. In this scenario the $47,500 shield wiped out the entire $45,250 foundation, which is exactly what it is there for. The bottom of the building is gone and the penthouse is sitting in the air by itself.

For 2026, a married couple filing jointly can report up to $98,900 in total taxable income and still pay 0% on long-term capital gains and qualified dividends. Taxable ordinary income here is zero, so the only thing left on the return is $20,000 of investment income. That sits well below the limit, and the tax bill is $0 on $100,000 of income.

The $80,000 of unused space

Here is what separates the amateurs from the pros. If you followed the math, you noticed the couple reported $20,000 of taxable income against a 0% threshold of $98,900. That is nearly $80,000 of tax-free space sitting unused, and it disappears forever at the end of the year.

That space is the opening for tax gain harvesting. You sell appreciated stock, buy it back immediately at close to the same price, and reset your cost basis to today's dollars. The 50% gain you were carrying is gone. When you eventually sell for real, you have a much higher basis and a much smaller taxable profit.

The one caveat is that the harvested gain counts inside the provisional income calculation for Social Security. Harvest too aggressively and you push more of the benefit onto the return, which is the exact problem the plan was built to avoid.

What breaks this plan later

Tax planning is not always about how much you earn or how much you spend. Often it is about source allocation, about which buckets the money arrives from, so that your income fits under the government's thresholds.

The thing that can destroy this structure is required minimum distributions. Starting in your mid-seventies, the government forces money out of your 401(k) and retirement accounts so it can be taxed. That new income stacks on the foundation of the building, pushes provisional income up, and can undo the arrangement that kept the tax bill at zero.