💡 The Plain-English Definition
A submarine swap is a trustless exchange between on-chain Bitcoin and Lightning Network Bitcoin — allowing you to move value between the two layers without using a custodian, using HTLCs to ensure the swap either completes in full or refunds automatically.
🤔 But Why Though?
Lightning Network channels have a specific problem: capital locked in channels is segregated from on-chain Bitcoin. If all your funds are in Lightning channels with heavily depleted local balances (you’ve sent out a lot), you need to top up inbound capacity without closing and reopening channels. If all your funds are on-chain, you need Lightning liquidity without the friction of opening new channels. Submarine swaps solve this: you can swap on-chain Bitcoin for Lightning Bitcoin (or vice versa) directly with a swap service, without the swap service ever taking custody of your funds.
The mechanism uses HTLCs (Hash Time-Locked Contracts — conditional payment structures that either complete or automatically refund). In a loop-out swap (on-chain to Lightning): you send on-chain Bitcoin to the swap service’s address; the service simultaneously sends Lightning Bitcoin to your node; the atomic nature of the HTLC ensures both sides complete or neither does — the service can only claim your on-chain payment by revealing the secret that also completes your Lightning payment. In a loop-in swap (Lightning to on-chain): you send a Lightning payment to the service, which simultaneously sends on-chain Bitcoin to your address using the same atomicity guarantee. Services offering submarine swaps as of 2026 include Lightning Labs’ Loop, Boltz Exchange, and others. Splicing (the Lightning feature allowing channel capacity to be added or removed without closing, in progressive adoption through 2025–2026) is an alternative for some use cases that submarine swaps address — where splicing is available, it may be more efficient.
🌍 The Real-World Analogy
Think of a submarine swap like a currency exchange at an airport — except instead of trusting the exchange booth to hold both currencies simultaneously, the transaction is structured so both sides move at the exact same moment, and if either side fails, both automatically revert. The exchange booth can’t take your money without giving you the foreign currency, and you can’t take the foreign currency without the booth’s payment clearing. No custody, no trust required.
⚡ So What?
Submarine swaps are the practical solution when your Lightning channels need rebalancing and you hold on-chain Bitcoin, or when you want Lightning liquidity without opening new channels. Most Lightning wallet applications that support this feature handle the technical complexity automatically — you specify the amount, confirm the terms, and the swap executes. Understanding the mechanism helps you trust the process: the HTLC structure means the swap service has no ability to steal your funds even though the two legs of the transaction don’t complete simultaneously.
