Knowing whether a crypto trade made money takes more than comparing the price you bought at with the price you sold at. Fees, partial fills and repeated purchases all move the result. This guide defines cost basis properly, separates realized from unrealized gains, shows how fees quietly eat a return, and works through a dollar-cost averaging table you can copy.
Cost basis: the number every gain is measured from
Cost basis is what an asset cost you in total — purchase price plus fees. Sell 0.5 BTC bought at $30,000 and your basis is $15,000. At $42,000 the position is worth $21,000, a gross gain of $6,000, or 40%. Return is always gain divided by basis:
Return % = (Proceeds − Cost basis) ÷ Cost basis × 100
When you buy the same coin in several lots at different prices, each lot carries its own basis. You cannot simply average them unless you deliberately use an average-cost method, and not every tax authority permits that.
Realized vs unrealized gains
- Unrealized (paper) gain — the position is still open, nothing is locked in, and the number can fall before you act
- Realized gain — the asset was sold, traded for another coin, or spent, so the profit exists regardless of what happens next
- Loss — a realized or unrealized negative result, which may offset gains for tax purposes
Swapping ETH for SOL is a disposal of ETH in most jurisdictions, so a trade that never touches a bank account still realizes a gain.
Trading fees and their real effect
A 0.10% taker fee applies to both sides of the example above: $15 on the buy and $21 on the sale. Your effective basis becomes $15,015 and your net proceeds $20,979, so the true gain is $5,964 rather than $6,000, and the return falls from 40.00% to 39.72%. That is small on one round trip, but an active trader paying 0.10% per side across dozens of trades gives back 2–4% of capital a year before any wrong decisions.
| Item | Amount |
|---|---|
| Sell proceeds | $21,000.00 |
| Purchase price | −$15,000.00 |
| Buy fee | −$15.00 |
| Sell fee | −$21.00 |
| Net profit | $5,964.00 |
Dollar-cost averaging, worked through
DCA buys a fixed amount on a schedule instead of one lump sum. Invest $500 monthly for six months:
| Month | Price | Units bought |
|---|---|---|
| 1 | $40,000 | 0.012500 |
| 2 | $36,000 | 0.013889 |
| 3 | $32,000 | 0.015625 |
| 4 | $34,000 | 0.014706 |
| 5 | $38,000 | 0.013158 |
| 6 | $42,000 | 0.011905 |
| Total | $3,000 invested | 0.081783 |
The average entry price is $3,000 ÷ 0.081783 = $36,682. Held to $42,000 the stack is worth $3,435 — a 14.5% gain — while a single $3,000 buy at the first month's $40,000 would be up only 5%. DCA is not guaranteed to win; it removes the risk of committing everything at a local high.
Enter your own lots in the Crypto Profit Calculator for net gains after fees, then pass realized trades to the Crypto Tax Calculator.
Frequently asked questions
Does a transfer between my own wallets realize a gain? Usually not — moving assets between wallets you control is not a disposal, but record it anyway so the cost-basis chain stays intact.
How do staking rewards affect my basis? Rewards are typically income valued when received, and that value becomes the cost basis of the new units.
Why is my percentage different from the exchange total? Exports often exclude fees or use an averaged basis; recompute from the raw fills to see the true figure.