5000lamportstosol.com
Blog
The lamport-to-SOL conversion formula is straightforward: divide lamports by 1,000,000,000. This page provides the formula, quick-reference table, and ready-to-use code snippets in JavaScript and Python for Solana developers.

The Lamports to SOL Conversion Formula

The conversion between lamports and SOL follows a fixed, protocol-defined ratio:

1 SOL = 1,000,000,000 Lamports (109)

Therefore:

  • Lamports → SOL: SOL = Lamports ÷ 1,000,000,000
  • SOL → Lamports: Lamports = SOL × 1,000,000,000

JavaScript Example

// Lamports to SOL
const lamportsToSol = (l) => l / 1e9;

// SOL to Lamports
const solToLamports = (s) => s * 1e9;

// 5000 lamports = ?
console.log(lamportsToSol(5000));
// Output: 0.000005

Python Example

# Lamports to SOL
def lamports_to_sol(l):
    return l / 1_000_000_000

# SOL to Lamports
def sol_to_lamports(s):
    return s * 1_000_000_000

# 5000 lamports = ?
print(lamports_to_sol(5000))
# Output: 5e-06

Named after Leslie Lamport, the computer scientist whose work on distributed systems underpins Solana's architecture, a lamport is the irreducible unit of SOL — the building block of every on-chain operation.

Reference Table: Lamports to SOL

  • 1 lamport = 0.000000001 SOL
  • 100 lamports = 0.0000001 SOL
  • 1,000 lamports = 0.000001 SOL
  • 5,000 lamports = 0.000005 SOL
  • 100,000 lamports = 0.0001 SOL
  • 1,000,000 lamports = 0.001 SOL
  • 500,000,000 lamports = 0.5 SOL
  • 1,000,000,000 lamports = 1 SOL