Crypto Margin Trading Taxes: The Complete Guide
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-term if you held the asset for one year or less, long-term if more than one year.
Different rules may apply to short sales, perpetuals, and regulated futures that qualify under Section 1256. 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.
Why trust our crypto tax experts
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.
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. Fees on a cash purchase add to your cost basis; fees on a sale or crypto-to-crypto swap reduce your proceeds.
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
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. Under the general short-sale rules in IRC §1233, the holding period usually depends on the property used to close the short; the IRS hasn't applied those rules to crypto specifically.
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 is usually not taxable if treated as a loan. But if you immediately sell the borrowed crypto to open a short, that sale triggers a taxable event. 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.
The wash-sale rule generally doesn't apply to ordinary spot cryptocurrencies such as Bitcoin and Ethereum. Selling Bitcoin at a loss and repurchasing it shortly afterward therefore doesn't automatically trigger the 30-day restriction.
However, the IRS says the wash-sale rules generally apply to digital assets that are also stock or securities for tax purposes, including tokenized securities. The treatment of spot Bitcoin ETF shares held through grantor trusts is less settled and requires separate analysis.
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 (Schedule 1, line 8v if received in crypto); IRS hasn't addressed it |
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 when you calculate 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.
Is margin interest tax deductible?
Margin interest may be deductible as investment interest expense.
The general rule is that interest paid on money borrowed to buy taxable investments may qualify as investment interest under 26 U.S.C. §163(d). 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. IRS Publication 550 explains how the limit works.
For individual investors, the deduction is calculated on Form 4952 and taken as an itemized deduction on Schedule A, so it applies only if you itemize. Whether interest on a particular crypto margin loan qualifies depends on how the borrowed funds were used.
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
The IRS hasn't addressed payments for perpetual funding. Funding received is often treated as ordinary income in practice; if you receive it in crypto, its fair market value applies when you gain dominion and control, reported on Schedule 1, line 8v. 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, allowing you to 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.
The election changes how those gains are taxed, so a tax professional should review it before you make it.
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?
A forced crypto liquidation can create taxable gains or losses, even when the exchange closes the position without your approval.
Selling cryptocurrency held as an investment generally produces a capital gain or loss. A derivative liquidation follows the rules for that contract, while selling separate collateral may create an additional taxable transaction.
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.
Net capital losses beyond that offset up to $3,000 of ordinary income a year ($1,500 if married filing separately).
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. A forced sale is still a disposal. 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.
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.
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.
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.
Separate short-term and long-term trades. Most margin trades will be short-term. Still, confirm the holding period instead of assuming.
Report capital gains and losses on Form 8949. Form 8949 is where you list sales and other dispositions of capital assets, including liquidations and collateral sales. For 2025 returns, use the digital-asset boxes: G or J if a Form 1099-DA reported your basis, H or K if it reported proceeds without basis, and I or L if no Form 1099-DA covered the sale. Don't use boxes C or F for digital assets.
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. Regulated futures that qualify under Section 1256 are reported on Form 6781 instead, and their totals flow to Schedule D from there.
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.
Reconcile tax forms against your own records. Don't assume the form is complete. For 2025 sales, brokers were required to report only gross proceeds on Form 1099-DA. From 2026, basis is reported only for covered assets acquired on or after January 1, 2026, in a custodial account at that broker. Offshore exchanges and DeFi protocols generally don't issue one, and no form doesn't mean no tax. Since 2025, the cost basis has been tracked wallet by wallet and account by account.
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
For more on how to report crypto on your taxes, see our guides to crypto 1099 forms and Form 1099-DA.
How do you identify which crypto was sold?
If you've acquired the same cryptocurrency at different prices, the IRS generally allows specific identification of the units sold when its timing and recordkeeping requirements are met. Otherwise, FIFO generally applies.
IRS Notice 2026-20 extends temporary relief for eligible broker-held digital asset transactions through December 31, 2026. Taxpayers may identify qualifying units in their own records without necessarily communicating those selections to their broker.
The identification must be made by the transaction date and time, or through a qualifying standing instruction established beforehand. The relief doesn't permit retroactive lot selection or waive applicable Rev. Proc. 2024-28 requirements.
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.
Certain crypto futures qualify for Section 1256 treatment as regulated futures contracts. Section 1256 also covers other qualifying instruments, including certain nonequity options. A regulated futures contract must meet the statutory requirements, including trading on or subject to the rules of a qualified board or exchange. 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.
Offshore perpetuals, DeFi perps, and other contracts that don't meet that definition don't qualify. Section 1256 contracts are reported on Form 6781. For the full comparison, see crypto futures vs. margin trading.
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.
Crypto margin trading FAQs
Do I pay taxes on unrealized crypto margin gains?
Can I deduct crypto margin trading losses?
Does my exchange report my margin trades to the IRS?
Is borrowing crypto to trade a taxable event?
How are crypto short margin trades taxed?
Does the wash sale rule apply to crypto margin losses?
Are funding rates taxable?
What is the difference between isolated margin and cross-margin for taxes?
To stay up to date on the latest, follow TokenTax on Twitter @tokentax.