Lightning vs on-chain:
when does each make sense?
Compare Lightning and on-chain costs using your payment size and the current fee environment.
The question it answersFor this payment size, is Lightning or an on-chain Bitcoin transaction cheaper?
Prices: uses the latest daily Bitcoin close in the site’s own data file, not a live quote; no price service is contacted. Privacy: runs in your browser. What you enter stays on your device unless you copy a share link, which puts your inputs in the link.
Check current: mempool.space ↗
100 ppm = 0.01% typical. Higher for obscure routes.
Shows the latest daily close in the site's data file. A price you type is kept.
Lightning fees vary by route and liquidity. These are typical estimates. Large Lightning payments sometimes fail due to liquidity limits on intermediate channels.
What this tool assumes
- Lightning fees are routing-dependent; 1 sat + 0.01% (100 ppm) is a common baseline. The fee is charged once, as if the route were a single channel.
- The on-chain payment is one native SegWit (P2WPKH) input and two outputs, 141 vB, so its fee is 141 × your sat/vB rate whatever the amount. The fee rate you enter is used as is, including 0.
- The amount, fee rate, base fee and ppm each take 0 or more; a blank or negative value shows no result and the verdict names the field to fix.
- Fees are shown and compared in whole sats; fees that round to the same number of sats count as a tie.
- The BTC price only converts USD amounts and fees. It shows the latest daily close in the site's data file, and a price you typed or one carried in a share link is kept instead. Without a price above $0, sats and BTC amounts are still compared in sats and the USD figures are left blank; a USD amount needs a price.
Estimates only. Actual routing fees on Lightning vary widely.
HOW THIS IS CALCULATED
This tool runs entirely in your browser: no data is sent to any server. The BTC price field starts at $81,262, the Coin Metrics end-of-day USD price for 2026-09-19 in the site's data snapshot[2], and is replaced by the saved daily close when the site's data file loads, unless you have typed your own price or opened a share link that carries one. Only a typed or shared price is saved in your browser, so on a later visit the field shows the latest saved close. Clearing the field hands it back to that close the next time the page loads. Without a price above $0, sats and BTC amounts are still compared in sats and the USD figures are left blank; a USD amount needs a price to convert.
The amount is converted to sats first: BTC × 100,000,000, or USD ÷ price × 100,000,000. The amount, fee rate, base fee and ppm each take 0 or more; a blank or negative value shows no result until it is fixed, and the verdict names the field.
- On-chain fee = 141 vB × fee rate (sat/vB). 141 vB is a one-input, two-output native SegWit payment: 10.5 vB overhead + 68 vB input + 2 × 31 vB outputs = 140.5, rounded up. Virtual size is transaction weight ÷ 4, where witness bytes count once and all other bytes four times[3]. The fee does not depend on the amount sent. The fee rate is used exactly as entered, 0 included (default 20 sat/vB).
- Lightning fee = base fee + amount × ppm ÷ 1,000,000, the per-channel fee formula in the Lightning routing spec[4], charged once. Defaults: 1 sat base fee, 100 ppm.
- USD fee = sats ÷ 100,000,000 × price. Both fees are rounded to whole sats; the lower rounded fee wins, and the amount saved is the difference between the two rounded fees (converted to USD at the same price). Fees that round to the same number of sats are shown as a tie.
- Crossover amount = (on-chain fee - base fee) × 1,000,000 ÷ ppm. Lightning is cheaper below it, on-chain above it. None is shown when ppm is 0 or the base fee is at least the on-chain fee, because then the fees never cross.
Not modeled: fees added by each extra hop on a multi-hop route, the on-chain cost of opening or closing a channel, failed payments on large amounts, and on-chain spends with more inputs or other address types.
Verify the methodology or inspect the source code in your browser's dev tools.
Where to go from here
Sources
Bracketed numbers and verify badges in the text link to these sources. Figures, rates and rules change: check each source’s date before acting on it.
- 1ML Lightning statistics ↩
- Coin Metrics, Price. Checked 2026-09-26. ↩
- Bitcoin Improvement Proposals, BIP 141: Segregated Witness (Consensus layer). Checked 2026-09-26. ↩
- Lightning BOLT specifications, BOLT #7: P2P Node and Channel Discovery. Checked 2026-09-26. ↩
Calculators are educational estimates, not financial advice. Disclosures · How pages are reviewed