Crypto & Tax

Crypto Capital Gains & Cost Basis Calculator

Enter or upload your transactions, then compare FIFO, LIFO, and HIFO - with short-term vs long-term breakdown, estimated tax, harvesting opportunities, and a downloadable report. Everything runs in your browser; nothing is uploaded anywhere.

Add transactions
Estimate only - not tax advice. This tool uses simplified rules (one-year holding threshold, flat rates you set, simple loss netting) and doesn't account for wash-sale treatment, jurisdiction-specific rules, or your full tax situation. Confirm everything with a qualified tax professional before filing.

Quick estimate - one disposal

Just sold a single position and want the number now? Fill this in. For a full year of activity across many lots, use the ledger below instead - it handles FIFO, LIFO, and HIFO.

Fees are added to your cost basis on the buy and deducted from proceeds on the sale. Tax uses the ST/LT rates set further down the page.

Capital gain / loss
+$15,955.00
LONG-TERM · 538 DAYS
Proceeds after fees-
Cost basis incl. fees-
Estimated tax-
Return on cost-

Add transaction

Buy: price is what you paid per unit. Fees are added to cost basis.

Or upload a CSV

Expected columns: date, type, asset, quantity, price_usd, fee_usd, network_fee_usd, received_asset, received_qty. Types: buy, sell, swap, income. Dates as YYYY-MM-DD. No quoted commas.

Transactions

DateTypeAssetQtyPriceFeesReceived
No transactions yet - add one above or upload a CSV.

What's inside this calculator

A complete, private workspace for estimating your crypto capital gains - from raw transactions to a downloadable disposal schedule - without creating an account or sending your data anywhere.

Manual transaction entry

Add trades one at a time with date, quantity, price, and fees. The form adapts to each transaction type, with hints explaining how it will be treated.

CSV upload

Import your full history from an exchange export in one go - with a documented column format and a downloadable sample file to match against.

Buy, sell, swap & income

All four transaction types get the right treatment - swaps count as a disposal plus an acquisition, and income creates basis at receipt-date value.

Trading & network fees

Both fee types are tracked separately - added to cost basis on acquisitions and deducted from proceeds on disposals, so nothing gets lost.

FIFO, LIFO & HIFO comparison

The same transactions are matched under all three cost basis methods side by side, so you can see exactly how the choice changes your gain and estimated tax.

Short-term vs long-term

Every disposal is classified against the one-year holding threshold and totalled into short- and long-term buckets, each with its own tax rate.

Tax-loss harvesting

Your remaining lots are checked against current prices you enter, flagging positions with unrealized losses that could offset realized gains.

Downloadable CSV report

Export the full disposal schedule - acquired dates, proceeds, basis, gain, and term - plus summary totals for whichever method you select.

Runs entirely in your browser

No account, no server, no upload. Calculations and CSV parsing happen locally on this page - your transaction data never leaves your device.

Estimate only - not tax advice

Clear notices before and after results: simplified rules, flat rates you set, no wash-sale logic - and a reminder to confirm with a qualified professional.

Filing software, if you want it

After results, optional recommendations for Koinly, CoinTracker, and CoinLedger - clearly marked as affiliate links with a disclosure line.

How to use the capital gains calculator

  1. Start with the quick estimate if you sold a single position - dates, quantity, prices, and fees give you the gain, holding period, and estimated tax immediately.
  2. Build a ledger for a full year. Add buys, sells, swaps, and income by hand, or upload an exchange CSV using the documented column format (a sample file is one click away).
  3. Set your tax rates. Enter the short-term and long-term rates that apply to you, then press Calculate - results update live as you change them.
  4. Compare the three methods. FIFO, LIFO, and HIFO are computed on the same transactions; click a card to see that method's full disposal schedule and estimated tax.
  5. Check harvesting and export. Enter current prices for what you still hold to flag unrealized losses, then download the CSV report for your records or your accountant.

Everything runs locally in your browser - no account, and no transaction data leaves your device at any point.

Benefits of using a crypto capital gains calculator

What is crypto capital gains?

A capital gain is the profit you make when you dispose of an asset for more than it cost you. In most jurisdictions - including the US - cryptocurrency is treated as property rather than currency, which means the same capital gains rules that apply to stocks or real estate apply to your coins. Every time you dispose of crypto, you compare what you received (the proceeds) with what the coins originally cost you including fees (the cost basis). If proceeds exceed basis, you have a capital gain; if they fall short, a capital loss.

What counts as a disposal?

This is where crypto surprises people. Selling for dollars is the obvious case, but swapping one coin for another is usually also a taxable disposal - trading BTC for ETH means you "sold" the BTC at its market value at that moment, even though you never touched fiat. Spending crypto on goods or services works the same way. Simply buying crypto with fiat, or moving coins between your own wallets, is generally not a disposal. Rewards from staking, mining, or airdrops are typically taxed differently: as ordinary income at their market value when received - and that received value then becomes the cost basis for a future disposal.

Example

You buy 1 ETH for $2,000 (plus a $10 fee, so basis = $2,010). Eight months later you swap it for SOL when ETH is worth $3,000. You've realized a $990 short-term capital gain - and your new SOL lots start with a $3,000 basis.

Short-term vs long-term

How long you held the coins before disposing of them usually changes the tax rate. In the US, assets held for one year or less produce short-term gains taxed at your ordinary income rates, while assets held longer than one year qualify for lower long-term capital gains rates. Because the difference can be ten percentage points or more, the holding period of each individual lot matters - which is exactly why the calculator above classifies every disposal separately.

Why cost basis method matters

If you bought the same coin at different times and prices, then sold only part of your position, which coins did you sell? That's what a cost basis method decides. FIFO (first-in, first-out) assumes you sold your oldest coins; LIFO (last-in, first-out) your newest; and HIFO (highest-in, first-out) the most expensive ones - which usually minimizes the reported gain. The method you use can change your taxable gain substantially for identical transactions, but tax authorities set rules about which methods are allowed and how consistently you must apply them, so treat the comparison above as a way to understand the range, not a menu to pick the lowest number from.

Losses aren't wasted

Capital losses offset capital gains, and in many systems a limited amount of excess loss can offset ordinary income, with the remainder carried forward to future years. That's the idea behind tax-loss harvesting: deliberately realizing losses on underwater positions to reduce the tax on your gains. Some jurisdictions apply wash-sale or similar re-purchase rules that can disallow the loss if you buy the same asset back too quickly - check how the rules in your country treat crypto before harvesting.

Rules differ by country and change frequently - the one-year threshold, the rates, income treatment of staking, and loss limits described above are simplifications centered on US practice. Use the calculator to build intuition and a working estimate, then confirm the specifics with a qualified tax professional in your jurisdiction.

Top crypto capital gains calculators

This page gives you a free estimate. When you're ready to file, these are the platforms most commonly recommended for full capital gains reporting - they connect to your exchanges and wallets, apply your country's rules, and generate filing-ready forms.

YOU'RE HERE

This calculator

Best for: a fast, private estimate

Quick single-disposal mode plus a full ledger with FIFO, LIFO, and HIFO compared side by side. No account, no upload - everything is computed in your browser.

PriceFree
DataStays on device
OutputCSV report
Scroll up to use it ↑

Koinly

Best for: international filers

Widely rated the strongest all-rounder - very large exchange, wallet, and blockchain coverage, with tax reports tailored to more than 20 countries rather than the US alone.

Free tierPreview only
Paid from~$49 / tax year
ReportsIRS, HMRC, CRA, ATO
Visit Koinly →

CoinLedger

Best for: TurboTax filers

Built around a fast import-to-filing path with strong error reconciliation, and a direct export pipeline into TurboTax that DIY US filers tend to prefer.

Free tierImport & preview
Paid from~$49 / tax year
ReportsForm 8949, Schedule D
Visit CoinLedger →

CoinTracker

Best for: portfolio tracking

Pairs continuous portfolio tracking with tax reporting, so gains, losses, and harvesting opportunities are visible year-round rather than only at filing time.

Free tierPortfolio tracking
Paid from~$59
ExtrasTax-loss harvesting
Visit CoinTracker →

ZenLedger

Best for: DeFi and staking

Known for on-chain categorization across DeFi protocols and staking activity - useful when your history is more than exchange trades.

Free tierLimited
Paid from~$49 / tax year
FocusDeFi, staking, NFTs
Visit ZenLedger →

TokenTax

Best for: complex, high-value filings

Operates as software plus a full-service accounting firm, with higher tiers that include a dedicated accountant. Priced accordingly, and there's no free version.

Free tierNone
Paid from~$65 / tax year
ExtrasCPA-assisted filing
Visit TokenTax →

Blockpit

Best for: European traders

Country-specific frameworks aimed at EU jurisdictions, which matters when local rules diverge sharply from US treatment.

Free tierPreview
Paid fromVaries by country
FocusEU tax frameworks
Visit Blockpit →