Lightning Network explained: how Bitcoin payment channels work

Lightning lets two people pay each other many times while touching the Bitcoin blockchain only to open and close a channel. Here is how that works, why it is hard to cheat, and what it asks of you in return.

Several lightning bolts striking a flat landscape under storm clouds

Photo: “Lightning storm over the tree” by Nick-K (Nikos Koutoulas), CC BY 2.0, via Flickr (edited: cropped and resized).

Quick answer

The Lightning Network is a second layer on top of Bitcoin built from two-party payment channels. Opening and closing a channel are ordinary Bitcoin transactions; payments in between stay off-chain [1]. Hash locks and time locks let payments hop across several channels without trusting intermediaries [2].

Key points

  • 1A channel locks bitcoin in a 2-of-2 multisignature output that both people must sign to spend.
  • 2Inside the channel, the two sides keep signing new balance sheets instead of broadcasting each payment.
  • 3Payments can be routed through other people’s channels using hash locks and time locks, so intermediaries cannot steal them.
  • 4Trying to close a channel with an old balance can be punished by losing the whole channel balance.
  • 5The trade-offs: you must watch your channels (or delegate that), keep backups, and live with channel capacity limits.
On this page
  1. Why does Bitcoin need something like Lightning?
  2. What is a payment channel?
  3. What stops someone from closing with an old balance?
  4. How can I pay someone I have no channel with?
  5. How is Lightning different from a normal Bitcoin transaction?
  6. How big is the Lightning Network?
  7. How does Lightning relate to the SegWit upgrade?
  8. What are the risks and limits for a beginner?
  9. What mistakes do beginners make here?
  10. Frequently asked questions
  11. The bottom line
  12. Sources

Why does Bitcoin need something like Lightning?#

Every ordinary Bitcoin transaction is broadcast to every node, stored in a block and checked by everyone. That is what makes Bitcoin trustworthy, but it also limits how many payments fit through. Blocks have a size limit — today 4 million weight units [3] — and arrive about every ten minutes, so space is scarce and users bid for it with fees.

The Lightning Network paper, published in draft in 2016, set out the problem with a comparison. It said Visa had reached 47,000 transactions per second at peak, while Bitcoin then supported fewer than 7. Matching Visa’s peak on-chain would need blocks of nearly 8 gigabytes every ten minutes — over 400 terabytes a year — which no home computer could handle, pushing validation into a few large hands [2]. The authors’ answer was to move most payments off the blockchain while keeping the blockchain as the final judge.

What is a payment channel?#

A payment channel is a private running tab between two people, backed by real bitcoin. To open one, the two sides create a funding transaction that sends coins to a 2-of-2 multisignature output — an output that can be spent only if both of them sign [2]. Before that funding transaction is broadcast, they each sign a commitment transaction that would pay each person their share if the channel closed right now [2].

From then on, every payment is just a new commitment transaction with updated balances, signed by both and kept, not broadcast. The paper stresses that these are real bitcoin transactions whose broadcast is deferred, not IOUs on a separate network [2]. Only the latest balance matters, and either side can publish it to the blockchain whenever they want to cash out.

The life of a Lightning channel

The life of a Lightning channel: Open — Funding transaction goes on-chain; Pay back and forth — New signed balances, kept off-chain; Old states revoked — Each update cancels the previous one; Close — Final balance goes on-chainThe life of a Lightning channel: Open — Funding transaction goes on-chain; Pay back and forth — New signed balances, kept off-chain; Old states revoked — Each update cancels the previous one; Close — Final balance goes on-chain
Only the first and last steps use block space, unless someone cheats and a penalty transaction is needed.
StepValue
Alice’s deposit0.01 BTC = 1,000,000 sats
Café’s deposit0 sats
Payments made in the channel50 × 10,000 sats
Total paid = 50 × 10,000500,000 sats
Balances at closingAlice 500,000 sats · Café 500,000 sats
On-chain transactions used2 (open + close) instead of 50

All 50 payments stay off-chain; only the opening and closing transactions use block space. A satoshi (sat) is 0.00000001 BTC. Single-funded channels like this are described in the Bitcoin Wiki’s Lightning glossary [1].

What stops someone from closing with an old balance?#

This is the clever part. In the coffee example, the café would never want to publish an early balance where Alice still had more money — but Alice might. If both old and new commitment transactions were equally valid, whoever was worse off under the latest balance would be tempted to broadcast an older one [2].

Lightning prevents this with a penalty. When the two sides agree a new balance, each hands the other a half-signed breach remedy transaction that cancels the old one [2]. Whoever publishes their own commitment transaction must wait before taking their share: the paper calls this lock a Revocable Sequence Maturity Contract (RSMC) and uses 1,000 blocks as its example [2]. If what they published was an old, revoked balance, the other side can broadcast the breach remedy during that waiting period and take all the money in the channel [2]. The Bitcoin Wiki calls this window the dispute period [1].

How can I pay someone I have no channel with?#

Opening a channel with every person you pay would defeat the purpose. Instead, payments are passed along a chain of existing channels: Alice → Bob → Carol. The risk is obvious — why would Alice trust Bob to forward the money? Lightning solves this with a Hashed Timelock Contract (HTLC), which combines a hash lock and a time lock [1]. The paper explains that a channel on its own only secures payments inside that channel; sending across several hops needs this extra contract [2].

  1. Carol creates a secret

    She picks a random secret (the pre-image) and gives Alice only its hash, usually inside a payment request.

  2. Alice pays Bob, conditionally

    Bob can claim the payment only by revealing the secret that matches the hash, and only before a deadline.

  3. Bob pays Carol, on the same condition

    Same hash, but a slightly shorter deadline, so Bob always has time to claim from Alice after Carol claims from him.

  4. Carol reveals the secret to get paid

    Revealing it to claim Bob’s payment hands Bob exactly what he needs.

  5. Bob uses the secret to claim from Alice

    Either every hop completes, or the deadlines pass and every payment is cancelled.

Because each hop uses the same hash, Bob cannot take Alice’s payment without paying Carol [1]. In the paper’s worked example, Alice pays Dave through Bob and Carol: Alice’s HTLC with Bob expires after 3 days, Bob’s with Carol after 2 days and Carol’s with Dave after 1 day [2]. Each later hop has a shorter deadline, so every intermediary can still claim from the previous hop after paying the next one [2]. The paper adds that real deadlines should be set in block heights rather than days, with 3 days equal to 432 blocks [2].

Decrementing timelocks in the paper’s example
HopHTLC deadlineWhat it means
Alice → Bob3 daysBob must reveal the secret to Alice within 3 days
Bob → Carol2 daysCarol must reveal it to Bob within 2 days, leaving Bob a day to claim from Alice
Carol → Dave1 dayDave must reveal it to Carol within 1 day, leaving Carol a day to claim from Bob

From section 8.1 of the Lightning Network paper (Poon and Dryja, 2016). The paper equates 3 days with 432 blocks, which is 144 blocks a day at one block per ten minutes.

For privacy, the sender wraps the route in layers of encryption, like an onion. Each intermediary learns only the previous hop and the next one, not who started the payment or where it ends — unless intermediaries compare records [1].

How is Lightning different from a normal Bitcoin transaction?#

On-chain payments vs Lightning payments
AspectOn-chain BitcoinLightning
Where it is recordedIn a block, visible to everyoneOnly between channel parties; open and close go on-chain
SpeedWaits for a block, then for more confirmationsWithin a channel, about as fast as data travels between the peers
Setup neededNone beyond a walletAn open channel with enough capacity along a route
Who you rely onMiners to include it; nodes to validateYourself or a delegated watcher to stop old-state cheating
Small paymentsA fee per transaction can make tiny payments uneconomicDesigned for frequent, small payments

Summarised from the Bitcoin Wiki’s list of Lightning features and the Lightning Network paper.

The wiki lists the main benefits: rapid payments within an established channel, no third party controlling funds, reduced load on the blockchain because only opens, closes and rare anti-fraud transactions are recorded, and channels that can stay open indefinitely as long as both sides cooperate [1]. It even describes probabilistic payments for amounts smaller than one satoshi: a 1-satoshi payment that happens with 10% odds is worth 0.1 satoshi on average [1].

How big is the Lightning Network?#

Size figures for Lightning come from data services that track the network. One of them, mempool.space, publishes a statistics snapshot; its latest entry, dated 30 August 2026, counted 16,222 nodes and 32,511 channels [4].

Lightning network snapshot, 30 August 2026

Nodes
16,222 [4]
Channels
32,511 [4]
Total capacity
375,362,393,018 sats ≈ 3,753.62 BTC [4]
Average channel
11,545,704 sats ≈ 0.115 BTC [4]
Median channel
2,010,100 sats ≈ 0.020 BTC [4]

Total capacity is the bitcoin locked in those channels: 375,362,393,018 sats, or about 3,753.62 BTC at 100,000,000 sats per bitcoin [4]. Treat these numbers as a dated snapshot from one data provider, not a live or complete count. The median channel is much smaller than the average, so a typical channel holds far less than the average suggests [4].

Routing is not free. The paper describes Lightning fees as separate from blockchain fees and paid directly between participants within a channel [2]. They pay for tying up channel funds for a set time and for the risk that a counterparty stops responding [2].

How does Lightning relate to the SegWit upgrade?#

The original paper needed a change to Bitcoin so that a transaction could be safely spent before it was signed and broadcast; without one, a channel’s funds could be held hostage during setup [2]. The SegWit specification, BIP141, addresses transaction malleability in a different way. It makes non-intentional malleability impossible and allows chains of unconfirmed transactions without counterparty risk — which it names as an important feature for off-chain protocols such as the Lightning Network [5].

What are the risks and limits for a beginner?#

  • You must stay alert, or delegate. A counterparty who broadcasts an old state can keep the money if you miss the dispute period [1].
  • Backups matter. The paper warns that when one party loses data, the counterparty may be able to steal funds [2]. Even advanced channel designs do not remove the need for watchful online behaviour or backups, as the wiki puts it [1].
  • Capacity is limited. You can only send what is on your side of a channel, and a route only works if every hop has enough balance in the right direction. A channel with nothing left on one side is called exhausted [1].
  • Closing without the other side is slower. Cooperative closes can happen immediately; non-cooperative ones take longer [1].
  • Privacy is good, not perfect. Onion routing hides the endpoints from each hop, but intermediaries that compare records can learn more, and some features can link payments [1].
  • Routing nodes are hot wallets. Nodes that forward payments must keep their keys online, so the paper advises them not to hold large amounts that way [2].
  • Mass forced closures are a system-wide risk. The paper calls the forced expiration of many transactions possibly the greatest systemic risk: if a malicious participant forced many channels to expire at once, the transactions could overwhelm block space and delay others until their time locks run out [2].

Lightning in one box

Layer
Layer 2 on top of Bitcoin [1]
Channel lock
2-of-2 multisignature output [2]
On-chain footprint
Open, close, and rare dispute transactions [1]
Routing safety
Hash lock + time lock (HTLC) [2]
Original paper
Poon & Dryja, draft 0.5.9.2 dated 14 January 2016 [2]

What mistakes do beginners make here?#

  • Thinking Lightning is a different coin

    Lightning moves ordinary bitcoin. Channel balances are backed by bitcoin locked in an on-chain output.

  • Treating a Lightning node like a full node

    A Lightning node is a wallet with open channels; it is not the same thing as a Bitcoin full node that validates blocks, although one computer can run both [1].

  • Leaving a self-custody Lightning wallet offline for months

    If your counterparty publishes an old state while you are away and nobody is watching for you, you can lose funds.

  • Ignoring where the keys are

    A custodial Lightning app is convenient but carries the same counterparty risk as leaving coins on an exchange.

Frequently asked questions#

Is Lightning instant?

Within an open channel, payments are about as fast as data can travel over the internet between the two peers [1]. Opening and closing channels still wait for normal blockchain confirmations.

Do I need to run a node to use Lightning?

Not necessarily. Some wallets manage channels for you, either while you keep the keys or fully custodially. Running your own node gives you the most control and the most responsibility.

Can someone steal my bitcoin through a Lightning channel?

The design punishes a counterparty who broadcasts an old balance by giving all the channel’s money to the other side, but only if you, or a watcher you use, respond before the time lock ends [2]. Intermediaries cannot take a routed payment because of the hash lock [1].

What happens to my channel if the other person disappears?

You can close it on your own. A unilateral close works, but it takes longer than a cooperative one [1].

Is Lightning the same as a layer 2 on Ethereum?

Both move activity off the main chain, but they work differently. Lightning uses two-party channels; Ethereum’s rollups batch many users’ transactions. See layer 2 rollups explained.

The bottom line#

Lightning keeps Bitcoin’s blockchain as the court of final appeal while letting everyday payments happen between the parties who care about them. Channels hold real bitcoin, routed payments are protected by hash locks and staggered deadlines, and cheating with an old balance is punished.

The price is responsibility: watch your channels or delegate that job, keep backups, and understand whether your wallet is custodial. For the on-chain side of the story, read how Bitcoin transactions work and what a UTXO is.

Sources#

Grade A = primary source (regulator, protocol specification, client code, original author). Grade B = expert secondary source used for explanation only.

  1. BBitcoin Wiki. Lightning Network, 2026.
  2. AJoseph Poon and Thaddeus Dryja. The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments (draft 0.5.9.2, full text), 2016.
  3. Abitcoin.org developer documentation. Bitcoin Developer Glossary: Maximum block size, 2026.
  4. Bmempool.space. Lightning network statistics (latest snapshot, API), 2026. Snapshot dated 2026-08-30 ('added' field)
  5. ABitcoin Improvement Proposals (GitHub). BIP 141: Segregated Witness (Consensus layer), 2026.