Understanding how Solana calculates rent is the first step toward managing your on-chain costs effectively. Whether you're a developer deploying programs, a trader cycling through tokens, or a DeFi user interacting with multiple protocols, every account you create carries a rent deposit. Knowing the formula behind that deposit lets you predict costs, plan your activity, and understand exactly how much SOL you can recover when you're done.
TL;DR: Solana rent is calculated as
(account data size in bytes) × (rent rate per byte-year) × 2. For a standard token account (165 bytes), this works out to ~0.00204 SOL. Different account types have different data sizes, but the formula is always the same. Every deposit is fully refundable when the account is closed.
The Rent Formula Explained
Solana's rent calculation is deterministic and straightforward. Every account on the network has a data field with a fixed size in bytes. The rent-exempt minimum balance for that account is:
Minimum balance = (data size in bytes) × (rent rate per byte-year) × 2
Let's break down each component:
Data size in bytes — This is the storage allocation for the account's data. A standard SPL token account uses 165 bytes. A token mint account uses 82 bytes. Program accounts, metadata accounts, and other types each have their own fixed sizes.
Rent rate per byte-year — This is the cost per byte per year as defined by the Solana runtime. The current rate is approximately 0.00000348 SOL per byte per year (3,480 lamports per byte-year). This rate is a network parameter that has remained stable.
The ×2 multiplier — This is the rent-exemption factor. By holding two years' worth of rent upfront, the account is guaranteed to never be collected by the runtime. All accounts created on Solana today must meet this threshold.
Plugging in the numbers for a standard token account:
165 bytes × 0.00000348 SOL/byte-year × 2 = 0.001148 SOL
Wait — that doesn't match the ~0.00204 SOL figure you see everywhere. That's because the actual calculation includes 128 bytes of base account overhead that every Solana account carries (for metadata like the owner, lamport balance, and other fields). So the real calculation is:
(165 + 128) bytes × 0.00000348 SOL/byte-year × 2 = 0.00204 SOL
This 128-byte overhead applies to every account type. Keep it in mind when calculating rent for non-standard accounts.
Common Account Types and Their Costs
Not every account on Solana costs the same. Here's a reference table of common account types, their data sizes, and rent-exempt deposits:
| Account Type | Data Size (bytes) | Total Size (+ 128 overhead) | Rent Deposit (SOL) |
|---|---|---|---|
| SPL Token Account | 165 | 293 | ~0.00204 |
| Token Mint | 82 | 210 | ~0.00146 |
| Token-2022 Account | 165+ (varies with extensions) | 293+ | ~0.00204+ |
| Associated Token Account (ATA) | 165 | 293 | ~0.00204 |
| System Account (0 data) | 0 | 128 | ~0.00089 |
| Stake Account | 200 | 328 | ~0.00228 |
| Metadata Account (Metaplex) | ~679 | ~807 | ~0.00562 |
The vast majority of empty accounts in a typical wallet are SPL token accounts at 0.00204 SOL each. If you've ever wondered why SOL seems stuck in your wallet, these deposits are almost always the reason.
How to Check Rent Costs Using the Solana CLI
If you want to verify rent costs yourself, the Solana CLI provides a direct way to query the rent-exempt minimum for any data size.
Check the minimum balance for a specific byte size:
solana rent 165
This returns the rent-exempt minimum for an account with 165 bytes of data (a standard token account). The CLI automatically includes the 128-byte overhead in its calculation, so you don't need to add it manually.
Check an existing account's rent status:
solana account <ACCOUNT_ADDRESS>
This shows the account's current balance, data size, owner program, and whether it meets the rent-exempt threshold. If the balance equals or exceeds the minimum, the account is rent-exempt.
Check all your token accounts:
spl-token accounts
This lists every SPL token account owned by your wallet, including their balances. Any account showing a zero token balance is holding rent you can recover.
For most users, the CLI approach is informational — it's useful for understanding the system but not practical for bulk account management. If you want to see your total recoverable SOL without touching the command line, an automated scan is faster.
Skip the CLI and see your total recoverable SOL instantly. SolRecover scans all your accounts and calculates exactly how much rent you can reclaim.
Scan Your Wallet NowPractical Examples: What Your Activity Actually Costs
Let's put the formula into real-world context. Here's what different activities cost in rent deposits:
Buying a token on Jupiter: When you swap for a token you've never held, your wallet creates an ATA for that token's mint. Cost: 0.00204 SOL in rent deposit. When you later sell the entire balance, the account stays open and the deposit stays locked. Learn more in our token account explainer.
Claiming an airdrop: Same mechanic — if you don't already have an account for the airdrop token, one is created. Cost: 0.00204 SOL. Multiply by the number of different airdrops you've claimed.
Entering a DeFi position on a lending protocol: Protocols like Marginfi or Kamino may create multiple accounts — one for each asset you deposit or borrow, plus protocol-specific accounts. Cost: 0.00204 SOL per token account created. A single lending position touching 3 assets could lock up 0.006+ SOL in rent.
Minting or receiving an NFT: The NFT itself is a token, so your wallet gets an ATA for its mint. Additionally, metadata accounts may be created. Cost: 0.00204 SOL minimum, potentially more if metadata accounts are involved.
A month of active trading: If you cycle through 30 different tokens in a month — not unusual for an active trader — that's 30 new ATAs at 0.00204 SOL each, totaling 0.061 SOL in rent deposits. Over a year, that's 0.73 SOL locked in empty accounts, assuming you sold out of all positions.
These costs are individually small but compound quickly. The key insight is that every one of these deposits is fully recoverable — you just need to close the accounts.
Recovery Tool Fee Comparison
When recovering rent from closed accounts, the tool you use determines how much you actually keep. Here's what 30 standard token accounts (~0.0612 SOL, or ~$18.06 at SOL's January 2025 peak of $295 USD) cost across the major tools:
| Tool | Fee | Cost on 30 accounts ($18.06 recovery) | You Keep (USD) |
|---|---|---|---|
| SolRecover.io | 1.9% | $0.34 USD | $17.72 USD |
| PandaTool | 4.88% | $0.88 | $17.18 |
| ReclaimSOL | 5% | $0.90 | $17.16 |
| SlerfTools | 8% | $1.44 | $16.62 |
| RefundYourSOL | 15% (base) | $2.71 | $15.35 |
| SolRefunds | 20% | $3.61 | $14.45 |
| RentSolana | 20% | $3.61 | $14.45 |
Competitor fees last verified: March 12, 2026. SolRecover charges 1.9% — the lowest fee of any recovery tool. It is fully client-side: all scanning and transaction building happens in your browser via direct Helius RPC calls, so no backend server ever touches your keys. SolRecover's referral program lets referrers earn 1% while the platform takes just 0.9%, meaning the referrer earns more than the platform itself.
Calculating Your Total Locked Rent
The simplest way to calculate your total locked rent:
- Count your empty token accounts (zero balance, still open).
- Multiply by 0.00204 SOL.
That gives you a close approximation. For an exact figure, you'd need to account for any non-standard accounts with different data sizes, but token accounts represent 90%+ of closeable accounts for most wallets.
If you want to know your exact number without doing manual math, check our guide on how much SOL you can recover for detailed breakdowns by activity level.
Want to see the exact rent locked across all your accounts? SolRecover calculates your total recoverable SOL in seconds — no CLI required.
Calculate Your Recoverable SOLWhy This Matters for Your Wallet
Understanding rent calculation isn't just academic. It directly affects how you think about token interactions:
- Every new token you touch costs 0.00204 SOL that stays locked until you act.
- The cost is invisible in most wallet UIs, which means it accumulates silently.
- Closing accounts is the only way to reclaim these deposits — they won't come back on their own.
- Batching closures with a tool like SolRecover saves gas compared to closing accounts one at a time.
Once you understand the formula, the path forward is clear: interact with tokens as needed, and periodically close your empty accounts to recover the deposits. The rent system isn't punitive — it's just a mechanism that requires active management.
Solana Rent Calculation FAQ
How much rent does a Solana token account cost?
A standard SPL token account is 165 bytes and requires approximately 0.00204 SOL as a rent-exempt deposit. This is the most common account type you'll encounter.
Can I calculate rent for any Solana account type?
Yes. The formula is (account data size in bytes) × (rent rate per byte-year) × 2. You can check any account's data size using the Solana CLI or a block explorer.
Does the rent rate change over time?
The rent rate is set by the Solana runtime and has remained stable since the network matured. Any changes would require a network-wide governance decision.
Why is the multiplier 2 in the rent formula?
The ×2 factor ensures the account holds two years' worth of theoretical rent, making it rent-exempt. This means the account will never be garbage-collected regardless of how long it exists.