Sub topic 8
Linear and inverse contracts
This chapter covers how a derivatives contract's size and settlement currency determine profit, loss, and margin. It assumes you know what a futures or perpetual contract is and how margin works in general. It also assumes you can read short Python functions.
Two ways to denominate the same bet
A BTC futures or perpetual contract is a bet on the BTC price. Two questions decide how the bet behaves in your account:
- What does one contract represent (the contract size)?
- In which currency are margin, profit, and loss counted?
The answers separate two families:
- Linear contract: quoted, margined, and settled in a stable quote currency such as USDT or USDC. Each contract is a fixed amount of the underlying, for example 0.001 BTC. Profit is linear in the price change.
- Inverse contract: quoted in USD but margined and settled in the base coin, such as BTC. Each contract is a fixed USD amount, for example 1 USD. Profit in BTC is non-linear in the price change.
Linear contracts
In a linear contract you hold a quantity of the coin. A long of 0.5 BTC entered at 60,000 and exited at 66,000 earns 0.5 × 6,000 = 3,000 USDT. Doubling the price move doubles the profit. Losses work the same way, and a 1 USDT move is worth the same whether the price is 30,000 or 90,000.
This makes the accounting simple. Your collateral is USDT, your PnL is USDT, and your equity is easy to read. Many traders choose linear contracts for that reason.
Inverse contracts
An inverse contract fixes the USD notional. You hold, say, 10,000 contracts of 1 USD each. Because the payout is in BTC, the number of BTC you gain or lose depends on the reciprocal of the price:
PnL (BTC) = contracts × (1/entry − 1/exit) for a long, with the sign flipped for a short.
def linear_pnl(qty, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * qty * (exit_price - entry)
def inverse_pnl_btc(contracts_usd, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * contracts_usd * (1 / entry - 1 / exit_price)
print(linear_pnl(0.5, 60000, 66000, "long"))
print(inverse_pnl_btc(10000, 60000, 66000, "long"))The first line prints 3000.0. The second prints about 0.01515, which is roughly 1,000 USD at the exit price of 66,000. A 10,000 USD notional that gains 10% earns roughly 1,000 USD, so the two results match in dollar terms.
Convexity: equal moves, unequal results
Because of the reciprocal, an inverse long gains less than it loses for a price move of the same size. Run both directions:
def inverse_pnl_btc(contracts_usd, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * contracts_usd * (1 / entry - 1 / exit_price)
entry = 60000
for exit_price in (54000, 66000):
pnl = inverse_pnl_btc(10000, entry, exit_price, "long")
print(exit_price, round(pnl, 6))This prints 54000 -0.018519 and 66000 0.015152. A 6,000 drop costs more BTC than a 6,000 rise earns. The function 1/price is convex, so the long's BTC payoff curves instead of rising in a straight line.
The same effect has a useful consequence. If you hold BTC as collateral and are short an inverse contract of equal USD size, your account behaves like a dollar position. If the price rises, the short loses BTC but your BTC collateral is worth more dollars. This is why inverse shorts are a natural hedge for people who hold BTC. Inverse longs do the opposite: they add to your BTC exposure, because your collateral and your bet both gain when BTC rises.
Contract size and multipliers
A contract is not always "one coin". The specification sheet of each product gives the multiplier:
| Product type | Typical contract unit | Margin and settlement | Example |
|---|---|---|---|
| Linear perpetual | A fraction of a coin, such as 0.001 BTC | USDT or USDC | 1,000 contracts = 1 BTC |
| Inverse perpetual | A fixed USD amount, such as 1 USD or 100 USD | BTC (or the base coin) | 10,000 contracts = 10,000 USD |
| Quanto | A fixed coin amount, valued in another coin | A third currency | ETH contract paid in BTC |
Check the unit before you trade. An order for "100 contracts" can mean 100 USD, 0.1 BTC, or 100 BTC depending on the venue and product. Mistakes here are among the most common sizing errors. A quanto contract has a fixed conversion rate between its payout currency and the underlying, so it adds a currency risk of its own. This chapter does not cover it further.
Margin and liquidation in each type
For a linear contract, initial margin in USDT is notional ÷ leverage. A 1 BTC long at 60,000 with 10× leverage needs 6,000 USDT. Your collateral does not change in USD value, so your liquidation price depends only on the position.
For an inverse contract, initial margin is in BTC: contracts ÷ (entry price × leverage). For 10,000 contracts at 60,000 with 10× leverage, that is 10,000 ÷ 600,000 ≈ 0.01667 BTC.
If you are long, the price fall hurts you twice. The position loses BTC, and the BTC you posted as margin is worth fewer dollars. The liquidation engine, however, works in BTC, so what matters is the ratio of your remaining BTC margin to the maintenance requirement. For a long, liquidation tends to come at a somewhat different distance from entry than the linear formula suggests. Use the venue's calculator for inverse positions and do not copy the linear formula.
Common errors
- Reading the quantity in the wrong unit. Confirm whether the contract is 1 USD, 0.001 BTC, or something else before you send an order.
- Expecting symmetric inverse PnL. An inverse long loses more BTC in a fall than it gains in an equal rise. A fixed USD target does not map to a fixed BTC amount.
- Counting profit in the wrong currency. An inverse position can show a BTC profit and a USD loss if you measure against a collateral that fell. Choose the currency you actually care about.
- Forgetting that fees and funding use the margin currency. On an inverse contract these costs are taken in BTC, so their dollar cost changes with the price.
- Mixing products in a hedge. A hedge of an inverse long using a linear short has a mismatch in currencies and in convexity. It only offsets exactly at one price.
Choosing between them
| Question | Linear | Inverse |
|---|---|---|
| Do I want results in dollar terms? | Yes, collateral is stable | Only if I hold no BTC outside the account |
| Do I hold BTC and want to hedge it? | Needs USDT as collateral too | Short inverse hedges BTC with BTC |
| How hard is the math? | Straightforward | Needs reciprocal prices |
| Trading altcoins | Wide support | Limited to major coins |
Inverse contracts were the original crypto derivative design, because they needed only the coin itself. Linear contracts later became the default on most venues for the accounting reasons above. The choice depends on what you hold and which currency you measure your wealth in.
Exercise
A trader shorts 2 ETH on a linear perpetual at 3,000 USDT and closes at 2,850. Separately, another trader goes long 30,000 contracts (1 USD each) on an inverse BTC contract at 50,000 and closes at 40,000. What is each trader's PnL, and what is the second trader's loss in USD at the exit price?
Show answer
The linear short earns -1 × 2 × (2,850 − 3,000) = +300 USDT. The inverse long has PnL = 30,000 × (1/50,000 − 1/40,000) = 30,000 × (0.00002 − 0.000025) = -0.15 BTC. At 40,000 per BTC that is a loss of 0.15 × 40,000 = 6,000 USD.
Exercise
Why does an inverse long lose more BTC when the price falls 10% than it gains when the price rises 10%?
Show answer
The payoff depends on 1/price, which is convex. A fall in price raises 1/price by more than an equal rise lowers it. For example, from 60,000 down to 54,000, 1/price rises by about 1.85 × 10^-6, while from 60,000 up to 66,000 it falls by only about 1.52 × 10^-6.