Skip to content
Worix
BrowsePublish
Log inSign Up

Crypto Tax Calculator

Calculate crypto capital gains taxes with FIFO/LIFO/average cost methods, multi-country tax law support, and HTML report generation.

27 downloads
Free
Reviewed
chinese
productivity

Crypto Tax Calculator πŸ“Š

A comprehensive cryptocurrency tax calculation engine. Import your trades, select your jurisdiction, and generate professional tax reports.

Workflow Overview

[Import CSV] β†’ [Parse Trades] β†’ [Match Cost Basis] β†’ [Calculate Gains] β†’ [Apply Tax Rules] β†’ [Generate Report]
     ↓              ↓                  ↓                    ↓                   ↓                    ↓
  Validate      Normalize         FIFO/LIFO/AVG        Short vs Long       US/UK/AU/CN         HTML + CSV
  Format        Currencies        Cost Matching         Term Gains          Rate Tables          Tax Report

Step 1: Prepare Your Data

Your CSV must have these columns (order doesn't matter):

ColumnRequiredFormatExample
dateβœ…YYYY-MM-DD HH:MM:SS2024-03-15 14:30:00
typeβœ…buy/sell/swap/transferbuy
assetβœ…SymbolBTC
amountβœ…Decimal number0.5
price_usdβœ…USD value per unit65000.00
fee_usd❌Fee in USD2.50
exchange❌Exchange nameBinance
tx_hash❌Transaction hash0xabc...

Step 2: Choose Your Method

# FIFO β€” First In, First Out (most common, required in some jurisdictions)
bash scripts/crypto-tax-calc.sh calculate --input trades.csv --method fifo --country US

# LIFO β€” Last In, First Out (can minimize taxes in rising markets)
bash scripts/crypto-tax-calc.sh calculate --input trades.csv --method lifo --country US

# Average Cost β€” Weighted average (required in UK, simpler calculation)
bash scripts/crypto-tax-calc.sh calculate --input trades.csv --method average --country UK

Step 3: Select Jurisdiction

πŸ‡ΊπŸ‡Έ United States

  • Short-term gains (<1 year): Taxed as ordinary income (10%-37%)
  • Long-term gains (>1 year): 0%, 15%, or 20%
  • Wash sale rules: Currently not enforced for crypto (may change)
  • Form 8949 generation supported

πŸ‡¬πŸ‡§ United Kingdom

  • Capital Gains Tax: 10% (basic) / 20% (higher rate)
  • Annual exempt amount: Β£6,000 (2024/25)
  • Must use share pooling (average cost)
  • HMRC-compatible report format

πŸ‡¦πŸ‡Ί Australia

  • CGT discount: 50% for assets held >12 months
  • Marginal tax rates apply (19%-45%)
  • Personal use asset exemption <$10,000
  • ATO-compatible output

πŸ‡¨πŸ‡³ China

  • Individual income tax: 20% on gains
  • Currently ambiguous regulation
  • Report provides gain calculations for reference

Step 4: Generate Report

The tool outputs:

  • HTML Report β€” Visual summary with charts, tables, per-asset breakdown
  • CSV Export β€” Machine-readable gain/loss per trade
  • Summary JSON β€” Totals for integration with other tools

Full Command Reference

# Calculate taxes
bash scripts/crypto-tax-calc.sh calculate --input FILE --method METHOD --country CODE [--year YEAR]

# Validate CSV format
bash scripts/crypto-tax-calc.sh validate --input FILE

# Show summary only (no report file)
bash scripts/crypto-tax-calc.sh summary --input FILE --method METHOD

# Merge multiple exchange CSVs
bash scripts/crypto-tax-calc.sh merge --inputs "file1.csv,file2.csv" --output merged.csv

# Compare methods side-by-side
bash scripts/crypto-tax-calc.sh compare --input FILE --country CODE

Important Disclaimers

⚠️ This tool is for informational purposes only. It is NOT tax advice. Consult a qualified tax professional for your specific situation.

⚠️ Tax laws change frequently. Always verify current rates and rules with your local tax authority.

Download

ZIP package β€” ready to use

Skill Info

Creator
bytesagain1
Downloads
27
Published
Mar 15, 2026
Updated
Mar 16, 2026