Research/Lightning

Lightning Channel Rebalancing: Circular Routing and Automated Balance Management

Lightning channels drain in one direction. How circular rebalancing, submarine swaps, and automated tools keep liquidity flowing.

bcNeutronNov 30, 2026

Every Lightning payment pushes balance from the sender's side of a channel to the receiver's side. Over time, channels drain in one direction until they can no longer route payments at all. This is the channel balance problem, and solving it is the single largest operational burden for anyone running a routing node on the Lightning Network.

Rebalancing is the set of techniques node operators use to shift liquidity back into usable positions. The methods range from circular self-payments through the network to on-chain submarine swaps to fully automated liquidity managers. Each comes with fees, failure rates, and tradeoffs that directly affect whether a routing node can break even.

Why Channels Become Unbalanced

A Lightning channel is a 2-of-2 multisig UTXO split between two parties. When Alice routes a payment through her channel with Bob, her local balance decreases and Bob's increases. The total channel capacity stays the same, but the split shifts.

In practice, payment flows are rarely symmetric. A merchant receiving payments will see channels fill with inbound liquidity and run out of outbound liquidity. A node that mostly sends payments will drain its local balance. Even well-connected routing nodes experience directional flow patterns that push channels toward one-sided states.

Once a channel is fully drained in one direction, it becomes a dead end for routing. The node cannot forward payments through it in the depleted direction, reducing its usefulness in the network's pathfinding graph.

The core tension: Rebalancing costs money (routing fees, on-chain fees, or both). But failing to rebalance means lost routing revenue from channels that can't forward payments. Node operators must constantly weigh the cost of rebalancing against the revenue it enables.

Circular Rebalancing: Paying Yourself Through the Network

The most common rebalancing technique is the circular rebalance: a node sends a payment to itself through a loop of other nodes. The payment leaves through a channel with excess local balance and returns through a channel that needs more local balance. No on-chain transaction is required.

How it works

Suppose your node has two channels. Channel A has 900,000 sats on your side (mostly local). Channel B has 100,000 sats on your side (mostly remote). You want to move 400,000 sats from A to B.

  1. Your node creates an invoice to itself for 400,000 sats.
  2. It constructs a route that exits through Channel A, traverses intermediate nodes, and returns through Channel B.
  3. The payment uses standard HTLCs and onion routing, just like any Lightning payment.
  4. When the payment completes, Channel A has 500,000 sats local and Channel B has 500,000 sats local.

The intermediate nodes earn routing fees as if it were a normal payment. Your node pays those fees as the cost of rebalancing. Typical costs range from 50 to 500+ ppm (parts per million) depending on the route and intermediate node fee policies.

Success rates and limitations

Circular rebalancing has a notoriously low success rate. Finding a viable route that has sufficient liquidity at every hop is difficult, especially for larger amounts. The pathfinding algorithm must locate a loop where every intermediate channel has enough capacity in the right direction, and this information is not always up to date in the network gossip.

Large rebalances often need to be split into smaller chunks using multipath payments. Even then, operators routinely report that rebalance attempts take dozens of retries before one succeeds, consuming time and failed-attempt fees.

Submarine Swaps: Bridging On-Chain and Off-Chain

When circular routes are too expensive or unavailable, submarine swaps offer an alternative. A submarine swap is an atomic exchange between on-chain Bitcoin and Lightning balance, secured by the same hash-time-lock mechanism that protects regular Lightning payments.

Loop Out: Lightning to on-chain

A Loop Out sends funds from your Lightning channels to an on-chain address. This frees up inbound liquidity in the channels you pay through. The swap provider locks on-chain Bitcoin in an HTLC, and when you pay the corresponding Lightning invoice, the provider claims the Lightning payment while you claim the on-chain funds.

Loop In: on-chain to Lightning

A Loop In moves on-chain Bitcoin into your Lightning channels, increasing your outbound (local) balance. You send on-chain Bitcoin to the swap provider's HTLC address, and the provider pays you via Lightning. The result is more local balance without opening new channels.

Both directions are trust-minimized: either both legs settle or neither does. The on-chain HTLC includes a timelock refund path, so funds return to the sender if the preimage is never revealed. Lightning Labs' Loop service is the most widely used implementation.

Submarine swap tradeoff: Unlike circular rebalancing, submarine swaps require an on-chain transaction (and its associated fee). They're most cost-effective when mempool fees are low and the amount being moved is large enough to justify the base cost.

Splicing: Resizing Without Closing

Splice-in and splice-out adjust a channel's capacity with a single on-chain transaction, without closing and reopening. The channel remains operational during the splice, continuing to route payments while the new funding transaction confirms.

How splicing works

A splice replaces the channel's funding output with a new one. For a splice-in, additional on-chain funds are added to the channel. For a splice-out, funds are removed from the channel to an on-chain address. In both cases, the channel never goes offline and its routing history is preserved.

Core Lightning has supported splicing in production since v24.02. Phoenix wallet (built by ACINQ on Eclair) uses splice-in and splice-out as its primary channel management mechanism, abstracting the complexity from end users. LND support remains in development.

Automation Tools for Rebalancing

Manual rebalancing does not scale. A routing node with 50+ channels needs continuous adjustment, often multiple times per day. Several tools automate different aspects of the process.

ToolTypeImplementationApproach
Balance of Satoshis (bos)CLI toolkitLND onlyCircular rebalancing with configurable fee limits and channel targeting
charge-lndFee managerLND onlyPassive rebalancing via dynamic fee policies that incentivize natural flow
lndmanageCLI managerLND onlyCircular rebalancing with multiple strategies, channel ranking, and fee updates
Autoloop (Lightning Terminal)Automated swapsLND onlyRule-based submarine swaps triggered by balance thresholds and fee budgets
circularPluginCore LightningCircular rebalancing for CLN nodes

Balance of Satoshis (bos)

Balance of Satoshis is the most widely used rebalancing tool for LND. Its bos rebalance command sends a circular payment through specified channels with a configurable maximum fee rate. Operators typically run it on a schedule, targeting channels that have drifted beyond acceptable thresholds.

Beyond rebalancing, bos provides accounting, fee management, channel inspection, and a Telegram bot interface. It requires Node.js v18+ and currently supports LND up to v0.19.0-beta.

Passive fee-based rebalancing with charge-lnd

Rather than actively moving funds, charge-lnd adjusts channel fees to encourage the market to rebalance for you. Channels with excess local balance get lower fees (attracting outgoing payments), while channels with depleted local balance get higher fees (discouraging further drain).

This approach is cheaper than circular rebalancing because you earn fees instead of paying them. The tradeoff is speed: passive rebalancing depends on organic payment flow through your node, which may take hours or days to shift balances meaningfully.

Autoloop and Lightning Terminal

Lightning Labs' Autoloop takes a different approach: it periodically assesses channel balances and automatically executes submarine swaps (via Loop) for channels that fall below configured thresholds. Operators set a budget and balance targets, and Autoloop handles the rest.

One limitation: Autoloop currently supports automated swaps in only one direction at a time. It can either acquire inbound liquidity (via Loop Out) or outbound liquidity (via Loop In), but not both simultaneously.

Cost Analysis: Rebalancing Fees vs. Routing Revenue

The economics of rebalancing are unforgiving for most node operators. Research simulations and operator reports consistently show that rebalancing costs can equal or exceed routing fee revenue, especially for small and mid-size nodes.

The numbers

Circular rebalancing typically costs 50 to 500+ ppm of the amount moved. A 2022 simulation study on relay node profitability found that under most rebalancing policies, the node's total value fell over time because rebalancing fees exceeded routing profits. The only policy that maintained value was not rebalancing at all, which of course limits routing capacity.

A 2026 arXiv paper on fee levels confirmed this tension: raising routing fees increases revenue per payment but reduces payment success rates and increases the cost of refilling depleted channels. Under some models, refills turned net revenue negative.

Cost FactorCircular RebalancingSubmarine Swap (Loop)Close and Reopen
Routing/service fee50-500+ ppmSwap fee + routing feeNone
On-chain feeNone1 transaction2 transactions (close + open)
DowntimeNoneNoneChannel offline during reopen
Reputation lossNoneNoneRouting history and gossip presence reset
SpeedSeconds to minutes (if successful)Minutes to hours (on-chain confirmation)Hours (multiple confirmations)
Best forSmall adjustments, high mempool feesLarge rebalances, low mempool feesRepositioning to new peers, low mempool fees

When to close and reopen instead

Sometimes closing a depleted channel and opening a fresh one to the same or different peer is cheaper than repeated rebalancing. This makes sense when on-chain fees are low and the channel has been chronically one-sided. The break-even calculation depends on how many sats you need to move, current mempool conditions, and available circular routes.

The hidden cost of closing is losing accumulated routing reputation and gossip presence. Other nodes won't immediately route through your new channel, and pathfinding algorithms may deprioritize it until it builds history. For high-traffic peers, this reputation cost often outweighs the fee savings.

Liquidity Marketplaces

Beyond self-managed rebalancing, protocol-level liquidity markets let nodes buy and sell channel capacity directly.

Liquidity ads

Liquidity ads allow nodes to advertise their willingness to lease inbound capacity through dual-funded channel openings. A node publishes its rates in its node_announcement message, and peers can request a channel with pre-funded remote capacity at the advertised price.

Core Lightning supports liquidity ads in production. The specification (building on the interactive transaction construction protocol) is still evolving, and cross-implementation support varies. Eclair has partial support; LND does not yet implement the protocol.

Lightning Pool

Lightning Labs' Pool is a marketplace where nodes can bid on channel leases. Rather than peer-to-peer negotiation, Pool uses a batch auction model where liquidity providers and buyers are matched at market-clearing prices. This provides price discovery for the cost of Lightning liquidity, though participation requires LND and the Pool client.

The Operational Burden

For professional routing node operators, rebalancing is not an occasional task. It is the primary ongoing expense and time commitment. A well-connected node must continuously monitor channel states, adjust fee policies, execute rebalances, and evaluate whether each channel is earning enough to justify its maintenance costs.

This creates a barrier to entry for the Lightning Network. Running a profitable routing node requires deep technical knowledge, custom tooling, significant capital locked in channels, and constant attention. Most independent node operators struggle to break even after accounting for rebalancing costs, on-chain fees for channel lifecycle management, and the opportunity cost of locked capital.

For end users, the picture is even worse. Mobile Lightning wallets abstract away channel management, but they do so by relying on Lightning Service Providers (LSPs) who bear the rebalancing burden and pass costs through in fees or service charges.

How Spark Eliminates the Problem

The rebalancing problem exists because Lightning uses payment channels with directional liquidity. Every payment shifts balance, every shift creates imbalance, and every imbalance requires intervention. Spark takes a fundamentally different approach by not using payment channels at all.

Spark is built on statechains, where transfers change who can authorize spending a Bitcoin UTXO rather than pushing balance through a channel. There is no concept of local balance, remote balance, inbound capacity, or outbound capacity. A Spark transfer does not deplete anything or shift liquidity in any direction.

This eliminates the entire operational layer described in this article: no circular rebalancing, no submarine swaps for capacity management, no fee policy tuning, no liquidity marketplace participation, and no break-even calculations against routing revenue. Users and wallet developers building on the Spark SDK can focus on their product rather than on plumbing.

Different tradeoff, not no tradeoff: Spark's channel-free architecture requires trusting that at least one operator in the Spark Entity behaves honestly during each transfer (a 1-of-n trust model). Lightning's channel model is fully trustless but introduces the liquidity management overhead covered in this article. The right choice depends on whether operational complexity or trust assumptions are the bigger concern for your use case. See the full comparison in Spark vs Lightning: Payment Architecture Comparison.

The Road Ahead for Lightning Liquidity

Several developments aim to reduce the rebalancing burden on Lightning without changing the fundamental channel model.

  • Widespread splicing support would let operators resize channels in-place, reducing close/reopen churn and preserving routing reputation.
  • Channel factories could allow groups of nodes to share funding transactions and rebalance internally with fewer on-chain operations.
  • Cross-implementation liquidity ads would create a unified marketplace for channel capacity, improving price discovery and reducing the friction of acquiring inbound liquidity.
  • Machine learning approaches to fee management and rebalancing timing could improve the economics by optimizing when and how much to rebalance.

These improvements are meaningful, but they optimize around the fundamental constraint rather than removing it. As long as Lightning uses directional payment channels, some form of balance management will remain necessary.

For a deeper look at Lightning's liquidity dynamics, see Lightning Network Liquidity Explained and Lightning Channel Management Guide.

This article is for educational purposes only. It does not constitute financial or investment advice. Bitcoin and Layer 2 protocols involve technical and financial risk. Always do your own research and understand the tradeoffs before using any protocol.