Back to Blog

Education / A03

SUN, TRX, Energy, Bandwidth: All TRON Units Explained

If you have ever tried to build on TRON or simply send USDT, you have probably encountered a confusing array of units: TRX, SUN, energy, bandwidth, frozen balance, staked resources. The documentation scatters these concepts across dozens of pages, and most tutorials gloss over the distinctions that actually matter when you are writing production code or calculating costs.

This article is the reference guide I wish existed when I started working with TRON. We will cover every unit in the TRON ecosystem, how they relate to each other, and provide concrete conversion examples you can use immediately.


TRX: The Base Currency

TRX (Tronix) is the native cryptocurrency of the TRON blockchain. It serves the same role that ETH serves on Ethereum - it is the unit of account, the medium for paying transaction fees, and the asset you stake to acquire network resources.

As of early 2026, TRX trades in the range of $0.20 to $0.30 USD, though this fluctuates. What does not fluctuate is its role in the resource model: every operation on TRON ultimately traces back to TRX, whether you spend it directly (burning) or lock it up (staking).

Key facts about TRX:


SUN: The Smallest Unit

SUN is to TRX what wei is to ETH or what satoshi is to BTC. It is the smallest indivisible unit of the TRON currency.

1 TRX = 1,000,000 SUN

This is not negotiable, not approximate, and not subject to market conditions. It is a fixed conversion defined at the protocol level.

Why SUN Matters for Developers

Every serious TRON application works in SUN internally. The reason is simple: floating-point arithmetic is the enemy of financial software. When you represent 1.5 TRX as 1500000 SUN, you eliminate rounding errors entirely. Integer math is exact.

Consider this example:

// Wrong - floating point
const amount = 1.1 + 0.2; // 1.3000000000000003

// Correct - SUN integers
const amountSun = 1_100_000 + 200_000; // 1_300_000 (exactly 1.3 TRX)

At MERX, every balance, every ledger entry, every price quote is stored and transmitted in SUN. The conversion to TRX only happens at the display layer, never in business logic.

Common Conversions

TRXSUN
0.0000011
0.0110,000
11,000,000
100100,000,000
1,0001,000,000,000
36,00036,000,000,000

Conversion in Code

// TRX to SUN
function trxToSun(trx: number): bigint {
  return BigInt(Math.round(trx * 1_000_000));
}

// SUN to TRX (display only)
function sunToTrx(sun: bigint): string {
  const trx = Number(sun) / 1_000_000;
  return trx.toFixed(6);
}

Note the use of BigInt for SUN values. Standard JavaScript number can safely represent integers up to 2^53, which is about 9 quadrillion SUN or 9 billion TRX. For most applications this is sufficient, but BigInt eliminates any risk.


Energy: Smart Contract Fuel

Energy is the resource consumed when executing smart contracts on TRON. Every instruction in the TRON Virtual Machine (TVM) costs a specific amount of energy, similar to how gas works on Ethereum.

What Consumes Energy

What Does NOT Consume Energy

How Much Energy Does a USDT Transfer Cost

A standard USDT (TRC-20) transfer costs approximately 65,000 energy. This is the single most common operation on TRON, accounting for the majority of all smart contract calls on the network.

The exact cost can vary slightly depending on the contract state - for instance, the first transfer to a new address may cost more because it creates a new storage slot. But 65,000 is the number you should use for planning.

How to Get Energy

There are exactly two ways to obtain energy:

1. Staking TRX (Stake 2.0)

You lock TRX in a staking contract and receive energy in proportion to your stake relative to the total network stake. The formula is:

your_energy = (your_staked_trx / total_network_staked_trx) * total_energy_pool

As of early 2026, you need approximately 36,000 TRX staked to receive around 65,000 energy per day - enough for one USDT transfer daily. The exact ratio fluctuates as total network stake changes.

Important: staked energy regenerates over 24 hours. If you use all your energy at once, it takes a full day to recover. Energy from staking cannot be stockpiled.

2. Renting from a provider (or aggregator like MERX)

A provider stakes their own TRX and delegates the resulting energy to your address for a fee. This is the pay-per-use model. You pay a fraction of the TRX cost without locking capital.

Typical rental prices in early 2026 range from 80 to 120 SUN per energy unit, depending on the provider, duration, and volume.

Energy Units

Energy is dimensionless - it is simply a number. There is no sub-unit. You either have 65,000 energy or you do not. It is not denominated in TRX or SUN; it is its own resource.


Bandwidth: Transaction Data Allowance

Bandwidth is the resource consumed for the raw data of any transaction on TRON. Every transaction, whether it is a simple TRX transfer or a complex smart contract call, uses bandwidth proportional to its byte size.

How Bandwidth Is Measured

Bandwidth is measured in bytes. A typical TRX transfer transaction is roughly 250-300 bytes. A USDT transfer (smart contract call) is roughly 350-400 bytes.

Free Bandwidth

Every TRON account receives 600 free bandwidth points per day. This regenerates over 24 hours, similar to energy. For simple TRX transfers (roughly 270 bytes each), this means you get about two free transfers per day.

What Happens When You Run Out

When your bandwidth is depleted, the network burns TRX from your account to cover the bandwidth cost. The burn rate fluctuates but is generally modest - a few TRX at most for a standard transaction. The formula is:

bandwidth_cost_trx = transaction_bytes * bandwidth_price_per_byte

For most users doing occasional transfers, the free 600 bandwidth is sufficient. For high-volume applications, bandwidth costs become a line item worth tracking.

Bandwidth vs Energy: The Key Difference

Every transaction uses bandwidth. Only smart contract transactions use energy. A simple TRX transfer uses bandwidth but zero energy. A USDT transfer uses both bandwidth and energy.

OperationBandwidthEnergy
TRX transfer~270 bytes0
USDT transfer~350 bytes~65,000
Contract deployvariesvaries
Vote~270 bytes0

How All Units Relate

Here is the complete picture of how TRON's units connect:

TRX (currency)
  |
  |-- 1 TRX = 1,000,000 SUN (sub-unit)
  |
  |-- Stake TRX --> Energy (smart contract fuel)
  |                  |
  |                  |-- Measured in units (dimensionless)
  |                  |-- ~65,000 needed per USDT transfer
  |                  |-- Regenerates over 24 hours
  |
  |-- Stake TRX --> Bandwidth (data allowance)
  |                  |
  |                  |-- Measured in bytes
  |                  |-- 600 free daily per account
  |                  |-- Used by ALL transactions
  |
  |-- Burn TRX --> Pay for bandwidth/energy directly

The critical insight: staking TRX gives you renewable resources (they regenerate daily), while burning TRX is a one-time payment. For high-volume users, staking or renting is dramatically cheaper than burning.


Practical Cost Example

Let us walk through a concrete scenario: you need to send 100 USDT transfers per day.

Option 1: Burn Everything

Each USDT transfer without energy costs approximately 27-30 TRX in burned fees (covering both the energy and bandwidth costs). For 100 transfers:

100 transfers x 28 TRX = 2,800 TRX/day
At $0.25/TRX = $700/day = $21,000/month

Option 2: Stake TRX for Energy

You need approximately 65,000 energy per transfer, so 6,500,000 energy per day. At current staking ratios, this requires roughly 3,600,000 TRX staked (~$900,000 locked capital).

Obviously impractical for most users.

Option 3: Rent Energy via MERX

At a rental rate of approximately 90 SUN per energy unit:

65,000 energy x 90 SUN = 5,850,000 SUN = 5.85 TRX per transfer
100 transfers x 5.85 TRX = 585 TRX/day
At $0.25/TRX = $146.25/day = $4,388/month

The savings versus burning: roughly 80%.

This is why the energy rental market exists. The gap between burning costs and rental costs is enormous, and it scales linearly with volume.


Units in the MERX API

When working with the MERX API, all values follow consistent conventions:

{
  "price_per_unit": 88000000,
  "energy_amount": 65000,
  "total_cost_sun": 5720000000,
  "total_cost_trx": 5720.0
}

The SDK handles conversions:

import { MerxClient } from 'merx-sdk';

const client = new MerxClient({ apiKey: 'your-key' });
const prices = await client.getPrices({ energy: 65000 });

console.log(prices.bestPrice.perUnit);    // SUN per energy unit
console.log(prices.bestPrice.totalSun);   // Total in SUN
console.log(prices.bestPrice.totalTrx);   // Total in TRX

Full SDK documentation: https://merx.exchange/docs


Common Mistakes

Mistake 1: Mixing TRX and SUN in calculations. Always pick one and stick with it. Internally, use SUN. Convert to TRX only for display.

Mistake 2: Assuming energy is priced in TRX. Energy rental prices are typically quoted in SUN per energy unit. A price of "88" usually means 88 SUN, not 88 TRX. Misreading this by a factor of 1,000,000 will ruin your day.

Mistake 3: Forgetting bandwidth exists. Even with full energy coverage, every transaction still consumes bandwidth. For high-volume applications, bandwidth costs add up.

Mistake 4: Treating energy as stockpilable. Staked energy regenerates over 24 hours. You cannot save up energy from quiet days to use on busy days. Rented energy, however, is available immediately for the rental duration.

Mistake 5: Using floating-point for SUN values. Use integers or BigInt. Always. No exceptions.


Summary

TRON's resource model is more nuanced than most chains, but it is not complicated once you understand the four core concepts:

For developers building on TRON, the most important takeaway is to always work in SUN internally and treat energy as a cost to be optimized. The difference between burning and renting energy can be 5x to 10x in cost - which is exactly why platforms like MERX exist.

Explore current energy prices and start saving on your TRON operations at https://merx.exchange.


This article is part of the MERX knowledge series on TRON infrastructure. MERX is the first blockchain resource exchange, aggregating all major energy providers into a single API. Learn more at https://merx.exchange.


All Articles