Skip to main content
Crypto Taxation

Crypto Capital Gains: How to Calculate and Report Your Profits

Pomegra Learn

How to Calculate Cryptocurrency Capital Gains and Losses

The capital gains calculation is straightforward in principle: subtract your cost basis (what you paid) from your proceeds (what you received) to find your gain or loss. In practice, the calculation becomes complex when you have multiple purchase dates, different transaction fees, and various cost-basis methods. Understanding the mechanics of capital gains calculation is essential for accurate tax reporting and for identifying opportunities to minimize your tax liability through strategic selling and loss harvesting.

Quick definition: A crypto capital gain is the difference between what you received when you sold (or exchanged) cryptocurrency and what you originally paid for it (cost basis). The capital gain is taxed differently depending on whether you held the cryptocurrency more or less than one year (long-term vs. short-term).

Key takeaways

  • Capital gain = proceeds minus cost basis; the formula is the same for crypto as for stocks
  • Cost basis includes the purchase price plus all transaction costs (fees, commissions, network charges)
  • Long-term capital gains (holding more than one year) are taxed at 0%, 15%, or 20%; short-term gains are taxed as ordinary income at up to 37%
  • You must choose a cost-basis method (FIFO, LIFO, or specific identification) and apply it consistently year to year
  • Multiple purchases of the same cryptocurrency at different times require careful tracking to ensure correct basis allocation

The Basic Capital Gains Formula

The capital gains calculation follows a simple formula:

Capital Gain/Loss = Proceeds - Cost Basis

Proceeds are the amount of money (or value received) when you sell or exchange the cryptocurrency. If you sold 1 Ethereum for $3,000 USD, your proceeds are $3,000. If you traded 1 Bitcoin for 15 Ethereum worth $45,000, your proceeds are $45,000 (the fair market value of the Ethereum received).

Cost basis is what you paid to acquire the cryptocurrency, including all transaction costs. If you purchased 1 Ethereum for $2,000 and paid a $25 exchange fee, your cost basis is $2,025. This is critical: many investors forget to include fees in their basis, which overstates their gain by the amount of the fees.

Applied to a simple example: you purchased 1 Bitcoin for $40,000 including all fees. Two years later, you sell it for $95,000. Your capital gain is $95,000 minus $40,000, or $55,000. Because you held the Bitcoin for more than one year, this is a long-term capital gain. If you are in the 24% federal income tax bracket, your long-term capital gains rate is 15%, and you owe $8,250 in federal tax on this gain ($55,000 × 15%).

Cost Basis Components

Cost basis is more than just the purchase price. It includes all costs incurred to acquire the cryptocurrency. These components often go untracked by novice investors but can materially affect your reported gain.

Purchase price. The amount you paid to buy the cryptocurrency. If you purchased 0.5 Bitcoin at $30,000 per coin, your purchase price is $15,000.

Exchange fees. Most crypto exchanges charge a fee when you buy or sell cryptocurrency. These fees are typically a percentage of the transaction (0.1% to 1%, depending on the exchange and trade size) and should be added to your cost basis for purchases or subtracted from proceeds for sales. If you purchased Bitcoin with an exchange fee of $200, your cost basis increases by $200.

Network fees. If you transferred the cryptocurrency from one wallet to another, you may have paid a network fee (transaction fee paid to miners or validators). These fees are sometimes considered part of the cost basis, though tax treatment varies. Conservative practice includes network fees in cost basis to maximize basis and minimize taxable gains.

Withdrawal and deposit fees. Some exchanges charge fees for withdrawing cryptocurrency to a personal wallet or for depositing cryptocurrency from an external wallet. These fees should be included in cost basis for purchases.

Custody fees. If you held cryptocurrency in a custodian account (such as a family office or crypto savings account), any fees charged might be considered part of basis. However, ongoing custody fees unrelated to acquisition might be deductible separately as investment expenses rather than included in basis. Consult a tax professional for the treatment of ongoing custody fees.

Margin and borrowing costs. If you purchased cryptocurrency on margin (using borrowed money), the interest on the borrowed amount is not part of cost basis; rather, it is investment interest expense, which may be deductible separately. However, any fees charged by the exchange for the margin or leverage should be included in cost basis.

For example, if you purchased 1 Ethereum at $2,000 with a 1% exchange fee ($20) and withdrew it to a personal wallet incurring a $5 network fee, your cost basis is $2,025. If you later sell that Ethereum for $3,000, your capital gain is $975 ($3,000 proceeds minus $2,025 basis).

Short-Term vs. Long-Term Capital Gains

The holding period—how long you owned the cryptocurrency before selling—determines whether your gain is short-term or long-term. Short-term capital gains are gains on assets held for one year or less. Long-term capital gains are gains on assets held for more than one year.

The holding period is calculated from the date you acquired the asset to the date you disposed of it. If you purchased Bitcoin on January 10, 2023, and sold it on January 11, 2024, you have held it for more than one year (the one-year threshold is measured to the same date of the following year, so January 10 to January 10 is exactly one year; January 10 to January 11 exceeds one year). The one-day difference between holding exactly one year and holding more than one year can result in thousands of dollars of tax savings.

Short-term capital gains are taxed as ordinary income at your marginal rate, which ranges from 10% to 37% in 2024 and 2025. If you are in the 32% income tax bracket, your short-term capital gains rate is 32%.

Long-term capital gains receive preferential tax treatment. For 2024 and 2025, long-term capital gains are taxed at one of three rates:

  • 0% rate. Available if your taxable income is below $47,025 (single) or $94,050 (married filing jointly).
  • 15% rate. Available for taxable income above those thresholds but below $518,900 (single) or $1,037,800 (married filing jointly).
  • 20% rate. Available for taxable income above those high thresholds.

Most middle-income and upper-middle-income investors fall in the 15% long-term capital gains bracket. The difference between paying 32% (short-term) and 15% (long-term) on a $100,000 gain is $17,000 in federal tax. This powerful incentive to hold cryptocurrency beyond one year is one of the most valuable tax-planning tools available to investors.

A practical example: You purchased 10 Ethereum at $1,200 per coin on March 1, 2023, investing $12,000. On March 1, 2024 (exactly one year to the day), Ethereum is trading at $2,400 per coin. You sell 10 Ethereum for $24,000. Your capital gain is $12,000. If you sell on March 1, 2024 (exactly one year to the day), your holding period is exactly one year, and your gain is short-term (not yet more than one year). You owe tax at your ordinary rate, say 24%, producing $2,880 in tax.

If you wait until March 2, 2024 (one day later), and sell at the same price, your holding period exceeds one year, making this a long-term gain. You owe tax at the 15% long-term rate, producing $1,800 in tax. The one-day difference saves you $1,080 on this transaction.

Cost Basis Methods for Multiple Purchases

When you purchase the same cryptocurrency multiple times at different prices and later sell a portion of your holdings, you must choose a method to determine which coins are being sold. The IRS allows several cost-basis methods, and your choice materially affects your reported capital gain.

First-In-First-Out (FIFO). FIFO assumes that the first coins you purchased are the first to be sold. If you purchased 5 Bitcoin at $30,000 each on January 1 and 5 Bitcoin at $50,000 each on July 1, and you sell 5 Bitcoin on December 1, FIFO assumes you are selling the 5 coins purchased on January 1 (the oldest). Your cost basis for the 5 coins sold is $150,000 (5 × $30,000). This method results in the largest gain if prices have risen since your first purchase.

FIFO is the default method used by most exchanges and tax software. Unless you explicitly choose a different method and apply it consistently, the IRS assumes FIFO.

Last-In-First-Out (LIFO). LIFO assumes that the most recent coins you purchased are the first to be sold. Using the same example, LIFO assumes you are selling the 5 coins purchased on July 1 (the newest). Your cost basis for the 5 coins sold is $250,000 (5 × $50,000). This method results in the smallest gain if prices have risen since your first purchase.

LIFO is not the default, but you can elect it by consistently applying it and maintaining records showing the election. Tax software often allows LIFO selection, simplifying the election.

Specific Identification (SpecID). Specific identification allows you to choose exactly which coins are sold based on their purchase date and price. This method provides the maximum flexibility and tax planning opportunity. If you have purchased Ethereum multiple times and want to sell some, you can identify which specific purchase you are drawing from. You might choose to identify the coins with the highest basis (if you want to minimize gains) or the lowest basis (if you want to recognize gains while harvesting losses elsewhere).

To use specific identification, you must identify the securities at the time of the transaction and maintain contemporaneous records. This means that when you sell, you must tell the exchange or document the specific purchase dates and prices of the coins being sold. Many exchanges and tax software platforms support specific identification, making this method increasingly feasible.

Specific identification is often the most tax-efficient method because it gives you the flexibility to manage gains and losses on a transaction-by-transaction basis. However, it requires more record-keeping and active tax planning.

Calculating Capital Gains on Exchanges and Trades

When you exchange one cryptocurrency for another, you have two taxable events: a sale of the first cryptocurrency and a purchase of the second. For capital gains purposes, you calculate the gain or loss on the first cryptocurrency (proceeds equal to the fair market value of the second cryptocurrency on the exchange date).

For example, if you traded 1 Bitcoin (cost basis $40,000) for 20 Ethereum when Bitcoin was worth $95,000 and Ethereum was worth $4,750 per coin, you have a capital gain of $55,000 on the Bitcoin ($95,000 fair market value at the trade date minus $40,000 cost basis). You also acquire 20 Ethereum with a cost basis of $95,000 (the fair market value of what you received in the trade). If you later sell the Ethereum for $100,000, you have a capital gain of $5,000 on the Ethereum ($100,000 proceeds minus $95,000 cost basis).

The IRS does not treat exchanges of cryptocurrency for other cryptocurrency as "like-kind exchanges" qualifying for deferral of gain recognition. (This is a change from prior law under Section 1031; the Tax Cuts and Jobs Act of 2017 eliminated like-kind treatment for anything other than real property, effective for exchanges after December 31, 2017.) Every crypto-for-crypto exchange is a taxable event with immediate gain recognition.

Real-World Capital Gains Scenarios

Scenario 1: Simple purchase and sale. An investor purchased 1 Bitcoin for $30,000 on June 1, 2023. On July 1, 2024 (more than one year later), Bitcoin is trading at $63,000, and the investor sells. The capital gain is $33,000 ($63,000 proceeds minus $30,000 basis). Because the holding period exceeds one year, this is a long-term capital gain. At the 15% long-term rate, the tax is $4,950.

Scenario 2: Multiple purchases. An investor purchased 5 Ethereum at $1,000 per coin ($5,000) on January 1, 2023, and 5 Ethereum at $2,000 per coin ($10,000) on July 1, 2023. On January 15, 2024, the investor sells 6 Ethereum at $2,500 per coin for $15,000 total proceeds. Using FIFO, the first 5 coins sold are the January 1 purchase (basis $5,000), plus 1 coin from the July 1 purchase (basis $2,000), for a total basis of $7,000. The capital gain is $8,000 ($15,000 proceeds minus $7,000 basis). The holding period on the first 5 coins is more than one year (long-term); the holding period on the remaining 1 coin is less than one year (short-term). The gain must be split accordingly: $5,000 long-term gain on the first 5 coins, and $3,000 short-term gain on the 1 remaining coin. The long-term portion is taxed at 15% ($750), and the short-term portion is taxed at the investor's ordinary rate, say 24% ($720), for a total tax of $1,470.

Scenario 3: Loss harvesting. An investor purchased 1 Bitcoin for $50,000 on June 1, 2023. By January 2024, Bitcoin has declined to $40,000. The investor sells at $40,000 to recognize a $10,000 capital loss. The loss can offset capital gains. If the investor has other capital gains of $30,000 from other investments, the $10,000 Bitcoin loss reduces the net capital gain to $20,000, saving $1,500 in tax (at the 15% long-term rate). The investor can then repurchase Bitcoin (or wait 31 days and repurchase if wash-sale rules apply to crypto) to maintain exposure.

Commingled Positions and Fractional Holdings

One of the technical challenges in crypto taxation is that blockchain transactions often involve fractional units. A Bitcoin can be divided into 100 millionth parts (satoshis), and Ethereum can be divided into 18 decimal places. When you have received fractional rewards, made fractional trades, or split purchases across multiple transactions, your position becomes commingled and difficult to track.

For cost-basis purposes, treat each fractional unit as part of the same underlying coin. If you own 0.5 Bitcoin, 0.3 Bitcoin, and 0.2 Bitcoin from three separate purchases, you have a position of 1.0 Bitcoin with three separate cost bases. When you sell 0.6 Bitcoin, your cost-basis method determines which portions of the position are allocated to the sale.

Many tax software platforms and exchanges have begun supporting fractional holdings and complex cost-basis allocation. Using these tools to export transaction history and calculate basis is far more reliable than manual calculation for large or complex positions.

Tax Rates and Bracket Thresholds

Understanding which tax bracket applies to your capital gains is essential for estimating your total tax liability. Long-term capital gains tax brackets for 2024 and 2025 are:

  • 0% rate (single): Taxable income $0 to $47,025

  • 15% rate (single): Taxable income $47,025 to $518,900

  • 20% rate (single): Taxable income over $518,900

  • 0% rate (married filing jointly): Taxable income $0 to $94,050

  • 15% rate (married filing jointly): Taxable income $94,050 to $1,037,800

  • 20% rate (married filing jointly): Taxable income over $1,037,800

Note that "taxable income" is not the same as gross income. Taxable income is gross income minus standard/itemized deductions and above-the-line deductions. Additionally, long-term capital gains are stacked on top of ordinary income for bracket determination. If you have $100,000 of W-2 wages and $50,000 of long-term capital gains, your capital gains are taxed on top of the wages, potentially pushing you into a higher bracket.

Common Mistakes

Forgetting transaction fees in basis calculations. This is the most common mistake. An investor buys Bitcoin for $40,000 and pays $500 in exchange fees, but reports their basis as $40,000. When they sell, they overstate their gain by $500. Over dozens of transactions, these omissions can result in $5,000 to $10,000 of overstated gains.

Failing to track cost basis for coins received as rewards. If you mined, staked, or received cryptocurrency as an airdrop, the fair market value on receipt becomes your cost basis. Many investors fail to record this FMV at receipt, then years later when they sell, they forget what their basis was. Using conservative estimates or amending prior returns to establish the FMV on receipt is necessary if records are lost.

Using FIFO unconsciously by default. Most exchanges and tax software default to FIFO, which may not be optimal for your situation. If prices have risen substantially since your first purchase, FIFO generates the largest gains. Taking a few minutes to consider whether LIFO or specific identification would be more favorable, and making an explicit election and documenting it, can save significant tax.

Incorrectly calculating holding periods. The holding period is more than one year (not one year), and it is measured to the date of sale. An investor who purchased on January 15 might think they can sell on January 15 one year later; in fact, they must sell on January 16 or later to exceed one year. Off-by-one-day errors are common and can be expensive.

Confusing proceeds with capital gains. The proceeds are what you received; the capital gain is proceeds minus basis. An investor who received $100,000 in proceeds might mistakenly report a $100,000 capital gain if they did not subtract their cost basis. This error can significantly overstate your tax liability and trigger unnecessary audit risk.

FAQ

Can I use different cost-basis methods for different cryptocurrencies?

Yes. You can use FIFO for Bitcoin holdings and LIFO for Ethereum holdings, for example. However, you must apply the chosen method consistently within each cryptocurrency. You cannot use FIFO for one portion of your Bitcoin holdings and LIFO for another portion.

What if I don't remember what I paid for a cryptocurrency?

If you have lost the original transaction records and cannot determine your cost basis, the IRS may allow you to reconstruct the basis using available evidence (exchange statements, credit card records, blockchain transaction data). If you cannot reconstruct basis, you may need to estimate conservatively (using a high basis to minimize reported gains) and keep documentation of your good-faith effort to locate records. For substantial amounts, consulting a tax professional is advisable.

Do I pay capital gains tax on cryptocurrency I hold but never sell?

No. Unrealized capital gains—increases in value while you hold the asset—are not taxable. Only realized capital gains (recognized at the time of sale or exchange) are taxable. This is true even if your cryptocurrency appreciates substantially in value over many years. The tax event occurs only when you dispose of the asset.

How are capital losses treated for cryptocurrency?

Capital losses on cryptocurrency are treated identically to capital losses on stocks. You can offset capital gains dollar-for-dollar. If you have more losses than gains, you can deduct up to $3,000 of net capital loss against ordinary income, with any excess carried forward to future years indefinitely.

Can I report capital losses on cryptocurrency even if I never sold it?

No. Unrealized losses are not deductible. You must actually sell (or otherwise dispose of) the cryptocurrency to realize the loss. This is why tax-loss harvesting is valuable: it converts unrealized losses into realized losses that can be deducted against other gains or ordinary income.

Does the wash-sale rule apply to cryptocurrency capital losses?

The IRS has indicated it intends to apply wash-sale rules to cryptocurrency, though no final regulation has been issued. Until further guidance, assume that if you sell cryptocurrency at a loss, you cannot repurchase substantially similar cryptocurrency within 30 days before or after the sale and claim the loss. "Substantially similar" likely includes the same cryptocurrency, but exchanges like selling Bitcoin and buying Ethereum may not trigger the rule.

Summary

Calculating cryptocurrency capital gains requires understanding the formula (proceeds minus cost basis), tracking cost basis carefully (including all acquisition costs), and choosing an appropriate cost-basis method (FIFO, LIFO, or specific identification). The holding period—whether you held the cryptocurrency more than one year—determines the tax rate: short-term gains are taxed at ordinary rates (up to 37%), while long-term gains are taxed at preferential rates (0%, 15%, or 20%). Understanding these mechanics allows you to minimize tax liability through strategic timing of sales and selection of cost-basis methods. Proper documentation and use of tax software to track and report capital gains is essential for accurate tax compliance.

Next

Cost Basis Tracking for Cryptocurrency Investments