Crypto Margin Trading Taxes: The Complete Guide

Tynisa (Ty) Gaines
ByTynisa (Ty) Gaines, EAReviewed byZac McClure, MBAUpdated on July 13, 2026 · minute read
VerifiedExpert verified

TokenTax content follows strict guidelines for editorial accuracy and integrity. We do not accept money from third party sites, so we can give you the most unbiased and accurate information possible.

  • The IRS generally taxes crypto margin trading gains as capital gains, short- or long-term, depending on your holding period (more or less than a year).

  • Different rules may apply to short sales, perpetuals, and qualifying futures. Liquidations are taxable events, even when the exchange forces the sale.

  • Margin interest may be deductible as investment interest expense, but the deduction is limited and usually handled on Form 4952.

Crypto margin trading is generally taxed as capital gains or losses when a position is closed.

Borrowing itself usually is not taxable. The tax implications come when you close the trade, sell crypto, repay with crypto, get liquidated, or have collateral sold by the exchange.

Margin trading is more complex than ordinary spot trading. Interest, funding payments, borrowed assets, short positions, cross-margin liquidations, and crypto exchange records can all play a part in your final tax bill.

Pro tip
If you trade on margin, don't rely solely on a final PnL number. You need the trade history, interest records, funding payments, collateral movements, liquidation records, and any crypto tax forms the platform provides. Our crypto tax software can help organize those records before filing.

How is crypto margin trading taxed?

In the US, crypto margin trading is usually taxed under the same basic IRS property rules as other crypto trades. If you sell, exchange, or otherwise dispose of cryptocurrency for more than your adjusted basis, you generally have a capital gain. If you dispose of it for less, you generally have a capital loss.

  • For a long margin position, the tax treatment is usually straightforward. You borrow funds or crypto through the platform, use that margin to open a larger position, and recognize a capital gain or loss when the position is closed.

  • Opening the position is not usually the taxable part by itself. Borrowing funds from an exchange is generally a loan, not income. The tax event usually happens when the position closes or when crypto is sold, exchanged, or liquidated to repay.

  • Short margin trades require separate review. A crypto short works differently from a long position. You borrow the asset, sell it, and later buy it back to repay the loan. Your gain or loss generally depends on what you received when you sold the borrowed asset, what you paid to repurchase it, fees, funding, and how the platform records the close.

The IRS has not issued detailed crypto-specific guidance for every short-sale structure. For that reason, short margin trades should be tracked separately from ordinary long trades. In practice, many short margin trades produce short-term results because the gain or loss is tied to the close, not just the date the short was opened.

Example

  • You borrow 2 ETH on a margin platform.

  • You sell the borrowed ETH for $6,000.

  • Later, you buy 2 ETH for $5,000 and use it to repay the borrow.

  • Ignoring fees, funding, and platform adjustments, the trade may show a $1,000 gain.

  • Your records should show the borrow date, asset, quantity, sale proceeds, repurchase cost, repayment, fees, and close date.

Borrowing crypto itself is usually not taxable by itself if it is treated as a loan. But if you immediately sell the borrowed crypto to open a short, that sale creates tax records. The IRS has not given a simple crypto short-sale rule for every margin setup, so document the borrow, sale, close, and repayment in detail.

Crypto margin losses have one current federal tax advantage over stock margin losses: the wash sale rule generally doesn't apply to ordinary spot crypto held as property. If you close a losing BTC margin position and immediately open another BTC position, the loss is not generally disallowed solely because you bought BTC again.

That may change if future legislation expands wash sale rules to crypto. Derivatives, straddles, options, and security-linked products may also require separate review. For more context, refer to our guide to wash sale trading in crypto.

This table shows the common US tax treatment for crypto margin trading events. Each trade still needs transaction-level review based on how the exchange closed, settled, or recorded it.

Margin event

Usual US tax treatment

Opening a margin position

Usually not taxable by itself

Borrowing cash or stablecoins to trade

Usually treated as a loan, not income

Borrowing crypto to open a short

Usually not taxable by itself, but the sale of borrowed crypto creates records

Closing a profitable long margin position

Capital gain

Closing a losing long margin position

Capital loss

Closing a short margin position

Gain or loss based on short-sale mechanics and close records

Forced liquidation

Taxable sale, exchange, settlement, or disposal

Adding collateral during a margin call

Usually not taxable if you are only moving your own assets

Platform sells collateral to repay debt

May create a separate capital gain or loss

Repaying a margin loan with crypto

May be taxable if crypto is sold or exchanged to repay the loan

Paying margin interest

May be deductible as investment interest expense, subject to limits

Receiving funding payments

Often treated as ordinary income in practice

Paying funding or rollover fees

Treatment depends on facts, product, and platform records

Pro tip
Spot margin, offshore perpetuals, DeFi lending positions, and regulated futures don't all report the same way. Keep them in separate categories before you calculate crypto gains and losses.

Short-term vs. long-term gains on margin trades

Most crypto margin trades are short-term. Traders usually use margin for faster moves, and leveraged positions can be expensive and risky to hold for long periods.

If you acquire spot crypto with borrowed funds, the holding period generally depends on how long you hold that crypto before disposing of it. An asset held for one year or less generally produces a short-term gain or loss, while an asset held for more than one year may qualify for long-term treatment. Short positions and derivative products require separate review.

This table shows the common federal holding-period treatment for margin trades.

Holding period

Common treatment

Tax rate category

One year or less

Short-term capital gain or loss

Ordinary income tax rates

More than one year

Long-term capital gain or loss

Long-term capital gains rates

Short margin position

Needs separate review

Often short-term in practice, depending on close mechanics

Forced liquidation

Based on the disposition date

Short-term or long-term depending on the asset and holding period

Example

  • You use spot margin to acquire Bitcoin and sell it three months later for a $4,000 gain.

  • Because the position was open for less than one year, the $4,000 is generally a short-term capital gain.

  • The same trade held for more than one year could potentially qualify for long-term treatment, but that is unusual for leveraged crypto trades.

A long-term margin trade is technically possible. It is just not common. Borrowing costs, rollover fees, liquidation risk, and crypto volatility usually push margin trades into shorter timeframes.

Is margin interest tax deductible?

Margin interest may be deductible as investment interest expense. This is one of the few ways margin trading can create a possible tax benefit beyond capital loss reporting.

The general rule is that interest paid on money borrowed to buy taxable investments may qualify as investment interest. The deduction is usually limited to your net investment income for the year. If your investment interest exceeds your net investment income, the excess may carry forward.

For many individual investors, this deduction is handled on Form 4952. You may also need to itemize deductions to benefit from it.

A few practical points:

  • Interest on borrowed funds used to buy taxable crypto investments may qualify.

  • Trading fees usually affect gain or loss calculations instead of being treated as separate interest.

  • Rollover fees may be interest-like, but the treatment depends on the platform and position.

  • Funding payments on perpetuals need separate tracking.

  • Personal borrowing is not the same as investment interest.

  • Business traders may have different reporting issues than ordinary investors.

Perpetual futures
Perpetual futures and some margin-style products use funding payments between longs and shorts to keep the contract price close to the spot price. Funding can occur hourly, every eight hours, or at another interval set by the platform.

Funding
Funding received is often treated as ordinary income in practice. Funding paid is less settled. It may be treated as investment interest expense, a trading expense, a reduction to proceeds, or another adjustment depending on the product, platform records, and taxpayer facts.

Rollover fees
Rollover fees can create a similar recordkeeping problem. Kraken and similar spot margin rollover fees and perp funding payments are not the same product, but both can be ongoing costs of holding leveraged exposure. Don't bury them inside final PnL unless you can support the treatment.

About Form 4952
There is also a Form 4952 tradeoff worth knowing. You may be able to elect to include some net capital gains as investment income so you can deduct more investment interest in the current year. But if you make that election, those gains may lose their preferential long-term capital gains rate and be taxed as ordinary income instead.

For traders with large long-term crypto gains and meaningful margin interest, that election can help or hurt. Model it both ways before filing.

Pro tip
Create separate categories for trade fees, margin interest, rollover fees, funding paid, funding received, borrow costs, liquidation fees, and collateral sales. Those labels make it easier to support the return later.

For more on the nuances of advanced crypto taxes in the US, see our comprehensive guides to crypto interest tax, crypto loans tax, and DeFi taxes.

Are crypto liquidations taxable events?

Yes. A crypto liquidation is generally a taxable event for US taxpayers.

It doesn't matter that the exchange forced it. If the platform closes your position, sells collateral, settles the trade, or otherwise disposes of crypto to recover borrowed funds, that transaction can create a capital gain or loss.

Many traders only remember the trading loss. They miss the tax record. A liquidation at a loss may create a capital loss you can report.

Example

  • You open a BTC long with a $10,000 cost basis.

  • The market drops.

  • The exchange liquidates the position when it is worth $7,000.

  • Ignoring fees and other adjustments, that is a $3,000 capital loss.

  • That loss may offset capital gains from other crypto, stocks, or other capital assets.

Liquidations get harder when collateral is involved. If the exchange sells separate collateral to cover the position, that collateral sale may have its own gain or loss based on your basis in the collateral.

Example

  • You use BTC as collateral for a margin trade.

  • You bought that BTC for $4,000.

  • It is worth $6,000 when the exchange sells it to cover a failed position.

  • That collateral sale can create a separate $2,000 capital gain.

  • You may have both the main position result and the collateral sale result in the same liquidation sequence.

Most exchanges offer two margin modes: isolated and cross.

  • Isolated margin limits risk to the collateral you allocate to a specific position.

  • Cross-margin uses your full account balance to support positions. Cross-margin can help prevent liquidation of one position, but it can also allow the platform to sell other holdings to cover losses.

A cross-margin liquidation can create taxable events across multiple assets you did not intend to sell. Review the full account history, not just the position you thought was being closed.

Don't ignore forced liquidations in your tax records. The IRS doesn't care whether you clicked sell. The issue is whether a taxable sale, exchange, settlement, or disposal occurred.

Pro tip
To go deeper, review our advanced guides to crypto margin trading here:

How to report crypto margin trading on your taxes

Start with your full exchange records. You need more than deposits, withdrawals, and a final PnL number.

Here’s the basic workflow.

1. Gather your margin trade history from each exchange.
Download CSVs, tax reports, order history, funding history, borrowing history, interest records, liquidation notices, deposits, withdrawals, and any 1099s the platform provides.

2. Match each closed position to proceeds and cost basis.
For each closed margin trade, identify what you sold, exchanged, settled, or liquidated. Then calculate proceeds, cost basis, fees, and gain or loss in US dollars.

3. Separate long, short, spot margin, perps, and futures.
Don't keep one blended leverage file. Spot margin, short margin, perpetuals, DeFi loans, and regulated futures can have different tax treatment.

4. Separate short-term and long-term trades.
Most margin trades will be short-term. Still, confirm the holding period instead of assuming.

5. Report capital gains and losses on Form 8949.
Form 8949 is where you list sales and other dispositions of capital assets. Crypto margin trades that create capital gains or losses generally belong here.

6. Carry totals to Schedule D.
Schedule D summarizes your capital gains and losses from Form 8949. This is where your short-term and long-term totals flow into your tax return.

7. Review margin interest on Form 4952.
If your margin interest qualifies as investment interest expense, Form 4952 is generally used to calculate how much you can deduct and how much carries forward.

8. Reconcile tax forms against your own records.
Don't assume the form is complete. US digital asset broker reporting is changing with Form 1099-DA, but platform forms may not include full basis, liquidation detail, interest detail, offshore activity, wallet transfers, or DeFi activity.

For crypto margin trading IRS reporting, keep:

  • Open date and close date

  • Asset traded

  • Long or short direction

  • Product type

  • Exchange or protocol

  • Margin mode, isolated or cross

  • Collateral used

  • Borrowed asset

  • Borrowed amount

  • Proceeds

  • Cost basis

  • Trading fees

  • Interest or borrowing costs

  • Rollover fees

  • Funding paid

  • Funding received

  • Liquidation records

  • Collateral sale records

  • Exchange CSVs and account statements

  • Wallet transfers

  • Any Forms 1099-B, 1099-DA, or other crypto tax forms received

Pro tip
Most exchange exports are not built to handle tax nuances. Our crypto tax software can help reconcile margin trades, liquidations, funding payments, crypto wallet transfers, and exchange transactions into a single tax file.

For more on how to report crypto on your taxes, see our guides to crypto tax forms, crypto 1099 forms, and Form 1099-DA.

Crypto margin trading vs. futures: tax differences

Crypto margin trading and crypto futures can both use leverage, but they are not always taxed the same way.

A standard crypto margin trade is usually treated like a capital asset transaction. You calculate gain or loss based on proceeds, cost basis, fees, and holding period. Short-term and long-term capital gains rules apply.

Some regulated futures may qualify for Section 1256 treatment. Section 1256 contracts are generally marked to market at year-end and may receive 60/40 tax treatment: 60% of the gain or loss is treated as long-term capital gain or loss, and 40% is treated as short-term capital gain or loss, regardless of holding period.

That doesn't mean every crypto futures trade gets Section 1256 treatment. Offshore perpetuals, exchange-specific derivatives, DeFi perps, and non-regulated contracts may not qualify. Product structure and venue matter.

This table shows the main tax differences between spot crypto margin trades, forced liquidations, regulated futures, and other crypto derivatives.

Product type

Common tax treatment

Spot crypto margin trade

Capital gain or loss based on holding period

Short crypto margin trade

Separate review based on borrow, sale, close, and repayment records

Forced margin liquidation

Taxable disposal, usually capital gain or loss

Regulated futures that qualify under Section 1256

60/40 treatment and mark-to-market reporting

Offshore perpetuals or non-1256 derivatives

Tax treatment depends on product structure and facts

Perp funding payments

Often tracked separately from final trade PnL

Pro tip
If you trade both margin and futures, don't lump them together. They may use similar trading language, but the tax forms and rules can differ. For more, read our guide to crypto futures taxes and our article on crypto futures and options taxes.

Crypto margin trading FAQs

To stay up to date on the latest, follow TokenTax on Twitter @tokentax.

Tynisa (Ty) Gaines
Tynisa (Ty) GainesTax Expert at TokenTax
Tynisa (Ty) Gaines, EA has more than 20 years of experience as a tax professional. Ty has published numerous tax articles, two tax e-books, and an academic publication on cryptocurrency for the National Income Tax Workbook.
Zac McClure
Reviewed byZac McClureCo-Founder & CEO at TokenTax
Zac co-founded TokenTax after his career in international finance and accounting at JPMorgan, Imprint Capital and Bain. He has worked in more than a half-dozen countries and received his MBA from the UPenn Wharton School.