Orca Crypto
Menu
Start Here
Learn
Chains
Exchanges
Markets
Tools
Safety
More
Buy OCX Book a session
Tools

Cost basis calculator

Every buy in, one sale out, and the gain that falls out of the method you pick.

4Methods
0Numbers stored
$0To use
2025Wallet rule year
Loading live prices
One purchase per line: amount, then price, then the fee if there was one.
Crypto is fungible, so this is an accounting choice
$
$In dollars, if any
Gain or loss on this saleProceeds, less the basis of what went out
Net proceedsAfter the sale fee
Cost basis of what you sold
Average cost of everything you bought
Still held afterward
Cost basis remainingWhat the rest is carried at

Arithmetic only, and none of it leaves your browser. This is not tax advice and it does not know your jurisdiction, your holding periods or which wallet the coins were in. Everything here is worked out in your own browser. Nothing you type is sent anywhere, stored, or logged, and there is nothing to sign up for.

The idea

Which coins did you actually sell?

If you bought the same token three times at three prices and then sold some of it, your gain depends entirely on which ones you decide went out of the door. The coins are identical, so there is no fact of the matter. It is an accounting choice, and different choices produce very different numbers from the same trades.

That is what this calculates. Put in every purchase, pick a method, and it shows you the basis it consumed, lot by lot, and what is left.

MethodWhat it doesWhen it helps
FIFOSells the oldest coins first.The usual default. In a market that went up, it produces the largest gain and the longest holding periods.
HIFOSells the most expensive coins first.Produces the smallest gain now. It is an application of specific identification, so it needs records made at the time rather than chosen afterward.
LIFOSells the newest coins first.Sometimes reduces a gain after a recent purchase. Also an application of specific identification.
Average costPools everything into one average price.The required approach in several countries, including the United Kingdom and Canada. Not generally available in the United States.
The condition people miss

Choosing a method is not the same as being allowed to use it. In the United States, anything other than FIFO requires specific identification, which means documenting which units you sold at the time of the sale. Deciding in April which lot you would have liked to sell in July is not that. Read cost basis before you rely on a number from here.

What this deliberately does not do

Three things it cannot know

Where fees go

Fees to acquire go into your basis, which is why there is a third column on each line. Fees on the way out reduce your proceeds instead, which is the field at the bottom. Both end up in the same place.

Common questions

Which method should I use?

Whichever one you are permitted to use and can document. In the United States FIFO is the default and anything else requires specific identification made at the time of sale. In the United Kingdom and Canada pooling is required and the choice does not exist. Ask a professional before switching methods.

Do fees count?

Yes. Fees to buy increase your basis, and fees to sell reduce your proceeds. Both reduce the gain, which is why there is a place for each.

Does moving coins between my own wallets trigger anything?

No. The basis and the holding period travel with the coins. What changes is which inventory they belong to, which matters under the per wallet rule that took effect in the United States in January 2025.

What if I swapped one token for another rather than selling for cash?

In most jurisdictions that is a disposal of the first token at its market value on the day, so it belongs in this calculation with that value as the sale price. It is also the single most commonly missed taxable event.

Is this tax advice?

No. It is arithmetic you could do on paper, done faster. It does not know your country, your holding periods or your wallets, and nothing here is a substitute for an accountant who does.

Want a hand using these on your own position?

We go through it together on a call. Your holdings, your risk, your setup. You click everything and we never ask for keys.