Guide

Crypto tax & cost basis in Google Sheets

Enter what you bought and when. The sheet fills in the historical price, your cost basis, profit/loss and holding period automatically — for any coin, any date.

The hardest part of crypto taxes is answering one question for every trade: what was this coin worth on the day I bought it? Digging through old exchange statements is miserable. In Google Sheets you can look it up with a formula — and a built-in template does the whole calculation for you.

The fastest way: the Tax Report template

With the free CryptoTrackPro add-on installed, open your sheet and choose Extensions → CryptoTrackPro → Create Tax Report. You get a ready-made table — just replace the sample rows with your own buys:

Gains show green, losses show red, and a totals row sums your whole position. Nothing to wire up.

Or build it yourself with two formulas

Prefer to roll your own? The engine is one formula. To get the price of a coin on the day you bought it:

=cryptotrackproPrice("BTC","2021-04-14")

Point it at your date cell and multiply by quantity for cost basis:

=cryptotrackproPrice(A2, TEXT(B2,"yyyy-mm-dd")) * C2

Then subtract cost basis from current value (quantity × live price) for your unrealised gain. Major coins are covered back to about 2013; thousands of coins for the past year.

Why do this in a spreadsheet?

Build your cost-basis sheet in a minute

Install free, then Extensions → CryptoTrackPro → Create Tax Report.

Install CryptoTrackPro free

Note: CryptoTrackPro helps you organise your own figures. It is not tax advice, and tax rules differ by country. Confirm holding-period rules and reporting requirements with a qualified tax professional.

Frequently asked questions

How do I calculate crypto cost basis in Google Sheets?

Cost basis is your buy quantity × the price on the buy date. =cryptotrackproPrice() supplies the historical price; the Tax Report template does the rest automatically.

Can I get historical prices for old trades?

Yes — any coin, any past date. Major coins reach back to ~2013; thousands of coins for the last year.

Does it handle short-term vs long-term?

The template flags each lot using the 365-day boundary. Confirm your country's exact rules with a professional.

See also: how to get live crypto prices in Google Sheets →