← Bitcoin Encyclopedia

Submarine Swap

🌳 Advanced

💡 The Plain-English Definition

A submarine swap is a trustless exchange between on-chain bitcoin and Lightning Network bitcoin — a way to move value between the two layers without a custodian, using HTLCs so the swap either completes in full or refunds automatically.

A submarine swap moves your Bitcoin between the ordinary blockchain and Lightning without trusting anyone. You send on one layer; a swap provider pays you on the other. The same all-or-nothing lock used for Lightning payments ties the two halves together, so either the whole trade completes or you both get your money back.Diagram by Bit By Bitcoin.

🤔 But Why Though?

Lightning has a specific friction: money locked in channels is separate from your on-chain bitcoin. If all your funds sit in Lightning channels with heavily depleted local balances (you’ve sent a lot out), you need to top up your ability to receive without closing and reopening channels. If all your funds are on-chain, you need Lightning liquidity without the hassle of opening new channels. Submarine swaps solve both: you swap on-chain bitcoin for Lightning bitcoin (or the reverse) directly with a swap service, and the service never takes custody of your funds.

The mechanism uses HTLCs — Hash Time-Locked Contracts, conditional payments that either complete or refund automatically.

In a loop-out swap (on-chain to Lightning), you send on-chain bitcoin to the swap service’s address, and the service sends Lightning bitcoin to your node at the same time. The all-or-nothing nature of the HTLC means 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), it runs the other way: you send a Lightning payment to the service, and it sends on-chain bitcoin to your address, with the same guarantee. Services offering submarine swaps as of 2026 include Lightning Labs’ Loop and Boltz Exchange, among others. Splicing — the Lightning feature that lets you add or remove channel capacity without closing the channel, being gradually adopted through 2025–2026 — is an alternative for some of the same jobs, and where it’s available it can be more efficient.

🌍 The Real-World Analogy

Think of a submarine swap like a currency exchange at an airport — except instead of trusting the booth to hold both currencies, the transaction is structured so both sides move at the exact same moment, and if either side fails, both automatically revert. The booth can’t take your money without handing 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 fix when your Lightning channels need rebalancing and you’re holding on-chain bitcoin, or when you want Lightning liquidity without opening new channels. Most Lightning wallets that support the feature handle the technical complexity for you — you set the amount, confirm the terms, and the swap runs. Understanding the mechanism helps you trust it: the HTLC structure means the swap service has no way to steal your funds, even though the two legs of the transaction don’t finish at literally the same instant.

📩 The Daily Bit · free

Get one plain-English Bitcoin email each morning.

The Daily Bit — free, two minutes, unsubscribe anytime.

The Bitcoin EncyclopediaPrefer a book? The Bitcoin Encyclopedia