Crypto Investing Basics

    How to Calculate Profit, Loss & Tax on Cryptocurrency

    InvestingJune 1, 2026 · 10 min read

    Cryptocurrency has gone mainstream — but most investors still struggle with the basics: how do you calculate whether you made money, what do you owe in taxes, and how do you track a portfolio that trades 24/7 on multiple exchanges?

    How Crypto Profit and Loss Works

    Profit/Loss = (Sale Price − Cost Basis) × Quantity Sold

    Your cost basis is what you paid for the crypto, including fees. Your proceeds are what you received when you sold, also minus fees.

    Example 1 — Profit

    📈 Buy 0.5 BTC at $40,000 = $20,000 cost basis

    📉 Sell 0.5 BTC at $60,000 = $30,000 proceeds

    → Profit: $10,000 | ROI: 50%

    Example 2 — Loss

    📈 Buy 2 ETH at $3,500 each = $7,000 cost basis

    📉 Sell 2 ETH at $2,000 each = $4,000 proceeds

    → Loss: −$3,000 | ROI: −42.9%

    Example 3 — Multiple buys (averaged)

    📈 Buy 1 BTC at $30K, 1 BTC at $50K = $40K avg cost basis

    📉 Sell 1 BTC at $45,000

    → Profit: $5,000 using avg cost | Or use FIFO: $15,000 profit

    Crypto Taxes: What You Need to Know

    In the US, the IRS treats cryptocurrency as property, not currency. This means every sale, trade, or use of crypto is a taxable event.

    Short-Term vs Long-Term Capital Gains

    Short-Term (held <1 year)

    Taxed as ordinary income at your marginal tax rate (10%–37%). If you bought and sold Bitcoin within the same year, gains are taxed the same as your salary.

    Long-Term (held >1 year)

    Taxed at preferential capital gains rates: 0%, 15%, or 20% depending on income. Holding for over a year typically cuts your tax bill significantly.

    Single, income $0–$47,0250% long-term rate15% on short-term at 12% bracket
    Single, income $47,026–$518,90015% long-term rate22%–35% on short-term
    Single, income $518,901+20% long-term rate37% on short-term

    Taxable vs Non-Taxable Crypto Events

    🧾 Taxable Events

    • • Selling crypto for USD or other fiat
    • • Trading one crypto for another (BTC → ETH)
    • • Spending crypto to buy goods/services
    • • Receiving crypto as income (staking rewards, airdrops, mining)
    • • Getting paid in crypto

    ✅ Non-Taxable Events

    • • Buying crypto with USD (no tax yet)
    • • Transferring between your own wallets
    • • Gifting crypto (up to $18,000/yr exclusion)
    • • Donating crypto to charity (deductible at FMV)
    • • HODLing (no tax until you sell)

    Cost Basis Methods: FIFO, LIFO, and Specific ID

    When you've bought the same crypto at multiple prices, how you calculate cost basis can significantly change your tax bill:

    FIFO (First In, First Out) — IRS default

    The first coins you bought are treated as the first sold. In a rising market, FIFO produces the highest taxable gains (older, lower-cost lots sell first). Most commonly used.

    LIFO (Last In, First Out)

    The most recently purchased coins are treated as sold first. In a rising market, LIFO minimizes gains because you're selling your most expensive lots. Not all exchanges/software support this; must document carefully.

    Specific Identification (SpecID)

    You choose exactly which lot (purchase) you're selling. Maximum flexibility — but requires meticulous record-keeping. Best for minimizing taxes in specific situations (e.g., select the highest-cost lot in a rising market).

    Tax-Loss Harvesting in Crypto

    Unlike stocks, crypto has no "wash sale rule" (as of 2026). This means you can sell a losing position, claim the loss to offset gains, and immediately buy back the same asset.

    Example:

    You have $10,000 in Bitcoin gains. You also hold Ethereum down $4,000 from your cost basis. Sell the ETH → claim $4,000 loss → your net taxable gain drops to $6,000. Then immediately rebuy ETH (no wash sale waiting period). At a 15% long-term rate, this saves $600 in taxes.

    5 Key Rules for New Crypto Investors

    1. Track every transaction from day one. The IRS requires reporting of all crypto transactions. Use portfolio trackers (CoinTracker, Koinly, TaxBit) that connect to exchanges and generate tax forms automatically.
    2. Never invest more than you can lose 100% of. Crypto is highly volatile. Bitcoin has dropped 80% multiple times from all-time highs. Size positions accordingly.
    3. Hold for over one year when possible. The difference between short-term and long-term rates can be 15–22 percentage points — an enormous tax saving on large gains.
    4. Dollar-cost average rather than lump-sum investing. Buying small amounts regularly removes the pressure of timing the market and averages out volatility over time.
    5. Keep records of all transaction fees. Exchange fees and gas fees are added to your cost basis (reducing gains) or subtracted from proceeds (reducing taxable income). They add up quickly for active traders.

    About the Author

    H

    Henry

    Founder & Developer, Online Calculator Suite

    Henry is the independent creator of Online Calculator Suite, based in Utah. He builds and maintains every calculator on this site and writes the guides, checking formulas against published sources such as the IRS, CDC and NIH. He is not a licensed financial advisor or medical professional, so results are for information only.

    Published: June 1, 2026·10 min read

    © 2026 OnlineCalculatorSuite.com – Simplify Your Calculations.