# Lightning submarine swaps: moving between channels and on-chain funds

A submarine swap exchanges an on-chain Bitcoin payment for a Lightning payment, or the reverse, using linked conditions. The same secret connects the two sides, while a timeout provides a recovery path if the swap fails. This can move liquidity without closing a channel. The design reduces a particular risk of one side taking both payments, but it does not remove fees, time-sensitive actions, software assumptions or the possibility of delayed recovery.

Evidence: [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md); [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md)

Canonical: https://degreesofsatoshi.com/encyclopedia/lightning-submarine-swaps/
Published: 2026-10-02
Substantively modified: 2026-10-02
Independently verified by an automated reviewer: 2026-10-02T19:29:20.637Z
Data current through: 2026-10-02

AI-assisted research and drafting with a separate automated source-verification pass; no external expert or named human review is implied.

## Key facts

- **Connection:** Linked hash and time conditions ([Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md))
- **Uses:** Rebalance between on-chain and Lightning funds ([Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md))
- **Costs:** Can include service, routing and miner fees ([Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md))

## The same secret links two payments

In the documented flow, an on-chain contract can be claimed by the intended party with a valid signature and the required secret. The Lightning payment reveals that secret when it settles. If the swap fails, the contract’s timeout permits the designated refund path.

The parties must verify the amounts, conditions and deadlines before committing funds. A timeout is a spending condition, not a promise that a service will refund an account at an exact wall-clock moment.

Evidence: [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md)

## Add every fee category before comparing quotes

Imagine a swap that delivers 100,000 satoshis to the destination and separately charges 500 for service, 100 for routing and 800 for the on-chain claim. Under that stated fee arrangement, the total cost is 1,400 satoshis and the sender’s total outlay is 101,400.

A real service may deduct fees from the stated amount or bundle some categories. Inspect whether the displayed number is the amount sent, the amount received or an estimate. These figures are illustrative, not a current Loop quote.

Evidence: [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md)

## A failed swap can still leave a transaction fee

After an on-chain funding transaction confirms, recovering through a timeout path can require another transaction. Funds may be temporarily locked, and the recovery transaction costs a fee. Some arrangements also include an upfront charge.

Check how the wallet preserves recovery information and monitors deadlines. The swap’s atomic design addresses the exchange conditions; it is not a guarantee against bugs, incorrect parameters or missed claim opportunities.

Evidence: [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md); [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md)

## Questions

### Do submarine swaps create additional bitcoin?

No. They exchange control of existing on-chain and Lightning balances under linked conditions. The service may charge fees for making that exchange.

Evidence: [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md); [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md)

### Does a failed swap always cost nothing?

No. Funding and recovery transactions can pay miner fees, and the agreed service terms may include an upfront charge. Review the failure path as well as the success quote.

Evidence: [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md); [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md)

## Claims and scope

### lightning-submarine-swaps-quick-answer

A submarine swap exchanges an on-chain Bitcoin payment for a Lightning payment, or the reverse, using linked conditions. The same secret connects the two sides, while a timeout provides a recovery path if the swap fails. This can move liquidity without closing a channel. The design reduces a particular risk of one side taking both payments, but it does not remove fees, time-sensitive actions, software assumptions or the possibility of delayed recovery.

Educational explanation. Product-specific behavior is scoped to the cited documentation, checked 2026-10-02.

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### lightning-submarine-swaps-fact-connection

Connection: Linked hash and time conditions

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### lightning-submarine-swaps-fact-uses

Uses: Rebalance between on-chain and Lightning funds

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### lightning-submarine-swaps-fact-costs

Costs: Can include service, routing and miner fees

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

## Sources

- [Understanding Submarine Swaps](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/the-lightning-network/multihop-payments/understanding-submarine-swaps.md) — Lightning Labs. Conditional on-chain/off-chain swaps and timeout refund paths. Locator: Three steps of a Submarine swap; 1. Generate a bitcoin smart contract; 2. Generate and pay a Lightning invoice; 3. Claim bitcoin from the smart contract. Retrieved: 2026-10-02T18:53:57.424Z.
- [Loop Fees](https://raw.githubusercontent.com/lightninglabs/docs.lightning.engineering/0456e1627b2579ac18108cb921fe609f87c8b009/lightning-network-tools/lightning-terminal/loop-fees.md) — Lightning Labs. Service, chain and routing fees must be included when evaluating a swap. Locator: Loop Out: Estimated fees, Actual fees; Loop In: Estimated fees, Actual fees. Retrieved: 2026-10-02T18:53:57.455Z.

## Revision history

- 2026-10-02: First publication after primary-source research and separate automated verification.

## Cite this entry

Degrees of Satoshi editorial project. “Lightning submarine swaps: moving between channels and on-chain funds.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/lightning-submarine-swaps/
