hackerdb templates

Guides · Updated 2026-12-02

How to track crypto cost basis per wallet in a spreadsheet

A practical method for tracking crypto cost basis wallet by wallet in Excel or Google Sheets: lots, disposals, transfers, income and a monthly reconcile.

An exchange dashboard shows what your coins are worth. It rarely shows what the specific coins you sold cost, which wallet they came from, or how long you held them. A spreadsheet built around lots answers all three, and it keeps working when you use more than one exchange or self-custody wallet.

1. Think in lots, not balances

A lot is one acquisition: a buy, a swap in, a staking reward, an airdrop or a gift received. Each lot needs six facts: an ID, the date and time, the wallet it sits in, the coin, the quantity and the total cost in your reporting currency (price times quantity plus fees). Divide cost by quantity and you have the basis per unit for that lot.

2. Point every disposal at a lot

A disposal is anything that gets rid of coins: selling for cash, swapping into another coin, paying for something in crypto, or coins burned as network fees. Each disposal row names the lot it used and the quantity. If one sale used two lots, it is two rows. From there the arithmetic is simple: net proceeds minus (quantity times the lot's basis per unit) is the gain or loss, and the gap between the acquisition date and the disposal date is the holding period.

3. Keep basis inside each wallet

In several countries the default way to pick lots is first in, first out, and some rules now apply that order within each wallet or account rather than across everything you own. Tracking per wallet costs nothing extra if every lot already has a wallet column, and it means your records match whichever rule applies to you. To find the next lot under FIFO for one wallet, look for the oldest lot in that wallet and coin with quantity remaining.

4. Transfers between your own wallets

Moving coins from an exchange to your hardware wallet is usually not a sale, but the coins paid as the network fee usually are a disposal. A clean way to record the move: close the moved quantity out of the old lot at zero gain, open a new lot in the destination wallet with the original date and basis per unit, and log the fee as its own small disposal.

5. Income is a lot too

Staking rewards, airdrops and crypto you are paid for work are commonly treated as income at their value when received. Log that value once as income, then add the coins as a new lot with that same value as cost. When you later sell them, the gain is measured from the value you already counted.

6. Reconcile monthly

Once a month, compare the remaining quantity per wallet and coin with what the wallet or exchange actually shows. A difference almost always means a missing fee, a forgotten reward or a swap logged on one side only. Fixing it monthly takes minutes; fixing it in April takes days.

7. Year-end

Before December 31: download every exchange's transaction export, list every address you control, check that no lot has been used more than it holds, and save a dated copy of the file with the exports. Exchange tax forms may show proceeds without basis for coins you transferred in, so your own lots are the record of what those coins cost.

This is general information about record keeping, not tax advice. Rules differ by country; confirm yours with a qualified adviser.

Want this ready-made?

Crypto Wallet Ledger & Cost-Basis Tracker: Per-wallet lots, cost basis, gains by term and a year-end checklist in one spreadsheet.

See it ($19)