FinanceFacts101

Capital Gains Tax on Stocks: The One Day That Costs $1,800

Capital Gains Tax on Stocks: The One Day That Costs $1,800

Selling a $20,000 gain one day before the one-year line costs $1,800 more. The 2026 brackets, the 0% band, lot selection and wash sales, with the math.

You hold 400 shares in a taxable brokerage account, bought October 2, 2025 for $30,000 and worth $50,000 today. On a single filer's $120,000 of taxable income, sell them October 2, 2026 and the capital gains tax on stocks costs $4,800. Sell October 3, 2026 — one calendar day later, same price, same shares — and it costs $3,000. That $1,800 is the subject of this article, and most sellers never check the date.

The rest of the gap between a good sale and an expensive one comes down to five things: which bracket the gain lands in, whether you use the 0% band, whether the 3.8% surtax reaches you, which tax lot your broker sells, and whether a repurchase quietly voids a loss. All figures use tax year 2026 federal rates from IRS Revenue Procedure 2025-32. General information with the assumptions stated, not personal tax advice.

The same twenty thousand dollar gain costs 4,800 dollars in tax sold on October 2, 2026 and 3,000 dollars sold on October 3 — an 1,800 dollar difference for one day
The cost of selling one day early 400 shares bought Oct 2, 2025 at $75 ($30,000 basis), sold at $125 ($50,000) for a $20,000 gain. Single filer, $120,000 taxable income before the gain. 2026 rates per IRS Rev. Proc. 2025-32.

Capital Gains Tax on Stocks: Two Rate Systems, One Date

A capital gain is the sale price minus your cost basis. Which of two separate rate schedules taxes it turns on one yes-or-no question: did you hold the shares more than one year?

Hold for one year or less and the gain is short-term, taxed as ordinary income — stacked on your salary and run through the same 10/12/22/24/32/35/37% brackets that tax your paycheck. Hold for more than one year and it is long-term, taxed through a separate schedule with three rates: 0%, 15% and 20%. No proration, no partial credit for eleven months.

Counting starts the day after purchase, the sale day counts, and long-term status begins the day after the one-year anniversary of the buy
How the holding-period clock is actually counted IRS Publication 550, 'Holding Period', and Rev. Rul. 66-7. Trade date governs, not settlement date.

Who This Is For — and Who It Isn't

This is for someone holding an appreciated stock, ETF or fund in a taxable brokerage account, deciding whether to sell now, wait, or offset the gain against a loss. It assumes a US individual filer with a documented basis.

It is not for holdings inside an IRA, Roth IRA, 401(k) or 403(b). Inside those wrappers there is no capital gains tax at all — no holding period, no lot selection, no wash sales, no 1099-B. Selling every position on one day inside a traditional IRA generates zero tax; what matters is the withdrawal, taxed as ordinary income, which is the subject of Roth vs traditional IRA. It also excludes incentive stock options, section 1202 stock, collectibles at 28%, and the sale of a primary residence.

The One-Year Clock, and Exactly How It Is Counted

The rule trips people because it is off by one in two places at once. Per IRS Publication 550, you begin counting the day after you acquired the property, and the day you dispose of it counts too.

You bought October 2, 2025, so day one of the holding period is October 3, 2025. A sale on October 2, 2026 gives exactly one year — and the statute says more than one year, so that sale is short-term. October 3, 2026 is the first qualifying day. In plain English, "a year and a day": the anniversary plus one, not the anniversary itself.

Two details decide real dollars. The trade date governs, not settlement, so a trade executed October 3 counts even though cash lands October 4. And each purchase has its own clock — one sell order can produce both a short-term and a long-term line on your Schedule D. See IRS Topic 409 and the entry on holding periods.

Short-Term vs Long-Term Capital Gains: The 2026 Brackets

The short-term vs long-term capital gains gap has no fixed size in points, because the two schedules move independently. Here is the 2026 long-term schedule, verified against Revenue Procedure 2025-32 in Internal Revenue Bulletin 2025-45.

For 2026 the 0 percent rate runs to 49,450 dollars single and 98,900 married filing jointly; 15 percent runs to 545,500 and 613,700; above that the rate is 20 percent
2026 long-term capital gains brackets (taxable income) IRS Rev. Proc. 2025-32, section 4.03, published in Internal Revenue Bulletin 2025-45. Figures are for tax year 2026 and are taxable income, i.e. after the standard or itemized deduction. The gain itself stacks on top of your other income to find its bracket.

Read those as taxable income — after your standard deduction ($16,100 single, $32,200 joint for 2026) or itemized deductions. And read them as a stack: ordinary income fills the lower part of the schedule first, and the gain sits on top. A single filer with $40,000 of taxable income and a $20,000 gain does not get 0% on all of it; $9,450 fits under the $49,450 ceiling at 0%, and the remaining $10,550 is taxed at 15%.

The 2026 ordinary brackets taxing short-term gains run 10% to $12,400, 12% to $50,400, 22% to $105,700, 24% to $201,775, 32% to $256,225, 35% to $640,600 and 37% above, for a single filer — roughly double for joint filers.

How Much Tax You Pay When You Sell Stock: Three Worked Cases

To see how much tax you pay when you sell stock, run the same $20,000 gain — $30,000 basis, $50,000 sale — through three taxpayers.

Single, $120,000 of taxable income. Short-term, the gain stacks from $120,000 to $140,000, entirely inside the 24% band: $4,800. Long-term, the same slice sits in the 15% band: $3,000. One-day difference: $1,800.

Married joint, $60,000 of taxable income. Short-term, the gain runs from $60,000 to $80,000 in the 12% ordinary band: $2,400. Long-term, all of it sits below the $98,900 zero-rate ceiling — the tax is $0. The long-term bill is not merely lower, it is nothing.

Married joint, $500,000 of taxable income. Short-term, the gain straddles the 32% and 35% bands ($12,450 at 32%, $7,550 at 35%) for $6,627, plus $760 of net investment income tax: $7,387. Long-term, 15% ($3,000) plus the same $760: $3,760. One-day difference: $3,627.

The one-day difference is 2,400 dollars for the 60,000 dollar joint filer, 1,800 for the 120,000 dollar single filer, and 3,627 for the 500,000 dollar joint filer
Tax on the same $20,000 gain, short-term vs long-term $30,000 basis, $50,000 sale, $20,000 gain. Taxable income is before the gain. 2026 federal rates per Rev. Proc. 2025-32, including the 3.8% NIIT where modified income exceeds $250,000 (joint) or $200,000 (single). Federal only; state tax is extra.

The gap is not a constant. It is the distance between your ordinary marginal rate and your long-term rate at that income, widest where the 35% ordinary rate has kicked in but the 20% long-term rate has not.

The short-term rate climbs from 12 to almost 39 percent while the long-term rate steps 0, 15, then 20 percent; the widest gap, about 20 points, hits between 250,000 and 400,000 dollars of income
Effective tax rate on a $20,000 gain as income rises Single filer, 2026 rates, $20,000 gain stacked on the taxable income shown, including the 3.8% NIIT above $200,000 modified income. Computed from Rev. Proc. 2025-32 bracket tables.

Run your own basis, sale price, income and filing status through the capital gains tax calculator, which applies these brackets and the surtax side by side.

The Crossover: How Far the Price Can Fall While You Wait

Waiting for long-term treatment is not free: you accept market risk on the whole position to save tax on the gain. So how big a drop erases the saving?

For the single filer above, selling short-term today nets $45,200 after $4,800 of tax. Waiting and selling later at price P nets P minus 15% of (P − $30,000). Setting those equal gives a break-even price of $47,882 — a 4.2% decline. Above that, waiting still pays; below it, you should have sold.

Waiting for long-term treatment still pays as long as the position does not fall more than about 4.2 percent
How far the price can fall while you wait Single filer, $120,000 taxable income, $30,000 basis, $50,000 current value. Selling short-term nets $45,200 after $4,800 of tax; waiting and selling long-term at price P nets P minus 15% of (P − $30,000). Break-even at P = $47,882.

The cushion scales with the rate gap you are protecting: the joint filer at $500,000 can absorb about an 8.9% fall, protecting a 36.9% effective rate rather than a 24% one. Three weeks of single-stock volatility can easily exceed 4.2%; three weeks of broad-index volatility usually does not. Size the risk before the tax — the investment return calculator and CAGR calculator show what the position has done.

The 0% Bracket Is the Most Under-Used Number in Retail Investing

A long-term gain landing under the zero-rate ceiling is taxed at zero. Not deferred, not reduced — zero federal tax, permanently.

A married couple whose only income is long-term gains can realize 131,100 dollars in 2026 and owe zero federal tax; a single filer 65,550 dollars
The 0% bracket ceiling in 2026 2026 standard deduction ($16,100 single, $32,200 joint) plus the maximum zero-rate amount ($49,450 and $98,900), both from Rev. Proc. 2025-32. Assumes long-term gains are the only income and the standard deduction is taken.

The ceiling is larger than most people assume, because the standard deduction sits underneath it. A married couple whose only 2026 income is long-term gains can realize $131,100 — the $32,200 standard deduction plus the $98,900 zero-rate amount — and owe no federal tax. For a single filer that figure is $65,550.

Who lands there? Early retirees living on cash before Social Security starts, someone between jobs, a couple in the gap year before required minimum distributions, a business owner in a loss year. In each case the 0% band is open, and unless someone deliberately uses it, it expires on December 31.

Gain Harvesting: Resetting Your Basis at Zero Cost

The mirror image of loss harvesting, and far less known. Sell an appreciated position, realize a long-term gain that fits your 0% room, pay no tax, and buy straight back. Your new basis is the higher price, and you have permanently erased that much future gain.

A retired couple with 60,000 dollars of taxable income has 38,900 of zero-rate room, worth 5,835 dollars of avoided future tax each year they use it
Gain harvesting: 0% room by situation, 2026 Room = the filing status's zero-rate ceiling minus taxable income before the gain (Rev. Proc. 2025-32). Future saving assumes the harvested basis step-up avoids a later 15% federal rate. Ignores ACA premium subsidies, Social Security taxation and state tax, all of which can claw back part of the benefit.

The wash sale rule does not interfere, because it applies only to losses — you may repurchase the identical security the same minute. A retired couple with $60,000 of taxable income has $38,900 of room; harvest it five years running and they reset basis on $194,500 of gains, avoiding roughly $29,175 of tax they would otherwise owe at 15%.

Three cautions. Realized gains raise your AGI, which can shrink an ACA premium credit, push more Social Security into taxable income, or trigger a phase-out — a "free" harvest can cost more sideways than it saves. Your state may tax the gain even where the federal rate is 0%. And harvest against year-end income you actually know, or you overshoot and pay 15% on the overflow.

The 3.8% Surtax Sitting on Top of Both Rates

The 0/15/20% schedule is not the whole federal bill for higher earners. The Net Investment Income Tax adds 3.8% on the lesser of your net investment income and the amount by which your modified AGI exceeds $200,000 (single or head of household), $250,000 (joint) or $125,000 (married filing separately).

A 3.8 percent net investment income tax applies above 200,000 dollars of modified AGI single and 250,000 joint, and those thresholds never rise with inflation
The surtax that sits on top of both rates IRS, Net Investment Income Tax (Topic 559 and Form 8960). The thresholds are statutory and are NOT indexed for inflation — they have been the same since 2013.

It applies to short-term and long-term gains equally, which is why the real top long-term federal rate is 23.8%, not 20%. The thresholds are statutory and have never been indexed — they are the same numbers as in 2013 — so each year of wage growth pulls more sellers across the line. If you are near a threshold, splitting a large sale across two calendar years can keep part of the gain out of the surtax; the take-home pay calculator shows where your ordinary income leaves you before you add the gain.

Cost Basis: FIFO by Default, Specific ID Only If You Ask

If you bought in pieces, you own several tax lots with different basis and holding periods — and you choose which you sell, but only if you say so.

Selling 100 shares FIFO realizes an 8,500 dollar long-term gain, while identifying the newest lot realizes a 2,000 dollar short-term loss instead
The same 400 shares, bought in three lots Illustrative lots totalling $30,000 of basis and $50,000 of value at $125 a share. Broker default is FIFO unless you identify specific shares at or before the trade; IRS Publication 550, 'Identification not possible'.

Publication 550 is blunt about the default: if you cannot adequately identify the shares sold, "the basis of the securities you sell is the basis of the securities you acquired first." FIFO sells your oldest, cheapest, largest-gain shares first. To override it, tell your broker which lot to sell at or before the trade and get written confirmation — an instruction after execution does not count.

Choosing the lot turns a 1,275 dollar tax bill into a 480 dollar tax saving — a 1,755 dollar swing on an identical 12,500 dollar sale
Selling 100 shares: FIFO vs specific identification Same $12,500 sale, single filer at 15% long-term / 24% ordinary. FIFO sells Lot A: $8,500 long-term gain, $1,275 tax. Specific ID of Lot C: $2,000 short-term loss, worth $480 against ordinary income. Swing = $1,755.

Sell 100 shares for $12,500 under FIFO and you dispose of Lot A: an $8,500 long-term gain, $1,275 of tax. Identify Lot C instead and you realize a $2,000 short-term loss worth $480 against ordinary income at 24%. Same cash, same day, same security — a $1,755 swing decided by a dropdown menu. Most brokers default to FIFO but let you change the account's lot method in settings. The entry on cost basis covers record-keeping.

The Wash Sale Rule Runs 61 Days, Not 30

Harvesting a loss is only useful if the loss survives. Publication 550 defines a wash sale as selling securities at a loss where, "within 30 days before or after the sale," you buy substantially identical securities, acquire an option to buy them, or buy them inside your IRA or Roth IRA.

Buying a substantially identical security in the 30 days before or the 30 days after a loss sale disallows the loss and rolls it into the new shares' basis
The wash sale window is 61 days wide, not 30 IRS Publication 550, 'Wash Sales'. The rule reaches purchases by your spouse, by a corporation you control, and into your IRA or Roth IRA — where the disallowed loss is lost permanently rather than added to basis.

The half people forget is the 30 days before. An automatic monthly purchase three weeks ago is enough to disallow a loss you take today. So is dividend reinvestment, and so is a purchase by your spouse in a separate account or by a corporation you control (investor.gov's summary is the short version).

Trigger it and the loss is deferred, not destroyed: it is added to the replacement shares' basis and the old holding period carries over. One exception matters — repurchase inside an IRA and the disallowed loss is gone permanently, with no basis adjustment to recover it. "Substantially identical" has no bright line for funds; two S&P 500 index funds from different sponsors are widely treated as risky, while swapping a total-market fund for a large-cap fund is the conservative move — see index funds vs ETFs and the wash sale rule.

Losses: Full Offset, Then a $3,000 Ceiling, Then Carryforward

Capital losses net against capital gains without limit — short against short and long against long first, then across. A $20,000 loss cancels a $20,000 gain completely, which is why harvesting a loss in the same year you sell an appreciated position beats harvesting it in isolation.

What is capped is the leftover. If losses exceed gains, you may deduct up to $3,000 a year against ordinary income ($1,500 if married filing separately), and the rest carries forward indefinitely. A $20,000 net loss with no gains to absorb it takes nearly seven years to use:

YearDeductedRemainingSaved at 24%
1–6$3,000 each$2,000 after year 6$720 each
7$2,000$0$480

That is $4,800 of benefit spread over seven years, versus $3,000 cancelled immediately if the loss meets a matching gain. Carryforwards never expire, but they are worth less the longer they sit — and they vanish at death. Tracking them is covered in capital loss carryover and tax-loss harvesting; everything is reported on Form 8949 and summarized on Schedule D.

Fund Distributions Tax You in a Year You Sold Nothing

Here is the bill that arrives unrequested. When a mutual fund sells appreciated holdings inside the portfolio, it must distribute the realized gains — and Publication 550 is explicit that you "report capital gain distributions as long-term capital gains, regardless of how long you owned your shares in the mutual fund."

You did not sell. You may have bought the fund in November. It still lands in box 2a of your 1099-DIV, taxed at your long-term rate. On a $50,000 position, a fund distributing 8% of net asset value hands you a $4,000 long-term gain and a $600 federal bill at 15% with nothing added to your pocket — the share price drops by the distribution on the ex-date.

This is the largest tax difference between fund structures in a taxable account, and why the choice in index funds vs ETFs is not cosmetic: in-kind redemption means most broad-market ETFs distribute no capital gains at all in a typical year, while a high-turnover active fund can distribute 10% or more of NAV. Reinvested distributions buy new shares with their own basis and holding period, and dividends run on a separate track — see qualified dividends and how mutual funds distribute gains.

State Tax: The Second Bill Nobody Budgets For

Every federal figure here is only part of the bill. Most states with an income tax treat capital gains as ordinary income with no preferential rate — California taxes them through brackets topping 13%, so a Californian in the 15% federal band faces a combined rate nearer 24%.

Nine states levy no broad individual income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington and Wyoming. Washington is the asterisk — no wage income tax, but a separate 7% excise tax on long-term capital gains above an inflation-indexed standard deduction of $278,000 for 2025, with a higher tier above $1 million of taxable gain, per the Washington Department of Revenue. Check your own state's schedule before assuming the federal number is the number, and note that residency on the sale date generally decides who taxes you.

Putting It Together: A Sequence, Not a Rule

The order of operations for an appreciated taxable position:

  1. Check the purchase date first. If long-term status is weeks away and the position is not falling, wait — the cushion above was 4.2%.
  2. Estimate this year's taxable income before the gain. That number decides 0%, 15% or 20%, and whether the surtax reaches you.
  3. If there is 0% room, use it. Harvest up to the ceiling, rebuy immediately, reset basis.
  4. Choose the lot before you place the order. Specific identification costs nothing and can be worth four figures.
  5. Look for losses elsewhere to net against the gain, checking the 30 days before as well as after any repurchase.
  6. Split large sales across calendar years if that keeps you under a bracket or surtax threshold.
  7. Add your state's rate, then decide.

Re-run it with your own figures in the capital gains tax calculator before placing the trade. The gap between doing this well and doing it by default is measured in thousands, not basis points.

What Deferral Is Actually Worth

One last argument for holding: unrealized gains compound on money you have not yet handed to the IRS. Take the single filer's choice between selling long-term today for $3,000 of tax and simply keeping the position, both compounding at 7% a year for 20 years.

Fifty thousand dollars left invested grows to about 70,881 dollars at five years, 100,483 at ten and 201,937 at twenty
Path A: hold the $50,000 position, pay no tax now $50,000 compounding at 7% a year, monthly, for 20 years. No contributions. 7% is a planning assumption, not a forecast; the embedded gain is still taxable whenever you eventually sell.
The 47,000 dollars left after tax grows to about 66,628 at five years, 94,454 at ten and 189,821 at twenty — 12,116 dollars behind the untaxed path
Path B: sell long-term, pay $3,000, reinvest $47,000 Same 7% annual return, monthly compounding, 20 years, after paying $3,000 of long-term tax on the $20,000 gain (single filer, $120,000 taxable income, 2026 rates).

The untaxed $50,000 reaches about $201,937; the $47,000 left after tax reaches about $189,821. Deferral is worth roughly $12,116 over two decades — real, but bounded, because the tax is postponed rather than cancelled. It is a reason not to churn a portfolio for no purpose, not a reason to hold a position you have decided is wrong: a concentrated holding that falls 30% costs far more than the tax it avoided. One exception — assets held until death currently receive a stepped-up basis, which makes the deferral permanent for heirs.

FAQ

Does the one-year clock start on the trade date or the settlement date?

Trade date. The holding period begins the day after your purchase's trade date and includes your sale's trade date. Settlement (currently T+1 for US equities) does not enter the calculation, so a sale executed on the first qualifying day is long-term even though cash arrives the next business day.

If my income is low enough for the 0% rate, do I still report the sale?

Yes. A 0% rate is still a reportable transaction — Form 8949 and Schedule D like any other sale, and your broker files a 1099-B regardless. Reporting it also establishes your new, higher basis if you harvested the gain deliberately.

Can I dodge the wash sale rule by selling in my taxable account and rebuying in my IRA?

No — that is the worst version of the trade. Publication 550 explicitly covers buying substantially identical stock in your IRA or Roth IRA within the window, and unlike an ordinary wash sale the disallowed loss is not added to the replacement shares' basis. It is simply lost.

Do gains inside my 401(k) or IRA get taxed at these rates?

No. Sales inside a tax-deferred or Roth account generate no capital gains tax, no holding period requirement and no wash sale exposure. Traditional accounts tax withdrawals as ordinary income; qualified Roth withdrawals are tax-free. The 0/15/20% schedule applies only to taxable accounts.

What happens to a capital loss carryforward I never use?

It carries forward indefinitely, offsetting future capital gains in full and up to $3,000 of ordinary income a year. It does not transfer to heirs and is extinguished at death — an argument for realizing gains against it rather than draining it $3,000 at a time.

Sources

Next entry · No. 5,944When to Claim Social Security: Break-Even at 62, 67 and 70

See also