Dana bought $24,000 of a single stock on March 10, 2025. By February 2026 the position is worth $54,000, a $30,000 gain. She is single, earns a $120,000 salary, and has no other income or deductions beyond the standard deduction. She can sell now, at about 11 months, or wait until April 2026, at about 13 months.
To isolate the tax effect, this example holds the share price fixed at $54,000 in both cases. The only thing that changes is the sale date. All figures below come from the Capital Gains Tax Calculator, which uses the IRS figures for tax year 2026, and were checked by hand.
Where the one-year line actually falls
The IRS rule in Publication 550 is that property held more than 1 year produces a long-term gain, and property held 1 year or less produces a short-term gain. You start counting on the day after you acquired the property, and the day you sell counts as part of the holding period. For stocks traded on an exchange, Publication 550 says the holding period starts the day after the trade date of the purchase and ends on the trade date of the sale. The settlement date does not matter.
For Dana, counting starts on March 11, 2025. A sale on March 10, 2026 is exactly one year, which is not more than one year, so it is still short-term. The first trade date that qualifies as long-term is March 11, 2026. A February sale is short-term. An April sale is long-term.
The one input people get wrong: taxable income
The calculator asks for “Other taxable income this year”, which is not the same as salary. For 2026 the IRS standard deduction for a single filer is $16,100, so Dana enters:
$120,000 salary minus $16,100 standard deduction = $103,900 of taxable income before the gain.
The gain then stacks on top of that $103,900. Where it lands in the bracket table decides the tax.
Sold at 11 months: taxed as ordinary income
IRS Topic 409 says net short-term gains are taxed as ordinary income at the graduated rates. For a single filer in 2026, the 22% bracket runs up to $105,700 of taxable income and the 24% bracket runs from there to $201,775.
Dana’s income already reaches $103,900, so her $30,000 gain is split like this:
- The first $1,800 fills the rest of the 22% bracket ($105,700 minus $103,900): $1,800 × 22% = $396
- The remaining $28,200 lands in the 24% bracket: $28,200 × 24% = $6,768
- Federal tax on the gain: $7,164
That is 23.9% of the gain, and she keeps $46,836 of the $54,000 sale.

Sold at 13 months: the 15% long-term rate
Long-term gains use a separate rate table. Rev. Proc. 2025-32, the IRS notice with the 2026 inflation adjustments, sets the single filer’s 0% rate for taxable income up to $49,450 and the 15% rate up to $545,500. Above that, the rate is 20%.
Dana’s other income is already past $49,450, so none of her gain gets the 0% rate. All of it falls inside the 15% band:
$30,000 × 15% = $4,500
She keeps $49,500. Waiting two months saves $2,664, which is 8.88 percentage points of the gain.

How much the price can fall before waiting stops paying
Holding the price fixed is a simplification. The real choice is between a known tax saving and two more months of market risk. Each dollar the price falls after she decides to wait reduces the gain by a dollar and the long-term tax by 15 cents, so she loses 85 cents of after-tax money per dollar of price drop.
$2,664 ÷ 0.85 = $3,134.12
If the position falls from $54,000 to $50,865.88, a drop of about 5.8%, the long-term sale leaves her with $46,836, exactly what the short-term sale would have left. Entering a $50,865.88 sale price with the long-term option in the calculator confirms it: $26,865.88 gain, $4,029.88 tax, $46,836.00 net. A smaller drop and waiting still wins. A larger one and selling in February would have been better. Nobody knows in advance which will happen, but the break-even number tells you what you are betting.
The same $30,000 gain at three income levels
The gap between short-term and long-term depends heavily on income. Here is the same sale for three single filers, each taking the 2026 standard deduction and nothing else.
| Salary | Taxable income before the gain | Tax if sold at 11 months | Tax if sold at 13 months | 3.8% NIIT (either way) | Saved by waiting |
|---|---|---|---|---|---|
| $56,100 | $40,000 | $5,560.00 | $3,082.50 | $0 | $2,477.50 |
| $120,000 | $103,900 | $7,164.00 | $4,500.00 | $0 | $2,664.00 |
| $260,000 | $243,900 | $10,130.25 | $4,500.00 | $1,140.00 | $5,630.25 |
A few things in this table are worth spelling out.
At $40,000 of taxable income, part of the gain is taxed at 0%. The 0% band ends at $49,450, so the first $9,450 of the gain is tax-free and the other $20,550 is taxed at 15%, giving $3,082.50. As a short-term gain, the same $30,000 is split between the 12% bracket ($10,400 up to $50,400, so $1,248) and the 22% bracket ($19,600, so $4,312), giving $5,560.
At $243,900, the short-term gain crosses two high brackets. $12,325 fills the 32% bracket up to $256,225 ($3,944), and $17,675 lands at 35% ($6,186.25). The long-term tax is still a flat 15% because $273,900 is far below the $545,500 line where 20% starts.
The net investment income tax does not care how long you held the stock. It adds the same $1,140 to both options for the $260,000 earner, so it never changes the decision about when to sell. It only changes the total bill.
When the 3.8% NIIT applies
IRS Topic 559 describes the net investment income tax as 3.8% of the lesser of two amounts: your net investment income, or the amount by which your modified adjusted gross income (MAGI) exceeds a threshold. The thresholds are $200,000 for single and head of household filers and $250,000 for married couples filing jointly. The IRS Q&A on the tax notes that these thresholds are not indexed for inflation, so unlike the brackets above, they do not rise each year. Gains from selling stock count as investment income.
For the $260,000 earner, MAGI is roughly $260,000 plus the $30,000 gain, or $290,000. That is $90,000 over the threshold, but the gain is only $30,000, so the tax is 3.8% of the smaller number: $30,000 × 3.8% = $1,140.
For Dana at $120,000, MAGI is about $150,000. No NIIT.
A caution for people near the line. The calculator estimates MAGI as the taxable income you enter plus the gain. The IRS test uses MAGI, which is close to adjusted gross income and is figured before the standard deduction. For someone with a $185,000 salary, the calculator shows no NIIT (taxable income $168,900 plus $30,000 is $198,900), but MAGI is about $215,000, which would put $15,000 over the threshold and add $570 of NIIT. If your salary plus the gain lands within about one standard deduction of $200,000 (or $250,000 if married filing jointly), work this line out by hand from your adjusted gross income.
What the example leaves out
- State tax. State rules are separate from the federal ones and differ from state to state. The calculator’s state field applies a flat rate you enter, which is only a first estimate.
- Losses. Short-term and long-term gains and losses are netted against each other on Schedule D before any of these rates apply. A loss elsewhere in the portfolio changes the numbers.
- Other income that stacks below the gain. Interest, dividends, and side income all push the gain higher up the brackets. Add them to the taxable income field.
To try your own sale, enter the cost basis, the sale price, and your taxable income in the Capital Gains Tax Calculator and switch between the two holding period buttons. If you are unsure what your taxable income will be, the Income Tax Calculator works it out from salary, and our guide to marginal vs effective tax rates explains why only part of the gain hit the 24% rate.
These figures are estimates for illustration, not financial or tax advice.