Skip to content

How to Create a Tax Token on Solana

Sanket DalviNov 24, 20268 min read

Create a tax token on Solana with Tokenry

A Solana tax token takes a cut of every buy, sell and transfer. You build it as a Token-2022 token with a transfer fee.

You can create a tax token on Solana in two ways: with a no-code tool such as Tokenry's Solana tax token creator, or by coding a Token-2022 mint yourself.

With the no-code tool, it takes five steps:

  1. Connect a Solana wallet with SOL.
  2. Enter the name, symbol and supply.
  3. Set the tax rate and an optional cap.
  4. Pick the collector wallet, rate lock and revokes.
  5. Review, approve and save the mint address.

What you need

  • A Solana wallet such as Phantom or Solflare, with enough SOL for the service fee, rent and network fees.
  • A name and a symbol for the token, plus the supply in whole tokens. The tool adds the decimals for you.
  • The tax rate, the cap and the wallet that collects the tax, decided before you open the form. A locked rate can never change again.

How to create a tax token on Solana, step by step

Step 1: Connect your Solana wallet

Open the tool, choose Solana in the Connect Wallet window and approve the connection in your wallet. Tokenry is non-custodial: you sign every transaction in your own wallet, and Tokenry never holds your keys or funds.

Tokenry's Connect Wallet window is open with Solana selected as the network.
Choose Solana, then approve the connection in your wallet.

Step 2: Enter the token details

Type the name and symbol, then the supply in whole tokens. The result is a Token-2022 token, made by Solana's newer token program. A classic SPL token comes from the original Token Program; SPL Token vs Token-2022 explains the difference.

Step 3: Set the tax rate and the cap

Set the tax between 0.01% and 10%, in steps of 0.01%. Solana's transfer fee docs write the rate in basis points, where 100 basis points equal 1%.

One rate covers every transfer: buys, sells, wallet-to-wallet sends and airdrops all pay the same percentage. Solana has no separate buy tax and sell tax, which matters if you come from BNB Chain or Base.

The cap is optional. It sets the most tax one transfer can pay, in tokens, whatever the rate says:

Tax per transfer = the smaller of (amount × tax rate) and the cap

For example, take a 2% tax and a cap of 50,000 tokens. A transfer of 100,000 tokens pays 2,000 tokens. A transfer of 10,000,000 tokens would owe 200,000 tokens but pays 50,000, an effective rate of 0.5%. Raydium's page on transfer fees notes that with a cap, the effective rate on very large trades falls toward zero, so pick the cap against your supply and a typical trade size.

The Solana tax token creator form is filled in with the tax rate and cap settings, and the price summary is shown beside it.
The form with the tax settings and the price summary.

Step 4: Pick the collector wallet, the rate lock and the revokes

  • Collector wallet: your connected wallet unless you set another. Only this wallet can ever claim the tax, so use a wallet you control and keep its key safe. If the key is lost, nobody can claim the tax.
  • Lock tax rate: permanent, so nobody can ever change the rate again. It is free at creation and costs extra later, so decide the rate before you turn it on.
  • Revoke freeze authority: free at creation. Freeze authority lets the creator freeze any holder's token account, and Meteora DLMM and Orca review or reject tokens that keep it. Freeze and mint are separate authorities, so revoking freeze does not stop new minting. Read more in how to revoke freeze authority on Solana.

Before your wallet opens, the review screen shows the service fee.

The review step shows the tax rate, the cap, the locked rate and the costs before the wallet opens.
The review step with the tax, the cap, the locked rate and the costs.

Step 5: Approve and save the mint address

Approve the transaction in your wallet, then save the new token's mint address. You need it to open a pool, send an airdrop and claim the tax.

The success screen shows the new token's mint address and a link to the transaction.
The success screen with the mint address and the transaction link.

Where the tax goes and how to collect it

The tax does not land in your wallet. At each transfer, the fee is withheld on the recipient's token account, and the holder cannot spend that withheld part. Solana built it this way so transfers of the token can run in parallel, which would not work if every transfer also had to write to one collector account.

You get the tax out in one of two ways:

  • Withdraw it straight from holder token accounts.
  • Move it from holder accounts to the mint account first, then withdraw it from the mint. Anyone can trigger the move to the mint, but only the withdraw authority (your collector wallet) can take the tax out.

A holder cannot close a token account that still holds withheld tax until that tax is moved out.

Solana Claim Tax scans for withheld tax for free, pulls it from many holder accounts in one approval, and can sell part of it for SOL in the same flow.

Can you change the tax later?

Yes, unless the rate is locked. The fee authority can change the mint's fee settings, both the rate and the cap. Because the cap can be changed too, it does not protect holders from a future raise.

A new rate does not apply at once. Solana's transfer fee docs say a new fee takes effect starting two epochs later.

Raydium's token risk docs warn liquidity providers about tokens whose authorities can change the token's rules after they deposit, so buyers look for a locked rate. "Lock tax rate" in the creator makes the rate permanent on-chain; if you skipped it, you can lock it later on Solana Claim Tax.

Opening a liquidity pool for a tax token

Not every Solana DEX pool takes a transfer-fee token, and some also check freeze authority, as Meteora's DLMM docs show for DLMM:

DEX poolTakes a transfer-fee token?Freeze authority
Raydium CPMMYesRaydium's docs say a freeze authority can freeze the pool; revoke it
Raydium CLMMYesSame as CPMM
Raydium AMM v4No, no Token-2022 tokens at allNot applicable
Meteora DAMM v2Yes, anyone can open oneNot stated in its docs
Meteora DLMMYesA mint that can freeze accounts is not accepted without review

Your own deposit pays the tax too. Adding tokens to a pool is a transfer, so the pool receives less than you send: at a 1% tax, sending 1,000 tokens lands 990 in the pool. Meteora's DAMM v2 docs describe how the pool accounts for transfer fees on deposits, withdrawals and swaps.

With Tokenry, the Solana liquidity pool creator offers Raydium CPMM and Meteora DAMM v2, and the form says which DEX accepts your token.

Tips and common mistakes

  • Setting the rate too high. Every trade pays the tax, so a high rate makes buyers less willing to trade. The tool's range stops at 10%.
  • Forgetting that airdrops pay the tax. Each wallet receives the amount minus the tax: at 2%, sending 5,000 tokens lands 4,900. The Solana multisender shows the tax in its review before you sign.
  • Setting a cap far below normal trade sizes. Most trades then pay much less than your rate.
  • Adding a tax you do not need. A plain SPL token from the Solana token creator is simpler, costs less and fits more pool types.

The code route

Developers can build the same token without a no-code tool. They create a Token-2022 mint with the transfer fee extension, using Solana's SPL Token command-line tool or their own script, and give the fee in basis points plus a maximum fee. Collecting the withheld tax then needs their own scripts too. The Token-2022 extension docs cover each part. This route suits developers who want more Token-2022 extensions or full control over how fees are collected.

How much it costs to create a tax token on Solana

What you pay at each stage of a launch:

ItemCost
Tax token creator service fee0.25 SOL
Rent and network feesabout 0.005 to 0.006 SOL
Rate lock and revokes at creationfree
Rate lock later (Solana Claim Tax)0.05 SOL
Revoke an authority later0.05 SOL per authority
Claim the taxfree scan, 0.03 SOL per claim run, plus network fees
Pool on Meteora DAMM v20.1 SOL service fee, plus rent
Pool on Raydium CPMM0.1 SOL service fee, plus Raydium's 0.15 SOL creation fee and about 0.03 SOL rent

When I opened a Meteora DAMM v2 pool in my test round, it needed about 0.017 SOL rent and no pool creation fee.

A full launch on the DAMM v2 route comes to about 0.37 SOL before your own pool deposit: 0.25 SOL, about 0.006 SOL rent and network fees, 0.1 SOL for the pool and about 0.017 SOL pool rent.

What to do next

FAQ

Can a Solana token have a different buy tax and sell tax?

No. A Token-2022 transfer fee applies one rate to every transfer, so buys, sells and wallet sends all pay the same percentage.

What is the difference between a tax token and a normal SPL token?

A tax token uses Token-2022 with the transfer fee extension. It has a fee authority that sets the rate and a withdraw authority that collects the tax, and someone has to claim the withheld tax. The post on Solana tax token transfer fees explains how it works.

How much does it cost to create a tax token on Solana?

With Tokenry, it costs 0.25 SOL plus about 0.005 to 0.006 SOL rent and network fees. The rate lock and revokes are free when you set them at creation.

Does the tax land in my wallet automatically?

No. It waits on holders' token accounts until the collector wallet claims it.

Can I list a tax token on Raydium?

Yes, on Raydium CPMM and CLMM pools. Raydium AMM v4 does not take Token-2022 tokens.

Do it with Tokenry

0.15 SOL Tokenry fee, plus a small network rent

FAQ

Frequently asked questions

Something not covered here? Contact support.

Can a Solana token have a different buy tax and sell tax?

No. A Token-2022 transfer fee applies one rate to every transfer, so buys, sells and wallet sends all pay the same percentage.

What is the difference between a tax token and a normal SPL token?

A tax token uses Token-2022 with the transfer fee extension. It has a fee authority that sets the rate and a withdraw authority that collects the tax, and someone has to claim the withheld tax. The post on Solana tax token transfer fees explains how it works.

How much does it cost to create a tax token on Solana?

With Tokenry, it costs 0.25 SOL plus about 0.005 to 0.006 SOL rent and network fees. The rate lock and revokes are free when you set them at creation.

Does the tax land in my wallet automatically?

No. It waits on holders' token accounts until the collector wallet claims it.

Can I list a tax token on Raydium?

Yes, on Raydium CPMM and CLMM pools. Raydium AMM v4 does not take Token-2022 tokens.