When a delegation is withdrawn, the staked TRX goes back to the delegator. That is the sentence everyone repeats, and it is true. What it leaves out is that a second quantity moves at the same time: a share of the recipient’s unrecovered resource usage is transferred back to the delegator as well. If you buy TRON energy on a rolling schedule and a supplier withdraws mid-batch, the effect on your address is larger than the delegation alone suggests. Understanding the settlement formula is the difference between seeing a mysterious capacity drop and knowing exactly what happened.
This note corrects a shorthand used in an earlier piece on this site, which said that unspent energy returns to the delegator and spent energy cannot be recovered. That framing is directionally useful but mechanically wrong. What is settled is a proportional share of the recipient’s unrecovered resources, and the recipient’s pool shrinks by that amount even if they did nothing at the moment of withdrawal.
The two quantities that move when you buy TRON energy and the delegation is withdrawn
Energy and bandwidth recover on a rolling 24-hour window. After you spend resource, the used amount does not vanish; it sits in an “unrecovered” bucket that declines linearly over the next day. Your available capacity is the total share allotted to the account minus whatever is still in that bucket.
When a delegator pulls a share, the protocol cannot simply move the staking amount back. If it did, the recipient would keep consuming against a recovery allowance that no longer has stake behind it. So the network performs a proportional settlement. It reduces the recipient’s staking share by the withdrawn amount, and it also moves a proportional part of the recipient’s unrecovered usage over to the delegator. The delegator receives the stake plus an unrecovered-resource burden; the recipient loses both.
The formula, taken from the TRON documentation, is short:
reclaimed unrecovered resource
= (TRX withdrawn / recipient's total staked TRX for that resource)
× recipient's unrecovered resource
The denominator is the recipient’s combined staking share for that resource — their own stake plus all delegations received. It is not just the share being withdrawn. That distinction is what makes the formula non-obvious, and it is why a small withdrawal can move a surprisingly large amount of unrecovered usage when the recipient’s other capacity is small.
A worked settlement when you buy TRON energy
The documentation’s own example uses a simplified conversion of 0.2 energy per staked TRX. Suppose the delegator has 1,000 staked TRX behind the account and 75 unrecovered energy, while the recipient has 500 staked TRX in total and 50 unrecovered energy. The delegator withdraws 200 TRX of delegation.
- Reclaimed unrecovered resource = (200 ÷ 500) × 50 = 20 energy.
- The delegator’s share rises from 1,000 to 1,200 TRX; their total energy rises from 200 to 240; their unrecovered energy rises from 75 to 95.
- The recipient’s share falls from 500 to 300 TRX; their total energy falls from 100 to 60; their unrecovered energy falls from 50 to 30.
Notice what happened to the recipient: their energy pool fell by 40 percent while their unrecovered usage fell by only 20 energy. Available capacity is total minus unrecovered, so it went from 50 to 30 units — a 40 percent drop. That is the number that shows up in your dashboard after someone withdraws a delegation. It is not a failure and it is not an accounting error; it is the settlement rule doing exactly what it is designed to do.
The same calculation applies to bandwidth, with bytes in place of energy, so teams that buy TRON energy see both effects at once. In a transfer pipeline both resources are usually live at once, so a withdrawal can reduce a sending address’s ability to transact on two axes simultaneously. When you buy TRON energy for a batch, that is the moment to check that the remaining capacity still covers the next window.
Why the settlement exists, and what it prevents
Consider the alternative. A delegator withdraws 200 TRX of stake, but the recipient keeps the full recovery allowance generated by that stake for the next 24 hours. The recipient could continue spending against capacity that no longer exists on the delegator’s side, and the network would have to cover the difference. The settlement moves the unrecovered usage to whoever now owns the stake, so the resource accounting stays consistent with the capital behind it.
There is a cap: the reclaimed amount cannot exceed the maximum resource capacity that the withdrawn stake would correspond to under the current network-wide allocation ratio. In ordinary operations that cap rarely binds. It matters if the conversion ratio has moved sharply or if the recipient’s unrecovered bucket is unusually large relative to their share — for example, after a concentrated burst of failures that consumed resource without producing successful transfers.
What a locked delegation changes about this calculation
Here is where the correction from the previous article joins this one. If the delegation is locked, the delegator cannot withdraw during the lock window, so this settlement cannot be triggered by them in that period. That removes a specific class of mid-batch capacity loss — and it is a stronger guarantee than a contractual promise to keep the delegation in place.
It does not remove every path. A lock that has expired stops protecting you, and the protocol automatically migrates an expired locked record into the unlocked record on the next delegation. It also does not protect against the delegator choosing not to renew an unlocked top-up sitting alongside the locked share. When you buy TRON energy with a lock, read the expiry timestamp and ask what happens on the day after it passes.
There is another subtlety worth stating plainly: re-delegating with lock=true to the same recipient extends the lock rather than shortening it, provided the new period is at least the remaining time. A supplier who wants to support you can therefore extend protection without a new negotiation. But adding an unlocked delegation alongside a locked one does not release the lock and does not make the combined share revocable as a single unit. Two records, two sets of rules.
How to read the state before and after a withdrawal
Three public calls are enough to reconstruct what happened. wallet/getdelegatedresourcev2 with the two addresses returns the staked TRX amount in sun for energy and bandwidth, plus the lock expiry in milliseconds. wallet/getaccountresource on the recipient shows energy and bandwidth limits and the currently used amounts. wallet/getaccount provides the account-level balances that help interpret the resource response.
Anyone who buys TRON energy on a rolling schedule should take all three readings before a supplier withdrawal they know is coming, then again after it. Compute the change in the recipient’s total resource share and the change in their used amount. If the share fell by 200 TRX worth and the unrecovered amount fell by a proportional slice, the settlement behaved normally. If the share fell but the unrecovered amount did not, check whether the delegation had already expired and been migrated — that is a different event with a different cause.
For teams that buy TRON energy on a monthly cycle, it is worth making these three readings part of the standard close. The purpose is not to catch a supplier doing something wrong. Most withdrawals are routine. The purpose is to be able to explain a capacity drop in the same hour it happens, instead of treating it as an unexplained failure and ordering more resource that was never the missing input.
A reconciliation line most invoices never show
Take a monthly operation with 1,000 transfers. The team buys TRON energy-sized capacity to cover roughly 72.2 million units, based on an 88/12 split between existing and zero-balance recipients. Halfway through the month the supplier withdraws a delegation representing 20 percent of the sending address’s total staked share for energy, including the team’s own stake if any. At that instant the address had 8 million units in the unrecovered bucket.
The settlement moves 20 percent of that bucket, or 1.6 million units, across to the delegator. It also removes 20 percent of the address’s resource share. If the address’s total energy allowance had been 40 million units, the new allowance is 32 million, and the remaining unrecovered amount is 6.4 million. Available capacity therefore drops from 32 million to 25.6 million — a 20 percent loss of allowance combined with a further reduction in the recovery bucket.
At 25 sun, the 6.4 million units still marked unrecovered represent about 160 TRX of capacity that the address cannot currently spend, roughly $46.60 at the 2026-12-01 price. That is not a fee anyone charged. It is the accounting consequence of a withdrawal timed against a busy window. A team that buys TRON energy and reconciles only the invoice will never see this line, but the failed transfers that follow will appear in the failure log.
When you buy TRON energy for a fixed window, the defensive step is not to over-order. Unit buffers are bound to one address and expire with the delegation. The useful step is to schedule withdrawal conversations around the batch calendar, and to prefer a locked delegation when the batch cannot tolerate a mid-window settlement. When you buy TRON energy for a fixed deadline, the timing of the withdrawal matters as much as the size of the order.
Where this matters more, and where it does not
The settlement effect scales with how much of the recipient’s capacity came from a single delegation and how recently they spent it. A cold wallet making 50 transfers a month will typically have a small unrecovered bucket by the time any withdrawal happens, so the practical impact is close to zero. The formula still applies; it just has almost nothing to operate on.
A high-frequency desk that buys TRON energy for a 1,000-transfer batch every day is the opposite case. Its unrecovered bucket is large and continuously replenished, and any withdrawal lands on live resource. For that operation, the distinction between a locked and unlocked delegation is worth more than a few sun of unit price, because a mid-batch withdrawal can remove both allowance and recovery headroom at once.
The middle case — a weekly payroll run or a monthly settlement — sits between them. Here the practical rule is to check the delegation record one day before the batch and treat any unlocked delegation with an unknown withdrawal schedule as unavailable capacity. If you buy TRON energy on that schedule and the record shows a fresh delegation with no expiry timestamp, you have capacity that is usable now and may be gone tomorrow. Price that uncertainty, or remove it with a lock.
The three questions this answers, and one it does not
Why did my address lose capacity without sending anything? A delegation was withdrawn and the settlement moved a proportional share of unrecovered resource back to the delegator.
Does withdrawing give the delegator back everything they gave? They get the staking share back, plus an unrecovered-resource burden equal to their proportional share of what the recipient had not yet recovered. Their net usable capacity is not immediately back to full.
Can the recipient refuse the withdrawal? No. For an unlocked delegation, withdrawal is unilateral and effective at the next block. For a locked delegation, it is unavailable until expiry. There is no third option in which the recipient can block it.
What does this say about price? Nothing directly. The settlement is a protocol mechanism with no fee attached. If you buy TRON energy and observe a price premium for locked delivery, that premium is compensation for capital immobility, not for this accounting rule.
The short version
Withdrawal moves two quantities: the staking share and a proportional slice of the recipient’s unrecovered resource usage. The formula is withdrawn TRX divided by the recipient’s total staked TRX for that resource, multiplied by their unrecovered usage. The recipient’s capacity can fall much more than the raw delegation amount suggests, and a lock is the only protocol-level way to prevent the withdrawal from happening in the first place. Read the delegation record and the account resource state together whenever you buy TRON energy on a rolling schedule; the main buying guide keeps the full parameter list, and the fee-limit note explains the other way an address can hold capacity it cannot actually spend.