Skip to content
MasterMath

Crypto Profit and Loss Calculator

The real gain or loss on a trade, after the fees on both sides and the tax. It works the same for cryptocurrency and for shares.

Currency and number format for

Net gain

—

Net gain—
Gross gain—
Fees—
Tax—
Return—
Break-even price—

How this was worked out

    The formula

    Net = (sale − purchase) − fees − tax on the gain

    Where it comes from

    Order matters. First the difference between what you sell for and what you paid; then both fees come off, because both are costs of the trade; and only on what is left does the tax apply, and only if there is a gain at all. A loss is not taxed, and in many countries it can be offset against other gains in the same tax year.

    How to work it out by hand

    1. Multiply the quantity by the buying price: that is what you invested
    2. Do the same with the selling price
    3. Subtract both the buying and selling fees from the difference
    4. Apply the tax only if the result is positive

    What is worth knowing

    The break-even price shown is the most useful part: it is the price you have to sell at to come out level once the fees are paid, and it always sits above the buying price. With high fees the gap is not small. On tax: the rate depends on the country and the band, which is why it is a field; many places also require FIFO accounting when you have bought at several prices, and then the relevant purchase price is not the last one.

    Frequently asked questions

    Does it work for shares and for crypto?

    For both: the arithmetic is identical. What differs is the tax treatment, which is why tax is a field.

    Why is tax only applied on a gain?

    Because a loss is not taxed. In many countries it can also be offset against gains in the same tax year.

    What is the break-even price?

    The selling price at which you neither gain nor lose once fees are paid. It always sits above the buying price.

    Does it handle several purchases at different prices?

    No. The average price calculator does that, and note many countries require FIFO accounting.

    What tax rate do I enter?

    Your country's rate on capital gains. It varies by band and by territory, which is why it is not preset.