Back to all tools

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.

Purchase Records
Add each purchase with shares, price, and fees
1
Subtotal
15,515
2
Subtotal
9,110
Current Market Price
CNY
Sells (Optional)
Position Analysis
Total Shares Bought
1,500
Total Invested
24,625
Total Fees
25
Remaining Shares
1,500
Weighted Avg Cost
16.417
Current: 16.8 2.3%
P&L Summary
Current Position Value25,200
Unrealized P&L+575
Total Return+2.34%
Realized P&L+0
💡 How to Use

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