Docs

Closing empty token accounts to reclaim their rent

Every token or NFT a wallet receives gets an account of its own, and each account locks up a rent deposit of 0.0015 to 0.002 SOL. Sell or send the token and the account stays behind, empty, with its deposit still in it. These are where most wallets' locked SOL sits.

At a glance

Empty token accounts
Rent held0.00203928 SOL for accounts opened before Solana lowered its rent rate, 0.00148844 SOL since; Token-2022 accounts with extensions hold a little more
ProgramsSPL Token and Token-2022
Listed whenThe balance is exactly zero and your wallet is allowed to close the account
Closing doesThe token program’s closeAccount, returning the deposit to your wallet
Our fee10% of the rent, capped so you keep at least 0.002 SOL, or 20% from an empty wallet (fees)
In "Claim All"Yes, by default

Where they come from

A Solana wallet does not hold tokens directly. For every token it holds, there is a separate token account, owned by the wallet, that records the balance — and every NFT is a token with an account of its own too. Whoever creates that account pays its rent deposit, which for an account your wallet opened was you.

Nothing closes these accounts automatically. Swapping out of a token, selling an NFT or sending the last of an airdrop leaves the account at zero, still holding its deposit. A wallet that has traded or collected for a while usually has dozens of them.

What gets listed

Every account your wallet owns under the SPL Token and Token-2022 programs is read, and only those with a balance of exactly zero are listed. A frozen account is included: freezing stops a token from moving, not an empty account from closing. An account that still holds anything, even a fraction of a token, is left alone — it can only be emptied by burning what is in it.

Two kinds of empty account are left out because your wallet's signature cannot close them: accounts whose close authority was kept by the app that created them, and Token-2022 accounts still holding transfer fees for a token whose mint has since been closed.

What closing does

Each account gets one closeAccount instruction, which sends its whole deposit to your wallet, up to 12 accounts per transaction. A Token-2022 account holding withheld transfer fees has them moved to the token's mint first, in the same transaction, because the program refuses to close it until they are gone. The details of batching and signing are on the reclaiming rent page.

Questions

Will closing an account stop me from receiving that token again?

No. A closed token account is simply opened again the next time that token is sent to your wallet, usually by whoever sends it. Closing only takes back the deposit of an account that is doing nothing.

Why are some of my empty accounts not listed?

Two kinds can never be closed by your wallet, so they are left out rather than offered and failed: accounts whose close authority was kept by the app that created them, and Token-2022 accounts still holding transfer fees for a token whose mint no longer exists.

Can a frozen account be closed?

Yes, if it is empty. Freezing stops a token from being moved or burned, not an empty account from being closed.

Why is the fee on some accounts under 10%?

Because you always keep at least 0.002 SOL of an account that holds more. An account opened before Solana lowered its rent rate holds 0.00203928 SOL, so the fee on it is the 0.00003928 above 0.002 SOL, about 1.93%. Newer accounts hold less than 0.002 SOL and pay the plain 10%.

The other kinds of account: stake accounts, Serum and OpenBook accounts and program buffers.

Scan a wallet for empty token accounts