Solana rent explained: how to close token accounts and reclaim SOL
Why every token account locks about 0.002 SOL in rent — and how to close empty accounts safely without falling for risky third-party claim sites.
Every token account in your Solana wallet locks up a rent deposit of about 0.002 SOL. Close an empty token account and you get that deposit back in full — safest via your wallet’s built-in cleanup feature or a transaction you have checked yourself, not via “reclaim your SOL” websites from a search engine. That is exactly where a well-known drainer pattern lurks.
Short answer: On Solana, rent is a deposit, not a fee. Every account must hold a minimum balance proportional to its size to stay stored permanently. A standard token account (165 bytes) locks 2,039,280 lamports, about 0.002 SOL. Once the token balance is zero, you can close the account — the SOL flows back to an address of your choice, typically your own wallet.
In plain terms: Solana charges a small deposit for every “storage box” (account) so it may permanently occupy space on the blockchain. Clear away an empty box and the deposit comes back — like a bottle deposit.
Everything on Solana is an account
Solana stores its entire state as a key-value store: every key is a 32-byte address, every value is an account. Your wallet is an account, every token balance is an account, every program is an account. Three things about this matter for rent:
- Every account has an owner — a program. Only that program may modify the account’s data or debit lamports.
- Every account holds lamports, the smallest SOL unit. One lamport equals 0.000000001 SOL.
- Every account has data — and the network demands the rent deposit for that storage space.
How wallet address, private key, and accounts fit together is covered in detail in How a Solana wallet works.
Rent is a deposit, not a fee
The name is misleading: “rent” sounds like a recurring charge that gets deducted over time. In practice it works differently. Every account must hold a minimum balance proportional to its data size — the rent-exempt minimum. The formula from the official documentation:
(account size + 128 bytes) × 3,480 lamports per byte-year × 2 years
As long as that balance sits on the account, it stays stored on-chain permanently. Nothing is deducted. And here is the key part: the balance is not gone. It is a deposit that flows back in full when the account is closed.
Token accounts and ATAs: why every token locks about 0.002 SOL
SOL sits directly on your wallet account. For every other token, your wallet needs a separate token account — one per token mint. That account stores which token it holds, who owns it, and how many units are inside.
A standard token account is 165 bytes. Plugged into the rent formula, that gives (165 + 128) × 3,480 × 2 = 2,039,280 lamports, or 0.00203928 SOL — the often-quoted “about 0.002 SOL per token account”.
So that apps never have to guess where your token account lives, there is the Associated Token Account (ATA): a token account whose address is deterministically computed from your wallet address and the token’s mint address. Every app arrives at the same address without asking.
The consequence: anyone who has swapped a lot or received spam airdrops quickly accumulates dozens of empty token accounts — and each one locks its own rent deposit.
PDAs in 60 seconds
ATAs are a special case of a more general concept: Program Derived Addresses (PDAs). A PDA is an address deterministically derived from a program ID and a set of seeds. It is guaranteed not to lie on the Ed25519 curve — no private key exists. Only the deriving program can “sign” for a PDA.
Programs use PDAs as addressable storage slots: your stake account in a protocol, your position in a lending app, your ATA. For cleanup purposes you only need to remember one thing: PDAs are accounts with rent deposits too, but only the program that owns them can close them — not you directly through your wallet.
How to reclaim rent safely
The rules for closing live in the token program itself:
- The token balance must be zero. A regular token account can only be closed once no tokens remain in it. Transfer leftovers first — or burn them deliberately. Burning is irreversible.
- The SOL goes to an address of your choice. When closing, you designate where the remaining lamports flow. The normal case is your own wallet.
- Only the owner can close. Without your signature, nobody closes your token accounts.
The safest paths in practice:
- Wallet built-in feature first. Several widely used wallets show empty or unused token accounts directly and offer a built-in cleanup feature. That is the path with the smallest attack surface, because no third-party website enters the picture.
- Established tools only with a transaction check. If you use an external tool, read what the transaction does before signing. A clean cleanup transaction contains close instructions (and burns where needed) — no token approvals, no authority changes, no unlimited allowances. How to read a transaction before signing is covered in Using Solscan to read transactions and wallets.
- Classify spam tokens first. You can burn unwanted airdrop tokens and close the account — the rent deposit flows to you, because you are the owner. But never visit links or websites embedded in a token’s name. How to assess unknown tokens is explained in Checking tokens for scams.
One more detail: if you close the ATA of a token you later receive again, the account simply gets recreated — the deposit is then paid by whoever creates the new account. Cleanup therefore makes the most sense for tokens you no longer expect.
Warning signs: “reclaim your SOL” websites
For search queries like “reclaim SOL” or “claim Solana rent”, many third-party sites rank whose model needs exactly one thing: your wallet connection plus a signature. That makes this category a drainer risk vector. Typical warning signs — regardless of the specific site:
- The transaction demands more rights than needed. A close transaction needs no token approvals, no delegates, and no authority changes. If anything like that shows up in the signature preview: cancel.
- An unreadable batch transaction. If your wallet cannot meaningfully display the contents or explicitly warns you, that is a stop signal — not a “just confirm”.
- Opaque fees. Commissions that eat a large share of the reclaimed amount, or costs that only become visible after connecting.
- Fresh domain, copycat design, urgency. Countdowns, “limited offer”, supposed live counters — classic pressure tactics.
- Seed phrase requests. Always a scam, no exceptions. No legitimate application needs your seed phrase.
The full pattern collection with examples is in Detecting Solana wallet drainers.
At a glance
- Everything on Solana is an account; storage requires the rent-exempt minimum.
- Rent is a deposit: closing an account returns it in full.
- A standard token account (165 bytes) locks 2,039,280 lamports ≈ 0.002 SOL.
- Closing only works with a token balance of zero and only with your signature.
- Safest path: your wallet’s built-in cleanup feature; with external tools, read every transaction before signing.
- “Reclaim your SOL” websites from search results are a known drainer risk vector.
Note: Not financial advice.
Sources
- Solana documentation: Core Concepts — Accounts
- Solana documentation: Program Derived Addresses
- SPL Token Program — official documentation
- Solana documentation: Terminology (lamport, rent)
Related articles
- How a Solana wallet works — keys, addresses, accounts
- Detecting Solana wallet drainers — the patterns behind wallet attacks
- Checking tokens for scams — safely classifying spam airdrops