Average purchase cost including fees is total cash spent divided by units actually received. A fee deducted from the purchase budget reduces those units. In an equal-price example, twelve $100 purchases at $3,000 per unit with a 0.1% fee receive 0.3996 units, giving an average cost of about $3,003 per unit.
Calculation and worked example. AI-assisted drafting. Educational information; no individual financial advice.
Separate cash spent from units received
Start with two records: how much cash left the account and how many units arrived after the execution fee. Dividing an advertised execution price by the number of purchases does not answer the average-cost question. For the calculation here, each fee is deducted from the cash budget and charged in the quote currency. A fee charged in the purchased asset, or in a separate token, needs a different ledger.
Our DCA cost basis calculator intentionally holds the execution price constant. That makes the fee effect easy to inspect. It does not reconstruct a historical accumulation plan and does not predict whether recurring purchases will outperform another approach.
Work the equal-price example
Assume twelve purchases, each with a $100 cash budget, a $3,000 execution price per unit and a 0.1% purchase fee. These are invented teaching inputs, not an exchange quote.
| Step | Calculation | Result |
|---|---|---|
| Cash spent | 12 × $100 | $1,200 |
| Purchase fees | $1,200 × 0.001 | $1.20 |
| Cash buying units | $1,200 − $1.20 | $1,198.80 |
| Units received | $1,198.80 ÷ $3,000 | 0.3996 |
| Average cost | $1,200 ÷ 0.3996 | $3,003.003003 per unit |
The check is reversible: multiplying 0.3996 units by the unrounded average cost recovers $1,200. Rounding the unit count too early can distort the result, especially for small purchases. Keep full precision in the calculation and round only the displayed result.
What changes with different fill prices?
For actual purchases, calculate units received from each fill separately, then sum them. Average cost becomes the total relevant cash outflow divided by the total acquired units. An arithmetic average of the price labels is usually inappropriate when cash amounts or quantities differ.
Keep timestamps, fee currencies and quantities alongside each fill. If a purchase fills in several pieces, use the pieces rather than replacing them with an unverified headline price. Transfers between your own accounts are also different from new purchases; including the same units twice would inflate the denominator.
Keep network fees in a separate question
Ethereum documentation describes gas as the network execution charge. A network charge and a service trading fee therefore need distinct entries; the documentation is not a source for an exchange fee tier. Whether a particular fee belongs in a tax basis calculation depends on the applicable rules and circumstances. This article supplies bookkeeping arithmetic, not a tax determination.
Use the network-fee guide when a purchase is followed by a withdrawal or an on-chain transaction. Do not add a network charge twice if a service already includes it in the displayed deduction.
What the result cannot establish
The calculator excludes spreads, future prices, sales and jurisdiction-specific tax-lot rules. The average price is a description of the chosen inputs, not a target price, a valuation or a recommendation to buy. To compare current exposure instead, use the portfolio allocation calculator with contemporaneous market values.
Sources & method
What this article adds
The reversible purchase ledger isolates the effect of a fee deducted from a fixed cash budget, with all intermediate values shown.
How it was prepared
Original algebra and an illustrative equal-price ledger, checked against the browser calculator. The linked Ethereum documentation supports only the separation of network execution charges; it does not establish exchange prices, tax treatment or investment outcomes.
- Ethereum gas and fees Checked 2026-11-09
The primary source supports the gas-fee distinction. Purchase prices and rates are fictional inputs, and the cost-basis arithmetic is our own.
For corrections, contact the publisher. Editorial policy · Affiliate disclosure