in-solana by Supanode

SOL to Lamports Converter

Convert between SOL and lamports. Enter a value in either field to see the conversion instantly.

Conversion

1 SOL = 1,000,000,000 lamports (10^9)
1 lamport = 0.000000001 SOL (10^-9)

Common values

SOLLamportsCommon use
0.0000000011Minimum unit
0.0000055,000Base transaction fee
0.00089890,880Minimum account rent (0 bytes)
0.002042,039,280Token account rent
0.0110,000,000Small transfer
0.0550,000,000Typical priority fee budget
11,000,000,0001 SOL

In code

// SOL to lamports
const lamports = solAmount * 1_000_000_000;
// or use the constant
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
const lamports = solAmount * LAMPORTS_PER_SOL;

// Lamports to SOL
const sol = lamports / LAMPORTS_PER_SOL;

Why lamports?

Lamports are Solana’s smallest unit, named after Leslie Lamport. All on-chain balances and fees are stored and processed in lamports (unsigned 64-bit integers). Using integers avoids floating-point precision errors that would occur with decimal SOL values.

FAQ

Why do RPC methods return lamports instead of SOL? All on-chain state uses lamports to avoid floating-point precision issues. Converting to SOL is a display concern handled by your application.

What is the maximum lamport value? Lamports are stored as u64, so the maximum is 18,446,744,073,709,551,615 lamports (~18.4 billion SOL). The total SOL supply is well below this limit.

Are there decimals smaller than a lamport? No. A lamport is the indivisible unit on Solana. You cannot send or store fractions of a lamport.

Data powered by Supanode RPC

Updated: