Lot Accounting · DeFi Tax Optimization

HIFO vs. FIFO on DeFi Swaps: Stop Losing 15%–37% on Base & Ethereum

When you execute a swap on Uniswap, Aerodrome, or a 0x v2 aggregator, your wallet doesn't care which ETH lot you bought in 2021 versus last month. Tax authorities do. Using naive FIFO forces you to realize maximum capital gains first.

Check Your FIFO Overpayment in 10 Seconds ($0 Upfront)

TaxRail reconstructs your wallet's real cost-basis lots on Base, Ethereum, and Arbitrum, compares FIFO against HIFO / SpecID, and builds a 1-click optimized execution. $0 upfront—only a 10% fee on verified savings inside the transaction.

Scan My Lots Free ($0 Upfront)

1. Concrete Math: Selling 1 ETH at $3,500

MethodLot SelectedTaxable GainEst. Tax (30% Rate)
FIFO (Oldest first)1 ETH bought at $1,200$2,300$690 owed
HIFO / SpecID (Highest basis)1 ETH bought at $3,400$100$30 owed ($660 saved)

2. Automated Lot Proofs for Every Swap

TaxRail pairs pre-trade simulation (/v1/pre-trade-check) with post-trade evidence (/v1/claim-dossier), giving both human traders and autonomous AI agents verifiable lot-level records ready for Form 8949.

3. Related 2026 Tax Guides

IRS 1099-DA 2026 Checklist

Deadlines and compliance for US wallets.

Base Tax-Loss Harvesting 2026

Harvest underwater Base tokens before Dec 31.

Borrow USDC on Aave v3

Avoid triggering a taxable disposal altogether.