Solana Rent Calculator

Bytes in, rent-exempt lamports and SOL out. Live RPC lookup with a last-known mainnet fallback. No wallet required.

Max supported account data length is 10,485,760 bytes (10 MiB).

Live RPC is authoritative for the selected cluster. The fallback reflects the last-known mainnet rate.

Rent-exempt lamports1,855,569
SOL0.001855569 SOL
For a 165-byte account on Mainnet Beta. Last-known fallback
Common account sizes:

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. Query the target cluster for its current threshold; the static result is only a last-known fallback when live RPC is unavailable.

Step-one SIMD-0437 fallback:rent = 6,333 × (128 + data_len) lamports. The 128 bytes are Solana's per-account storage overhead. Live RPC remains the authoritative source.

Common account sizes and step-one fallback values

  • 0 bytes — System account: 810,624 lamports (0.000810624 SOL). Plain wallet address.
  • 80 bytes — Nonce account: 1,317,264 lamports (0.001317264 SOL). Durable nonce for offline signing.
  • 82 bytes — SPL mint: 1,329,930 lamports (0.00132993 SOL). Classic token mint.
  • 165 bytes — Token account / ATA: 1,855,569 lamports (0.001855569 SOL). Holds one SPL token for one owner.
  • 200 bytes — Stake account: 2,077,224 lamports (0.002077224 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. Need the derived address and canonical bump too? Pair this with the Solana PDA calculator. Need the full funding picture for a new upgradeable program deploy? Use the program deploy cost estimator for upgradeable programs.

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 holds a rent reserve. Use the live result here for the current minimum; older accounts may still contain the previous reserve and have withdrawable excess. Many wallets accumulate dozens of these accounts. You can recover this rent by closing empty accounts.

Frequently asked questions

Why does my RPC return a slightly different number?

Rent settings can change over time or differ by cluster. Confirm the byte count first, then treat the selected cluster's live RPC response as authoritative. The fallback on this page is the last-known mainnet step-one SIMD-0437 rate.

Does this change with market price?

No. Rent is measured in lamports, not dollars. Network rent parameters determine the lamport amount for a given account size; the USD value of that SOL changes with the market.

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 SOL

Free scan · No signup · Calculator stays available