Capital Gains Tax: Smart Strategies to Lower Your Bill

Capital gains tax can be reduced through smart timing, loss harvesting, and tax advantaged accounts, helping investors legally minimize what they owe on profits.

,

Selling an investment that has done well feels like a win, until the tax bill arrives. For many Americans, capital gains tax is a financial reality that often becomes clear only after the fact, when the damage is done and options are limited.

What most investors do not realize is that the U.S. tax code is built to reward people who plan ahead. The difference between paying 37% and paying nothing on investment profits can come down to holding an asset for a few extra weeks, selling in the right year, or simply understanding how the system is structured.

The strategies covered here are legal, widely used, and accessible, even for investors who are not financial experts. From timing a sale to harvesting losses and choosing the right accounts, there is more room to maneuver than most people expect.

A capital gains tax scene with a homeowner handing keys to another person outside a small house.

How Capital Gains Tax Actually Works

Before diving into strategy, it helps to understand the basics. A capital gain occurs when someone sells an asset (such as a stock, a piece of real estate, or a mutual fund) for more than they originally paid. The IRS taxes that profit, and the rate depends heavily on one key variable: the holding period.

Short-Term vs. Long-Term Rates

Assets held for one year or less generate short-term capital gains, which are taxed at ordinary income rates, potentially as high as 37%. Assets held for more than one year qualify for long-term rates, which currently sit at 0%, 15%, or 20%, depending on total taxable income.

That gap is significant. An investor in the 24% income bracket who sells appreciated stock after 11 months owes 24% on the gain. If they wait just two more months, the same gain is taxed at 15%. For a $50,000 gain, that is a $4,500 difference from one simple decision.

Additionally, the cost basis (the original purchase price of the asset) plays a central role. The taxable gain is the difference between the sale price and the cost basis, so anything that raises the basis reduces the tax owed.

Six Strategies to Reduce What You Owe

Most investors pay more in investment taxes than required, not because of mistakes, but because timing and structure are critical. These strategies address the most common and impactful decision points.

1. Hold Investments Past the One-Year Mark

The simplest and most universally applicable move is also the most overlooked. Holding an asset for more than one year before selling converts a short-term gain into a long-term one, unlocking significantly lower federal tax rates. This single decision can produce substantial tax savings, particularly for higher earners subject to the top ordinary income brackets.

Before selling any appreciated position, it is worth checking the holding period. Many brokerage platforms display this clearly by lot. If a position is within a few weeks or months of the one-year mark, waiting can save a meaningful amount without any additional complexity.

2. Time Gains Around Income Levels

Long-term capital gains tax rates are tied to total taxable income. For 2024, the 0% federal rate applies to married couples filing jointly with taxable income at or below $94,050.

That means a couple with modest income in a given year, perhaps in early retirement or between jobs, could potentially realize long-term gains and owe nothing to the federal government.

This strategy, sometimes called gain harvesting, involves deliberately selling appreciated positions in lower-income years and then immediately repurchasing them. The result is a permanently higher cost basis with zero federal tax owed on the gain. It is legal, IRS-approved, and surprisingly underused.

Spreading large gains across multiple tax years is another variation. Instead of selling an entire appreciated position at once, which could push you into a higher bracket, selling in portions across two or three calendar years can keep the tax rate lower.

3. Use Tax-Loss Harvesting to Offset Gains

Tax-loss harvesting is the practice of selling underperforming investments at a loss to offset gains elsewhere in the portfolio. Short-term losses first offset short-term gains (the most expensive kind), while long-term losses offset long-term gains.

If an investor realizes a $40,000 gain in one stock and a $50,000 loss in another during the same tax year, the loss eliminates the gain entirely. The remaining $10,000 of excess losses can then be used to reduce ordinary taxable income, although the IRS caps this deduction at $3,000 per year. Any remaining losses carry forward to offset future gains.

One important rule to keep in mind is the wash-sale rule. The IRS disallows a claimed loss if the same or a “substantially identical” investment is repurchased within 30 days before or after the sale.

However, you can sell one S&P 500 fund and immediately buy a similar but distinct index fund to maintain market exposure while preserving the tax benefit.

4. Donate Appreciated Assets to Charity

For investors who give to charity, donating appreciated assets directly, rather than selling them first and donating the cash, removes the capital gains tax from the equation entirely.

When a stock or mutual fund held for more than one year is donated to a qualified charity, the donor avoids paying tax on the appreciation and can receive a deduction for the full fair market value.

A donor-advised fund can also be useful here. Investors can transfer appreciated assets into the fund, receive an immediate tax deduction, and then direct grants to specific charities over time.

5. Prioritize Tax-Advantaged Accounts

Capital gains generated inside a Roth IRA are never taxed, either when realized within the account or withdrawn in retirement, assuming qualification requirements are met. This makes Roth accounts particularly powerful for high-growth assets that are likely to generate large future gains.

Traditional IRAs and 401(k)s defer taxes on gains until withdrawal, at which point they are taxed as ordinary income. While this loses the preferential long-term rate, decades of tax-free compounding often outweigh the final tax cost.

Strategic asset location (placing the highest-growth investments in tax-advantaged accounts and lower-turnover holdings in taxable accounts) can meaningfully reduce the overall tax burden over time.

6. Leverage the Step-Up in Basis Through Estate Planning

One of the most powerful features of the tax code involves inherited assets. When an asset passes to a beneficiary through an estate, its cost basis is reset to fair market value on the date of the original owner’s death. All capital gains that accrued before that date are permanently eliminated, not just deferred.

For example, an investor who bought a stock for $80,000 that has grown to $300,000 would owe tax on a $220,000 gain if they sold it. If that asset is instead held until death and inherited, the new cost basis becomes $300,000. The beneficiary could then sell it and owe little or no capital gains tax. This makes highly appreciated assets strong candidates for estate transfer instead of a lifetime sale.

A Quick Comparison: Key Strategies at a Glance

Each strategy serves a different situation, income level, and timeline. The table below captures the core details to make comparing them easier.

StrategyBest ForKey RequirementTax Outcome
Hold past one yearAll investors365+ day holding periodReduces rate from up to 37% to 0–20%
Gain harvesting at 0%Lower-income yearsTaxable income below thresholdZero federal tax on long-term gains
Tax-loss harvestingInvestors with mixed portfoliosExisting unrealized lossesOffsets gains dollar-for-dollar
Donating appreciated assetsCharitable investorsAssets held 1+ yearEliminates capital gains + deduction
Tax-advantaged accountsLong-term growth investorsContribution limits applyDeferred or permanently tax-free
Step-up in basisEstate planningAsset held until deathPermanently eliminates accrued gains
You May Also Like

The Hidden Cost Most Investors Never See Coming

Beyond the federal tax bill, large capital gains can trigger a chain reaction that catches many investors, especially those approaching retirement, completely off guard.

Selling a highly appreciated asset in a single year can spike income sharply, pushing a retiree into Medicare’s Income-Related Monthly Adjustment Amount (IRMAA) brackets.

IRMAA adds surcharges to Medicare Part B and Part D premiums based on income from two years prior. These surcharges can push monthly Part B premiums from around $175 to nearly $600, a difference of thousands of dollars per year. The consequence lingers only for the year the income was elevated, but the surprise can be severe if it was not anticipated.

Spreading gains across multiple years, or timing the sale of a major asset for a year with lower overall income, can help avoid this outcome. Planning two to three years ahead of Medicare eligibility gives investors the most flexibility.

When Selling Your Home Factors In

For homeowners, the home sale exclusion under IRS Section 121 provides one of the most generous tax breaks available. Married couples filing jointly can exclude up to $500,000 of gain from the sale of a primary residence, while single filers can exclude up to $250,000.

To qualify, you must have owned and used the home as a primary residence for at least two of the last five years.

Beyond the exclusion, tracking home improvement costs is crucial. Qualifying improvements, such as a new roof or a kitchen remodel, increase the home’s cost basis, which reduces the taxable gain dollar for dollar. Keeping records from the beginning of homeownership can save a meaningful amount when it is time to sell.

For situations where the gain exceeds the exclusion, particularly in markets with significant home price appreciation, pairing the exclusion with other strategies can further reduce tax exposure.

Bringing It All Together

No single strategy works for everyone, and the most effective approach often combines two or three methods tailored to a specific income level, timeline, and financial goal.

For example, a retiree might harvest gains at the 0% rate while also donating appreciated stock to charity. A younger investor might focus on account location and long holding periods.

The common thread is that all these decisions must happen before the taxable event, not after. Once an asset is sold, the options narrow dramatically. A forward-looking tax plan, ideally developed with a professional who understands your full financial picture, is what separates those who pay what the law requires from those who pay more than they need to.

Managing investment taxes does not require complexity, just careful attention to timing, structure, and the moments that shape the final bill.

Ultimately, capital gains tax is a consequence of investment success. Paying some tax is often unavoidable, but paying more than necessary is not. The most successful investors are not always those with the highest returns, but those who treat tax planning as an integral part of their financial strategy, not an afterthought.

Watch this video to learn smart strategies to lower your capital gains tax bill.

Frequently Asked Questions

What is the purpose of tax-loss harvesting?

Tax-loss harvesting aims to reduce overall tax liability by offsetting capital gains with losses from underperforming investments.

How does the holding period affect capital gains tax?

The holding period significantly impacts the tax rate; assets held for over a year are taxed at lower long-term capital gains rates, while shorter holdings incur higher ordinary income rates.

What role do qualified charities play in capital gains tax savings?

Donating appreciated assets to qualified charities allows donors to avoid capital gains tax while receiving a deduction based on the asset’s fair market value.

How does the step-up in basis benefit estate planning?

The step-up in basis resets the value of inherited assets to their fair market value at the time of the original owner’s death, eliminating tax on appreciation accrued during ownership.

What strategy can help lower Medicare premiums related to capital gains?

Spreading capital gains over multiple years can help avoid triggering Medicare’s income surcharges, keeping monthly premiums lower.
Maria Eduarda

Maria Eduarda


Linguist with a postgraduate degree in UX Writing and currently pursuing a master's degree in Translation and Text Adaptation at the University of São Paulo (USP). She is skilled in SEO, copywriting, and text editing. She creates content about finance, culture, literature, and public exams. Passionate about words and user-centered communication, she focuses on optimizing texts for digital platforms.

Disclaimer Under no circumstances will Doloru require you to pay in order to release any type of product, including credit cards, loans, or any other offer. If this happens, please contact us immediately. Always read the terms and conditions of the service provider you are reaching out to. Doloru earns revenue through advertising and referral commissions for some, but not all, of the products displayed. All content published here is based on quantitative and qualitative research, and our team strives to be as impartial as possible when comparing different options.

Advertiser Disclosure Doloru is an independent, objective, advertising-supported website. To support our ability to provide free content to our users, the recommendations that appear on Doloru may come from companies from which we receive affiliate compensation. This compensation may impact how, where, and in what order offers appear on the site. Other factors, such as our proprietary algorithms and first-party data, may also affect the placement and prominence of products/offers. We do not include all financial or credit offers available on the market on our site.

Editorial Note The opinions expressed on Doloru are solely those of the author and do not represent the views of any bank, credit card issuer, hotel, airline, or other entity. This site is not part of any of the institutions mentioned and does not represent them, and its content has not been reviewed, approved, or endorsed by them. However, the compensation we receive from our affiliate partners does not influence the recommendations or advice our editorial team provides in our articles, nor does it affect the editorial content of this site. While we strive to provide accurate and up-to-date information that we believe is relevant to our users, we cannot guarantee that the information provided is complete and make no representations or warranties regarding its accuracy or applicability.

Loan terms: 12 to 60 months. APR: 0.99% to 9% based on the selected term (includes fees, per local law). Example: $10,000 loan at 0.99% APR for 36 months totals $11,957.15. Fees from 0.99%, up to $100,000.