Crypto DCA Average Cost Calculator and Worked Example
Calculate your average cost per coin from the net units received and total cash spent. Work through fees, partial sales and a reconciliation.

Table of Contents
Average cost per coin is total acquisition cost divided by the net quantity received. Taking the arithmetic mean of price quotes gives the wrong answer whenever your fills are different sizes. Use receipts to measure what entered the wallet and what left it.
Calculate from actual fills
A basic acquisition worksheet needs the amount spent, quantity received and costs paid separately. Suppose three purchases spent the amounts in the next table. The quantity is after any costs that were already deducted from the output.
| Purchase | USDC spent | Net ETH received | Cost paid separately |
|---|---|---|---|
| First | 100.00 | 0.04000 | 0.12 |
| Second | 100.00 | 0.05000 | 0.12 |
| Third | 60.00 | 0.02000 | 0.12 |
| Total | 260.00 | 0.11000 | 0.36 |
The position cost is 260.36 USDC equivalent. Divide by 0.11 ETH to get 2,366.91 per ETH. A charge deducted before the token arrived has already reduced the quantity received. Adding that same charge to acquisition cost a second time exaggerates the cost.
If gas is paid in ETH, choose a documented conversion price for the gas and record it with the order. Keep gas on its own line if your goal is comparing execution costs across chains. That gives you a view both before and after gas.
Reconcile a partial sale
With average-cost accounting for this worksheet, selling 0.04 ETH removes about 94.68 of acquisition cost. If net proceeds are 108.00, the realized gain on the sale is about 13.32. The remaining quantity is 0.07 ETH and its carried acquisition cost is about 165.68. Use full-precision values throughout the calculation, then round for display.
At a later mark of 2,300 per ETH, the remaining holdings are worth 161.00. Their unrealized result is about −4.68. Together with the realized gain, the position is up about 8.64 before any other costs or transfers. A dashboard that displays only sales would show 13.32 and miss the current loss in the open inventory.
Check the formulas against balances
Have your worksheet calculate three checks every time you import a receipt.
- Token units equal opening units plus net purchases minus sold and withdrawn units.
- Net cash flow equals cash received minus cash spent and separate costs.
- Total economic result equals ending inventory value plus cumulative net cash flow after adjusting for deposits, withdrawals and any opening inventory value.
A discrepancy often comes from a failed or replaced order still listed as pending, a token transfer to another account, or mixing bridged and native tokens. Start by comparing actual receipts rather than assuming an order row is a balance entry.
Use the DCA backtester to see the relationship between total invested and ending value on a historical schedule. Its results are simulated. For personal reporting, average cost is one analysis convention. Use the accounting method applicable to your records and jurisdiction for taxes.
Ready to automate your crypto trading?
Set up DCA, grid, or limit-order strategies on Uniswap V3 for Arbitrum and Base — from your own Safe, with a free demo to start.