Calculator

Lightning Network fee calculator

A routing fee is what each intermediate node charges to forward your payment. BOLT 7 gives the formula for one hop. This page applies it backward from the amount the recipient must receive and shows every intermediate number, so you can check the arithmetic hop by hop.

By Michael Lip · Fee formula and default fee policies quoted from the specification and the shipped configuration files, fetched 2026-11-16 · Price 65,251.845 USD from Coinbase spot at 2026-11-16T23:09:08Z UTC, a stored value, not a live quote

Calculate the routing fees

Fee policy for every hop

Recipient receives 100,000.000 sats (exactly). The sender sends 100,031.503 sats. Total routing fees 31,503 msat = 31.503 sats = 0.00000031503 BTC, about $0.0206 at the stored BTC price (32 sats rounded up to whole sats). Effective cost 0.0315% (315.03 ppm of the amount the recipient receives) across 3 hops. Hop 1 (closest to the sender) receives 100,031.503 sats, keeps a fee of 10.502 sats and forwards 100,021.001 sats. The last hop (closest to the recipient) receives 100,010.500 sats and forwards 100,000.000 sats.

Amount each hop receives, keeps as its fee and forwards, in millisatoshis, from the sender side to the recipient side
HopReceives (msat)Fee (msat)Forwards (msat)
1100,031,50310,502100,021,001
2100,021,00110,501100,010,500
3100,010,50010,500100,000,000

Convert ppm to percent

1000 ppm = 0.1% of the amount forwarded (1,000,000 ppm = 100%).

01

How this page calculates

The one-hop formula comes from BOLT 7, the part of the Lightning specification that covers routing gossip and HTLC fees. Each node announces two numbers per channel in its channel_update. BOLT 7 says the node "MUST set fee_base_msat to the base fee (in millisatoshi) it will charge for any HTLC" and "MUST set fee_proportional_millionths to the amount (in millionths of a satoshi) it will charge per transferred satoshi". The second number is a rate in parts per million (ppm), so 1,000 ppm is 0.1%.

The fee math runs in your browser with integer arithmetic in millisatoshis (1 sat = 1,000 msat), so no millisatoshi is lost to floating point. Only the dollar figure uses a stored BTC price (65,251.845 USD at 2026-11-16T23:09:08Z UTC), and it is an approximation.

02

The formula, one hop at a time

For a single hop, the BOLT 7 HTLC Fees section gives the fee as

fee_base_msat + ( amount_to_forward * fee_proportional_millionths / 1000000 )

The division is integer division, which drops any fraction of a millisatoshi. BOLT 7 shows this in its own example, 200 + ( 4999999 * 2000 / 1000000 ) = 10199, where exact division would give 10,199.998. amount_to_forward is the amount the hop passes on. Fees are carried inside the payment, so a hop near the sender charges on an amount that already includes every later hop's fee. That is why the total grows slightly faster than linearly with route length, and why the calculator walks the route backward. It starts from the amount the recipient must receive and adds each hop's fee on the way to the sender.

A worked example you can recompute by hand

The recipient must receive exactly 100,000 sats (100,000,000 msat). The route has 3 hops, and every hop charges 500 msat + 100 ppm. Working backward, each hop receives the amount it forwards plus its own fee, and the amount it forwards is what the next hop receives. Hop 3 is next to the recipient.

Worked example, 3 hops at 500 msat + 100 ppm, recipient receives 100,000,000 msat
HopForwards (msat)Fee arithmetic (msat)Fee (msat)Receives (msat)
3100,000,000500 + floor(100000000 × 100 ÷ 1000000) = 500 + 10,00010,500100,010,500
2100,010,500500 + floor(100010500 × 100 ÷ 1000000) = 500 + 10,00110,501100,021,001
1100,021,001500 + floor(100021001 × 100 ÷ 1000000) = 500 + 10,00210,502100,031,503

The sender sends 100,031,503 msat so that 100,000,000 msat arrive. The fees are 31,503 msat, which is 31.503 sats. The calculator also shows this total rounded up to 32 whole sats. These are the default inputs of the calculator, so its per-hop table shows the same rows.

BOLT 7 has a one-hop example of its own. A pays C 4,999,999 msat through B, and B asks for fee_base_msat 200 and fee_proportional_millionths 2000 in its channel_update for the B to C channel. The fee is 10,199 msat, and the HTLC from A to B carries an amount_msat of 5010198. The BOLT 7 example button in the calculator loads these inputs (4999.999 sats, 1 hop, 200 + 2000) and gives the same 5,010.198 sats.

03

Default fee policies for node operators

The Implementation defaults tab of the calculator uses the defaults that three implementations ship. They apply only when an operator does not set fees, and each node can set its own. The real fee of a route depends on the channel_update of each hop.

  • LND names the two numbers bitcoin.basefee and bitcoin.feerate. Its sample-lnd.conf lists "; bitcoin.basefee=1000" and "; bitcoin.feerate=1", and says the total fee "charged is basefee + (amount * feerate / 1000000), where amount is the forwarded amount." The file also says "If only one value is specified for an option, then this is also the default value used by lnd." That is 1,000 msat + 1 ppm (0.0001%).
  • Core Lightning names them fee-base and fee-per-satoshi. Its lightningd-config(5) page gives the fee-base default as 1000 ("The base fee to charge for every payment which passes through") and the fee-per-satoshi default as "10 (0.001%)". It adds that the rate is "in millionths, so 10000 is 1%, 1000 is 0.1%."
  • Eclair names them fee-base-msat and fee-proportional-millionths. Its reference.conf sets "fee-base-msat = 1000" and "fee-proportional-millionths = 200" for public channels, with the comment "(200 = 0.02%)". Private channels get 1000 and 100.
04

What this page cannot tell you

  • It does not know the fee policy of any real node. It applies the base fee and rate that you type to every hop.
  • It accepts at most 20 hops. That is a limit of this calculator. BOLT 4 sizes its attribution data for "the maximum supported number of hops in a route (20)", and it tells the sender to repeat error decryption "27 times (maximum route length of tlv payload type)".
  • It shows the fees of a payment that reaches the recipient. It does not model time locks (CLTV), channel liquidity or failed attempts.
  • It does not model blinded paths, which BOLT 4 prices with its own route formula.
  • The dollar figure uses one stored BTC price from 2026-11-16T23:09:08Z UTC. The price changes all the time.
05

Research disclosure

Written by Michael Lip.

The fee formula, the field definitions and the A to B to C example are from BOLT 7 (07-routing-gossip.md). The hop counts 20 and 27 are from BOLT 4 (04-onion-routing.md). The defaults are from the LND sample-lnd.conf, the Core Lightning lightningd-config.5.md and the Eclair reference.conf. The unit 1 BTC = 100,000,000 sats is COIN in Bitcoin Core amount.h. All were fetched on 2026-11-16 (UTC). The price is the Coinbase spot rate at 2026-11-16T23:09:08Z UTC.

Every default on this page is a dated figure, not a live feed.

06

Related