Direct answer: name the lots on the ticket, or the default picks for you
If you hold the same security from several purchases at different prices and the shares sit at a broker, the lots a sale relieves are determined by the identification you make. The Treasury regulation on basis of property describes an adequate identification being made by specifying to the broker or other agent holding the securities which ones are to be sold, and it describes a first-in, first-out convention applying where no adequate identification is made (eCFR, 26 CFR 1.1012-1: https://www.ecfr.gov/current/title-26/section-1.1012-1).
In practice that means the choice happens at the order screen or in the allocation step your broker provides, not in April. Once the trade is reported with a particular method applied, you are no longer choosing which shares were sold. You are documenting a choice that was already made, possibly by a default you never read.
So the first move is not a tax calculation. It is a configuration check: find the account’s disclosed default cost-basis method, find where lot selection is offered, and find the deadline. Everything else in this article assumes you can answer those three questions before an order exists.
- What you are selecting: specific purchase lots, each with its own acquisition date, quantity, and cost basis.
- Where the selection is recognized: with the broker or agent holding the securities (eCFR, 26 CFR 1.1012-1: https://www.ecfr.gov/current/title-26/section-1.1012-1).
- What happens on silence: the account default, with a first-in, first-out convention described in the regulation where no adequate identification is made (eCFR, 26 CFR 1.1012-1: https://www.ecfr.gov/current/title-26/section-1.1012-1).
- Where the result surfaces: broker reporting on Form 1099-B (IRS, About Form 1099-B: https://www.irs.gov/forms-pubs/about-form-1099-b) and your own reporting on Form 8949 (IRS, About Form 8949: https://www.irs.gov/forms-pubs/about-form-8949).
Pull the lot table before you decide anything
A lot instruction is only as good as the lot table it was chosen from. Before the order, pull the position’s full lot detail from your brokerage-connected account data and look at it as a list rather than as a single blended cost number: acquisition date, quantity, cost basis, unrealized gain or loss, holding-period status, and whether the lot is flagged covered or noncovered.
The covered flag matters because it tells you how much of the record the broker is reporting. Brokers report gross proceeds and, for covered securities, cost basis and whether the gain or loss is short-term or long-term (IRS, About Form 1099-B: https://www.irs.gov/forms-pubs/about-form-1099-b). For a noncovered lot, the basis you rely on is the basis you can substantiate from your own records.
Lots with missing basis or a transfer-derived acquisition date deserve attention before they are traded, not after. Positions moved between firms, inherited or gifted shares, and reinvested distributions are the usual sources, and the basis rules for those situations are described in IRS Publication 551, Basis of Assets (https://www.irs.gov/publications/p551) and IRS Publication 550, Investment Income and Expenses (https://www.irs.gov/publications/p550).
- Per lot: acquisition date, quantity, cost basis, unrealized gain or loss, holding-period status, covered or noncovered flag.
- Flag for review: any lot with blank basis, a transfer date in place of a purchase date, or a quantity you cannot tie to a confirmation.
- Rebuild flagged lots from primary records such as original trade confirmations, statements, and transfer paperwork before relying on them.
- Add a research gate that blocks lot-level sell instructions on a position whose lot records are unreconciled, and log the exception if you override it.
Write the selection rule so you are not choosing lots under pressure
The decision that goes wrong is rarely the mechanics. It is choosing lots in the same minute you are deciding whether to sell at all. A written rule separates the two: the sizing or drift rule decides whether and how much to sell, and a second clause decides which lots satisfy that quantity.
A workable selection clause states a default preference and the conditions that override it. For example: trim to the stated size cap, then select lots in a stated order of preference on grounds you have written down, such as satisfying a loss-harvest criterion or meeting a long-term holding threshold, and record the chosen lots and the reason in the trade log.
The tradeoff is real and worth stating in the policy rather than rediscovering each time. Selecting the highest-basis lots usually minimizes the current realized gain, but it can consume the lots you were holding for other reasons and leave the position concentrated in low-basis shares that are harder to trim later. Selecting the oldest lots keeps the record simple and matches many defaults, but it may realize more gain than the sale required. Short-term and long-term results are netted separately under the capital gains and losses rules described by IRS, Capital Gains and Losses, Tax Topic 409 (https://www.irs.gov/taxtopics/tc409), so the character of the result, and not only its size, follows from which lots you name.
- Clause one: what triggers the sale and how much is sold, stated independently of tax considerations.
- Clause two: how lots are selected to fill that quantity, with a stated default and named overrides.
- Clause three: how partial fills are handled, decided in advance rather than at the moment the fill arrives.
- Clause four: what gets logged, meaning the lots instructed, the rule that fired, and the date and time of the instruction.
Check nearby buys before a loss-realizing lot sale
If the point of selecting particular lots is to realize a loss, the surrounding purchase calendar belongs in the pre-trade check. The wash sale rule and its effects, including the addition of a disallowed loss to the basis of the replacement shares, are discussed in IRS Publication 550, Investment Income and Expenses (https://www.irs.gov/publications/p550).
The part rule-based investors miss is automation. Dividend reinvestment, scheduled contributions, and model-driven buys can acquire the same security near the sale date without any decision on your part, and the relevant window described in IRS Publication 550 extends around the sale rather than only after it (https://www.irs.gov/publications/p550). Checking your own accounts for those purchases is a step to do before the order, not a reconciliation to do in February.
Document the handling either way. If a loss ends up disallowed, the basis consequence lands on the replacement lots, which changes the lot table you will read on the next trim. Reporting of the dispositions themselves happens on Form 8949 (IRS, About Form 8949, Sales and Other Dispositions of Capital Assets: https://www.irs.gov/forms-pubs/about-form-8949), and whether your facts fall inside or outside the rule is a question for a qualified tax professional rather than a checklist.
- List purchases of the same or substantially identical security across your accounts inside the window described in IRS Publication 550 (https://www.irs.gov/publications/p550).
- Include automatic reinvestment and scheduled purchases in that list, since both acquire shares without a decision at the time.
- Decide in advance whether the policy pauses reinvestment in that security ahead of a loss-realizing sale.
- After settlement, compare the broker’s wash sale flags and adjusted basis on the replacement lots against your own records.
Fit the instruction into the order and settlement sequence
A lot instruction travels with an order, so the order mechanics shape when it must be fixed. Investor.gov explains that a market order is an order to buy or sell immediately, which guarantees execution but not price, while a limit order executes only at the limit price or better and may not execute at all (Investor.gov, Types of Orders: https://www.investor.gov/introduction-investing/investing-basics/how-stock-markets-work/types-orders). A rules-driven trim that cares about price should say which order types are permitted.
If your broker takes the lot instruction on the same ticket as the order, the sequence is simple and you are done at entry. If allocation happens after the fill, calendar the deadline against the standard settlement cycle for securities transactions set out in 17 CFR 240.15c6-1 (eCFR: https://www.ecfr.gov/current/title-17/section-240.15c6-1), because that window is short and an unallocated sale defaults to whatever the account default is.
Then verify rather than assume. Capture the confirmation and the lot allocation detail together, store them with the rule that triggered the trade, and check the next statement. If the executed allocation does not match what you instructed, raise it with the firm in writing promptly while the confirmation is fresh. FINRA Rule 2111 addresses suitability obligations for member firm recommendations (https://www.finra.org/rules-guidance/rulebooks/finra-rules/2111), which is a different question from a self-directed investor’s own responsibility to specify the lots.
- Permitted order types for rule-driven trims, with the price constraint or review step each one requires (Investor.gov, Types of Orders: https://www.investor.gov/introduction-investing/investing-basics/how-stock-markets-work/types-orders).
- Whether the lot instruction is made at entry or post-fill, and the deadline measured against the standard settlement cycle in 17 CFR 240.15c6-1 (eCFR: https://www.ecfr.gov/current/title-17/section-240.15c6-1).
- A rule for partial fills that states which lots are relieved when only part of the quantity executes.
- A post-trade check comparing the allocation on the confirmation and statement to the instruction you sent.
Close the loop at year end and keep the record together
The year-end step is a comparison, not a recalculation. Brokers report proceeds and, for covered securities, basis and holding period on Form 1099-B (IRS, About Form 1099-B: https://www.irs.gov/forms-pubs/about-form-1099-b), and dispositions of capital assets are reported on Form 8949 (IRS, About Form 8949: https://www.irs.gov/forms-pubs/about-form-8949). Lay the broker lot detail next to your own trade log and compare line by line rather than overwriting your records with the form.
Differences are not automatically errors. Your holdings across several accounts are wider than what any one firm reports, and noncovered lots may arrive with no basis at all, which leaves you to substantiate it using the rules described in IRS Publication 551, Basis of Assets (https://www.irs.gov/publications/p551). Keep the supporting trail with the lot file so an unresolved item has documentation behind it.
Keep two questions separate while you do this. A basis or allocation disagreement is an operational matter for the carrying firm and, where relevant, for a qualified tax professional. Account protection is a different subject: SIPC describes protecting customers of failed member brokerage firms rather than protecting against a decline in the value of securities (SIPC, What SIPC Protects: https://www.sipc.org/for-investors/what-sipc-protects).
Elections deserve a final word of caution. The regulation on basis of property contemplates an average basis method for certain fund and reinvested shares (eCFR, 26 CFR 1.1012-1: https://www.ecfr.gov/current/title-26/section-1.1012-1), and election choices can carry restrictions, so treat that as a decision to make with a tax adviser rather than a toggle to flip while entering an order.
- Compare per line: proceeds, basis, acquisition and sale dates, holding period, and the lots the broker shows as relieved.
- Keep the trade log entry, the confirmation, and the lot table snapshot as of trade date in one place per sale.
- Document each difference with the account, security, field, both values, and the correspondence you sent the firm.
- Route election questions, inherited or gifted basis, and contested items to a qualified tax professional with your own records in hand.