Home›Freelancer tools›Crypto Tax Calculator

Crypto Tax Cost Basis Calculator – FIFO, LIFO & HIFO Capital Gains Optimizer

Compare FIFO, LIFO, and HIFO accounting methods for Bitcoin and cryptocurrency transactions. Maximize cost basis and legally minimize taxable capital gains before IRS reporting.

Sample Ledger Lots: Lot 1 (1.5 BTC @ $25k) · Lot 2 (2.0 BTC @ $45k) · Lot 3 (1.0 BTC @ $68k).
Taxable Capital Gain
$97,500
FIFO Accounting Method
Estimated Capital Gains Tax
$19,500
Owed on IRS Schedule D
Identified Purchase Lots Sold:
Lot Date Units Sold Cost / Coin Total Cost Basis
Total Cost Basis Matched: $82,500
Tax and wealth planning estimate based on official 2026 IRS codes and statutory rules. This model does not constitute certified CPA tax preparation, ERISA legal counsel, or fiduciary investment advisory.

IRS Cryptocurrency Taxation & Accounting Method Rules

Under IRS Notice 2014-21 and subsequent Treasury regulations, cryptocurrency is treated as property rather than foreign currency. Every crypto-to-fiat sale, crypto-to-crypto trade (e.g. swapping BTC for ETH), or purchase of goods constitutes a taxable capital gains realization event.

Accounting Methods: FIFO vs LIFO vs HIFO

Specific Identification Requirements

To use HIFO or Specific Identification rather than default FIFO, the IRS requires taxpayers to document specific records for each transaction: exact date and time of acquisition, cost basis, transaction hashes, and wallet addresses.

Frequently asked questions

Is trading one crypto for another taxable?

Yes! Trading Bitcoin for Ethereum or swapping tokens on Uniswap is a taxable event. You must calculate capital gain or loss based on the fair market value in USD at the exact moment of the trade.

Can I deduct crypto losses against ordinary income?

Yes. Net capital losses can offset up to $3,000 of ordinary W-2 income per year, with any excess losses carrying forward indefinitely to future tax years.

Does the IRS receive 1099-DA forms from exchanges?

Yes. Under Treasury regulations, US centralized exchanges (Coinbase, Kraken, Gemini) report transactions directly to the IRS via Form 1099-DA.

Automate your crypto tax calculations with CoinLedger

Import thousands of transactions from Binance, Coinbase, and MetaMask with automated HIFO and 1099-DA reports.

Explore Crypto Tax Software

More tools

Hourly Rate Calculator
Project Quote Calculator
Self-Employment Tax (US)
Invoice Generator
Hourly to Salary Converter
Profit Margin Calculator
Mortgage / Loan Calculator
VAT / Sales Tax Calculator
Compound Interest Calculator
Password Generator
Word & Character Counter
Credit Card Payoff
Auto Loan Calculator
ROI & Break-Even
Case Converter
JSON Formatter
PayPal & Stripe Fee
Inflation Calculator
Percentage Calculator
URL Encoder / Decoder
Markdown to HTML
Text Diff Checker
Debt Payoff Planner
Retirement Calculator
Currency Converter
Enterprise Quote Maker
Timestamp Converter
UUID Generator
M3U8 Player
WebRTC Tester
JWT & SSL Inspector
Bitrate Calculator
Cron Generator
SaaS Metrics & LTV/CAC
Payment Gateway Fees
W-2 vs 1099 Converter
Runway & Burn Rate
OG & Card Previewer
JSON to TS & Zod
Mortgage Extra Payoff
Capital Gains Tax
Startup Equity & Options
SQL Formatter & Explainer
Amazon FBA & E-Com Margin
Email Subject Line Tester
High-Yield Savings
Lease vs Buy Car
Rent vs Buy Home
Freelance Rate & Pricing
Bill of Sale Generator
FIRE & Early Retirement
Real Hourly Wage & Commute
Promissory Note
Deposit Demand Letter
Cash Receipt Voucher
TDEE & Calorie Deficit
IP Fraud & Quality Score
Browser Fingerprint
Security Headers Evaluator
Display & Monitor Tester
Mic & Audio Analyzer
Webhook HMAC Verifier
SSL CSR & Key Generator
Bufferbloat Speed Tester
Regex & ReDoS Auditor
PDF Redaction & Sanitizer
SQLite Database Studio
CIDR Subnet Planner
Domain Ping & DNS
Dockerfile Security Linter
Audio Tone & Sweeper
BIP-39 Mnemonic Generator
WCAG Contrast & Vision Simulator
SQL to ORM Converter
HAR Analyzer & Redactor
PCAP Packet Dissector
SQL EXPLAIN Visualizer
OpenAPI Auditor & Mock
RSA Key & Envelope Cryptor
US Synthetic Address Gen
Parquet SQL Studio
K8s Security & Cost Auditor
SSL Certificate Chain Verifier
Protobuf AST Inspector
JS Memory Leak Analyzer
Landed Cost Calculator
CBM & Volumetric Weight
E-Com Return Simulator
GS1 Barcode Generator
Fraud & Chargeback Auditor
US Visa Cost Calculator
Green Card Cost Estimator
Citizenship N-400 Calculator
ESTA vs B1/B2 Comparison
H-1B Visa Fee Breakdown
Life Insurance Calculator
Term vs Whole Life Simulator
Social Security Breakeven
Disability Gap Calculator
Umbrella Insurance Calculator
LTC Cost Calculator
1040-ES Tax Calculator
Roth vs Traditional Calculator
RSU Tax Calculator
State Paycheck Moving Calculator
Section 179 Calculator
QBI 199A Calculator
Estate & Gift Tax Calculator
401(k) Match Maximizer
Mega Backdoor Roth
HSA vs FSA vs Roth
Withdrawal Sequence Planner
T-Bill Ladder Calculator
LLC vs S-Corp Calculator
Operating Agreement Maker
Lease Agreement Maker
NDA & Contractor Maker
DRIP Calculator
Portfolio Rebalancer
Offer Letter Maker
SOW Generator
Cap Rate Calculator
BRRRR Method Calculator
1031 Exchange Calculator
HELOC vs Cash-Out Refi
Airbnb Income Calculator
Etsy Fee Calculator
ROAS Calculator
Cloud Cost Calculator
SWE Offer Calculator
Contract Kill Fee Calculator
SaaS Churn & LTV Calculator
SAFE Note Dilution Calculator
Buy-Sell Agreement Maker
Car Depreciation Calculator
Rule of 72 Calculator
HYSA Tax Drag Calculator
Paid Family Leave Calculator
Affidavit Generator