Leverage calculator: leverage or spot?
Enter an amount, leverage, and entry and exit prices. You'll see how much the exchange takes: fees, funding, the liquidation price and the price at which you only just break even. Next to it is the same purchase on spot, and below it the formulas on your numbers.
It calculates in your browser. It pulls price, funding and margin tiers from the public OKX API. We save nothing.
This is what each exchange takes
Same position, same prices and time, different rates. Click a row and the whole calculator recalculates at that exchange's rates. Small numbers are the difference from the selected one.
| Exchange | Spot: buy and sell | Leverage: fees | Leverage: including funding |
|---|
Your exchange or your VIP tier. Enter the rates and they'll appear in the table as a separate row.
Base rates, without VIP tiers and promotions, as of Sep 21.2026. Sources: OKX (opens in a new tab) · WEEX (opens in a new tab) · Bitget (opens in a new tab) · Binance (global) (opens in a new tab) · Bybit (global) (opens in a new tab) · MEXC (opens in a new tab) · Bybit EU (spot only) (opens in a new tab).
Same amount, different leverage
Fees (entry and exit) and daily funding as a percentage of your capital, next to the price move that closes the position. Struck through: more than OKX allows at this position size.
| Leverage | Position, USDT | Fees | Funding per day | To liquidation |
|---|
Step-by-step calculation: formulas on your numbers
What this calculator does not account for
- Slippage and spread. A market order fills at the best available price, not the one on screen. With a large position or a sharp move, the difference can be larger than the fee.
- Mark price. The exchange liquidates at the mark price, not the last trade. They are usually close, but not always.
- Funding changes. The rate changes every settlement. The calculator assumes the selected one holds for the entire time you hold the position.
- Funding taken from margin. With isolated margin, funding can come out of the position's margin, which moves the liquidation price closer.
- Cross margin and several positions at once. We calculate a single position on isolated margin. With cross margin, liquidation is determined by the whole account balance.
- Liquidation fee and tiers for large positions. On liquidation we count the loss of the entire margin, so the fee changes nothing here. We take MMR tiers from OKX for the selected pair; on other exchanges they may differ.
- Discounts and VIP tiers. The rates are the base tier. Higher volume or an exchange discount lowers them: enter your own in the “Your exchange” row.
Frequently asked questions
How much does the exchange take with leverage?
Leverage or spot: which is cheaper?
Is funding a fee paid to the exchange?
Why does liquidation hit before I lose my entire margin?
Will the result match the exchange to the cent?
Leverage doesn't change the market's direction. It changes the scale of your mistake
This calculator works out costs, not opportunities. If you only want to determine how much to buy at a chosen risk, use the position size calculator. You can compare funding rates across exchanges on the funding heatmap, and find the terms in the glossary: leverage, liquidation.
Before you open your first leveraged position, look at the regulator's data: how many people lose on CFDs (in Polish) (opens in a new tab) in Poland, year by year.
The calculator is educational: it shows how costs are calculated and is not an investment recommendation or an encouragement to use leverage. Leveraged contracts are complex instruments, and liquidation takes the entire position margin. Exchange rates change: check your exchange's fee schedule before trading. Risk Warning.
Numbers are only the beginning
In Strefa Tradingu we show you for free how to manage risk step by step before you reach for leverage.
Learn with the Klub Zero family
Recommended Courses, books and community from the creators of kryptoliczby.pl
Crypto without the chaos, once a week
A Sunday recap: what matters in the market, explained simply. No signals, no profit promises.