Tools / Trading Fee Calculator
OKX Trading Fee Calculator (Swaps, with the API Sign Convention)
Work out OKX round-trip fees at your own rate. Why maker or taker depends on the fill, how contract value sets the fee, and why the trade-fee API reports rebates as positive.
Venue mechanics on this page are as of 2026-09. Fees, limits and margin tiers change — check the venue's own docs before acting on a number.
- Entry fee
- — USD
- Exit fee
- — USD
- Round trip
- — USD
- Round trip as % of notional
- —
- Move needed to break even
- —
- Fees per month at this rate
- — USD
- Share of a 1% gross win
- —
OKX charges USDT-margined swap fees on each fill as fee rate × contracts × contract multiplier × contract size × fill price, settled in USDT. Whether a fill counts as maker or taker depends on how it executed, not on the order type. Your tier comes from 30-day trading volume and account asset holdings and updates daily. The trade-fee API does not reflect zero-fee trading, so check OKX's fees page for those pairs. Rates are yours to enter.
Maker or taker is decided by the fill
OKX’s fee FAQ (updated 9 Sep 2026) says maker or taker is determined by how the order executes, not by the order type. A limit order is not automatically maker: if it is priced through the book, whatever fills immediately is taker, and only what rests and fills later is maker. One order can pay both rates. The general trade-off is in maker vs taker fees.
The fee is on contract value
Swaps trade in contracts, and the fee is on their value at the fill price:
Fee = Fee rate × (Number of contracts × Contract multiplier × Contract size × Fill price)
It is settled in USDT on each fill. For the calculator above, the notional is contracts × multiplier × size × price, not the contract count.
Worked example: one order, two rates
Illustrative contract terms — read the real ones from the contract’s
specifications. A limit buy for 150 contracts, contract size 0.01, multiplier
1, at 3,000. 40 contracts fill immediately against resting asks; the other 110
rest on the book and fill later at the same price. With your own rates m
(maker) and t (taker):
| Part | Contracts | Value | Charged as | Fee |
|---|---|---|---|---|
| Immediate fill | 40 | 40 × 0.01 × 1 × 3,000 = 1,200 USDT | Taker | 1,200 × t |
| Rested, filled later | 110 | 3,300 USDT | Maker | 3,300 × m |
| Whole order | 150 | 4,500 USDT | Mixed | 1,200·t + 3,300·m |
Entering the whole 4,500 as maker in the calculator understates the cost by 1,200 × (t − m). To model this order, run the calculator for each part. Order lifecycle and partial fills covers how the two fills show up in your order history, and a post-only order is the usual way to avoid the taker portion.
The sign trap in the trade-fee API
This is the OKX-specific detail most likely to break a fee model.
GET /api/v5/account/trade-fee reports rates with the opposite sign to the
help centre:
| Source | Positive value means | Negative value means |
|---|---|---|
GET /api/v5/account/trade-fee | Rebate | Commission |
| OKX help-centre examples | Commission | Rebate |
| This calculator | Fee you pay | Rebate you receive |
So a taker commission comes back from the API as a negative number, and a maker rebate as a positive one. Flip both before entering them here, or before feeding them into any cost model that treats positive as a cost. A bot that uses the API value directly will count its fees as income.
The API also “will not reflect zero-fee trading”. For pairs on a zero-fee promotion, OKX points to its fees page, which is rendered in the browser and may show different rates when you are logged in.
What sets your tier
OKX bases the fee tier on “your 30-day trading volume and your account asset holdings”, and updates it daily, not in real time — a large day of trading changes your rate from the next update, not mid-session. Tier thresholds are on the fees page and change; this page does not copy them.
One thing that no longer applies: the fee FAQ says the platform “currently doesn’t offer a feature that lets you offset trading fees by holding OKB”. Older OKX pages describing OKB-based fee tiers are out of date, and a calculation that applies an OKB discount will understate the cost.
Liquidation is charged at your taker rate
A forced liquidation is charged at the taker rate of your current tier, and an additional liquidation clearance fee may apply, with net proceeds going to OKX’s security fund. That is also why OKX’s isolated liquidation formula adds a fee rate to the maintenance rate — the level is set to leave room for the cost of closing you. The OKX liquidation price calculator asks for your own tier’s fee rate for that term.
Funding is separate again: settled between users with no OKX service fee, but still a holding cost — see the OKX funding calculator. For how fees add up over many trades, see fee drag over a year.
FAQ
Why does the OKX API show my maker fee as a positive number?
In GET /api/v5/account/trade-fee, OKX uses a positive value for a rebate and a negative value for a commission. OKX's help-centre examples use the opposite, everyday convention, where a negative maker fee means a rebate. Flip the sign of the API value before using it in this calculator or any fee model.
Is an OKX limit order always charged the maker fee?
No. OKX decides maker or taker by how the order executes, not by its type. A limit order priced through the book fills immediately and pays the taker rate on that part; only the part that rests on the book and is filled later pays the maker rate.
How is my OKX fee tier decided?
OKX sets your tier from your 30-day trading volume and your account asset holdings, and updates it daily rather than in real time. The current tier thresholds are on OKX's fees page, and your own rates come from GET /api/v5/account/trade-fee.
Can I reduce OKX trading fees by holding OKB?
Not at present. OKX's fee FAQ, updated 9 September 2026, says the platform currently does not offer a feature that offsets trading fees by holding OKB. Older OKX pages that describe OKB-based fee tiers are out of date.
What fee does OKX charge on a forced liquidation?
The taker rate of your current tier, and an additional liquidation clearance fee may apply. Net proceeds go to OKX's security fund.