Capital Gains: Why One Extra Month of Holding Can Nearly Halve Your Tax Bill
Selling an investment for a profit feels like a single, simple event, but the tax code treats that same dollar of profit very differently depending on one binary fact: whether you held the asset for more than a year. Getting the holding period wrong by a matter of days can mean paying close to double the tax rate on an identical gain.
The core principle
A capital gain is the profit realized when you sell an investment for more than its cost basis, the amount you originally paid, including commissions and adjusted for reinvested dividends over time. The formula is simple: gain = sale price - cost basis. What complicates it is the tax code's sharp distinction based on holding period.
Hold the asset one year or less and the profit is a short-term capital gain, taxed at your ordinary income tax rate, the same bracket that applies to your salary. Hold it more than one year and the profit becomes a long-term capital gain, taxed in the US at preferential federal rates of 0%, 15%, or 20% depending on total taxable income, with a possible additional 3.8% net investment income tax for higher earners above statutory thresholds. The gap between these two tax treatments, for a high-earning professional, is often 15 to 20 percentage points on the exact same dollar of profit.
Cost basis itself deserves care. It is not simply the purchase price; it includes commissions paid at purchase, and for funds that automatically reinvest dividends, each reinvested dividend purchase adds its own layer of basis at its own price, meaning a position built over many years has many separate purchase lots, each with its own cost basis and its own holding-period clock, unless you elect a method like average cost basis to simplify the bookkeeping.
How the math works
Example 1: the cost of selling one month too early. You buy a stock for $10,000 and sell it for $14,000, a $4,000 gain. If you held it for 11 months and fall in the 32% federal marginal tax bracket, the gain is short-term, taxed as ordinary income: $4,000 times 0.32 = $1,280 in federal tax owed. If instead you had waited one additional month, crossing the one-year mark, the identical $4,000 gain becomes long-term, taxed at, say, a 15% preferential rate: $4,000 times 0.15 = $600. That single extra month of patience is worth $680 in this example, roughly 17% of the entire gain, for no change in the investment decision itself, only its timing.
Example 2: a high earner facing the net investment income tax. A high-earning professional with modified adjusted gross income above the applicable threshold ($200,000 single, $250,000 married filing jointly) sells a long-held stock position for a $50,000 long-term gain. At the top long-term capital gains rate of 20%, federal tax is $50,000 times 0.20 = $10,000. The 3.8% net investment income tax adds $50,000 times 0.038 = $1,900, bringing the effective federal rate to 23.8% and the total federal tax to $11,900. Add a state tax, commonly in the range of 5% to 10% in many states with no preferential capital gains treatment, and the all-in tax on this single sale can approach 28% to 34% of the gain, a meaningful bite that makes tax-loss harvesting and careful sale timing genuinely worthwhile at this income level.
How it shows up in real portfolios
For most long-term investors holding broad index funds in a taxable brokerage account, capital gains only become a live concern at the point of sale, whether to rebalance, fund a major purchase, or simply take profits. The most common, avoidable mistake at this stage is not checking the exact purchase date before selling a position that is close to, but has not yet crossed, the one-year mark.
Capital losses provide a genuine, useful counterbalance. Losses offset gains dollar for dollar in the same tax year, and once losses exceed gains, up to $3,000 of the excess can offset ordinary income each year, with any remaining loss carried forward indefinitely to future tax years. An investor who realized a $20,000 gain on one position and a $15,000 loss on another in the same year owes tax on only the net $5,000, a strategy commonly called tax-loss harvesting when executed deliberately around year-end.
Assets held inside tax-advantaged accounts, a 401(k), traditional IRA, or Roth IRA, sidestep this entire calculation during the holding period: capital gains inside these accounts are not taxed annually or even at the point of an internal sale, only, in the case of traditional accounts, when money is eventually withdrawn, and taxed then as ordinary income rather than as a capital gain, an important distinction for a high earner planning withdrawal sequencing in retirement, since it can make the tax treatment inside a traditional account less favorable than a taxable account's long-term capital gains rate for that specific piece of the calculation.
Estate planning introduces one more dimension worth knowing, since it can change the calculus around holding appreciated assets for decades rather than selling earlier. In the US, assets held until death generally receive a step-up in basis, meaning an heir's cost basis resets to the asset's fair market value on the date of death, erasing the embedded capital gain entirely for tax purposes. A stock bought decades ago for $20,000, now worth $500,000, would ordinarily trigger tax on a $480,000 gain if sold by the original owner; if instead it passes to an heir at death, the heir's basis becomes $500,000, and the entire $480,000 of appreciation is never subject to capital gains tax at all. This single rule is one of the more powerful, if somewhat morbid, arguments in favor of holding highly appreciated positions rather than selling them purely to diversify late in life, particularly for investors with a clear intention to pass assets to heirs.
Actionable breakdown
- Check the exact purchase date before selling a position near one year.
- Include commissions and reinvested dividends in cost basis calculations.
- Use capital losses to offset gains before year end.
- Up to $3,000 of net losses can offset ordinary income yearly.
- Unused losses carry forward indefinitely to future tax years.
- Watch the net investment income tax threshold at high income levels.
- Remember state taxes generally apply regardless of federal holding period.
- Confirm gains inside tax-advantaged accounts follow different rules entirely.
Specific identification of shares, an alternative to average cost basis, deserves mention here since it gives an investor meaningful control at the moment of sale. When selling only part of a position built from multiple purchase lots at different prices and dates, an investor using specific identification can choose to sell the highest-cost lots first, minimizing the reported gain, or specifically select long-term lots over short-term ones to secure the preferential rate, rather than defaulting to a first-in-first-out method that may not produce the most favorable tax outcome. Brokerages generally allow this election at the time of trade, and it costs nothing extra to use, making it one of the simpler, underused tools available to a taxable-account investor selling a partial position.
Common pitfalls
- Selling one day too early and missing the long-term rate by hours. Check the exact settlement date and holding period before finalizing a sale near the one-year mark.
- Forgetting reinvested dividends raise cost basis. Using only the original purchase price overstates the taxable gain and results in overpaying tax.
- Ignoring state taxes. Most states tax capital gains as ordinary income regardless of the federal holding period distinction, and this is easy to overlook when focused only on federal rates.
- Selling purely to avoid a tax bill. Letting tax considerations override sound portfolio decisions, sometimes called "the tax tail wagging the investment dog," can cost more in poor allocation than it saves in tax.
Related concepts
Capital gains connect directly to Capital loss, Cost basis, Holding period, Net investment income tax (NIIT), and Qualified dividend. For the full picture of tax-efficient investing, see the guides on tax efficiency and high-income tax strategy.
The bottom line
Before selling a winning investment, check the exact purchase date, because crossing the one-year mark can meaningfully cut the tax owed on the exact same dollar of profit.