AI-Powered Market Intelligence
Understand the reason behind any stock move.
Maintain clean basis accounting after partial exits.

Remaining Cost Basis Calculator
Calculate remaining cost basis after a partial sale.
Use this deterministic remaining basis calculator (average-cost method) to estimate residual cost basis after selling part of a position.
Results
Remaining cost basis
$23,168.00
After selling 180.0000 shares, remaining basis is $23,168.00.
- Remaining shares
- 320.0000
- Average cost/share
- $72.40
- Remaining cost basis
- $23,168.00
Formula
Remaining Cost Basis = (Total Shares - Shares Sold) × Average Cost Per Share
Example
- Total shares before sale: 500
- Shares sold: 180
- Average cost per share: 72.4
What does this mean?
- •Uses average-cost method, not lot-specific FIFO/LIFO.
- •Remaining shares and basis are key for future gain/loss calculations.
- •Align method with brokerage accounting standards for reconciliation.
Track residual basis after trimming
Maintain clean basis accounting after partial exits.
What is a remaining cost basis?
Use this deterministic remaining basis calculator (average-cost method) to estimate residual cost basis after selling part of a position. In practice, this means you can quantify remaining cost basis using total shares before sale, shares sold, and average cost per share without relying on hidden assumptions or black-box scoring.
Primary input set for this calculator: Total shares before sale, Shares sold, Average cost per share.
How to calculate remaining cost basis
- 1.Step 1: Enter total shares before sale with the timeframe/context you want to evaluate.
- 2.Step 2: Enter shares sold with the timeframe/context you want to evaluate.
- 3.Step 3: Enter average cost per share with the timeframe/context you want to evaluate.
- 4.Step 4: Apply formula Remaining Cost Basis = (Total Shares - Shares Sold) × Average Cost Per Share.
- 5.Step 5: Interpret output together with risk, liquidity, and catalyst context.
Why this metric matters
This metric turns trade assumptions into explicit numbers for sizing, entry/exit planning, and portfolio discipline.
Pair this calculator with catalyst context from headlines, filings, and options flow to avoid relying on isolated numbers.
When to use this calculator
- ✓Before opening a new position where remaining cost basis impacts sizing or risk.
- ✓After a catalyst to quantify how much conditions changed versus your baseline.
- ✓When comparing setups across multiple tickers with one consistent formula.
- ✓During weekly review to keep decision-making tied to measurable inputs.
Common scenarios
Uses average-cost method, not lot-specific FIFO/LIFO
Use this remaining cost basis workflow to quantify this scenario with deterministic inputs.
Remaining shares and basis are key for future gain/loss calculations
Use this remaining cost basis workflow to quantify this scenario with deterministic inputs.
Align method with brokerage accounting standards for reconciliation
Use this remaining cost basis workflow to quantify this scenario with deterministic inputs.
Event reaction review
Recalculate remaining cost basis immediately after earnings, filings, or macro headlines.
Interpretation tips
- •Re-run remaining cost basis whenever key inputs change materially, not only when price moves.
- •Document assumptions so the same methodology can be repeated across watchlist names.
- •Use this metric as one layer in the decision stack, not as a standalone trade trigger.
Data caveats
- –Outputs are deterministic from your inputs; input quality determines output quality.
- –This page does not auto-adjust for broker fees, taxes, or slippage unless you include them in your assumptions.
- –Validate corporate action details, filing dates, and data freshness before acting on results.
FAQ
How does the remaining cost basis calculator work?
Remaining Cost Basis Calculator is deterministic and uses only your inputs (total shares before sale, shares sold, average cost per share). Formula: Remaining Cost Basis = (Total Shares - Shares Sold) × Average Cost Per Share.
What does this output tell me in practice?
Calculate remaining cost basis after a partial sale. Pair this with a stop-loss and thesis review, not just return math.
Does the remaining cost basis calculator use real-time market feeds?
No. This page does not auto-pull live data. You control all inputs and can rerun instantly as market conditions change.
Can I use this result directly for trading decisions?
Use it as a planning layer. Combine with position sizing, liquidity, and catalyst context before any execution.
