Solana fees have two parts: a tiny flat base fee per signature and an optional priority fee that bids for faster inclusion. This estimator adds up the compute units your instructions consume and prices the priority fee so you can see the real cost in lamports, SOL, and dollars before you send.
How it works
Total compute units come from summing per-instruction estimates. The fee is then:
base_fee = 5,000 lamports × signatures
priority_fee = compute_units × micro_lamports_per_CU / 1,000,000
total = base_fee + priority_fee (lamports)
SOL = total / 1,000,000,000
USD = SOL × sol_price
Per-instruction CU estimates: SOL transfer ≈ 300, token transfer ≈ 4,500, account creation ≈ 3,000, NFT mint ≈ 30,000, swap ≈ 60,000.
Notes and example
A transaction that does one SOL transfer (300 CU) plus one token transfer (4,500 CU) needs about 4,800 CU. At a medium tier of 10,000 micro-lamports/CU the priority fee is 4,800 × 10,000 / 1,000,000 = 48,000 lamports, plus the 5,000-lamport base fee, for 53,000 lamports — about 0.000053 SOL, or roughly $0.008 at $150/SOL. Priority pricing is dynamic, so query getRecentPrioritizationFees at send time for live numbers, and set your ComputeBudget limit slightly above the estimate.