Cost Basis Calculator
Average cost and P&L analysis for multiple purchases
Track your average cost basis across multiple purchases. See unrealized gains/losses clearly. Supports partial sell tracking.
Enter each purchase's shares, price, and fee. The tool calculates weighted average cost automatically. Enter the current price to see unrealized P&L. For partial sells, enter the details to track realized gains. Note: consider all trading fees including stamp duty.
Important Note
This cost basis calculator does not account for dividends, stock splits, or rights offerings. Tax treatment varies by jurisdiction. For educational purposes only.
Related Tools
Portfolio Rebalancer
Analyze allocation deviations, auto-generate trade instructions
Inflation Calculator
Inflation impact on purchasing power — forward/backward modes, built-in CPI history since 1913
Compound Interest
Compound interest with monthly contributions — growth chart, inflation adjustment, yearly breakdown
Dividend Yield
Calculate dividend yield and simulate reinvestment returns