Cryptocurrency Profit Calculator — How to Track Your Crypto Gains

Tracking Cryptocurrency Profits — How to Calculate Your Actual Gains and Losses

You bought Bitcoin at $30,000, then bought more at $45,000, it dropped to $35,000 and you bought again, then it rose to $55,000 and you sold half. Are you up or down? By how much? What is your average cost basis? These questions sound simple but become surprisingly complicated when you have multiple buy transactions at different prices — which is the reality for most cryptocurrency investors.

Understanding Cost Basis

Your cost basis is the total amount you paid for your cryptocurrency holdings, including any transaction fees. If you bought 0.5 BTC at $30,000 ($15,000 total), then bought 0.3 BTC at $45,000 ($13,500 total), your total cost basis is $28,500 for 0.8 BTC. Your average cost basis per BTC is $28,500 / 0.8 = $35,625.

This average cost basis is what you compare against the current price to determine whether you are profitable. If BTC is currently at $40,000, your 0.8 BTC is worth $32,000 against a cost basis of $28,500 — an unrealized profit of $3,500 or 12.3%.

Realized vs. Unrealized Gains

Unrealized gains are profits that exist on paper but have not been locked in through a sale. If your 0.8 BTC is worth $32,000 and your cost basis is $28,500, you have $3,500 in unrealized gains. This number changes every second as the price moves. Unrealized gains are not taxable events.

Realized gains occur when you actually sell cryptocurrency. The gain or loss is the difference between the selling price and the cost basis of the specific units sold. This is where tax implications begin. In most jurisdictions, realized gains from cryptocurrency are subject to capital gains tax.

FIFO vs. LIFO — Which Units Did You Sell?

When you sell part of your holdings, the question arises: which units are you selling? Different accounting methods produce different tax outcomes.

FIFO (First In, First Out): The first units you bought are the first ones sold. If you bought 0.5 BTC at $30,000 and 0.3 BTC at $45,000, then sell 0.5 BTC, FIFO says you are selling the $30,000 units. If the selling price is $50,000, your gain is ($50,000 – $30,000) × 0.5 = $10,000.

LIFO (Last In, First Out): The most recently purchased units are sold first. Using the same example, LIFO says you are selling from the $45,000 batch first. Your gain is ($50,000 – $45,000) × 0.3 + ($50,000 – $30,000) × 0.2 = $1,500 + $4,000 = $5,500.

Notice how FIFO produces a $10,000 gain and LIFO produces a $5,500 gain on the same transaction. The accounting method matters significantly for tax purposes. Most jurisdictions default to FIFO, but consult a tax professional for your specific situation.

Accounting for Fees

Exchange fees, network fees (gas fees for Ethereum transactions), and spread costs all add to your cost basis. If you buy $1,000 worth of ETH and pay a $15 exchange fee plus $5 in network fees, your cost basis is $1,020 — not $1,000. When you later sell that ETH, these fees reduce your taxable gain because they increased your cost basis.

Across many small transactions, these fees add up. A trader making 50 transactions per month at $10-20 in fees per transaction is spending $500-1,000 per month on fees alone — a significant factor in overall profitability that is easy to overlook.

DCA — Dollar Cost Averaging Results

If you invest a fixed amount (say $200) on a regular schedule (say monthly) regardless of price, you are dollar-cost averaging. This strategy results in buying more units when prices are low and fewer when prices are high. Your average cost basis will always be between the lowest and highest prices during your investment period, but it is mathematically weighted toward lower prices because you purchased more units at those levels.

Tracking DCA profits requires calculating the weighted average cost basis across all purchases, which is exactly the type of repetitive calculation where a crypto profit calculator saves significant time and prevents errors.

Use our Crypto Profit Calculator to track your cost basis across multiple transactions, calculate realized and unrealized gains, and understand your actual portfolio performance.