Crypto Profit: formula
SEC Investor.gov: financial calculators · IRS: Digital-asset transaction FAQs
Crypto Profit: worked example
| Crypto units | 2 |
|---|---|
| Purchase price per disposed unit, before fees | $25,000 |
| Sale price per unit | $40,000 |
| Combined purchase and disposal fees | $500 |
| Of those fees, purchase fees | $0.00 |
| Net crypto gain or loss | $29,500 |
| Return on cost | 59.0% |
| Net sale proceeds | $79,500 |
The fee allocation changes cost basis and net proceeds without changing the combined gain. Purchase fees cannot exceed combined fees. IRS digital-asset rules distinguish transaction types and allocable costs; a wallet transfer, exchange, fee paid in tokens and cash sale can require different records.
Do not treat an average across unrelated lots as the basis of a particular disposal.
Crypto Profit: changing Crypto units
| Crypto units | Net crypto gain or loss | Return on cost | Net sale proceeds |
|---|---|---|---|
| 1.6 | $23,500 | 58.8% | $63,500 |
| 1.8 | $26,500 | 58.9% | $71,500 |
| 2 (example) | $29,500 | 59.0% | $79,500 |
| 2.2 | $32,500 | 59.1% | $87,500 |
| 2.4 | $35,500 | 59.2% | $95,500 |
Crypto Profit: compare input ranges
| Input | Tested from | To | Net crypto gain or loss: low input | Net crypto gain or loss: high input | Swing |
|---|---|---|---|---|---|
| Sale price per unit | $36,000 | $44,000 | $21,500 | $37,500 | $16,000 (54%) |
| Purchase price per disposed unit, before fees | $22,500 | $27,500 | $34,500 | $24,500 | $10,000 (34%) |
| Crypto units | 1.8 | 2.2 | $26,500 | $32,500 | $6,000 (20%) |
| Combined purchase and disposal fees | $450 | $550 | $29,550 | $29,450 | $100 (0.3%) |
| Of those fees, purchase fees | $0.00 | $1.00 | $29,500 | $29,500 | $0.00 |
Crypto Profit: individual input comparisons
| Input | Value | Net crypto gain or loss | Return on cost | Net sale proceeds |
|---|---|---|---|---|
| Crypto units | 1.6 | $23,500 | 58.8% | $63,500 |
| 1.8 | $26,500 | 58.9% | $71,500 | |
| 2 | $29,500 | 59.0% | $79,500 | |
| 2.2 | $32,500 | 59.1% | $87,500 | |
| 2.4 | $35,500 | 59.2% | $95,500 | |
| Purchase price per disposed unit, before fees | $20,000 | $39,500 | 98.8% | $79,500 |
| $22,500 | $34,500 | 76.7% | $79,500 | |
| $25,000 | $29,500 | 59.0% | $79,500 | |
| $27,500 | $24,500 | 44.5% | $79,500 | |
| $30,000 | $19,500 | 32.5% | $79,500 | |
| Sale price per unit | $32,000 | $13,500 | 27.0% | $63,500 |
| $36,000 | $21,500 | 43.0% | $71,500 | |
| $40,000 | $29,500 | 59.0% | $79,500 | |
| $44,000 | $37,500 | 75.0% | $87,500 | |
| $48,000 | $45,500 | 91.0% | $95,500 | |
| Combined purchase and disposal fees | $400 | $29,600 | 59.2% | $79,600 |
| $450 | $29,550 | 59.1% | $79,550 | |
| $500 | $29,500 | 59.0% | $79,500 | |
| $550 | $29,450 | 58.9% | $79,450 | |
| $600 | $29,400 | 58.8% | $79,400 | |
| Of those fees, purchase fees | $0.00 | $29,500 | 59.0% | $79,500 |
| $0.00 | $29,500 | 59.0% | $79,500 | |
| $0.00 | $29,500 | 59.0% | $79,500 | |
| $1.00 | $29,500 | 59.0% | $79,501 | |
| $2.00 | $29,500 | 59.0% | $79,502 |
Crypto Profit: combined input changes
| Crypto units / Purchase price per disposed unit, before fees | $20,000 | $25,000 | $30,000 |
|---|---|---|---|
| 1.6 | $31,500 | $23,500 | $15,500 |
| 1.8 | $35,500 | $26,500 | $17,500 |
| 2 | $39,500 | $29,500 | $19,500 |
| 2.2 | $43,500 | $32,500 | $21,500 |
| 2.4 | $47,500 | $35,500 | $23,500 |
Crypto Profit: which assumptions move the result?
Crypto Profit: values and definitions
| Quantity and definition | Value used |
|---|---|
| Crypto units | 2 |
| Purchase price per disposed unit, before fees | $25,000 |
| Sale price per unit | $40,000 |
| Combined purchase and disposal fees | $500 |
| Of those fees, purchase fees | $0.00 |
| Net crypto gain or loss | $29,500 |
| Return on cost | 59.0% |
| Net sale proceeds | $79,500 |
Disposed units, their acquisition cost and associated fees determine the cost basis used in the gain calculation. Combined fees cover acquisition and disposal once; the purchase-fee field allocates part of that total to acquisition cost. For $500 total fees with $200 on acquisition, enter 500 and 200, not 700.
Different purchase lots require their own basis records.
Common error: Tracking crypto gains as one blended average cost across all purchases rather than per transaction. Many tax jurisdictions require transaction-level basis reporting, and an averaged approach can produce a figure that doesn't match what's owed.
Investing & Returns calculators: P/E Ratio Calculator, PEG Ratio Calculator, Dividend Payout Ratio Calculator, Earnings Per Share (EPS) Calculator, Market Cap and Enterprise Value Calculator, Book Value Per Share Calculator.
Transaction fees on both the buy and sell side, plus network fees, can consume a meaningful share of a modest gain, and because many jurisdictions tax cryptocurrency transaction by transaction rather than in aggregate, the exact basis and proceeds on each individual trade matter far more here than in typical securities recordkeeping.
Keep purchase cost, sale proceeds and every fee recorded at the individual transaction level, not as one blended average, since tax filing generally requires that level of detail.
Estimate tax with the capital gains tax calculator, and use the tax-loss harvesting calculator for losses. The position size calculator helps decide how much of a portfolio to risk in a volatile asset. Keep a record of every transaction date and price, since reporting rules require them.
Does a positive gain equal my tax bill?
No. The result excludes tax rates, holding period, other gains and losses, filing status and any transaction-specific treatment.
Can I combine several purchase lots?
Only if the entered acquisition cost accurately represents the units disposed of under the applicable identification rules. Keep each original acquisition record.
Is selling crypto taxable?
In the US, yes. Digital assets are treated as property, so selling, swapping or spending them can create a taxable gain or loss.
Where do I find my crypto cost basis?
Use your exchange's transaction history or tax report, and add all purchases. If you moved coins between wallets, keep the original purchase records.
Do network fees count?
Fees paid to buy add to your cost basis and fees paid to sell reduce your proceeds, so both lower the taxable gain.