When creating an SPL token on Solana, you choose a decimal setting that defines the smallest divisible unit. This affects how your token is displayed and traded across all wallets and DEXs.
What Are Token Decimals?
Token decimals determine how many decimal places your token supports. A token with 9 decimals and a supply of 1,000,000,000 has 1,000,000,000 * 10^9 base units stored on-chain.
Example: 9 Decimals (Recommended)
If your token has 9 decimals, 1 token = 1,000,000,000 base units. This allows prices like 0.000000001 TOKEN per SOL — important for low-priced tokens to avoid rounding issues.
Example: 0 Decimals (NFT-style)
With 0 decimals, your token is indivisible. 1 token = 1 unit. Used for access tokens, tickets, or collectibles where fractional ownership makes no sense.
Decimal Options Compared
- 0 decimals — Indivisible. Use for: NFT-style tokens, tickets, access passes
- 2 decimals — Like fiat currencies ($1.00). Use for: stablecoins, dollar-denominated tokens
- 6 decimals — Medium precision. Use for: tokens with moderate price range
- 9 decimals — Same as SOL. Use for: most tokens. Best DEX compatibility.
💡 Recommendation: Use 9 decimals for almost all use cases. It matches SOL's precision, ensures compatibility with all DEXs and wallets, and allows your token to be priced very low without rounding problems.
Can I Change Decimals After Creation?
No. Decimals are set at token creation and cannot be changed afterward. This is a permanent, immutable setting stored in the Mint Account. Choose carefully.
How Decimals Affect Trading
DEXs and AMMs handle token math using base units. If your decimals don't match the expected precision, you may encounter display issues or incorrect price calculations. 9 decimals is the safe choice for all DeFi integrations.