Wallets, Gas & Units

Sun to TRX Converter

1 TRX = 1,000,000 sun. Convert TRON amounts exactly.

  • Free
  • No sign-up
  • Runs in your browser
Result
Value in dollars
—
$Add the current price to see the dollar value.

Exact integer maths — no floating-point rounding. Type in any box; the others update.

In short: Convert sun to TRX (and back) exactly: one TRX is one million sun, the unit TRON uses for fee limits, energy prices and balances.

Sun to trx — ChainMaths

TRON units

TRX has 6 decimals. Its smallest unit is the sun, named after TRON founder Justin Sun. Smart contracts, fee limits and API responses on TRON use sun.

1 TRX = 1,000,000 sun
TRX = sun ÷ 10^6

Where sun appears

  • feeLimit on smart contract calls is set in sun.
  • Energy and bandwidth prices are quoted in sun per unit.
  • Balances from TronGrid and most TRON APIs are returned in sun.

USDT on TRON (TRC20) also uses 6 decimals, so its raw amounts convert the same way. Sending USDT? Check the address with the wallet address checker first.

Quick sun to TRX table

Sun TRX
1 sun 0.000001 TRX
1,000 sun 0.001 TRX
100,000 sun 0.1 TRX
1,000,000 sun 1 TRX
10,000,000 sun 10 TRX
100,000,000 sun 100 TRX

Doing the maths by hand

Move the decimal point six places to the left: 2,500,000 sun is 2.5 TRX. To convert TRX to sun, move it six places to the right: 15 TRX is 15,000,000 sun. A fee limit of 100,000,000 sun, common for contract calls, means you allow up to 100 TRX to be spent on energy.

Where developers meet these units

  • Setting a fee limit. feeLimit on smart contract calls is written in sun.
  • Reading balances. TronGrid and most TRON APIs return amounts in sun.
  • Checking USDT amounts. USDT (TRC20) also uses 6 decimals, so raw values convert the same way.

Common mistakes

  • Using 18 decimals by habit. TRX has 6 decimals, unlike ETH.
  • Setting the fee limit too low. If energy costs more than the limit, the contract call fails and still burns what was used.

Why TRON uses six decimal places

TRON stores every balance as a whole number of its smallest unit, which keeps calculations identical on every node. Six decimal places are plenty for a network where most activity is token transfers: they allow precise fees and energy prices without making numbers unmanageably long. Wallets such as TronLink show the friendly TRX amount and handle the conversion for you.

Energy, bandwidth and fees

On TRON, transactions consume bandwidth and smart-contract calls consume energy. If you do not have enough of either from staked TRX, the network burns TRX instead, priced in sun per unit. That is why sending USDT can cost noticeably more from a fresh wallet than from one with staked TRX — and why developers set a fee limit to cap the worst case.

Key takeaways: sun to trx

  • Converting sun to TRX means dividing by one million.
  • Smart-contract fee limits on TRON are set in sun.
  • USDT on TRON also has 6 decimals, so raw USDT amounts convert the same way.

Sun to trx FAQ

How many sun are in 1 TRX?

Exactly 1,000,000 (one million).

Why are TRON fees shown in sun?

The TRON virtual machine works with whole numbers, so all amounts are stored in the smallest unit.

Does this work for USDT TRC20?

Yes for raw amounts, because USDT on TRON also has 6 decimals.

Further reading: TRON developer documentation.