BitMEX logo
Koinly Logo

How to File Your BitMEX Taxes with Koinly

How to do your BitMEX taxes with Koinly

BitMEX is a popular and secure crypto exchange - particularly for investors looking to trade derivatives with low fees for BMEX stakers. Whatever your BitMEX investments, Koinly can help with your crypto taxes. Here's how.

  1. Sign up to Koinly and choose your country and currency
  2. Connect BitMEX with Koinly to import all your BitMEX trades safely and securely
  3. Koinly categorizes BitMEX transactions into gains, losses, and income
  4. Koinly calculates your BitMEX Capital Gains Tax and BitMEX Income Tax
  5. Download your BitMEX tax report from Koinly
  6. File your BitMEX taxes online or with your crypto tax accountant

Watch how to do your BitMEX taxes fast 

How are BitMEX transactions taxed?

Crypto tax varies depending on where you live, and you can learn more in our crypto tax guides. This said, generally speaking, two taxes may apply to your crypto transactions, including BitMEX transactions:

  • Capital Gains Tax: When you dispose of crypto - by selling, swapping, spending it, or even gifting it (depending on where you live) - you may need to pay Capital Gains Tax on any gain from that transaction.
  • Income Tax: When you earn crypto - like staking rewards or bonuses - this may be viewed as additional income and you may need to pay Income Tax upon receipt.

Does BitMEX report to the tax offices?

BitMEX isn't available in a range of countries due to confusing or lackluster regulations around crypto derivatives. If BitMEX doesn't operate in your country, it's unlikely the exchange is reporting to your tax office. However, as a large exchange, that doesn't mean BItMEX hasn't faced pressure from government agencies including tax offices to comply with customer identification regulations.

Notably, before withdrawing services in the US, FinCEN fined BitMEX $100 million for violating the Bank Secrecy Act (BSA) by providing money transmission services but failing to implement and maintain a compliant anti-money laundering program and customer identification program.

How do I file my BitMEX taxes?

You'll need to calculate and report any capital gains or income you made on BitMEX with your tax office. For most taxpayers, this happens as part of their annual tax return.

There are a couple of ways you can do this:

  1. Do it yourself, by identifying your taxable transactions, calculating your net capital gain or loss, and the fair market value of any crypto income.
  2. Save hours and use a crypto tax calculator like Koinly to easily calculate your taxable income for you, and generate your BitMEX tax report, ready to file with your tax office.

With Koinly, all you need to do is connect automatically using API or by uploading a CSV file of your BitMEX transaction history. Here's how.

How to connect Koinly and BitMEX automatically via API


  1. Log in to your BitMEX account
  2. Select your profile icon in the top right corner
  3. Select API keys from the drop down menu
  4. Under create an API key, give your API key a name - for example, Koinly
  5. Select create API key
  6. Copy your API key ID and secret

On Koinly

  1. Sign up or log in to your Koinly account and go to the wallets page
  2. Select add new wallet: BitMEX
  3. Select set up auto-sync
  4. Paste your API key ID and API secret
  5. Select secure import on Koinly

How to integrate BitMEX with Koinly using CSV

You'll need to start by downloading a CSV file of your complete transaction history from Bitmex. Here's how.

How to download and export your transaction history CSV file from BitMEX

  1. Log in to your BitMEX account
  2. Select the wallet icon in the top right corner
  3. Select transaction history
  4. Select save as CSV

How to upload your BitMEX CSV to Koinly

Now you've got your CSV file, here's how to upload it to Koinly.

  1. Sign in to Koinly and select wallets
  2. Select add new wallet: BitMEX
  3. Select import from file
  4. Upload your CSV file


1. When downloading your CSV files, check that the file covers your full trading history.

2. Don't forget to tag any income according to your country's tax rules.

How do I troubleshoot my BitMEX integration to Koinly?

Problems connecting BitMEX and Koinly? No worries - there's help at hand:

Calculate your BitMEX taxes

Sign up free today to calculate your BitMEX taxes

Does BitMEX have tax documents?

No. BitMEX does provide users with tax document. Instead, you'll need to calculate any capital gains or income from BitMEX yourself using your transaction history, or use crypto tax software to do it for you.

How do I get BitMEX tax documents?

The easiest way to get your BitMEX tax documents is to connect to crypto tax software like Koinly, either by API or by uploading a CSV file of your transaction history. Koinly can then calculate your BitMEX capital gains and income for you, and generate a crypto tax report which you can use to file with your tax office.

Does BitMEX provide financial or end of year statements?

No. BitMEX does not provide financial or end of year statements. You can, however, export a CSV file of your transaction history on BitMEX.

Do I have to pay taxes on BitMEX?

Yes. Tax offices around the world have made it clear crypto is taxable. Although the rules vary depending on where you live, you'll generally need to pay Capital Gains Tax on any gain when you sell, swap or spend crypto, and Income Tax whenever you earn additional tokens. You can learn more about crypto tax where you live in our crypto tax guides.

How are crypto derivatives taxed?

Tax on crypto derivatives varies depending on where you live and how you're viewed as an investor - but generally speaking, profits from crypto derivatives will be subject to tax. Learn more in our crypto derivatives guide.

Is BitMEX safe?

BitMEX is a top 50 exchange and used by hundreds of thousands of investors worldwide every week and follows best security practices for crypto including multi-sig cold storage and industry strength cryptography key management. However, you should always make sure you're aware of the risks of investing in crypto - in particular the unique, high risks involved in crypto derivatives - before you invest.

Which countries can use BitMEX?

BitMEX operates worldwide, but there are a few notable exceptions including the US, UK, Russia, and particular providences in Canada. See the full list of restricted jurisdictions.

Can I use BitMEX in the US?

No. BitMEX withdrew operations for US residents after the exchange faced legal issues with a variety of government authorities over failure to comply with regulatory requirements. Specifically, the Financial Crimes Enforcement Network (FinCEN) fined BitMEX $100 million in 2021 after claims the exchange operated as an unregistered futures commission merchant and provided money transmission services while failing to implement an anti-money laundering program and customer identification program, as required by the Bank Secrecy Act (BSA).

Can I use BitMEX in the UK?

The United Kingdom is not on BitMEX's list of restricted jurisdictions, however, following a general crackdown on crypto derivatives from the FCA, the exchange has drawn attention from authorities including the FCA. The FCA has issued a warning on BitMEX for UK consumers following a ban on crypto derivatives. BitMEX gives the following notice for UK investors on its site, "HDR Global Trading Limited and its affiliates (the “HDR Group”) are not authorised or regulated by the UK Financial Conduct Authority (“FCA”) or other UK authority. Nothing in this website is intended to constitute the marketing or promotion of HDR's services. By using HDR Group's services (including this website) you acknowledge that: You are doing so on the basis of your own enquiry, without solicitation or inducement by HDR Group Consumer protections under UK regulations do not apply to services provided by HDR Group because it is not regulated in the UK and provides services from outside the UK; and You have read our Risk Disclosure Statement and have the necessary knowledge and experience to understand the risks involved. Please note that the UK FCA does not consider crypto derivative products suitable for retail investors."

Does BitMEX have proof of reserves?

Yes. BitMEX has published proof of reserves since 2021. You can find links to these files to see for yourself on BitMEX. You can learn more about proof of reserves and why they're important in our crypto PoR guide.