Stock Buy/Sell & Tranche P&L Calculator (+ Partial Profit Sizing)
Calculate full liquidation net returns and simulate partial position adjustments. Accurately model realized cash from profit trimming, track remaining unrealized position value, calculate "house money" capital recovery thresholds, or update blended weighted-average cost basis when scaling in on dips.
Buy/Sell Stock Scenario
Model full liquidation, partial profit-taking to recover your initial cost basis ("house money"), or averaging down on a market dip.
Stock Position & Tranche Action Parameters
If You Sell 100% of All Shares
Selling 30 Shares (30.00%)
Cost Basis vs. Extracted Cash vs. Retained Equity
Position Sizing, Tranche Rebalancing & Tax Basis Mechanics
Mathematical modeling of partial sales, cost-basis averaging, and risk-elimination thresholds for individual equities and ETFs.
Who This Calculator Helps
Active investors, swing traders, and long-term shareholders deciding whether to take partial profits off the table after a major rally, or determining how many shares to purchase on a pullback to lower their average breakeven cost basis without over-allocating capital.
The "House Money" Capital Recovery Theorem
When an asset appreciates substantially, selling a partial tranche equal to your total initial cash outlay (Cost Basis) eliminates 100% of your downside principal risk. The remaining retained shares carry an effective risk-basis of zero, compounding indefinitely on pure market profit.
Core Mathematical Formulas
Regulatory & Tax References
Frequently Asked Questions
How does selling a partial tranche affect my capital gains tax?
Only the specific shares sold trigger a taxable event. The cost basis of the trimmed shares is subtracted from your sale proceeds to determine your realized gain. Shares that remain in your portfolio stay unrealized, deferring tax liability until future sale.
Why is weighted-average cost basis superior to simple price averaging?
Simple averaging ignores position size. Buying 10 shares at $200 and 100 shares at $100 yields an average cost of $109.09 per share, whereas a simple average would misleadingly suggest $150. Weighting by share volume provides the exact breakeven target.
