BitMEX Tax Guide

BitMEX Tax Guide

CryptoTaxCalculator is proud to support BitMEX, one of the first exchanges to offer perpetual margin trading products. Not only do derivatives often attract different tax implications depending on your jurisdiction, but on BitMEX you also settle the trades in BTC, which adds further complexity. Fortunately we have you covered with our handy to use tax calculator.

How to calculate tax on BitMEX

Perpetual margin trading and income tax

In most countries you have both income and capital gains tax. Capital gains tax usually occurs when you dispose of cryptocurrency. However, with products like margin trading and perpetuals, in many jurisdictions the profit or loss from trading these products follow separate rules to usual trading activity. Depending on the specifics of the contracts you are trading, in many cases this is classified as trading income, and is treated similar to income tax. In this case you will not be able to claim certain concessions usually available to capital gains tax, such as long term discounts.

What we do at CryptoTaxCalculator is break out the income earned on platforms like BitMEX into a separate income category. You can then discuss with your accountant the best way to record this profit (or loss) on your tax return, based on your individual circumstances.

Capital gains when settling in crypto

Another thing to consider when trading on platforms like BitMEX is what happens when you are settling in cryptocurrency. When you are trading BitMEX BTC perpetuals, and realise a profit, the profit is added to your balance in the form of Bitcoin. The market value at the time of receipt will form the cost basis for future sales (for example if you were to later sell Bitcoin for Ethereum). However, if you were to realise a loss, this loss will be settled in BTC. If you had previously bought this BTC at a cheaper price then the current market value, then you also need to consider the capital gain when "selling" the cryptocurrency to settle your loss.

An astute reader would observe, that realising a loss can actually ultimately trigger a capital gain that is greater then your loss, and you would be "in the green" and owe taxes. In short, it is very important to keep up to date with your tax obligations, and set aside enough money at the end of the year to pay your taxes.

Example 1: Realising a profit on BTC
DateInstrumentSideQuantityRealized PnLFeeBalance
4th JanuaryXBTUSDShort10.10.0050.095

In example 1 we close a short and rewarded with 0.1 XBT (BTC). After fees we receive 0.095 BTC. CryptoTaxCalculator will convert this value back into your local currency and record a profit. However we also create a second buy transaction, which can be used as the future cost basis for the sale of this BTC.

4th JanuaryBTCRealised Profit0.095$950
4th JanuaryBTCBuy0.095$950
Example 2: Realising a loss on BTC
DateInstrumentSideQuantityRealized PnLFeeBalance
4th JanuaryXBTUSDShort1-0.10.005-0.105

In example 2 we close a buy contract realising a loss of 0.105 after fees. CryptoTaxCalculator converts this value back to your local currency and records a realised loss. However we also need to consider settling the loss in BTC, and any capital gains or losses associated with this transaction.

DateCurrencyTypeQuantityPrice of BTCProfit (Loss)
1st JanuaryBTCBuy1$800-
4th JanuaryBTCRealised Loss0.105$1000($105)
4th JanuaryBTCSell0.105$1000$21

In the table above, after considering the capital gains on the settlement, the actual overall position is down $84 (21 - 105).

As you can see keeping track of all this is very difficult. Fortunately CryptoTaxCalculator is one of the few tools to actually consider all these scenarios in great detail.

How to Upload Your BitMEX Data Into the Calculator

You can easily upload your BitMEX data into the calculator by following the below steps:

Import PnL CSV

  1. Click on your username in the top right corner.
  2. Navigate to the account page by clicking 'Account & Security'.
  3. On the left hand side of the page select 'Wallet -> Balances' (
  4. In the top right corner click 'Save as CSV'.

5. Upload the CSV file to CryptoTaxCalculator.

Create and add API keys

  1. Click on your username in the top right corner.
  2. Navigate to the account page by clicking 'Account & Security'.
  3. On the left hand side of the page select 'API Keys' (
  4. When creating the API Key make sure the key permissions are blank, as indicated by '-'.

5. Double check you have not enabled any permissions (see the circle in the above image)! 6. Enter your 2FA if required and click 'Create API Key'. 7. Copy the ID and Secret into CryptoTaxCalculator and click sync.

All content in this article is general information only and does not constitute financial, tax or legal advice. It is not intended to be used by anyone for the purpose of financial advice, legal advice, tax advice, tax avoidance, promoting, marketing or recommending to any other party any matter addressed herein. For tax, financial or legal advice please consult your own professional.

Calculate Your Crypto Taxes Now!

CryptoTaxCalculator does the hard work so you don’t have to.

Get Started

Copyright © 2021 CryptoTaxCalculator