Crypto accounting starts with one boring table
Most crypto accounting problems are not about blockchains, valuation models or new standards. They come from a missing purchase record, an exchange fee that was booked as an expense, or a spreadsheet that only knows the total number of coins and not when and at what price each one was bought. When the first coins are sold, nobody can say what they cost, so nobody can say what the gain was. Auditors, tax advisers and the finance team then spend days rebuilding history from exchange exports.
This free first lesson is for accountants and controllers whose company holds crypto assets in its treasury, bookkeepers who receive exchange statements and have to post them, finance and accounting students who want to understand how the general rules apply to a new asset class, and individuals who want their own records in order before a sale. You will learn the foundation of everything else: recording each purchase as a lot, building its cost basis including fees, and calculating the cost per coin and the weighted average cost in Excel.
The examples use Norvale Robotics Inc., a fictional company that holds two fictional coins, Lumen Coin (LMC) and Orbit Token (ORB). The numbers are identical to the lab sheet above, so you can compare every result.
The core concept: a lot is one purchase, and its cost basis is everything it took to buy it
When Norvale buys coins, it does not just add them to a pile. Each purchase is recorded as a separate lot with four facts: the date, the number of units, the price per unit and the fees paid. Lots matter because coins bought on different days at different prices are identical on the blockchain but not in the books. When some of them are sold, the accounting method (FIFO, specific identification or average cost, all covered in this course) decides which lot's cost is matched against the proceeds.
The cost basis of a lot is what it cost to acquire:
Cost basis = units × price + transaction fees directly attributable to the purchase
Directly attributable fees are the exchange or broker commission and similar charges for that specific trade. They are part of the asset's cost, in the same way that delivery and installation are part of the cost of a machine. This principle appears in many frameworks: IAS 38, which IFRS reporters generally apply to crypto held as an investment, includes directly attributable costs in the cost of an intangible asset, and many tax systems include acquisition fees in the basis of an asset. Under US GAAP, ASU 2023-08 requires in-scope crypto assets to be remeasured to fair value at each reporting date, which is lesson 4 of this course. Even then, the company keeps the cost basis of each lot, because it is needed for disclosures, for realised gains and usually for tax.
From the cost basis follow two more numbers:
- Cost per unit of a lot = cost basis ÷ units. It is slightly higher than the price, because the fee is spread over the coins.
- Weighted average cost of the holding = total cost basis ÷ total units. It weights each lot by its size and includes all fees. A simple average of the five purchase prices is not a cost per coin at all.
Worked example: Norvale's five LMC purchases in 2026
Norvale bought Lumen Coin five times in 2026. The exchange charges a fee of 0.3 per cent of the trade value in this example. The table shows the inputs from the lab and the results you calculate:
| Lot | Purchase date | LMC units | Price per LMC | Exchange fee | F: Cost basis | G: Cost per LMC |
|---|---|---|---|---|---|---|
| L1 | 15 Jan 2026 | 4 | 1,850.00 | 22.20 | 7,422.20 | 1,855.55 |
| L2 | 3 Mar 2026 | 2.5 | 2,120.00 | 15.90 | 5,315.90 | 2,126.36 |
| L3 | 28 Apr 2026 | 6 | 1,960.00 | 35.28 | 11,795.28 | 1,965.88 |
| L4 | 9 Jul 2026 | 3.5 | 2,340.00 | 24.57 | 8,214.57 | 2,347.02 |
| L5 | 21 Sep 2026 | 5 | 2,210.00 | 33.15 | 11,083.15 | 2,216.63 |
| Total | 21 | 131.10 | 43,831.10 | 2,087.20 |
Take lot L3 as an example. Six LMC at 1,960 dollars cost 11,760.00, and the exchange fee was 35.28, so the cost basis is 11,795.28 and the cost per LMC is 11,795.28 ÷ 6 = 1,965.88. Across all five lots Norvale holds 21 LMC with a total cost basis of 43,831.10 dollars, of which 131.10 is fees. The weighted average cost is 43,831.10 ÷ 21 = 2,087.20 dollars per LMC.
The formulas behind the table, as you type them in the lab:
| Cell | Formula | Copy to | Result |
|---|---|---|---|
| F2 | =C2*D2+E2 | F3:F6 | Cost basis of each lot (L1: 7,422.20) |
| G2 | =F2/C2 | G3:G6 | Cost per LMC (L1: 1,855.55) |
| F7 | =SUM(F2:F6) | 43,831.10 | |
| G7 | =F7/C7 | 2,087.20 weighted average cost | |
| Check | =SUMPRODUCT(C2:C6,D2:D6)+SUM(E2:E6)-F7 | 0.00 |
The check row recalculates the total a second way, with SUMPRODUCT multiplying units and prices for all five lots at once and adding the fees separately. If the two totals differ, one of the row formulas has a mistake or was not copied down.
Why the simple average is wrong
It is tempting to type =AVERAGE(D2:D6) and call the result the average cost. Here it returns 2,096.00, almost nine dollars above the real weighted average of 2,087.20. Two things go wrong at once. First, it gives every lot the same weight: the 2.5-coin lot L2 counts as much as the 6-coin lot L3, although L3 holds more than twice as many coins and was cheaper. Second, it uses prices, not costs, so the 131.10 dollars of fees disappear. The errors happen to pull in opposite directions here (ignoring the fees lowers the result, over-weighting the small, expensive lots raises it), which is exactly why a wrong method can look plausible.
Nine dollars per coin sounds small. On 21 coins it is about 185 dollars of cost basis, and on a treasury holding of thousands of coins it becomes a material misstatement of every gain and loss calculated from it.
Why fees in the cost basis change the gain
Suppose, for example, Norvale sold all 21 LMC at 2,300 dollars each for proceeds of 48,300 dollars, with no selling fee for simplicity. With the fees in the cost basis, the realised gain is 48,300 − 43,831.10 = 4,468.90. If the bookkeeper had expensed the fees and used only units × price (43,700.00) as cost, the gain would be 4,600.00, overstated by exactly the 131.10 of fees. Total profit is the same either way, because the fees were expensed earlier, but the realised gain line is wrong, the tax computation may be wrong, and the lot records no longer reconcile to the exchange statements. Fees belong in the asset.
How to do it in Excel, step by step
Follow along in the lab above or in your own workbook. References match the lab sheet.
- Record one row per purchase: lot ID in A, date in B, units in C, price in D and fee in E. Never merge two purchases into one row, even if they happened on the same day at similar prices.
- Check that column B shows dates. Excel stores dates as serial numbers (15 Jan 2026 is 46037). If you see numbers, select B2:B6 and press Ctrl+Shift+3 or choose Home › Number › Short Date.
- In
F2type=C2*D2+E2. SelectF2:F6and press Ctrl+D to fill down. F4 (lot L3) must show 11,795.28. - In
G2type=F2/C2and fill down toG6. Every value in G should be slightly higher than the price in D. If one equals the price exactly, the fee is missing from that row. - In
F7type=SUM(F2:F6)(or press Alt+= for AutoSum on Windows). Result: 43,831.10. - In
G7type=F7/C7. Result: 2,087.20. Do not use AVERAGE here. - Add the control in a spare cell:
=SUMPRODUCT(C2:C6,D2:D6)+SUM(E2:E6)-F7must return 0. - Format prices and costs with Ctrl+Shift+4 (currency) and units with enough decimals for your coin; many crypto assets trade in fractions such as 0.00125, so set the format with Ctrl+1 › Number and the decimal places you need.
- Optional but recommended for real books: select A1:G6 and press Ctrl+T to make it an Excel table. New purchases added in the row below are automatically formatted and the formulas fill down by themselves.
What a real lot register needs beyond the lab
The lab keeps five columns so you can focus on the logic. A lot register that has to survive an audit or a tax review usually holds a few more fields, and adding them on day one is far easier than reconstructing them later:
- Transaction ID and exchange or wallet name. The link back to the source record.
- Time stamp with time zone. Exchanges report in UTC; your books may close in local time. A purchase at 23:30 UTC on 31 December can belong to the next day locally.
- Fee currency. Dollars, the coin itself or a third token, so the conversion can be checked.
- Units remaining. Starts equal to units bought and falls as coins are sold or allocated to a disposal. It is the column FIFO and specific identification work on in lesson 2.
- Purpose or classification. Treasury investment, operating float or held for sale, because the accounting can differ by purpose under IFRS.
None of these fields changes the cost basis formula. They make the numbers traceable, which in crypto accounting is half the job.

Common mistakes and how to spot them
These are the errors that most often make crypto records unusable later. Each has a quick test.
- Fees booked as an expense. The fee goes to “bank charges” and the asset is recorded at units × price. Sign: the cost per coin in column G equals the price in column D.
- One running total instead of lots. The sheet shows 21 LMC and 43,831.10 dollars but not which purchases they came from. Sign: you cannot apply FIFO or specific identification at the first sale.
- Simple average of prices.
=AVERAGE(D2:D6)gives 2,096.00 instead of 2,087.20. Sign: your average cost does not change when you change a fee or the units of a lot. - Fee in the wrong currency or unit. Some exchanges charge the fee in the coin itself (for example 0.003 LMC) rather than in dollars. Sign: a fee that looks tiny in column E. Convert it to dollars at the trade price, and remember that the units actually received are then lower.
- Rounding units too early. Units formatted with two decimals look fine but the cell may hold 2.4999. Sign: totals of units do not match the exchange statement. Keep full precision and round only for display.
- Dates typed as text. “28.04.2026” entered on a computer with US settings stays text. Sign: dates are left-aligned and sorting by date fails. Use
=DATE(2026,4,28)when in doubt. - Transfers between own wallets recorded as purchases. Moving 2 LMC from the exchange to a hardware wallet is not a new lot. Sign: more units in your lots than on-chain balances show.
Quick reference: Excel functions and shortcuts in this lesson
| Function / shortcut | Used for | Example |
|---|---|---|
SUM | Total cost basis and total units | =SUM(F2:F6) |
SUMPRODUCT | Units × price for all lots in one cell | =SUMPRODUCT(C2:C6,D2:D6)+SUM(E2:E6) |
AVERAGE | Simple average: NOT the cost per coin | =AVERAGE(D2:D6) (wrong here) |
ROUND | Round a fee or cost to cents | =ROUND(C2*D2*0.003,2) |
DATE | Enter a purchase date safely | =DATE(2026,4,28) |
| Ctrl+Shift+3 | Format serial numbers as dates | Column B |
| Ctrl+Shift+4 | Currency format | Columns D to G |
| Ctrl+T | Turn the lot list into an Excel table that grows with new rows | Select A1:G6 |
| Ctrl+D / Ctrl+` | Fill down / show formulas for review | F2:G6 |
Real-world uses
Lot records with a correct cost basis are the starting point for every crypto workflow a finance team runs:
- Corporate treasury. A company that holds a cryptocurrency as a treasury asset records each purchase as a lot so that it can measure fair value changes against cost and present the disclosures that its framework requires.
- Accepting crypto as payment. A business that receives coins from customers records each receipt as a lot at its value on the day; when it later converts them to cash, the lot cost drives the gain or loss.
- Preparing for the tax adviser. Individuals and companies hand over a clean lot list with dates, units, prices and fees instead of a pile of exchange exports, which typically saves time and fees for the adviser's work.
- Audit support. Auditors trace a sample of lots to exchange statements and on-chain records. A lot table with transaction IDs and fees makes that tracing quick and reduces follow-up questions.
- Investment performance. Funds and family offices compare the weighted average cost with the market price to report unrealised gains per position correctly, fees included.
What you will build in the rest of this course
This first lesson is free. Lessons 2 to 20 are part of the paid course (one-time $9.90) and use the lots you just built, so every number carries forward.
Lesson 2 – Disposals: FIFO vs Specific Identification and the Realised Gain. Norvale sells 9 LMC. You match the sale to the lots with FIFO and with specific identification and see how much the choice of lots changes the realised gain.
Lesson 3 – Average Cost Method: the Running Cost Pool for Buys and Sells. You keep Norvale's ORB position at a running weighted average through four buys and two sells and calculate the gain on each sale, the method many businesses and some tax systems use.
Lesson 4 – Fair Value Remeasurement Each Quarter: Gains and Losses in Net Income. Under the US fair value model you remeasure LMC at every quarter end, book the change in net income and keep the cost basis alongside for the disclosures.
Lesson 5 – IFRS: IAS 38 Cost Model with Impairment, Never Above Cost. You carry ORB under the IAS 38 cost model, test for impairment each quarter, book losses and reversals capped at cost, and compare it with the legacy US model that could only go down.
Lesson 6 – Staking Rewards: Income at Fair Value on Receipt. You record staking rewards as income at their fair value on the day they arrive, give each reward its own cost basis and measure their value change to year end.
Lesson 7 – Wallet Reconciliation: On-Chain Balances vs the Ledger. You compare every wallet's on-chain balance with the ledger, flag the differences and reconcile the staking wallet item by item.
Lesson 8 – Journal Entries & the Disclosure Roll-Forward (with a Waterfall Chart). You book the LMC year in five journal entries and present the roll-forward from opening to closing balance as a waterfall chart, ready for the notes.
Every lab checks your cells live, explains typical mistakes when you make them, and the course ends with a certificate exam.
Summary
Record every crypto purchase as its own lot. Its cost basis is units × price plus the directly attributable fees, its cost per coin is the cost basis divided by units, and the weighted average cost of the holding is total cost basis divided by total units. Never use a simple average of prices. For Norvale Robotics the five LMC lots add up to 21 coins with a cost basis of 43,831.10 dollars and a weighted average cost of 2,087.20 dollars per LMC, the base for every gain, loss and remeasurement later in the course.
Now scroll up to the lab and build the lot table yourself: cost basis in F2:F6, cost per LMC in G2:G6, the total in F7 and the weighted average in G7. The Coach checks each task as you type and explains any difference.
Frequently asked questions
How do you calculate the cost basis of a crypto purchase?
Multiply the units bought by the price per unit and add the transaction fees directly attributable to the purchase, such as the exchange commission. In Excel: =units*price+fee.
Are crypto exchange fees part of the cost basis?
Acquisition fees for a specific purchase are generally treated as part of the asset's cost under cost-based accounting and in many tax systems. Check the rules of your framework and country, as treatment can differ.
What is a lot in crypto accounting?
A lot is one purchase recorded separately with its date, units, price and fees. Keeping lots makes it possible to apply FIFO, specific identification or average cost when coins are sold.
How do I calculate the weighted average cost of my crypto holdings in Excel?
Divide the total cost basis of all lots by the total units, for example =SUM(F2:F6)/SUM(C2:C6). Do not use AVERAGE on the prices, because it ignores lot sizes and fees.
How is crypto accounted for under US GAAP and IFRS?
Under US GAAP, ASU 2023-08 requires in-scope crypto assets to be measured at fair value with changes in net income. Under IFRS, crypto held as an investment is generally accounted for as an intangible asset under IAS 38, usually at cost less impairment; entities that hold it for sale in the ordinary course of business may apply IAS 2.
Is moving crypto between my own wallets a purchase or a sale?
No. A transfer between wallets you control does not create a new lot or a disposal; the coins keep their original cost basis. Any network fee for the transfer needs its own treatment, which depends on your framework and tax rules.
Keep going: Crypto Asset Accounting: Cost Basis, Lots, Fair Value & Gains
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Disposals: FIFO vs Specific Identification and the Realised Gain
- Average Cost Method: the Running Cost Pool for Buys and Sells
- Fair Value Remeasurement Each Quarter: Gains and Losses in Net Income
- IFRS: IAS 38 Cost Model with Impairment, Never Above Cost
- Staking Rewards: Income at Fair Value on Receipt
- Wallet Reconciliation: On-Chain Balances vs the Ledger
- Journal Entries & the Disclosure Roll-Forward (with a Waterfall Chart)
- Paying Suppliers in Crypto: Derecognition, Fees and the Gain or Loss on Payment
- Customers Paying in Crypto: Revenue at Fair Value and the Conversion Result
- Which Price? Fair Value from the Principal Market at the Cut-Off Time
- Significant Holdings: Cost Basis, Fair Value and the «Other» Line (with a Bar Chart)
- Lot-Level Review: Unrealised Gains by Lot and the HIFO Selection
- IAS 38 Revaluation Model: Surplus in OCI, Losses in Profit or Loss
- Crypto as Inventory (IAS 2): Lower of Cost and NRV vs the Broker-Trader Exception
- Deferred Tax on Crypto Fair-Value Gains: Carrying Amount vs Tax Base
- Price Sensitivity: What a ±40% Move Does to Profit Under Each Model (with a Scatter Chart)
- Pledged Coins: Loan-to-Value, Margin-Call Price and the Restricted-Asset Disclosure
- Sub-Ledger to General Ledger Tie-Out: Duplicate Hashes and the Remaining Difference
- Final Project: Norvale's FY2026 Crypto Dashboard for Both Coins