Skip to main content

Free tool

Solana rent calculator

This Solana rent calculator gives the rent-exempt minimum for any account size in lamports, SOL, and USD. It reads the rate from mainnet, with presets for token accounts, mints, Metaplex metadata, and Anchor structs.

No sign-up. Runs in your browser. Last reviewed by the Builderz team.

Fetching live mainnet numbers...

Rent-exempt minimum

Rent for your account

Per account (165 bytes)
2,039,280 lamports0.002039 SOLUSD unavailable
Total
2,039,280 lamports0.002039 SOLUSD unavailable

Fallback, chain unreachable: (bytes + 128) x 6,960 lamports.

SOL price unavailable, so USD is not shown.

Common sizes at the current rate

Rent-exempt minimum for common account sizes
BytesLamportsSOLUSD
0890,8800.00089088 SOLUSD unavailable
1281,781,7600.001782 SOLUSD unavailable
1652,039,2800.002039 SOLUSD unavailable
1,0248,017,9200.008018 SOLUSD unavailable
10,24072,161,2800.072161 SOLUSD unavailable

How it works

What rent exemption is

Every Solana account must hold a minimum balance of lamports based on its size. The accounts doc says accounts must be rent-exempt. The deposit stays in the account and is not a fee.

The formula, read from chain

The minimum is a base amount plus a per-byte amount times the data size. The calculator reads both from the getMinimumBalanceForRentExemption RPC method, so it follows the live rate instead of a hard-coded number.

Why the fallback exists

If the RPC call fails, the page falls back to the documented formula: (bytes + 128) x 3,480 lamports x 2 years. The page tells you when it is using the fallback, so you know the figure is documented, not read live.

Closing accounts returns rent

When you close an account, its lamports move to a destination you choose. Rent is a deposit you can recover, so short-lived accounts cost less than the number shown here over time.

Questions about this tool

Is rent refundable?

Yes. The lamports sit in the account as a deposit. When you close the account, they go to the destination you name. You do not get back transaction fees.

Is rent still charged every epoch?

No. The Solana accounts doc says accounts must be rent-exempt, which means you fund the minimum balance once and the account keeps it. Nothing is deducted per epoch.

Why does my number differ from the CLI?

Check the byte size first. The CLI takes the data size and adds the 128 byte overhead itself, so passing a size that already includes it overcounts. A different cluster or a Token-2022 extension can also change the size.

Does this cover program accounts?

Only the size you enter. A deployed program keeps its code in a program data account, so enter the .so size plus the header. The cost calculator has a launch budget panel that does this for you.

Beyond the tool

Need this done for your program? Start with architecture and delivery sprint.

$5K-$8K. Book an intro call, or send a brief with what the tool showed you. We reply within one business day.

  • Acceptance in writing

    Criteria agreed before build starts

  • Proposal in 48h

    After a qualified scoping call

  • Change control

    Scope, exclusions, and owners named