Lamports to SOL Converter

Solana RPC responses, rent calculations and program logs are all in lamports. Convert them to SOL and back without rounding errors.

Converted in your browser with JavaScript. Addresses are never uploaded or stored.

What is a lamports to SOL converter?

A lamports to SOL converter divides an integer lamport count by 109 to express it in SOL and multiplies by 109 to go back. The lamport is the smallest unit of Solana's native token; every balance, transfer and rent figure the runtime and the JSON-RPC API handle is an integer number of lamports, and SOL with 9 decimals is only how wallets display it.

Solana units table

UnitLamportsSOLWhere you meet it
micro-lamport0.00000110-15priority fee price per compute unit
lamport10.000000001RPC balances, instruction data, rent
SOL1,000,000,0001wallets, exchanges

Lamports in practice

Why not use floating point?

1e9 fits comfortably in a double, but balances such as 123,456,789,123,456,789 lamports do not: JavaScript's Number is only exact up to 253. This converter uses BigInt so very large treasury balances convert exactly.

Worked example

A wallet shows 3.25 SOL. The RPC balance is 3.25 × 109 = 3,250,000,000 lamports. Sending 0.1 SOL to another address and paying one signature fee leaves 3,250,000,000 − 100,000,000 − 5,000 = 3,149,995,000 lamports, which the wallet displays as 3.149995 SOL. Keeping the figure as an integer avoids rounding when it is later multiplied by a price or summed across many accounts.

Validate a Solana address with the Solana address validator or create a payment code with the Solana Pay QR generator.

Frequently asked questions

How many lamports are in 1 SOL?

1,000,000,000 (109). A lamport is 0.000000001 SOL and is named after Leslie Lamport, the distributed-systems researcher.

Why does my balance show in lamports?

The JSON-RPC API (getBalance, getAccountInfo) returns integers in lamports so that no precision is lost. Wallets divide by 109 for display.

How much is Solana rent in SOL?

Rent exemption for a basic account is about 890,880 lamports, roughly 0.00089 SOL; a token account needs about 2,039,280 lamports, roughly 0.002 SOL. Paste the lamport value from your RPC output to see the exact SOL figure.

What is a typical Solana transaction fee?

5,000 lamports per signature (0.000005 SOL) plus an optional priority fee measured in micro-lamports per compute unit. 1,000,000 micro-lamports = 1 lamport.

How do I convert lamports to SOL in code?

Divide by LAMPORTS_PER_SOL (1,000,000,000) in @solana/web3.js, or use integer division and a 9-digit remainder for exact results. In Rust, solana_sdk::native_token::lamports_to_sol returns an f64, so keep lamports as u64 for accounting.

Do SPL tokens use lamports?

No. Each SPL token has its own decimals field in its mint account (USDC 6, most tokens 6 to 9). Use the token decimals converter for those.