Sub topic 19
Tax reporting and record keeping
This chapter assumes you have finished registration, verification, and your first deposit and withdrawal. It also assumes you know what a sale, a swap, and a transfer to a wallet are. It does not give tax advice, because rules differ by country and change often. It explains the working model, so you know what to keep and what to ask an accountant.
Why tax belongs in an account-opening tutorial
The identity data you gave the exchange is also tax data. Many jurisdictions now require exchanges to report customer activity to tax authorities. To do that, the exchange needs your legal name, address, date of birth, country of residence, and a tax identification number.
Three reporting regimes show the trend. Check the current details for your country.
| Regime | Where | What it does |
|---|---|---|
| Form 1099-DA | United States | Brokers report gross proceeds for digital asset sales. Reporting of cost basis is being phased in for assets acquired from 2026. |
| DAC8 | European Union | Crypto-asset service providers collect user data and report transactions to national tax authorities. Collection began in 2026. |
| CARF | OECD framework | Provides for automatic exchange of crypto account data between participating countries. |
This is why some exchanges ask you to self-certify your tax residence during onboarding or later. If you move country or get a new tax ID, update it. A mismatch between your tax residence and your document or address can trigger a review, as described in the earlier chapter on ongoing monitoring.
Which events are usually taxable
Rules vary, but most countries treat these events similarly.
- Usually taxable: selling crypto for fiat, swapping one crypto for another, and spending crypto on goods or services.
- Often taxed as income: staking rewards, airdrops, referral bonuses, and interest from lending products, valued at the time you receive them.
- Usually not taxable by itself: buying crypto with fiat and holding it, and moving crypto between wallets you own.
The last case causes the most trouble. A move between your own accounts is not a sale, but the exchange's records only show a withdrawal. You must be able to show that the destination was yours, or the withdrawal may look like a disposal.
The cost basis model
The cost basis is what you paid for an asset, including fees. When you dispose of it, the gain or loss is the proceeds minus the cost basis. If you bought at different prices, you need a rule for which units you sold. Common methods:
- FIFO (first in, first out): the oldest units are sold first. Many countries use it by default.
- Specific identification: you choose the lots to sell, if you keep records that prove it. Some countries allow this.
- Average cost: every unit has the same blended cost. Some countries require this.
Your jurisdiction decides which method is allowed. You cannot choose freely, and you should apply one method consistently.
The following script applies FIFO to a sale. It uses Decimal rather than floats so cents stay exact.
from collections import deque
from decimal import Decimal as D
def fifo_gain(lots, sell_qty, sell_price, fee=D("0")):
"""lots: list of (quantity, unit_cost), oldest first."""
queue = deque(lots)
remaining = sell_qty
cost = D("0")
while remaining > 0:
if not queue:
raise ValueError("Sale exceeds recorded purchases: history is missing")
qty, unit_cost = queue.popleft()
used = min(qty, remaining)
cost += used * unit_cost
remaining -= used
if qty > used:
queue.appendleft((qty - used, unit_cost))
proceeds = sell_qty * sell_price - fee
return proceeds - cost, list(queue)
lots = [(D("0.5"), D("20000")), (D("0.5"), D("30000"))]
gain, left = fifo_gain(lots, D("0.75"), D("40000"), D("10"))
print(gain) # 12490.00
print(left) # [(Decimal('0.25'), Decimal('30000'))]The sale consumes all of the first lot (cost 10,000) and half of the second (cost 7,500). Proceeds are 30,000 minus the 10 fee, so the gain is 29,990 − 17,500 = 12,490. The ValueError is the important failure mode. If you sell units whose purchase you cannot document, a calculator has no basis to use. Tools often assume zero, which overstates your gain.
How records flow
What to keep
| Record | Why it matters |
|---|---|
| Full trade, deposit, and withdrawal history (CSV) | Source of dates, amounts, prices, and fees |
| Transaction hashes and wallet addresses | Proves a transfer was between your own accounts |
| Fiat deposit and withdrawal statements | Links your bank to the exchange |
| Income events (staking, rewards) with value at receipt | Needed to tax income and to set the cost basis of those units |
| Annual tax statements issued by the exchange | Lets you check your own calculation against what was reported |
| Your chosen cost basis method and any tax residence changes | Keeps your method consistent between years |
Keep records for the period your tax authority requires. Many countries require five to seven years, and some require longer. Count from the filing date, not from the trade date.
Common errors
- Relying on the exchange's export as permanent. Exchanges can restrict or close accounts, and history downloads can be limited by date range or row count. Export the full history at least once a year and store it yourself.
- Losing basis across transfers. If you move coins from exchange A to exchange B, B only sees a deposit with no purchase price. Record the original basis and date, or use a tool that matches the withdrawal to the deposit.
- Ignoring fees. Trading and network fees usually adjust your basis or proceeds. Leaving them out misstates your gain.
- Mixing time zones. A trade near midnight can fall on a different tax day, or even in a different tax year, depending on the time zone.
- Treating the exchange's statement as final. A form from the exchange covers only that exchange. Your return must include activity at every platform and wallet.
Putting it together
Treat tax records as the last step of account setup. Keep your tax residence and ID current with the exchange. Save exports on a regular schedule. Label transfers between your own wallets when you make them. Agree your cost basis method with your tax adviser before the first sale, not after.
Exercise
You bought 1 coin at 100, then another coin at 200. You sell 1 coin at 300 with no fee. Using FIFO, what is your gain, and what is the cost basis of the coin you still hold?
Show answer
FIFO sells the oldest coin first, so the gain is 300 − 100 = 200. The remaining coin is the one bought at 200, so its cost basis is 200. With average cost, the basis would be 150 for each coin, giving a gain of 150 and a remaining basis of 150, which is why the method matters.
Exercise
You withdraw 2 coins from Exchange A to a hardware wallet you own, then later deposit them to Exchange B. Why might Exchange B's records lead to a wrong tax figure, and what should you keep to prevent this?
Show answer
Exchange B only sees a deposit, with no purchase date or price, so a tool may assume a zero basis or treat the withdrawal from A as a sale. Keep Exchange A's purchase records, the transaction hashes for both transfers, and the wallet addresses that show all of them are yours, so you can carry the original basis and date through.