Solana's speed depends on fast access to state. To avoid state bloat, where the ledger grows until validator memory becomes too expensive, Solana uses a rent-exemption model. This article covers the mechanics and the math.
1. The economic principle
If storage were a one-time gas expense, users could write data permanently while validators carry it forever. Solana prices storage by size and time instead:
- Every byte of on-chain state has a storage cost.
- Rent was originally charged over time, and accounts that ran out were purged.
- Today, accounts must hold a minimum balance equal to two years of storage cost. Accounts meeting it are rent-exempt and are not charged further.
2. Calculating the rent-exempt minimum
minimum (lamports) = (128 + data bytes) x 3,480 x 2
1 SOL = 1,000,000,000 lamports
SPL token account data = 165 bytes
Account storage overhead = 128 bytes
Total = 165 + 128 = 293 bytes
293 x 3,480 x 2 = 2,039,280 lamports = 0.00203928 SOL
That is the deposit every standard token account holds.
3. Account types and storage profiles
| Account type | Data size | Locked rent |
|---|---|---|
| SPL token account (ATA) | 165 bytes | ~0.00204 SOL |
| Token multisig (up to 11 signers) | 355 bytes | ~0.00336 SOL |
| OpenBook / Serum market | ~80,000 bytes | ~0.56 SOL |
| Custom program state | Variable | ~0.01 to 2.0+ SOL |
4. Reclaiming state storage
When an account's data is no longer needed, its owner can send the token program's CloseAccount instruction. For a token account it does two things atomically:
- Closes the account so its data is released from state.
- Transfers the remaining lamports, the rent-exempt deposit, to a destination account (your main wallet).
Graveyard Protocol builds these standard instructions for you, batching many token accounts into each transaction, so you can reclaim the rent without writing code.

