Solana Rent Calculator
Bytes in, rent-exempt lamports and SOL out. Live RPC lookup with a deterministic static fallback. No wallet required.
Max supported account data length is 10,485,760 bytes (10 MiB).
Rent is a protocol constant — every live cluster returns the same value.
Anchor-generated accounts prepend an 8-byte discriminator before the struct layout. Toggle this to add 8 bytes to the calculation for PDA sizing.
Developer snippets
Drop this into a tutorial or deploy script. The page already reflects your current bytes and cluster selection.
@solana/web3.js
import { Connection } from '@solana/web3.js';
const connection = new Connection('https://api.mainnet-beta.solana.com');
const lamports = await connection.getMinimumBalanceForRentExemption(165);JSON-RPC
curl https://api.mainnet-beta.solana.com -X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getMinimumBalanceForRentExemption","params":[165]}'What is rent exemption?
Every account on Solana must hold a minimum SOL balance proportional to its data size. Accounts that meet this threshold are rent exempt and remain on-chain indefinitely. Accounts that fall below it are garbage-collected by the runtime. Because the threshold depends only on bytes, the numbers from this calculator apply to every live cluster.
Formula:rent = 2 × 3,480 × (128 + data_len) lamports. The 128 bytes are Solana's per-account storage overhead; 3,480 is the lamports-per-byte-year rate; the 2 is the exemption threshold in years.
Common account sizes and rent values
- 0 bytes — System account: 890,880 lamports (0.00089088 SOL). Plain wallet address.
- 80 bytes — Nonce account: 1,447,680 lamports (0.00144768 SOL). Durable nonce for offline signing.
- 82 bytes — SPL mint: 1,461,600 lamports (0.0014616 SOL). Classic token mint.
- 165 bytes — Token account / ATA: 2,039,280 lamports (0.00203928 SOL). Holds one SPL token for one owner.
- 200 bytes — Stake account: 2,282,880 lamports (0.00228288 SOL). Used to delegate SOL to validators.
Working in lamports? Cross-check numbers with the Lamports to SOL converter.
Who uses this calculator?
Program and PDA developers
Plug the exact byte length of your struct into the bytes field to see how much SOL your PDA initialization needs to fund. If you are using Anchor, tick the discriminator helper so the 8-byte prefix is included.
Wallet integrators
Use the live RPC value to show accurate "reserved for rent" balances in your UI instead of guessing. The calculator mirrors what getMinimumBalanceForRentExemption returns.
Users curious about reclaimable rent
Every dormant token account on Solana is holding the rent amount shown here. A single ATA ties up 0.00203928 SOL, and many wallets accumulate dozens. You can recover this rent by closing empty accounts.
Frequently asked questions
Why does my RPC return a slightly different number?
It shouldn't. Rent exemption is deterministic and derived from protocol constants. If a cluster returns a different value, it is almost always because the request sent a different byte count. The static formula on this page matches mainnet-beta, devnet, and testnet exactly.
Does this change with market price?
No. Rent is measured in lamports, not dollars. The lamport amount is fixed for a given account size. What changes is the USD value of that SOL.
What is the maximum account data length?
Solana's MAX_PERMITTED_DATA_LENGTH is 10 MiB (10,485,760 bytes). Accounts larger than this are not allowed at creation time.
Why add 8 bytes for Anchor accounts?
Anchor prepends an 8-byte discriminator to every account it manages so the program can identify the account type. When sizing a PDA with Anchor you add 8 to your struct's serialized length before calling this calculator.
Can I share my result?
Yes. The URL updates as you type, so any link you copy includes the exact bytes and cluster you were viewing.
Want to reclaim this rent from real accounts?
Unclaimed SOL finds dormant token accounts, stakes, and program buffers in your wallet and closes the ones you choose. You sign every transaction.
Scan with Unclaimed SOLFree scan · No signup · Calculator stays available