Advertisement
Equity Position Architecture

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.

Finances Category Logo
FINANCES // POSITION SIZING & TRANCHE P&L

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.

⚡ Quick Trade Presets:
1. CURRENT POSITION & TRANCHE SCENARIO

Stock Position & Tranche Action Parameters

Total Invested Capital:$11,000.00
⌨️ Comprehensive Inputs:All values can be adjusted using the − / + buttons, interactive sliders, or typed directly via keyboard.
sh
$
$
$
2. Tranche Scenario: Add or Subtract
sh
FULL LIQUIDATION BENCHMARK

If You Sell 100% of All Shares

+31.82% ROI
Gross Sale Value$14,500.00100 sh @ $145.00
Total Cost Basis$11,000.00Initial capital
Net Gain / Loss+$3,500.00+$35.00/sh
After-Tax Cash$13,975.00-$525.00 tax (15.00%)
PARTIAL SALE OUTCOME

Selling 30 Shares (30.00%)

Realized Tranche
Cash Generated$4,350.00Basis sold: $3,300.00
Realized Profit+$1,050.00+31.82% ROI on tranche
Estimated Tax-$157.50Net cash: $4,192.50
Retained Position$10,150.0070 sh remaining
Retained Position (Remaining Shares)70 shares
Remaining Value:$10,150.00
Remaining Cost Basis:$7,700.00
Unrealized P&L:+$2,450.00
You have extracted $4,350.00. You need $6,650.00 more in gross proceeds to completely recover your initial investment and trade on 100% "house money".
COMPREHENSIVE POSITION & TRANCHE VISUAL BREAKDOWN

Cost Basis vs. Extracted Cash vs. Retained Equity

Original Cost Basis Extracted Cash Retained Equity
$0k$6k$11k$11,000.00Original Cost Basis$4,350.00Cash Extracted Now$10,150.00Retained Position Value
Advertisement
Independent Decision Science

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

Blended Weighted-Average Cost Basis:P_new = [(N_initial × P_initial) + (N_add × P_add) + Fees] ÷ (N_initial + N_add)
Tranche Realized Net Profit:Realized P&L = (N_trim × P_sell - Fees) - (N_trim × P_cost_basis)

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.