All posts
2026-01-12MinRent

MinRent — Minimum Rent Calculator for Solana

MinRent — Minimum Rent Calculator for Solana

The Problem

Every Solana account requires a minimum SOL balance to be rent-exempt. This minimum depends on the account's data size. When creating accounts programmatically, getting the rent calculation wrong means failed transactions or unexpected costs.

What It Is

MinRent is a minimum rent calculator for Solana. Enter an account data size and get back the exact minimum SOL balance required for rent exemption. Fast, accurate, no code required.

How Rent Works on Solana

Solana charges rent proportional to the storage space an account uses. To avoid paying rent continuously, accounts must maintain a "rent-exempt" balance — a one-time deposit calculated from their data size. The formula is: minimum balance = (128 + data_length) * LAMPORTS_PER_BYTE_YEAR * 2.

Who Needs This

Developers writing Solana programs who need to know how much SOL to fund accounts with. Anyone creating custom account structures. Anyone troubleshooting "insufficient funds for rent" errors.

Why I Built It

The rent calculation comes up constantly in Solana development. Every time you create an account, you need to know the minimum balance. MinRent is a bookmark-worthy tool that answers that question immediately.