crypto-tax
cost-basis
capital-gain
fifo
lifo
hifo
spec-id
1099-da
carf
dac8
bitcoin
digital-asset

Crypto Cost Basis & Gain Calculator

Compute cost basis and realized gain/loss per disposal using FIFO, LIFO, HIFO, or specific-identification lot matching. Short/long-term split at 12-month threshold (IRC §1222). Per-wallet basis tracking as required for US taxpayers from 2025 (IRS Rev. Proc. 2024-28). Feeds IRS Form 1099-DA and CARF/DAC8 basis reporting. Tier 1 Policy Mandate + Tier 2 gain/loss schedule CSV. Client-side. Works offline. Zero PII.

Tool URL: https://ainumbers.co/tools/466-crypto-cost-basis-gain-calculator.html AP2/Policy Mandate export: yes

post/v1/tools/crypto_cost_basis_gain_calculator

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/crypto_cost_basis_gain_calculator
  • Auth: none declared

Request body

method'FIFO' | 'LIFO' | 'HIFO' | 'spec_id' required

Lot-matching method: FIFO=first-in-first-out; LIFO=last-in; HIFO=highest-cost-first; spec_id=taxpayer designates each lot

wallet_by_walletboolean

Restrict lot matching to same wallet (required for US from 2025)

Response

Successful tool execution result

total_proceeds_usdnumber
total_basis_usdnumber
net_gain_loss_usdnumber
short_term_gain_loss_usdnumber
long_term_gain_loss_usdnumber

Changes

No recorded changes to this operation across all 1 revision of this API.