Individual Tax

Written and reviewed by Christopher Meeker, EA · Last reviewed:

Stock sales, basis and capital-gain planning

How do I compare the tax cost of selling different stock lots?

For each group of shares you could sell, check the basis and purchase date, calculate the gain, and estimate how much the sale adds to your tax. Then compare the cash left after tax and the shares you would still own. A lower tax rate can still produce a larger tax bill when the gain is larger.

IRS Topic 409 — capital gains and losses

Federal individual investment sales reviewed October 31, 2026; use the sale year’s thresholds and state rules. No universal rate or investment recommendation is provided.

THE CAPITAL GAINS WORKFLOW

Compare the tax and cash from each stock lot

Follow the same four steps for both examples. Choose A or B to change the overview facts; both examples remain visible in the detailed sections.

Same proceeds; different basis and holding period change dollar tax
FactExample AExample B
Shares and sale proceeds100 shares and $20,000Same
Adjusted basis$18,000$10,000
Holding periodSix monthsThree years
Assumed incremental rate24% short-term15% long-term

One hypothetical investor has two 100-share lots of the same ordinary investment stock and wants to sell 100 shares for $20,000 during 2026, with no selling fees. A is the alternative of selling a lot with $18,000 adjusted basis held six months. B sells a lot with $10,000 adjusted basis held three years. The investor has no other capital gains, losses or carryforwards. Assume the entire short-term gain would face 24% incremental federal income tax and the entire long-term gain 15%; state and net investment income taxes and other interactions are excluded. The sale proceeds and number of shares are the same in both choices. The lots differ in both basis and holding period.

Explore an example

THE FOUR-STEP OVERVIEW
STEP 1Verify each lot’s tax history

Check the purchase records and any later basis adjustments.

STEP 2Calculate gain and holding-period character

Subtract basis and selling costs, then determine whether the gain is short-term or long-term.

STEP 3Compare incremental tax and cash retained

Estimate the added tax and compare the cash left from each sale.

STEP 4Confirm lot instructions and payment planning

Identify the shares to your broker, keep the confirmation and plan for the tax payment.

STEP 1

Verify each lot’s tax history

Establish adjusted basis and acquisition date before comparing alternatives.

A tax lot identifies particular shares and their acquisition history. Adjusted basis is the remaining tax investment recovered against proceeds. Reconcile transferred-share basis and compensation already taxed through payroll before relying on the broker’s gain display.

IRS Publication 550 — basis and lot identification · IRS Publication 525 — employee stock · IRC 1012, cost basis · Reg. 1.1012-1(c), identifying shares sold

EXAMPLE A

Higher basis, short-term lot

A’s acquisition records support $18,000 basis and a six-month holding period for 100 shares. A broker’s display is reconciled with the original lot records.

Result and next action

Use the supported $18,000 basis in the proposed sale.

EXAMPLE B

Lower basis, long-term lot

B’s older 100-share lot has $10,000 supported basis and a three-year holding period. It is not interchangeable with A’s basis merely because the ticker is the same.

Result and next action

Use the supported $10,000 basis for B.

IRS Publication 550 — basis and lot identification · IRS Publication 525 — employee stock · IRC 1012, cost basis · Reg. 1.1012-1(c), identifying shares sold

STEP 2

Calculate gain and holding-period character

Subtract basis and selling costs, then determine whether the gain is short-term or long-term.

For these ordinary stock lots, sale proceeds less adjusted basis and eligible selling expenses measure realized gain. Holding period determines short- versus long-term character. Special assets and acquisition histories may need additional rules.

IRS Topic 409 — capital gains and losses · IRS Publication 550 — basis and lot identification · IRC 1001(a), gain or loss · IRC 1222, capital-gain definitions · IRC 1(h), capital-gain rates · IRC 1202, qualified small business stock · IRC 1091(a), wash sales

EXAMPLE A

Higher basis, short-term lot

A gain is $20,000 − $18,000 = $2,000. Six months is one year or less, so the gain is short-term.

Result and next action

Carry $2,000 short-term gain into the projection.

EXAMPLE B

Lower basis, long-term lot

B gain is $20,000 − $10,000 = $10,000. Three years exceeds one year, so the gain is long-term.

Result and next action

Carry $10,000 long-term gain into the same return assumptions.

IRS Topic 409 — capital gains and losses · IRS Publication 550 — basis and lot identification · IRC 1001(a), gain or loss · IRC 1222, capital-gain definitions · IRC 1(h), capital-gain rates · IRC 1202, qualified small business stock · IRC 1091(a), wash sales

STEP 3

Compare incremental tax and cash retained

Estimate the added tax and compare the cash left from each sale.

After-tax sale cash is sale proceeds less selling costs and actual incremental tax. Do not subtract basis again from cash: basis determines gain but is not a new cash payment at sale. Compare current cash with remaining investment risk and future taxable exposure.

For ordinary investment stock, net long-term gains generally receive 0%, 15% or 20% rates. These bands use total taxable income, not just the gain. Ordinary taxable income fills the lower bands first, so one sale can cross more than one rate.

IRS Topic 409 — capital gains and losses · IRC 1(h), capital-gain rates · Rev. Proc. 2025-32, section 4.03 · IRC 1411, net investment income tax · IRC 1211(b), individual capital-loss limit · IRC 1212(b), capital-loss carryforwards

EXAMPLE A

Higher basis, short-term lot

At 24%, A’s $2,000 gain produces $480 assumed tax, leaving $19,520 of the $20,000 sale proceeds after that tax.

Result and next action

A supplies $1,020 more current after-tax cash than B under these assumptions.

EXAMPLE B

Lower basis, long-term lot

At 15%, B’s $10,000 gain produces $1,500 assumed tax, leaving $18,500. The lower percentage applies to a much larger gain.

Result and next action

Do not choose B solely for its lower rate; compare the dollar tax and the remaining portfolio.

2026 long-term capital-gain rate ceilings

Filing status0% ceiling15% ceiling
Married filing jointly or qualifying surviving spouse$98,900$613,700
Single$49,450$545,500
Head of household$66,200$579,600
Married filing separately$49,450$306,850

IRS Topic 409 — capital gains and losses · IRC 1(h), capital-gain rates · Rev. Proc. 2025-32, section 4.03 · IRC 1411, net investment income tax · IRC 1211(b), individual capital-loss limit · IRC 1212(b), capital-loss carryforwards

STEP 4

Confirm lot instructions and payment planning

Identify the shares to your broker, keep the confirmation and plan for the tax payment.

Your tax return must report the shares actually sold. Keep your lot instructions, the broker’s confirmation and the trade statement. Use the tax comparison alongside your investment goals and risk tolerance.

IRS Publication 550 — basis and lot identification · IRS Topic 409 — capital gains and losses · Reg. 1.1012-1(c), identifying shares sold · IRC 1222, capital-gain definitions

EXAMPLE A

Higher basis, short-term lot

If A is chosen, identify the $18,000-basis lot to the broker at the time of sale and obtain written confirmation within a reasonable time. A leaves the older $10,000-basis lot unsold, with more embedded gain at the stated market value.

Result and next action

Retain the confirmation and reserve for the $480 modeled tax; reassess the remaining low-basis position separately.

EXAMPLE B

Lower basis, long-term lot

If B is chosen, identify the older $10,000-basis lot and obtain confirmation. B leaves the higher-basis lot unsold, with less embedded gain at the stated value.

Result and next action

Retain the confirmation and plan the $1,500 modeled payment; the current extra tax may still fit broader portfolio objectives.

Selling A produces $19,520 of current after-tax cash under the assumptions versus $18,500 for B, despite A’s higher rate. A also leaves more embedded gain in the unsold lot. Current cash and future tax exposure are separate considerations.

IRS Publication 550 — basis and lot identification · IRS Topic 409 — capital gains and losses · Reg. 1.1012-1(c), identifying shares sold · IRC 1222, capital-gain definitions

What to gather

  • Purchase and transfer statements; acquisition dates and employee-stock wage records.
  • Realized gains and losses, prior capital-loss carryforwards and expected household income.
  • Specific-lot instructions and broker confirmation of the shares actually sold.

Questions readers ask

Should I wait solely for long-term treatment?

If the investor waits until lot A has been held more than one year, and its value, basis and assumed long-term rate stay the same, the $2,000 gain would produce $300 of tax at 15% instead of $480 at 24%. That saves $180, but a price change could outweigh the tax saving. Compare the potential rate difference with the risk of a price change. Coordinate the tax analysis with your investment adviser. A potential rate improvement can be outweighed by a decline in share value or a need for liquidity. Prepare a comparison using the actual tax lots and anticipated sale dates, including other income and carryforwards. Your investment adviser can then weigh that tax difference against portfolio concentration, market exposure and the reason you are selling.

Is the brokerage statement sufficient?

Check missing basis, transfers, employee-stock records and transactions across accounts before reporting the sale. Compare brokerage reporting with the underlying history when shares moved between firms, were inherited or received through work, or have prior adjustments. Document any missing acquisition cost and compensation already included in income. If the statement conflicts with reliable records, identify the supported return adjustment rather than copying a zero or incomplete basis into the return.

Official sources

Where to go next

How BackForty can help

BackForty can reconcile basis, model a proposed sale and coordinate tax-lot questions with your investment adviser. Bring purchase and transfer statements, employee-stock documents and prior capital-loss schedules. We can explain the estimated tax cost and payment implications of the alternatives without making the investment decision, then reconcile the completed transaction when preparing the return.

Discuss this questionIndividual tax preparation