Stock and Crypto Trade Profit Calculator
Use a known purchase cost to calculate the profit on units sold.
Combine purchase quantities, prices and attributable fees to find average economic cost per unit. The calculation excludes sales, tax-lot rules and automatic adjustments for stock splits.
A purchase average should weight each price by the number of units bought. This tool also includes attributable purchase fees, producing an economic acquisition cost per unit for one asset across several purchases.
Multiply the row quantity by its unit price and add that row's purchase fee. A fixed transaction fee therefore affects a small purchase more per unit.
Add all purchased units and all acquisition costs. Larger purchases carry greater weight, which is why a simple average of quoted prices can be misleading.
Divide total acquisition cost by total units. The result reconciles the combined purchase history without inventing a current market price.
Sample inputs demonstrate the method. They are not a forecast or product offer.
The first example buys ten units at 10 and twenty units at 20 without fees. Total cost is 500 for thirty units, giving approximately 16.6667 per unit; the larger purchase receives twice the weight.
Sample inputs demonstrate the method. They are not a forecast or product offer.
The average is an economic cost for the purchases included, not a historical average of market quotes. It changes when purchases or attributable fees are added.
Sales, tax-lot matching and realised gains are outside this model. If shares have split, restate quantities and prices consistently before combining earlier and later purchases.
Calculate the quantity-weighted purchase price of one asset, including attributable purchase fees.
Purchases only. Stock splits must already be reflected consistently in quantities and prices.
Read our calculation and testing approach.