Taxable lot quantities, basis, fees, holding periods and sale tax · One taxable security, reviewed lot records and compatible incremental taxes
Lots to Sell to Fund Retirement Calculator
A planning tool for retirees selling one taxable security from reviewed tax lots. Compare FIFO, specific priority and loss-first plans while funding a net cash target after fees and positive tax reserve.
Taxable sale proceeds include recovered principal. A harvested loss can reduce annual tax without producing extra sale cash today.
Retirees selling one taxable security from reviewed tax lots
Taxable lot quantities, basis, fees, holding periods and sale tax
One taxable security, reviewed lot records and compatible incremental taxes
Select tax lots to fund a cash target after fees and tax reserve
Compare acquisition-order FIFO, reviewed specific priority and loss-first sales, with share quantities, basis recovery and recognized short/long gains. Compare two ordered sale plans at the same conditional execution price. Keep unsold shares, adjusted basis, wash-loss findings and the target cash gap visible.
View projection data
Calculation method and limits
One taxable brokerage security, compatible adjusted remaining lots and common conditional price. FIFO acquisition-date order/tie input order, specific unique priority rank, or heuristic ascending recognized full-sale gain/gross ratio/tie FIFO. No actual execution or specific-ID confirmation. Whole shares or millionths; integer quantity search within ordered lot prefixes, per-executed-lot flat fee once. Gross quantity*price half-up cents; basis total*shares-sold/original-shares half-up cents, full sale removes all basis. Gain=net proceeds after fee minus recovered basis. Actual uniform within-lot loss disallowance0–100% reduces recognized losses only, no unsupported automatic wash detection/replacement-basis transfer. Auto holding more than one calendar-year anniversary with month-end clamp; reviewed actual ST/LT override supports special histories. Native2026 ordinary/regular0-15-20%LTCG netting and NIIT sensitivity: combine recognized ST/LT with complete existing signed net amounts/carryovers, opposite-character netting, statutory annual ordinary-loss cap3000/1500, fixed deductions, progressive ordinary and capital stacking, NIIT lesser positive net gain/MAGI excess; combined final cent rounding. Annual tax difference versus baseline, reserve positive only. Negative tax saving not sale cash. Net loss above statutory limit is not certified future carryforward. Complete actual signed incremental tax per method replaces all native tax, retained under target shortage; actual tax must match final sale quantities. Zero target no sale/fees and actual findings must be zero. No qualified-dividend/special gain, loss carryforward certification, state/credits/AMT/SS/phaseout calculation, future prices, settlement guarantee, diversification or tax-minimum guarantee, retirement-account/RMD credit or trade submission.
The source link below is a starting point. Check current instructions and account for any facts this model leaves out before making a retirement, coverage, or tax decision.
What this calculator answers
Compare FIFO, specific priority and loss-first plans while funding a net cash target after fees and positive tax reserve.
Its result is a scenario for retirees selling one taxable security from reviewed tax lots within Taxable lot quantities, basis, fees, holding periods and sale tax. Confirm actual lot identification and order details with the broker before any trade. Reconcile prices, fees, settled cash and final tax records afterward.
Inputs to gather first
Gather complete adjusted lots, acquisition/holding records, permitted share increments, common price, fee attribution, wash-sale findings and existing annual capital amounts.
- Taxable account, lot and execution findings reviewed
- Conditional sale trade date
- Common conditional execution price
- Net cash target after fees and positive tax reserve
- Permitted sale quantity increment
- Method A
- Method B
- Incremental tax method
- Native household tax scope reviewed
- Native filing status
- Other ordinary AGI before capital transactions
- Complete fixed deduction finding
- Existing annual net short-term capital amount
- Existing annual net long-term capital amount
- Complete actual incremental tax findings reviewed
- Method A actual incremental tax
- Method B actual incremental tax
- Reviewed remaining tax lots
How to use the result
Change one assumption at a time and note the result, effective date, and source of each value. Compare the displayed estimate with the administrator’s calculation, then investigate any difference in eligibility, service credit, compensation period, reduction, option, tax, or premium treatment.
The workbook’s starting reference is linked here. Confirm it covers your plan and member group before treating a rule as current.
Choose a sale plan that actually funds the cash target
Selling an investment produces cash, but the entire sale price is not necessarily taxable income. Part of the proceeds recovers your adjusted basis. The difference, after applicable selling costs, can be a capital gain or loss. Choosing among tax lots changes that difference even when every share has the same current market price. IRS capital-gain and basis overview
This calculator compares two ordered sale plans for one security in a taxable brokerage account. It finds quantities needed to fund your cash target after transaction fees and a reserve for positive incremental sale tax. It also shows recognized short-term and long-term results, disallowed losses and the shares and basis left unsold.
A reduction in estimated annual tax is reported separately. It is not advanced into today's sale cash. That distinction matters when a loss-first plan appears to generate enough tax savings to pay expenses before any refund or reduced tax payment actually occurs.
Start with complete adjusted remaining lots
Enter each lot's acquisition date, remaining shares and total remaining adjusted basis. Basis is the total for that row, not a per-share price. Update it for prior partial sales and actual adjustments before comparing plans. A purchase confirmation alone may not establish today's remaining basis.
All rows use one common conditional execution price. Different securities need separate comparisons because FIFO is not a command to sell the oldest security anywhere in your portfolio. Split portions whose basis, holding period or wash-sale treatment differs so each row describes a compatible subset.
Use the holding-period override for independently established short-term or long-term treatment when a simple acquisition anniversary is inappropriate. Inherited, gifted or previously adjusted property can need records beyond the acquisition date displayed in an account.
Understand the three ordering choices
FIFO sorts the entered acquisition dates, with row order breaking same-date ties. Specific identification uses your unique priority ranks: the smallest rank sells first. Those ranks express a proposed plan; they do not complete identification with the broker. Actual identification and confirmation requirements must be met before relying on the chosen basis. IRS identification and FIFO discussion
Loss-first sorts by recognized gain divided by full sale value, beginning with the most negative ratio. It incorporates the entered disallowed-loss fraction. This is a transparent heuristic rather than proof of the lowest possible tax across all quantities, securities and future years.
The order applies to whole available lots until the final partial lot meets the target. Review the remaining holdings as well as the tax result. Selling high-basis loss lots now can leave more embedded gains for a later sale, and neither strategy automatically maintains your preferred asset allocation.
Compare the whole-share worked example
The example price is $100. The oldest lot contains 300 shares with $9,000 remaining basis. A newer long-term loss lot has 200 shares with $24,000 basis. A recent short-term loss lot has 200 shares with $22,000 basis. The target is $25,000, with zero fees and reviewed zero loss disallowance.
Select whole shares. FIFO sells 280 oldest-lot shares for $28,000, recovers $8,400 basis and realizes $19,600 long-term gain. Under the displayed ordinary-income and deduction assumptions, its incremental tax reserve is $2,940. Cash after that reserve is $25,060, leaving $60 above the target because another fraction cannot be sold.
Loss-first instead sells the 200 long-term loss shares and 50 recent shares for $25,000. It recognizes $4,000 long-term loss and $500 short-term loss. The native example reduces modeled annual tax by $660, but available sale cash remains $25,000. It does not become $25,660.
The default fractional setting can sell millionths of a share. FIFO then produces $27,932.96 gross and reserves $2,932.96 to leave $25,000. Share and basis rounding can create penny differences from a hand calculation using only two decimal places of shares.
Enter actual wash-sale findings before harvesting losses
A negative sale result does not establish a currently deductible loss. Replacement purchases around the sale can trigger wash-sale rules, including purchases before the sale that a forward-only review would miss. Check the complete relevant activity rather than assuming a brokerage adjustment report catches every case.
For each compatible row, enter the actually established percentage of its realized loss that is disallowed. Zero must be a finding, not a placeholder. A 50% entry leaves half a realized loss recognized; 100% removes its current recognized loss. It does not turn the loss into a taxable gain. IRS wash-sale guidance
This percentage must remain appropriate for the subset actually sold. Where matching changes across shares, split the subsets and reconcile the final quantities. The tool does not search replacement accounts or attach deferred loss to replacement-property basis. Remaining source-lot basis is reduced only by the basis recovered in this sale; replacement records need separate adjustments where applicable.
Keep holding periods and annual netting separate
Automatic holding treatment requires a sale after the one-year calendar anniversary. Shares acquired November 30, 2025 remain short-term in a November 30, 2026 sale under that rule; a December 1 sale crosses the modeled boundary. The calendar routine clamps an absent anniversary day at month-end. Use an actual holding finding for an unusual history.
Native tax combines the proposed recognized short-term and long-term amounts with your existing annual net amounts. Enter existing figures after applicable carryovers but before these proposed sales, so a loss is not entered twice. Opposite-character amounts offset before the remaining gain receives ordinary or preferential treatment. IRS Schedule D instructions
For an overall capital loss, native mode applies the annual ordinary-income deduction limit of $3,000, or $1,500 for married filing separately. The amount displayed above that limit is not a certified next-year carryforward. Complete carryforward treatment can depend on the rest of the return. IRS annual capital-loss limit
Reserve the incremental tax associated with the sale
Native mode calculates conditional federal tax before and after the sale using 2026 ordinary brackets, regular long-term capital-gains bands and NIIT. Existing ordinary income affects the room in the preferential gain bands. Complete deductions are supplied separately; changing filing status does not automatically update the deduction. IRS 2026 rate thresholds
Positive tax change becomes a cash reserve. Negative change remains a tax-saving estimate. The calculation does not cover qualified dividends, special-rate gains, credits, AMT, Social Security inclusion, state tax or deduction phaseouts. Use complete actual incremental tax for those interactions or another sale year.
Actual mode replaces native tax for each final sale plan. Enter the increase or decrease caused by the proposed sale, not full household tax or withholding. If assumptions or quantities change, reconcile that finding again. A supplied tax amount remains visible when the account cannot meet the target; it is not scaled down to make funding appear successful.
Check fees, share permissions and the execution record
A per-executed-lot fee is charged once whenever any shares in that row sell. Unsold rows incur no fee. If the broker charges one fee for an entire order, allocate it consistently rather than repeating the whole fee on every row. Fees reduce both proceeds and the modeled gain.
Whole-share mode can leave fractional holdings unsold and cash above the target. If all permitted sales remain insufficient after fees and positive reserve, read the shortfall instead of assuming an outside account will fill it. A zero target produces no sale and no fees.
Confirm the final identification, permitted quantities, actual execution price and settlement availability with the broker. Retain the sale confirmation and updated basis records. Selling taxable investments is separate from taking an IRA distribution and does not itself satisfy an IRA required minimum distribution.
Illustrative calculation
Lots to Sell to Fund Retirement Calculator: worked example
This example uses the starting values shown in the form. It demonstrates the calculation with hypothetical figures so you can check the relationship between the inputs and the output. Replace the examples with your records before making a comparison.
See every assumption in this example
- Taxable account, lot and execution findings reviewed
- Actual or conditional findings reviewed
- Conditional sale trade date
- 2026-11-30
- Common conditional execution price
- 100
- Net cash target after fees and positive tax reserve
- 25000
- Permitted sale quantity increment
- Millionth of a share
- Method A
- FIFO · acquisition order
- Method B
- Loss-first · recognized gain ratio heuristic
- Incremental tax method
- 2026 federal ordinary, capital gains and NIIT
- Native household tax scope reviewed
- Actual or conditional findings reviewed
- Native filing status
- Single
- Other ordinary AGI before capital transactions
- 80000
- Complete fixed deduction finding
- 16100
- Existing annual net short-term capital amount
- 0
- Existing annual net long-term capital amount
- 0
- Complete actual incremental tax findings reviewed
- Unresolved
- Method A actual incremental tax
- 0
- Method B actual incremental tax
- 0
- Reviewed remaining tax lots
- Old gain|2020-01-15|300|9000|0|0|auto|3|yes;Recent loss|2026-06-01|200|22000|0|0|auto|1|yes;Long loss|2023-03-15|200|24000|0|0|auto|2|yes
-$3,592.96
One taxable brokerage security at a common conditional execution price. FIFO by entered acquisition date, specific order by unique reviewed rank, or loss-first heuristic by recognized gain/full sale value; ties FIFO. Split differing basis/holding/wash subsets before entry. Each executed lot pays its entered flat fee once; no fee on unsold lots. Whole or millionth-share quantity search follows that order and funds target plus positive incremental tax reserve. Negative annual tax change is reported separately, never advanced as sale cash. Native2026 federal sensitivity nets recognized ST/LT with entered existing net amounts, ordinary annual capital-loss limit, regular LTCG stacking and NIIT; combined final cent rounding, fixed complete deductions. Net loss above statutory limit is not a certified future carryforward. Actual signed incremental taxes replace native household tax, not scaled under funding shortfall. Uniform actual within-lot disallowed-loss percentage reduces recognized losses only; replacement basis/holding changes are not attached to remaining sold-source shares. Auto holding is more than calendar-year anniversary with month-end clamp; unusual inherited/gift/adjusted histories use reviewed actual short/long. No trade submission, specific-ID confirmation, wash-sale detection, future price/settlement guarantee, diversification optimization, state/phaseout forecast, IRA/RMD credit or extra tax payment from outside.- Method A / B gross sales
- $27,932.96 / $25,000.00
- Method A / B transaction fees
- $0.00 / $0.00
- Method A / B positive tax cash reserve
- $2,932.96 / $0.00
- Method A / B cash after fees and positive reserve
- $25,000.00 / $25,000.00
- Method A / B target shortfall
- $0.00 / $0.00
- Method A / B estimated annual sale tax change
- $2,932.96 / -$660.00
- Method A / B recognized ST gains or losses
- $0.00 / -$499.99
- Method A / B recognized LT gains or losses
- $19,553.07 / -$4,000.00
- Method A / B disallowed losses
- $0.00 / $0.00
- Comparison limit
- Tax savings are not immediate proceeds; different unsold lots retain different embedded gains.
The live calculator updates when you change the form. This written example stays fixed so its assumptions and result can be read together.
What each calculator input means
Small differences in units or definitions can cause large differences in a projection. Use this guide to connect the form to your records.
| Input | How to choose a value | Example only |
|---|---|---|
| Taxable account, lot and execution findings reviewed | Confirm one taxable brokerage security, actual adjusted remaining lot basis, sale permission, common price, fee attribution, holding and wash-sale findings. Specific identification requires actual broker confirmation outside this tool. | Actual or conditional findings reviewed |
| Conditional sale trade date | YYYY-MM-DD trade date for holding-period comparison. Native federal tax supports2026; another year requires complete actual incremental tax. Cash settlement is not assumed guaranteed. | 2026-11-30 |
| Common conditional execution price | One security, dollars per share, up to four decimal places. Same price across lots and strategies. Actual prices/slippage or bid spreads can differ. | 100 |
| Net cash target after fees and positive tax reserve | Cash needed from sales. Positive incremental tax is reserved; a negative estimated tax change is not advanced as cash. Zero target means no sale and no fees. | 25000 |
| Permitted sale quantity increment | Use broker-permitted whole shares or millionths of a share. Fractional holdings below one whole share remain unsold in whole-share mode. | Millionth of a share |
| Method A | FIFO sorts acquisition dates, ties entered row order. Applies to one security; this tool does not confirm broker default elections. | FIFO · acquisition order |
| Method B | Specific sorts unique priority ranks. Loss-first sorts recognized gain/full sale value then FIFO, incorporating entered uniform loss disallowance; no global tax or diversification optimum implied. | Loss-first · recognized gain ratio heuristic |
| Incremental tax method | Native computes complete conditional federal tax before versus after recognized sales. Actual signed incremental tax replaces all native tax, including state and special household interactions if established. | 2026 federal ordinary, capital gains and NIIT |
| Native household tax scope reviewed | Native scope excludes qualified dividends, collectibles/1250/special rates, credits, AMT, state tax, SS taxation and deduction phaseouts. Ordinary income is complete before capital transactions; fixed deductions supplied. Existing net ST/LT includes applicable prior carryovers. | Actual or conditional findings reviewed |
| Native filing status | 2026 ordinary and regular long-term capital-gains thresholds plus fixed nominal NIIT thresholds. Married separate ordinary-loss deduction cap is$1,500; other supported statuses$3,000. | Single |
| Other ordinary AGI before capital transactions | Complete ordinary income after applicable noncapital adjustments, before deductions. Native assumes no other net investment income, Social Security recomputation or phaseout interactions. | 80000 |
| Complete fixed deduction finding | Total applicable ordinary/itemized/age-related deductions for this same conditional year. Example is simplified; status changes do not infer a new deduction. Use actual incremental tax for income-dependent deductions. | 16100 |
| Existing annual net short-term capital amount | Signed net short-term gain or loss BEFORE proposed sales, after applicable prior-year short-term carryovers. Do not include proposed lot losses twice. | 0 |
| Existing annual net long-term capital amount | Signed regular long-term gain or loss BEFORE proposed sales, after applicable prior-year carryovers. No special-rate gains or qualified dividends in native scope. | 0 |
| Complete actual incremental tax findings reviewed | Confirm complete incremental tax for each method at its FINAL quantities and these exact compatible sale assumptions. Not withholding, not a marginal rate and not full baseline household tax. Quotes are retained if the cash target cannot be funded. | Unresolved |
| Method A actual incremental tax | Signed actual increase in total tax due to this selected sale plan. Negative means annual tax saving; no advance into sale cash. Zero must be an established finding. | 0 |
| Method B actual incremental tax | Complete replacement incremental tax for B, including actual state/phaseout/wash/basis/netting effects. Reconcile again after any quantity or assumption change. | 0 |
| Reviewed remaining tax lots | One through30 rows: ID | acquisition date | remaining shares | total remaining adjusted basis | fee per executed lot | disallowed-loss percent | auto/short/long holding | unique specific rank | review. Split subsets whose basis, holding or wash treatment differs. Basis is total dollars, not per-share cost. Actual term can replace simple anniversary logic. | Old gain|2020-01-15|300|9000|0|0|auto|3|yes;Recent loss|2026-06-01|200|22000|0|0|auto|1|yes;Long loss|2023-03-15|200|24000|0|0|auto|2|yes |
Separate recovered principal, taxable gain and cash available
The lot basis determines gain; gross sale proceeds fund cash. A recognized loss can reduce annual tax, but that saving is not advanced into the sale proceeds.
What the result tells you
Headline is incremental sale tax B minus A. Negative means lower modeled annual sale tax under B, not automatic optimality. Compare cash gaps and the embedded gains left in unsold lots.
Common mistakes to avoid
- Taxing the entire sale value rather than gain after basis and fee.
- Assuming a wash-sale loss is deductible because a broker report shows no adjustment.
- Treating specific priority as completed broker identification.
- Using future tax savings as immediate settled cash.
Scenarios to compare before deciding
Keep a baseline with your confirmed inputs. Change one assumption, record the new result, and explain why the changed assumption could apply to your situation. A comparison is useful only when both scenarios use compatible units, dates, and payment options.
- Compare FIFO against a reviewed specific priority at the same price.
- Test loss-first with zero versus fully disallowed harvested losses.
- Change whole-share versus fractional permissions and inspect residual shares.
- Increase the target beyond available sale cash and read the shortfall.
- Replace native tax with complete actual A/B incremental findings.
Reconcile a difference with your official estimate
First compare the effective date and whether the amount is monthly or annual. Next compare the exact service record, compensation base, payment option, and adjustment factors. If the difference remains, use the stated method to identify which rule is absent or simplified. Keep the administrator’s certified amount as the reference for a benefit election.
Questions and answers about Lots to Sell to Fund Retirement Calculator
How does the Lots to Sell to Fund Retirement calculation work?
One taxable brokerage security, compatible adjusted remaining lots and common conditional price. FIFO acquisition-date order/tie input order, specific unique priority rank, or heuristic ascending recognized full-sale gain/gross ratio/tie FIFO. No actual execution or specific-ID confirmation. Whole shares or millionths; integer quantity search within ordered lot prefixes, per-executed-lot flat fee once. Gross quantity*price half-up cents; basis total*shares-sold/original-shares half-up cents, full sale removes all basis. Gain=net proceeds after fee minus recovered basis. Actual uniform within-lot loss disallowance0–100% reduces recognized losses only, no unsupported automatic wash detection/replacement-basis transfer. Auto holding more than one calendar-year anniversary with month-end clamp; reviewed actual ST/LT override supports special histories. Native2026 ordinary/regular0-15-20%LTCG netting and NIIT sensitivity: combine recognized ST/LT with complete existing signed net amounts/carryovers, opposite-character netting, statutory annual ordinary-loss cap3000/1500, fixed deductions, progressive ordinary and capital stacking, NIIT lesser positive net gain/MAGI excess; combined final cent rounding. Annual tax difference versus baseline, reserve positive only. Negative tax saving not sale cash. Net loss above statutory limit is not certified future carryforward. Complete actual signed incremental tax per method replaces all native tax, retained under target shortage; actual tax must match final sale quantities. Zero target no sale/fees and actual findings must be zero. No qualified-dividend/special gain, loss carryforward certification, state/credits/AMT/SS/phaseout calculation, future prices, settlement guarantee, diversification or tax-minimum guarantee, retirement-account/RMD credit or trade submission.
Which inputs should I verify first?
Start with taxable account, lot and execution findings reviewed, conditional sale trade date, common conditional execution price. Match the remaining inputs to the statement or official estimate for the same effective date. Example values on this page demonstrate the arithmetic and are not recommended assumptions.
How should I interpret the result?
Headline is incremental sale tax B minus A. Negative means lower modeled annual sale tax under B, not automatic optimality. Compare cash gaps and the embedded gains left in unsold lots.
Why can this estimate differ from an administrator’s estimate?
Differences can come from rounding, exact dates, compensation definitions, service-credit treatment, survivor elections, or a rule this model does not implement. Read the method and limits, then reconcile the inputs with the administrator’s records before relying on the amount.
Are the example values my benefit or a forecast?
No. The worked example uses the displayed assumptions to produce “Incremental sale tax: method B minus method A: -$3,592.96”. Your result changes with your own records and assumptions; the example does not establish eligibility or guarantee a future payment.
Are my calculator entries saved or sent to a server?
Calculations run in your browser. Calculator entries are not sent to the site’s server or saved after you leave. The written example is built into the page and does not contain personal information.
This is an educational estimate based on values you supply, not an official eligibility determination, plan estimate, tax return, or individualized financial advice. Calculator entries stay in your browser.