How do I enter lots?
Use shares@price for each purchase, separated by commas or line breaks.
Combine several purchase lots to find total shares, total cost, and average cost per share.
One lot per line or comma-separated as shares@price (example: 50@40, 25@48).
How to use Cost Basis Calculator, plus the formulas and logic behind the results.
Average cost basis divides total dollars invested by total shares acquired across lots. Tax methods (FIFO, specific ID) may differ from average cost.
Lot cost = Shares × PriceTotal cost = Σ lot costsTotal shares = Σ sharesAverage cost = Total cost ÷ Total sharesLot format
Each shares@price pair is parsed; costs and shares are summed; average equals total cost divided by total shares.
Brokerage tax lots may use FIFO or specific identification instead of average cost.
Common questions about the calculation and how to interpret the estimate.
Use shares@price for each purchase, separated by commas or line breaks.
Total amount paid divided by total shares owned.
Not automatically—raise the price slightly or add fee dollars into a lot if needed.
Some accounts allow average cost; others require FIFO or specific lots—check your broker/tax rules.
Yes, if shares and prices are valid positive numbers.
Invalid tokens are skipped; at least one valid lot is required.