How to calculate a Solana Token-2022 transfer fee
November 15, 2026 · 4 min read · by the Rugsight team
A Token-2022 transfer fee is taken from the tokens being moved, not paid as SOL. If you send 1,000 tokens at a 3% fee, the recipient does not receive 1,000. This guide shows the on-chain formula, how to read the current rate from the mint, and how that looked on live mint accounts read at 22:51 America/Fortaleza on 15 November 2026 (mainnet slot 469953784). You can run the same numbers in the Rugsight transfer preview (enter a mint and an amount; it is read-only and does not connect a wallet).
This is about a transfer. It is not a DEX swap fee and it is not a quote for a Jupiter, Raydium or Orca trade. For how the fee flag appears on a Rugsight token score, see how to check if a Solana token has a transfer tax or fees.
Free score in seconds. No sign-up, no wallet. Mint addresses and links from DexScreener, Jupiter, pump.fun, Birdeye, Solscan and GMGN all work.
No mint handy? Open a token our scanner just checked (free, live data):
The formula
Token-2022 stores a current rate in basis points (newerTransferFee.transferFeeBasisPoints). 100 bps is 1%, 300 bps is 3%, 500 bps is 5%. It also stores a maximum fee in raw token units. The program computes:
- Convert the amount you send into raw units using the mint's decimals.
- Take
ceil(raw_amount × basis_points / 10,000). - If that figure is higher than the maximum fee, use the maximum instead.
- The recipient receives
raw_amount − fee.
The fee is withheld in token accounts and can later be collected by a withdraw authority. A separate transfer-fee config authority, if one is still set, can change the rate later. The preview uses the current newerTransferFee rate only.
If the mint is on the classic SPL Token program, this extension cannot exist. The fee is zero and the recipient receives the full amount on a plain transfer.
How to read the fee yourself
- Start from the full mint address, not the ticker. Names are reused. That step is in how to verify a Solana token contract address.
- Open the mint on an explorer and confirm the owner program is Token-2022 (
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb). - In the Extensions list, open Transfer Fee /
transferFeeConfig. Note the current basis points, the maximum fee, the withdraw authority, and whether a config authority is still set. - Or call
getAccountInfoon the mint withjsonParsedencoding and readnewerTransferFee. - Paste the same mint and an amount into the transfer preview to apply the formula.
Dated examples (15 November 2026)
These figures come from one public mainnet getMultipleAccounts read at 22:51 America/Fortaleza on 15 November 2026 (slot 469953784). They are snapshots of the mint config, not buy or sell recommendations. Open the preview with a current amount if you need today's numbers.
Anonymous Cat (ZCAT) (HcRLc9VDgjLeK154xDawfb1dmVJ98DoSqcwTHGqiDeJR), 9 decimals, current fee 300 bps (3%). The maximum fee was a large cap that does not bind a 1,000-token transfer. The config authority was unset. For a transfer of 1,000 ZCAT, the withheld fee is 30 and the recipient receives 970.
Mert The Pooh (MOOH) (J4fWoyVecozyBj83NFk3qzHZR7qkt92YAhgoFvGzcash), 6 decimals, current fee 500 bps (5%). The maximum fee was the u64 maximum, so it did not cap the percentage. The config authority was unset. For a transfer of 1,000 MOOH, the withheld fee is 50 and the recipient receives 950.
Jensen Index (JENSEN) (5kop9u6Dg5iSmJ3qBnL3SsazBZkcAY3nw3wJrAq4h2gK), 6 decimals, current fee 50 bps (0.5%). For a transfer of 1,000 JENSEN, the withheld fee is 5 and the recipient receives 995. On that read the mint authority was still active and a transfer-fee config authority was still set, so the current 0.5% rate can be changed later.
What the formula does not include
- DEX pool swap fees, slippage, or a Jupiter quote. Those are not properties of the mint's transfer-fee extension.
- A transfer hook, a freeze, a pause, or a permanent delegate. Those can stop or divert a transfer without changing the fee arithmetic. See how to check a Token-2022 transfer hook before you send.
- Older fee epochs. Rugsight uses
newerTransferFee, the current rate.
FAQ
How do I calculate how many tokens the recipient will receive?
Convert the sent amount to raw units, compute ceil(raw × basis_points / 10,000), cap that at the mint's maximum fee, and subtract the fee from the amount sent. The Rugsight transfer preview does that from the current on-chain mint config.
Is a 5% transfer fee the same as a 5% DEX fee?
No. A Token-2022 transfer fee is withheld from the token amount on every transfer of that mint, including a transfer into a pool. A DEX swap fee is charged by the pool and is not stored on the mint.
Can the fee change after I check it?
Yes, if a transfer-fee config authority is still set. The preview reports the current newerTransferFee rate and, in the full result, whether a config authority is present. It does not predict a future rate.