The federal tax code provides a 0% tax rate on long-term capital gains for taxpayers whose taxable income falls within certain thresholds. For 2024, the 0% bracket applies to long-term capital gains for married couples filing jointly with taxable income up to approximately $94,050. For single filers, the threshold is approximately $47,025. Above these thresholds, the rate rises to 15%, and above higher thresholds, to 20%.
In the early years of retirement, before Social Security benefits are maximized and before required minimum distributions begin, many retirees find themselves in an unusually low-income period where their taxable income falls within or near the 0% capital gains bracket. This creates a window for harvesting accumulated capital gains in taxable brokerage accounts at zero federal tax cost, permanently resetting the cost basis of those holdings.
This strategy, called capital gains harvesting or strategic gain realization, is the inverse of tax-loss harvesting. Instead of realizing losses to create deductions, the retiree realizes gains when the tax cost is zero, eliminating the future tax liability on those gains. Done systematically over several years, capital gains harvesting in the 0% bracket can significantly reduce the lifetime tax burden on taxable portfolio assets.
Long-term capital gains are taxed at rates of 0%, 15%, or 20% based on total taxable income, not just on the capital gains themselves. A married couple with $60,000 of taxable income from ordinary sources and $30,000 of long-term capital gains has a total taxable income of $90,000. Because $90,000 falls below the $94,050 threshold for the 0% bracket, all $30,000 of capital gains are taxed at 0%. The ordinary income and capital gains stack together for bracket determination, but only the gains portion gets the preferential rate.
The practical mechanics: long-term capital gains are taxed at the 0% rate for the portion that falls within the 0% bracket ceiling. If total income including gains exceeds the ceiling, the excess gains are taxed at 15%. The opportunity is to harvest gains up to the ceiling in years when ordinary income is low enough to leave room.
The available harvesting room in any given year is the difference between the 0% bracket ceiling for the taxpayer's filing status and their projected ordinary taxable income for the year. Ordinary income includes wages, Social Security (the taxable portion), IRA distributions, pension income, rental income, and other non-capital gain sources.
For a married couple with $45,000 of ordinary taxable income and a 0% bracket ceiling of $94,050, the available harvesting room is approximately $49,050. They can realize up to $49,050 of long-term capital gains from their taxable portfolio at zero federal tax. This could be used to sell appreciated positions in the taxable account, buy them back immediately (no wash sale rule applies to gains), and permanently reset the cost basis to the current market value.
The benefit of harvesting gains in the 0% bracket is the permanent reset of the cost basis. If a position purchased for $10,000 is now worth $50,000, it carries $40,000 of embedded gain. Selling in the 0% bracket and immediately rebuying at the current $50,000 price resets the basis to $50,000. When the position is eventually sold in a future year at, say, $70,000, only the $20,000 gain above the new $50,000 basis is taxable, rather than the full $60,000 gain that would have been taxable without the harvest.
If the position is eventually inherited by heirs who receive a step-up in basis to the date-of-death value, the harvesting benefit is partially duplicated: both the harvest and the eventual step-up reset the basis. But for positions likely to be sold during the retiree's lifetime, the 0% bracket harvest is a concrete and valuable tool.
Capital gains realizations, even at the 0% rate, add to combined income for purposes of Social Security taxability and IRMAA calculations. A married couple who realize $50,000 of capital gains at 0% federal tax may still push their combined income above the Social Security taxability threshold, causing a larger fraction of Social Security benefits to become federally taxable. They may also push MAGI above an IRMAA tier, triggering Medicare premium surcharges.
These interactions create multiple constraints that must be managed simultaneously in the capital gains harvesting decision. The relevant thresholds for Social Security taxability, the IRMAA tiers, the NIIT threshold, and the 0% gains bracket ceiling all affect the optimal level of gains to realize in any given year. The harvest that is tax-free at the capital gains level may still have costs at the Social Security or IRMAA level.
The most favorable window for capital gains harvesting is the period after employment income stops but before Social Security benefits are maximized and before required minimum distributions begin. During this window, which may span several years or a decade, ordinary income is at its lowest since early in the career. This creates maximum room in the 0% bracket for capital gains harvesting.
A couple who retire at 65, delay Social Security to 70, and don't have large pre-tax IRA distributions before 73 may have five to eight years of relatively low ordinary income. Systematically harvesting gains throughout this window can eliminate most of the embedded gains in a substantial taxable portfolio at zero federal tax cost, dramatically reducing the future tax burden from the taxable account.
Capital gains harvesting and Roth conversions occupy the same income space. Roth conversions are ordinary income, not capital gains, but they use the same MAGI that determines the 0% bracket ceiling and IRMAA thresholds. In a year with significant Roth conversion income, less room may remain for capital gains harvesting. In a year with minimal Roth conversion, more room is available for gains.
The optimal coordination between gains harvesting and Roth conversions depends on the relative benefits of each in the specific year, the size of the taxable account gains available for harvesting, and the available bracket room. Some years, prioritizing Roth conversions makes more sense because the bracket room is better used for conversions that permanently reduce future RMDs. In other years, capital gains harvesting is the priority because the taxable account basis reset provides greater long-term value.
Michael Kitces has written extensively on capital gains harvesting as a tax planning strategy for retirees. His analysis quantifies the benefit of systematic gains harvesting during the 0% bracket window and shows that the strategy can produce after-tax wealth improvements that are comparable to or exceed those from other planning strategies like tax-loss harvesting, particularly for retirees with large embedded gains in taxable portfolios.
Kitces's work also addresses the interaction between gains harvesting, Social Security taxability, and IRMAA, providing frameworks for determining the optimal level of gains to realize in any given year after accounting for all the relevant threshold effects.
Vanguard's tax-efficient investing research addresses the long-term management of cost basis in taxable accounts, including the strategic realization of gains at preferential rates. Their analysis supports systematic gains harvesting as a component of after-tax return optimization, particularly for investors with significant taxable portfolios and the income flexibility to manage within the 0% bracket during retirement.
The wash sale rule, which disallows loss deductions when a substantially identical security is purchased within 30 days of a sale at a loss, does not apply to gains. A retiree can sell an appreciated position, realize the gain at 0% tax, and immediately repurchase the same security to reset the basis. The wash sale restriction applies only when trying to claim a loss, not when realizing a gain. This makes the gains harvesting execution simpler than loss harvesting.
Many retirees are unaware that long-term capital gains can be taxed at 0% in certain income ranges. The 0% bracket is not widely publicized and is underused relative to its availability. Retirees who become aware of it often find that they have had multiple years of 0% bracket room that went unused.
The capital gains are tax-free at the federal income tax level, but they still affect combined income for Social Security taxability and MAGI for IRMAA purposes. Harvesting large gains without modeling the Social Security and IRMAA interactions can produce unintended consequences that partially offset the tax-free gains benefit.
A retiree who maximizes Roth conversions every year without reserving bracket room for capital gains harvesting may miss the harvesting opportunity. The two strategies compete for the same income space, and the optimal allocation between them depends on the specific situation and priorities.
Positions with large embedded gains that are intended to be left to heirs receive a step-up in basis at death, which eliminates the embedded gain without any tax. Harvesting these positions at 0% during lifetime is suboptimal compared to preserving the estate planning benefit of the step-up. Capital gains harvesting is most valuable for positions that will be sold during the retiree's lifetime rather than passed to heirs.
This establishes the opportunity size for the current year's harvesting.
Identifying the highest-priority positions to harvest focuses the strategy on the largest benefit.
This models the full income impact of the proposed harvest, including the non-obvious threshold effects.
This question asks for a prioritization framework based on the specific portfolio and situation.
This coordinates the gains harvesting plan with the estate planning strategy.
The retirement planning calculator at plan.johnkoyle.com was built to model exactly the dynamics discussed in this paper. The retirement calculator at plan.johnkoyle.com projects your income from all sources at each age, including the taxable account draws needed to supplement other income sources. The Withdrawal Strategy tab shows the income composition and tax implications of different withdrawal approaches. For capital gains harvesting planning, the key input is the projected ordinary income in the early retirement years, which determines how much room remains in the 0% bracket. Work with your advisor to use the calculator's income projection as the foundation for identifying the years with the most harvesting opportunity and the specific amount to harvest in each year.
John Koyle, AIF®, is the Co-Founder of Red Cedar Wealth Advisors, headquartered in Pocatello, Idaho. He holds the Accredited Investment Fiduciary (AIF®) designation, awarded by the Center for Fiduciary Studies (Fi360), which signifies completed coursework, a rigorous examination, and ongoing continuing education in fiduciary responsibility and prudent investment practices.
John serves individuals and families in or approaching retirement throughout eastern Idaho, the Pacific Northwest, and across the country via Zoom. Clients work directly with John, not a junior team. Red Cedar Wealth Advisors operates under Osaic Wealth, Inc. (Member FINRA/SIPC) and Osaic Advisory Services, LLC for investment advisory services.
Every client relationship is built on five integrated disciplines. The proportions shift with the client and the moment. The integration is constant. Most of the actual value sits in how these disciplines connect, not in any single one of them.
Retirement planning is a discipline that barely existed a generation ago. For most of modern history, people worked until they physically couldn't and then they died, usually fairly close together. The idea that an individual should spend decades saving, then spend decades drawing down those savings, with a plan that accounts for inflation, taxation, sequence risk, healthcare, longevity, and estate transfer, that's maybe forty years old.
Which means almost nobody your age grew up watching their parents do it properly. There's no cultural muscle memory. The advice industry backfilled that gap with rules of thumb that work sometimes and fail catastrophically the rest of the time. The 4% rule. 'You can take Social Security at 62.' 'Target-date funds will handle it.' These are not bad starting points. They are terrible ending points. Real planning is specific, personal, and built on principles that hold up across the full range of outcomes, not just the average one.
The tax code is a set of instructions Congress wrote to shape behavior. Aligning your financial life with those instructions is not aggressive planning. It is the planning. Roth conversion sequencing, capital gains compression on concentrated positions, charitable remainder trusts, Social Security timing, beneficiary coordination. None of these are obscure. They're all legitimate, all written into the code intentionally, and all under-used. Most CPAs handle compliance. The strategy work is a different discipline entirely.
Seventy percent of family wealth doesn't survive two generations. The reason isn't bad markets. The cause is failure to communicate, outdated documents, and no plan for preparing heirs. Beneficiary designations regularly override well-crafted wills. Trust structures created a decade ago no longer match current law or current family. The portfolio that built the wealth isn't the structure that transfers it. The work here is coordinating with your attorney to align documents, beneficiaries, gifting strategies, and trust funding with what you actually want to happen.
Every week, before any portfolio decision, John runs through four layers of market health: economic conditions, market internals, valuations, and sentiment. Each layer gets scored and those scores combine into a composite that maps directly to a portfolio posture, from aggressive on the positive end to defensive on the negative. The work is in the scoring. Once the scoring is done, the positioning follows. That removes one of the most dangerous things in investing: making it up as you go.
The protection gap quietly kills more plans than markets do. A significant net worth paired with inadequate liability coverage is a lawsuit away from a serious problem. Long-term care is more acute: a multi-year care event for one spouse can consume what was meant for the survivor. Most advisors relegate risk to a footnote because insurance conversations are uncomfortable. The math doesn't care. Coverage adequacy, umbrella sizing, long-term care planning, and life insurance structure sit alongside the portfolio in any complete plan.
These are the principles behind every plan John builds.
To begin a conversation, visit johnkoyle.com, use the retirement planning calculator at plan.johnkoyle.com, or reach John directly at john@redcedarwealth.com or (208) 915-8400. Initial consultations are complimentary and carry no obligation.