Bitcoin Lightning Network: How It Works and Costs
- What is the Bitcoin Lightning Network?
- How does a payment channel open, update, and close?
- How does a channel become usable for payments?
- What does a Lightning payment cost?
- How do you work out a routing fee for a payment?
- How big is the Lightning Network?
- What are the limitations of Lightning?
- Which services support Lightning, and is it custodial?
- What Lightning is not
The Bitcoin Lightning Network moves Bitcoin through payment channels, each a 2-of-2 multisignature contract between two parties that represents an unspent output on the Bitcoin blockchain. Payments consist of three components: routing fees paid to forwarding nodes, on-chain fees for opening and closing channels, and liquidity fees charged by providers. The specification is the BOLT series.
What is the Bitcoin Lightning Network?
Lightning is a payment system built on top of Bitcoin in which two parties lock Bitcoin into a shared contract and then update the split between them off-chain, settling on the Bitcoin blockchain only when the contract opens or closes.
The protocol specification defines a channel as "a fast, off-chain method of mutual exchange between two peers," where the peers exchange signatures to create updated commitment transactions. A channel is backed by a real on-chain output: a 2-of-2 multisignature funding transaction that remains unspent on the Bitcoin blockchain until the channel closes.
The specification itself is the BOLT series, maintained in the lightning/bolts repository. The repository README describes the specifications as "a work-in-progress and currently being drafted." That matters in practice. Implementations can differ in behavior and defaults precisely because the written standard is still moving, which is why this article names the implementation whenever it gives a specific number.
This article covers the channel lifecycle, the three cost layers, what is measurable about network size, the limitations, and which services publish Lightning support. It does not compare consumer wallet fee schedules, because those are not published in the sources this page relies on.
How does a payment channel open, update, and close?
A channel opens with an on-chain funding transaction, updates off-chain by replacing a commitment transaction, and closes either cooperatively or by force.
- Opening. The funder prepares the funding transaction but withholds it until the counterparty co-signs a refund commitment transaction. Neither side can be left with money locked in a contract it cannot exit. Only after both parties have signed the exit do they broadcast the funding transaction to the Bitcoin network.
- Updating. Once open, the channel balance can shift "as frequently as needed in increments of one millisatoshi." Each update produces a new commitment transaction that reflects the current balances and invalidates the previous commitment via the exchanged revocation secrets. That invalidation is the heart of the design. An old commitment transaction becomes unusable because publishing it would allow the counterparty to claim the cheating party's funds via a penalty transaction.
- Closing. Cooperative closes are the norm. Both parties sign a final settlement transaction that spends the funding output directly, with no timelocks. In a force close, the initiator unilaterally broadcasts the latest committed transaction. The initiator's balance goes to a time-locked output; the counterparty is paid immediately.
The asymmetry is worth planning around. The party that forces the close waits out a relative timelock before spending their funds. The other party does not. Forcing a close rather than cooperating is a real cost, not just a technical detail.
Every channel is an unspent Bitcoin output. Every open and every close is a Bitcoin transaction that pays Bitcoin miners at the prevailing fee rate when it is broadcast.
How does a channel become usable for payments?
Before it can route a payment, a channel needs to specify its terms to the network. After both peers exchange channel_ready, it remains inoperative for network routing until at least one channel_update publishes its fee and CLTV policy.
Two gossip messages make a public channel visible to the network. A channel_announcement proves the channel exists and ties the on-chain funding key to the node's public key. That proof matters: the network knows the channel is backed by real bitcoin rather than merely asserted. A channel_update then carries the parameters that make routing possible: cltv_expiry_delta, htlc_minimum_msat, and htlc_maximum_msat, alongside the fee settings.
Here's why that matters to a user who sees a payment fail. A hop can exist and be funded yet still refuse a payment because the amount falls outside its minimum or maximum HTLC bounds, or because the required expiry delta cannot be met along the rest of the route. The channel is real. The route is real. The payment still fails. A channel that is never announced is invisible to the gossip network. It is also invisible to anyone counting channels. That measurement consequence becomes important when reading network-size figures later in this article.
What does a Lightning payment cost?
Three separate things. Conflating them is the most common error in Lightning coverage.
- Routing fees are paid to forwarding nodes. Under BOLT 7, each hop charges its own fee using the formula:
fee_base_msat + (amount_to_forward_msat × fee_proportional_millionths / 1,000,000). The node sets both values in its ownchannel_update, and no central authority controls them. With a 1,000 msat base fee and a 500 ppm proportional rate, forwarding 1,000,000 satoshis earns the node about 501 satoshis: 1 sat from the base fee, and 500 sat from the proportional component.
- On-chain fees are paid to Bitcoin miners, not to Lightning nodes. They are incurred when a channel opens and again when it closes. The Bitcoin fee market at broadcast time sets the amount, not any Lightning parameter. A period of high on-chain congestion raises the cost of opening and closing channels regardless of routing fee settings.
- Liquidity or lease fees are paid to a provider for inbound capacity. Inbound liquidity is the counterparty's side of the channel balance. Bitcoin Optech describes liquidity advertisements that let a node "publicize its willingness to contribute funds (liquidity) to a new channel requested by a remote peer" for a fee. That fee is separate from routing and separate from on-chain costs.
| Cost layer | Who is paid | When it is incurred | What sets the amount |
|---|---|---|---|
| Routing fee | The forwarding node at each hop | On every payment that crosses a channel | The node's own base fee and proportional rate in its channel_update |
| On-chain fee | Bitcoin miners | When a channel opens and when it closes | The Bitcoin fee market at broadcast time |
| Liquidity or lease fee | The liquidity provider | When inbound capacity is acquired | The provider's own published terms |
How do you work out a routing fee for a payment?
The BOLT 7 formula applies at each hop. Here's the procedure:
- Write down the amount you are forwarding, in millisatoshis.
- Read the forwarding node's base fee in millisatoshis from its
channel_update. - Then check the same node's proportional rate in parts per million (ppm).
- Multiply the amount by the proportional rate and divide by 1,000,000 to get the proportional component.
- Add the base fee. Convert the total from millisatoshis to satoshis by dividing by 1,000.
- Repeat the calculation for every hop on the route. Each hop charges its own fee independently.
- Add the hop fees together to get the total routing cost of the payment.
- Account separately for the on-chain fee if the payment requires opening or closing a channel.
- Include any liquidity or lease fee charged by a provider separately.
As a check: a 1,000 msat base fee with a 500 ppm rate on a 1,000,000 satoshi forward comes to about 501 satoshis. That is 1 sat from the base fee plus 500 sat from the proportional component. For a multi-hop route, calculate backward from the recipient. Each earlier hop forwards the recipient's amount plus the fees required by later hops; then you add every hop's fee to obtain the total.
How big is the Lightning Network?
Only public, announced channels are measurable. The two explorers most commonly quoted disagree because they count different sets, so any figure must name the explorer and the date it was read.
| Explorer | Public capacity | Channels | Nodes | Read date |
|---|---|---|---|---|
| Off-Chain Media | 3,034.34 BTC | 35,646 | 13,638 | 9 Nov 2026 |
| 1ml.com | 2,289.17 BTC | 18,537 | 5,126 | 9 Nov 2026 |
Off-Chain Media's map showed 2,636 located nodes and 7,636 largest channels between located nodes. Neither explorer publishes a timestamp alongside its figures. The read date on this article is the date when it was retrieved, not a date the explorer asserts.
Why do the sets differ? An explorer sees a channel only once it has been announced to the gossip network. Nodes can and do keep channels unannounced. The counts are therefore a lower bound on activity, not a census.
The node-count gap is the sharpest illustration. The two explorers report node totals differing by more than a factor of two: 13,638 versus 5,126. That tells you the question "how many Lightning nodes are there?" has no single published answer. The honest form of the statistic is always explorer-plus-date. Capacity measures bitcoin committed to announced channels. It is not a measure of payment volume.
What are the limitations of Lightning?
Using Lightning asks you to plan for where your balance sits and who can watch the chain. Capacity has to be in the right place; channels cost on-chain money to open and close; routing can fail for reasons invisible to the sender; and old-state fraud is defended against by watching the chain.
- Inbound liquidity. Inbound liquidity is the counterparty's side of the balance. A node that has only sent and never received may be unable to receive more payments. The fix is acquired for a fee through the liquidity advertisements described above.
- On-chain cost and lock-up. Every channel is an unspent output, so opens and closes pay Bitcoin fees. A force close time-locks the initiator's balance while paying the counterparty immediately. That lock-up period is a real cost of unilateral action.
- Routing failure. A payment succeeds only if every hop has balance on the correct side and accepts the fee and HTLC bounds. Channel balances are not gossiped. Implementations therefore use payment probes that, as the documentation puts it, "are designed to always fail," and which "can also reduce user privacy." The probes estimate otherwise-private channel balances, but they cannot test a route that cannot be found.
- Watchtowers. If a counterparty publishes an old commitment transaction, the victim has a window to broadcast a penalty transaction claiming the cheater's funds. Watchtowers monitor the chain on a user's behalf and automatically broadcast the penalty transaction. They hold no funds.
The practical conclusion: the system assumes someone is watching the chain on your behalf, whether that is your own always-on node, a watchtower service you use, or a custodian doing it for you. The third option is custody.
Which services support Lightning, and is it custodial?
Exchange Lightning is custodial by construction. Several large venues publish Lightning support.
- Coinbase launched Lightning via Lightspark on 30 April 2024. Its integration uses Lightspark remote-key signing, in which "Coinbase holds the Lightning signing keys, and Lightspark hosts the Lightning node." A user's Lightning balance at Coinbase is a claim on Coinbase, not keys the user controls.
- Binance announced BTC Lightning deposits and withdrawals on 17 July 2023. Its documentation confirms that users can create Lightning invoices to deposit BTC and withdraw BTC by submitting a Lightning invoice. Availability may depend on the user's region, and withdrawals are available only to Binance.com users. Binance's cited official sources do not state its signing-key arrangement for Lightning.
- Kraken supports sending and receiving over Lightning, requires a verified account, and requires a receive request with a unique label and email confirmation. Kraken describes its Lightning integration as exchange custody.
- BitPay announced support for merchant Lightning in April 2022.
- Cash App added send and receive on 18 January 2022.
- Wallet of Satoshi is listed among services with documented Lightning support; the research dossier describes it as custodial.
Tangem Wallet users can also use WalletConnect for compatible dApps; that connection is separate from operating a Lightning node.
What Lightning is not
A short list worth keeping clear.
- Bitcoin remains within a channel. The balance is committed to an on-chain output rather than issued as a separate coin or token.
- Payments still carry the three cost layers above. The Bitcoin fee market sets the on-chain layer rather than any Lightning parameter.
- Explorer counts cover only public, announced channels, and the explorers disagree. No capacity or channel figure on this page should be read as a complete census.
At an exchange, the venue holds the signing keys for a Lightning balance. Coinbase's published description of its Lightspark integration makes that clear.
Nothing in this article is investment, tax, or legal advice. The BOLT specification and each implementation's own documentation govern the technical details.
FAQ About Bitcoin Lightning Network
-
A Lightning channel is a 2-of-2 multisignature contract between two parties that sits as an unspent output on the Bitcoin blockchain. The two parties can shift the balance between them off-chain as many times as they want, and the blockchain only records the opening and the final closing state. Think of it as a shared tab that settles to the blockchain when you're done.
-
Not necessarily. Many wallets and apps open channels on your behalf or route payments through existing channels in the network. But if you run your own node, you open channels manually, and each opening is an on-chain Bitcoin transaction that pays miners at the current fee rate. The cost depends on Bitcoin network congestion at the time you broadcast.
-
If your counterparty becomes unresponsive, you can initiate a force close by broadcasting your latest commitment transaction. Your balance goes to a time-locked output, and you must wait out the time lock before spending it. The counterparty receives their balance immediately. This is why the party that forces the close pays a time cost that the cooperating party does not.
-
Inbound liquidity is the capacity on your counterparty's side of a channel. It determines how much bitcoin you can receive. A node that has only sent payments may exhaust its inbound capacity and become unable to receive. Acquiring inbound capacity costs a fee, either through a liquidity advertisement or a direct arrangement with a provider.
-
Not with certainty. Channel balances are private and not gossiped, so you cannot know in advance which hops have the needed balance. Implementations use probes to estimate route viability, but the documentation says those probes are designed to fail and can reduce privacy.
-
Someone still needs to watch the chain for an old commitment transaction. That can be your own always-on node, a watchtower service, or a custodian. A watchtower holds no funds, while the custodian option means the service holds the signing keys.
-
Ask who holds the signing keys. If an exchange holds them, your Lightning balance is a claim on that exchange rather than Bitcoin you control directly. You should also check whether Lightning availability depends on your region or account status.
-
No. An explorer sees a channel only after it is announced to the gossip network. Nodes can keep channels unannounced, so explorer totals are a lower bound on activity rather than a complete census. Name the explorer and the date whenever you cite a Lightning Network statistic.