How Fees Work On The Lightning Network

Fee calculations on lightning network

Share this article

The Lightning Network launched as a protocol that could leverage bitcoin’s unique trade-offs on the base layer and supplement it by creating an alternative environment tethered to the base chain. In this alternative environment, individuals would lock up bitcoin and create payment channels between one another.

You could create a direct channel to pay someone or leverage a path created by many interconnected channels and route a payment indirectly to anyone on the Lightning network. These channels do not require on-chain confirmations but require capital in each channel used to route payments.

Routing payments this way is far cheaper, with the Lightning network absorbing a lot of micro-payment use cases. The low-cost nature of the Lightning network attracts more capital and users each day, and with it, more fees; even though very small, these constant payments continue to generate more fees.

But how do fees work in lightning?

How do Lightning fees work?

When we broadcast a transaction to the bitcoin base chain, the fees are determined by a scarce resource, that is, the limited block space and the fact that the time chain consumes energy to secure that space.

In the Lightning network, transactions consume a different scarce resource, the capital locked into payment channels. To transact on the Lightning network, you must have capital available to route payments to the receiver, and the receiver needs inbound liquidity.

If there is not enough liquidity available to you on the routes you can see, you won’t route the payment, and it will fail. To avoid failed payments and attract reliable liquidity, the Lightning Network is set up in a way that compensates people for providing liquidity to the network.

When you run a Lightning node that would like to route payments, you can set fees that other Lightning nodes will have to pay to use your capital for routing.

Factors that influence fees

One of the key publicised advantages of the Lightning Network is the near-zero fees to send payments which does my head in sometimes because it won’t always be the case. It reminds me of the narratives of old like bitcoin is private when we know you have to jump through plenty of hoops to remain private. Saying the Lightning network is free or near free does the network a disservice, and we should be honest about the fees charged and that it will increase with the demand for Lightning payments.

The Lightning Network utilises several transaction types that have different potential fees.

Fee types include:

  • Transactions between two participants in a single channel, these payments don’t incur fees.
  • Transactions that are routed between participants in the network via multiple channels incur routing fees from intermediate nodes. These fees could be set at zero by some operators, which can reduce fees along the way.
  • On-chain transactions, such as those to open or close a channel, will be subject to bitcoin network mining fees. While not directly a Lightning fee, it is important to consider when getting into Lightning in a non-custodial manner that you need to do on-chain transactions that are confirmed on the base layer.

Lightning network fee types

There are two types of fees in the Lightning Network.

  1. Base fee
  2. Fee-based on liquidity used

Base fee

The base fee is a flat rate that is charged per transaction that is routed through your node. For instance, you could charge 100 satoshis — roughly 1 cent — for people that want to route payments through your node. If you want to route more payments, you could decide to drop down your base fee to 10 satoshis! This base fee is set by every node operator on the network based on what they think their capital is worth and the time value of locking that bitcoin in an HTLC versus keeping it in cold storage.

Liquidity provider fee

This is a fee you can charge based how much liquidity a person is using in your channel. This charges a fee for every satoshi that is sent through your Lightning Network channel.

An example would be a fee of 0.01 satoshis for every satoshi that is sent through your Lightning channel. If I wanted to make a payment for 1,000 satoshis through your Lightning channel, I would need to pay

1,000 x 0.01 = 10 satoshis

Thus the liquidity fee for this Lightning channel would be ten satoshis for a 1,000 satoshi payment.

Negative fees

In some cases, channels might become unbalanced, where most of the money is pushed towards one direction, either outbound or inbound liquidity. This is bad for people because it would mean that their channels cannot be reused and needs to be rebalanced. You’d have to open a new channel for new payments, hence on-chain transactions.

If a channel is almost exhausted, the person of the channel with less money will want payments routed towards them to allow the channel to be full again so she can make more payments on that same channel without reopening a new one.

The holder of the unbalanced channel will want to pay if someone chooses her channel to route their payments to rebalance. Hence sometimes, you’ll have negative fees. This means that a routing algorithm will look for paths where you get paid (negative fees) because you’d be rebalancing some channels along the way.

How are fees determined

Fees are determined by the node operators and are a completely free market; you can set whatever fee you want, even to zero, if you simply want to support the network. As more nodes come alone and lock in liquidity, it provides competition for payments, so if you want people to route payments through you, you should set a low or no fee.

Not in it for a fee, in it for the freedom

Earning fees on Lightning are still pretty low, but even without fees, there is still an incentive to operate a node and use Lightning. To use Lightning in a non-custodial fashion, you must be a node which encourages you to run a node if you don’t run one. You will also want to use lightning if you are keen to avoid paying higher fees with on-chain transactions.

Are you a bitcoin and lightning fan?

Have you been using Lightning to make micro-payments? Stream sats or engage with apps? Which app is your favourite? Have you tried all the forms of Lightning payments? Which one do you prefer? Let us know in the comments down below.

Disclaimer: This article should not be taken as, and is not intended to provide any investment advice. It is for educational and entertainment purposes only. As of the time posting, the writers may or may not have holdings in some of the coins or tokens they cover. Please conduct your own thorough research before investing in any cryptocurrency, as all investments contain risk. All opinions expressed in these articles are my own and are in no way a reflection of the opinions of The Bitcoin Manual

Leave a Reply

Related articles

You may also be interested in

Issue stablecoins LN

The Issue With Stablecoins On Lightning

The Bitcoin Lightning Network (LN) has emerged as the most promising solution to Bitcoin’s scalability issues. It’s the only layer two offering unilateral exit and multiple implementations

Cookie policy
We use our own and third party cookies to allow us to understand how the site is used and to support our marketing campaigns.