Fees can shrink quantity
When fees are taken in the base asset, you end up with fewer coins than you bought. Your cost basis per coin is higher than the simple buy price.
Cost basis \(C\) = \(Q \cdot P_b\) + \(f_{b,\%}\cdot Q P_b\) + \(f_{b,\mathrm{fixed}}\).
Proceeds \(S\) = \(Q \cdot P_s\) − \(f_{s,\%}\cdot Q P_s\) − \(f_{s,\mathrm{fixed}}\).
Profit \(= S - C\). ROI \(= \frac{S - C}{C}\).
Breakeven sell price \(P_{s,BE}\) solves \(S=C\): \(P_{s,BE} = \frac{C + f_{s,\mathrm{fixed}}}{Q(1 - f_{s,\%})}\).
Calculating profit or loss (P/L) for a crypto trade starts with familiar finance ideas: cost basis, proceeds, fees, and ROI%. At a minimum:
Cost basis \(C = Q \cdot P_b + \text{buy fees}\). Proceeds \(S = Q \cdot P_s - \text{sell fees}\). Profit \(= S - C\). ROI \(= \dfrac{S - C}{C}\).
However, crypto introduces several wrinkles that differ from traditional fiat or stock trades. The calculator lets you model these with percent and fixed fees on both sides, plus a simple after-tax estimate (optional).
Because sell fees reduce proceeds, the breakeven sell price needs to be above the simple average cost. Solving \(S=C\) with sell fee percent \(f_s\) and fixed fee \(k_s\):
\( P_{s,\mathrm{BE}} = \dfrac{C + k_s}{Q(1 - f_s)} \).
If your platform discounts fees when paying with a specific token, treat that as a lower \(f_s\) or \(k_s\) in the calculator, and remember that paying fees in a different asset can alter that asset’s P/L too.
The calculator includes an optional single tax rate applied to positive profit for an after-tax estimate. Real tax treatment can depend on your jurisdiction, holding period, accounting method (FIFO/LIFO/average), and whether costs like network fees are capitalized into basis. Treat the output as an educational approximation, not tax advice.
This is a static, privacy-first calculator: no price feeds, no storage of your inputs. For portfolio-level analysis, repeat the calculation per lot or export your fills and aggregate offline.
When fees are taken in the base asset, you end up with fewer coins than you bought. Your cost basis per coin is higher than the simple buy price.
A 0.10% fee on buy and sell plus a 0.10% spread means you need roughly +0.30% price move just to break even.
Swapping coin → stablecoin can be a taxable disposal in many places, even if no fiat hits your bank. P/L is measured in the quote asset.
Tiny leftover balances (“dust”) from fees and rounding can grow if the asset rallies. Exporting fills helps you capture those mini P/L contributors.
A $2 fixed fee on a $20 trade is a 10% haircut. On a $2,000 trade it’s 0.1%. Mixed fee models make trade size matter for ROI.