INFINITE UPSIDE

Match the sale to the shares actually delivered

How do I identify stock tax lots before a sale?

The same sale proceeds can produce a different gain because different purchase lots carry different basis. Preserve the actual instruction and result.

Before selling part of a stock holding bought in several purchases, identify which acquisition lots the sale will use and how the broker will confirm that instruction. After execution, reconcile the actual shares sold, their adjusted basis and the shares remaining. A correct sale price does not establish that the intended lots were used.

For U.S. federal tax purposes, IRS Publication 550 for 2025 explains specific identification. When the broker holds the stock, it calls for identifying the particular stock at the time of sale or transfer and receiving written confirmation within a reasonable time. If shares cannot be adequately identified, the publication generally uses the earliest acquired shares. An after-the-fact preference is not the same as that documented process.

Begin with the acquisition record

A tax lot connects a particular acquisition with its quantity, date and adjusted basis. Two purchases of the same stock can have identical market exposure today but different basis records.

Start with the actual security and account. The original example here concerns ordinary purchased common shares in a taxable brokerage account. It does not apply an ordinary purchase price to inherited shares, gifts, employment awards or retirement-account holdings.

Check for adjustments before comparing lots. A purchase confirmation supplies an important starting record, but the current adjusted basis also needs any applicable later changes. A broker's display is something to reconcile with the evidence, not a reason to discard a missing historical transaction.

Keep the objective separate too. A decision to sell shares might arise from a cash need or a portfolio review. Choosing lots answers a tax-record question within that decision; it does not establish that selling is appropriate or that the largest available basis is always the best choice.

Three original purchase lots

Consider a completely fictional 2025 record. An individual buys the same ordinary common stock in three separate purchases:

  • Lot A, January 6: 100 shares at a complete $40 per share, giving $4,000 basis.
  • Lot B, February 3: 100 shares at a complete $65 per share, giving $6,500 basis.
  • Lot C, March 3: 100 shares at a complete $50 per share, giving $5,000 basis.

Total holdings are 300 shares with $15,500 aggregate basis. These purchase prices include all acquisition costs. There are no gifts, inheritance, distributions, reinvestments, splits, options, borrowing, foreign currency or other basis adjustments in the supplied record.

On October 1, the individual sells 120 shares at $60 each. The complete sale charge is $12. Gross proceeds of $7,200 therefore become $7,188 net proceeds. There are no other sale charges, withholding or payments.

The alternative lot treatments below describe separate versions of that one sale. They are not two sales of 120 shares. The complete example also excludes wash-sale transactions or other rules that would defer the modeled loss or alter basis.

Rebuild a FIFO sale

Under the first-in, first-out treatment in this branch, the 120 shares consist of all 100 shares from A and twenty from B. Basis sold is $4,000 + 20 × $65 = $5,300.

Subtract that from the $7,188 net proceeds to obtain $1,888 gain. This is the sale's gain under the supplied facts, not a $1,888 tax bill.

The remaining shares are eighty from B and one hundred from C, totaling 180 shares. Their basis is 80 × $65 + 100 × $50 = $10,200.

Check both reconciliations: 120 sold plus 180 held equals 300 acquired; $5,300 basis sold plus $10,200 retained equals the original $15,500. If either total fails, investigate the quantity or cost record before carrying it into another sale.

Rebuild a specifically identified sale

In a separate branch, assume the investor timely identifies all one hundred B shares and twenty C shares, and receives the required matching broker confirmation. The actual completed sale uses those exact lots.

Basis sold is $6,500 + 20 × $50 = $7,500. Net proceeds remain $7,188, so the modeled result is a $312 loss.

The remaining position contains one hundred A shares and eighty C shares: again 180 shares, now with $4,000 + 80 × $50 = $8,000 basis. Basis used plus basis remaining is still $7,500 + $8,000 = $15,500.

These are alternative documented lot treatments for the same 120-share sale, with the same execution price and complete $12 charge.

MeasureFIFO branchSpecific identification branch
Net proceeds$7,188$7,188
Basis of shares sold$5,300$7,500
Modeled sale gain or loss$1,888 gain$312 loss
Shares remaining180180
Remaining basis$10,200$8,000

Choosing a different supported lot record changed basis used by $2,200, so the sale result changed by the same $2,200. Cash received did not change. A larger basis deduction now also leaves less basis attached to the shares still held.

Keep the selling charge once

The $7,188 already includes the complete $12 deduction. Subtracting the charge again in the specific-identification branch would report $7,176 proceeds and a $324 loss. That would count the same charge twice.

Conversely, using the $7,200 gross amount without any treatment of the supplied charge would report a $300 loss, omitting $12. Inspect the confirmation and reporting basis to see which amount is gross and which is net before calculating.

For a lot-level check in this example, allocate the $12 charge at ten cents per share. The hundred B shares have $5,990 net proceeds against $6,500 basis, a $510 loss. The twenty C shares have $1,198 net proceeds against $1,000 basis, a $198 gain. Together, negative $510 plus $198 equals negative $312.

That uniform allocation belongs to this supplied case. Use the actual supported allocation in a real multi-lot execution rather than silently assuming every charge is assessed identically.

A partial fill needs a partial lot record

Change only the execution in a separate branch. The investor requests the same one hundred B shares and twenty C shares, but only eighty B shares are actually sold. The remaining forty requested shares are unfilled, and the matching confirmation identifies just those eighty B shares. Their execution price remains $60, with a complete $8 sale charge in this branch.

Gross proceeds are $4,800 and net proceeds are $4,792. Basis used is eighty times $65, or $5,200. The modeled loss is therefore $408. Deducting the planned $7,500 basis instead would wrongly report a $2,708 loss and consume basis belonging to shares that were not sold.

The remaining holdings are one hundred A, twenty B and one hundred C shares: 220 in total. Their basis is $4,000 + $1,300 + $5,000 = $10,300. Add the actual $5,200 basis sold and the record still reconciles to $15,500.

A later fill would need its own actual quantity, price, charge and lot confirmation. Do not mark the remaining forty shares sold simply because the original instruction requested them. Equally, do not assume this fictional fee pattern describes another broker's charges. The confirmation and applicable terms must supply those facts.

Check what remains at one market price

Hold the market price at $60 immediately after the sale for a separate before-tax reconciliation. In both branches, the 180 shares remaining are worth $10,800. Add the $7,188 sale cash and combined resources are $17,988.

Compared with the original $15,500 acquisition cost, the overall gain in those resources is $2,488, after the sale charge and before personal taxes. Merely selecting lots has not changed that total in the supplied constant-price comparison.

FIFO divides it into $1,888 realized gain and $600 unrealized gain on the remaining shares: $10,800 value less $10,200 basis. The specific-identification branch divides it into a $312 realized loss and $2,800 unrealized gain: $10,800 less $8,000.

Both reconcile to $2,488. The unrealized figures are not sale proceeds or a prediction of a later price. This check explains where the lower remaining basis went; it does not calculate either branch's eventual tax liability.

Do not turn the loss into a refund promise

IRS Topic 409 generally classifies gains and losses on holdings of one year or less as short-term. All three fictional purchased lots are acquired and sold within 2025, so this example does not create a long-term holding by choosing a particular lot.

The gain or loss enters a wider tax calculation. It does not independently establish a refund, the payment due or whether a proposed sale improves the person's overall position. No tax rate or complete return has been supplied.

Publication 550 also describes wash sales involving a loss and substantially identical acquisitions within thirty days before or after the sale. The example excludes those events. For a real loss sale, review the relevant activity rather than assuming a negative trading result is immediately deductible merely because a broker displays it.

Do not average these three ordinary stock purchase costs simply because the arithmetic is convenient. Publication 550 distinguishes specific identification, FIFO and permitted average-basis situations. This example is not a mutual-fund or dividend-reinvestment-plan average-basis election.

Leave an instruction and confirmation trail

  1. Before execution: identify the security, account, intended quantity, acquisition lots and supported adjusted basis. Understand the broker's actual lot-selection process.
  2. At the sale: retain the timely instruction and its reference. A planned worksheet alone does not show which instruction the broker received.
  3. After execution: match the filled quantity, lot allocation, proceeds and charges with the written confirmation. Preserve discrepancies rather than treating a request as a completed result.
  4. Update the remaining record: subtract the actual quantities and basis used. Retain the unconsumed portions of partially sold lots.
  5. At reporting: reconcile the tax document with the supported transaction record and obtain appropriate correction review when they differ.

The rebalancing guide addresses the separate allocation decision. The inherited-stock guide follows a different source of basis. Neither substitutes for identifying the purchased lots actually delivered in this sale.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

Choose an edition

Choose an edition

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store