What is rent on Solana, and when do accounts get purged?
Rent on Solana is a mandatory storage fee paid by accounts to keep their data on the network’s ledger. If an account fails to maintain a minimum balance equivalent to two years of rent, it becomes eligible for deletion - or "purging" - by validators. Rent is not a recurring payment you make monthly; it is a one-time deposit if you hold enough SOL, or a periodic deduction if you do not.
Why rent exists
Solana stores all account data - wallet balances, token holdings, program state - directly on validators’ disks. Unlike Ethereum, which prunes old state, Solana keeps every account’s full data until it is explicitly closed or purged. That uses disk space, and disk space costs money. Rent incentivizes users either to deposit enough SOL to cover future costs upfront or to pay as they go. Accounts that cost more to store than they contribute in fees are eventually removed.
Two rent models
Rent-exempt accounts
Any account with a balance of at least two years' worth of rent is considered rent-exempt. That balance acts as a one-time deposit. The SOL is not spent - it remains in the account, fully liquid. But as long as the balance stays above the rent-exempt threshold, no rent is ever deducted. Most active Solana accounts today are rent-exempt. The exact threshold depends on the account’s data size. For a typical 165-byte wallet account, the rent-exempt minimum is roughly 0.00089 SOL. Larger accounts (like token accounts holding metadata) require more. You can check the current minimum for any account size using the getMinimumBalanceForRentExemption RPC method.
Non-rent-exempt accounts
If an account’s balance falls below the rent-exempt threshold, the network treats it as a pay-as-you-go account. At the end of each epoch (approximately every two days), the system deducts rent from the account’s balance. The deduction amount equals the account’s rent-per-epoch cost. If the balance hits zero after a deduction, the account is purged immediately. In practice, most wallet software and dApps avoid creating non-rent-exempt accounts because they require ongoing payments and risk deletion.
When accounts get purged
Purging happens during the epoch boundary, after rent is deducted. An account is purged if:
- Its SOL balance is less than the rent-exempt minimum.
- After subtracting the current epoch’s rent, its balance becomes zero or negative.
Purged accounts are removed from the active state. Their data is no longer accessible. Any tokens or assets stored in a purged account are lost - Solana does not have a recovery mechanism. The SOL itself is not burned; it is swept into the validator’s fee pool. For token accounts or program-derived addresses (PDAs), the loss is permanent.
What triggers purging in practice
- Draining a rent-exempt account below the threshold. If you withdraw enough SOL from a wallet to drop it below the minimum, it becomes non-rent-exempt. Then rent starts deducting each epoch. If you do not top it up, it will be purged.
- Closing an account without reclaiming the rent. When you close a token account or program account, you must manually claim the rent-exempt deposit. If you do not, the SOL stays locked in the closed account, and the account may be purged later.
- Abandoned accounts. Developers sometimes create temporary accounts (e.g., for a one-time airdrop claim) and forget to close them. If they hold less than the rent-exempt minimum, they vanish after a few epochs.
How to avoid losing an account
- Keep the balance above the rent-exempt threshold. For a normal wallet, this is trivial - the minimum is less than $0.01 at typical SOL prices. For large data accounts (like a program storing gigabytes of state), the threshold can be significant.
- Close accounts properly. When you no longer need a token account or a program account, use the
closeAccountinstruction. This reclaims the rent-exempt deposit. Phantom and Solflare wallets offer this for token accounts. For custom programs, include a close function. - Monitor accounts via RPC. Use
getAccountInfoand check therentEpochfield. A value ofu64::MAXmeans the account is rent-exempt. Any other number means the account will pay rent at that epoch. - Top up before the epoch ends. If you accidentally drain a wallet below the threshold, send enough SOL to restore it above the rent-exempt minimum before the next epoch boundary (every ~2 days).
What about program accounts and PDAs
Program accounts (the deployed code) are always rent-exempt by default - the deployer pays the deposit. Program-derived addresses (PDAs) have no private key and are created by programs. They can be rent-exempt or non-rent-exempt depending on the program’s design. If a program creates a PDA with a small SOL balance and never uses it, that PDA may be purged. Good Solana programs either make PDAs rent-exempt or include logic to close them.
Rent is not the same as transaction fees
Rent pays for storage space over time. Transaction fees pay for compute and bandwidth per instruction. You pay transaction fees every time you send a transaction. You pay rent only if your account is non-rent-exempt. For the vast majority of users, the rent-exempt deposit is a one-time cost you never think about again - until you try to drain a wallet to zero.
Not financial advice. orymsolana.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.