Millisatoshi (msat)
A thousandth of a satoshi, the unit Lightning uses to price routing fees precisely.
Basically
A millisatoshi is one-thousandth of a satoshi. Lightning uses it to route very small payments precisely.
Key Takeaways
- One millisatoshi (msat) is one-thousandth of a satoshi and the smallest unit of account on the Lightning Network. One bitcoin equals 100,000,000,000 millisatoshis.
- Lightning needs sub-satoshi precision because routing fees on small payments would otherwise round to zero. Nodes could not charge proportional fees economically on micropayments.
- Millisatoshis exist only within Lightning. When a channel closes and settles on-chain, amounts are rounded down to whole satoshis, and the remainder goes to the miner as part of the transaction fee.
What Is a Millisatoshi?
A millisatoshi (abbreviated msat) is one-thousandth of a satoshi and the smallest unit of account used in the Lightning Network. A satoshi (sat) is the smallest indivisible unit on the Bitcoin base layer, where 1 BTC = 100,000,000 sats, while Lightning adds three decimal places of precision. You therefore get 1 satoshi = 1,000 millisatoshis and 1 BTC = 100,000,000,000 msat.
The BOLT specification, Lightning's protocol standard, defines the millisatoshi in BOLT #0 as "a millisatoshi, often used as a field name." Every HTLC routed through the network is denominated in millisatoshis, so msat is the fundamental atomic unit for all Lightning accounting. Small-payment routing economics would break down entirely without this sub-satoshi granularity.
How It Works
All Lightning Network operations use millisatoshis internally. Senders specify payment amounts in msat, routing nodes calculate fees in msat, and both sides of a channel record their balances in msat. Consistent units avoid rounding errors that would accumulate across multi-hop routes.
Encoding in BOLT 11 Invoices
BOLT 11 invoices encode payment amounts in the human-readable part, using Bitcoin as the base unit with multiplier suffixes. Four multipliers map to progressively smaller denominations.
The pico multiplier (p) has a special constraint: the last decimal digit of the amount must be zero. One pico-BTC equals 0.1 msat, so the rule ensures that the encoded amount always resolves to a whole number of millisatoshis. An invoice like lnbc10p is invalid because a 1 msat equivalent would be 0.1 msat, which is not whole, while lnbc100p (10 pico-BTC = 1 msat) is valid.
BOLT 12 offers simplify matters by specifying amounts directly in millisatoshis rather than using multiplier encoding. Direct amounts remove the need for suffix arithmetic entirely.
Routing Fee Calculations
Millisatoshis exist because of routing fee maths. Each routing node advertises two fee parameters in its channel_update message, as defined in BOLT #7.
The fee formula applies per hop. It uses the node's advertised fee parameters.
A 100-satoshi payment equals 100,000 msat. Forwarding it through a node with a base fee of 1,000 msat and a proportional rate of 1 ppm illustrates the calculation.
That 0.1 msat proportional component would round to zero without sub-satoshi precision. Across thousands of forwarded payments, these fractional fees accumulate into meaningful revenue for routing nodes. Without millisatoshis, operators forwarding small payments would earn nothing from proportional fees, making small-payment routing economically unviable.
On-Chain Settlement and Rounding
Bitcoin's UTXO model cannot represent fractional satoshis. When a Lightning channel closes and the commitment transaction is broadcast on-chain, BOLT #3 requires all output amounts to be "rounded down to whole satoshis." The sub-satoshi remainder is absorbed into the transaction fee paid to the miner.
A party with a channel balance of 5,002,345 msat (5,002.345 sats) would receive an on-chain output of 5,002 satoshis. The remaining 345 msat, worth a fraction of a fraction of a cent, becomes part of the miner fee. Rounding is inconsequential in practice, but it marks a fundamental boundary: millisatoshis are a Lightning-only abstraction that cannot cross into the base layer.
Implementation Across Lightning Nodes
All major Lightning implementations use millisatoshis as their internal unit of account. Each one accounts for Lightning amounts in msat.
LND, for instance, makes converting between units straightforward. You work with msat as the internal unit when converting.
Streaming Payments
Streaming payments send continuous micro-flows of value in real time. Podcasting 2.0 and Value4Value protocols let listeners stream satoshis per minute of content consumed, while millisatoshi precision makes a per-second payment rate meaningful: 1 sat per minute is roughly 16.7 msat per second. Without msat granularity, per-second streaming would require rounding to whole satoshis, either overpaying drastically or making the smallest possible stream 60x larger than intended.
Machine-to-Machine Transactions
IoT devices and autonomous agents can trade computing resources, bandwidth, storage, or API calls through continuous micropayments. A sensor network paying per data packet, an AI agent purchasing inference tokens, or a mesh network node selling bandwidth all benefit from sub-satoshi precision that keeps individual transaction amounts economically meaningful. As agentic payment infrastructure matures, millisatoshi-denominated Lightning payments provide the granularity these systems require.
Pay-Per-Use API Metering
API providers can meter usage at sub-satoshi granularity, charging per request rather than requiring prepaid credits or monthly subscriptions. At current Bitcoin prices, a single millisatoshi is worth a tiny fraction of a cent. Providers can therefore price individual API calls below one satoshi while aggregating fair compensation over thousands of requests.
Multi-Path Payment Splitting
Multi-path payments split a payment across multiple routes, and millisatoshi precision ensures that amounts divide cleanly. A 1,001 msat payment can be split into 500 msat and 501 msat across two paths without losing value to rounding. Pathfinding algorithms need this precision to balance channel utilisation across routes.
Why It Matters
Millisatoshis make Lightning's fee market functional at small payment sizes, rather than serving as a technical curiosity. Traditional payment networks charge minimum fees, often $0.30 or more, that make micropayments impossible. Lightning breaks through this floor by expressing fees in millisatoshis, allowing routing costs to scale proportionally down to fractions of a cent.
Sub-satoshi precision also enables Bitcoin micropayment use cases that were previously impractical: paying a fraction of a cent to read an article, tipping a social media post, or compensating a routing node for forwarding a tiny payment. Layer 2 protocols like Spark and Lightning inherit this sub-satoshi accounting. Even the smallest value transfers remain economically coherent from sender to recipient.
Rounding Loss on Settlement
Channel closures lose sub-satoshi balances to rounding. For individual users, the maximum loss per channel close is 999 msat, less than one satoshi, which is negligible. High-volume routing nodes processing thousands of channel closures can accumulate these rounding losses, but the protocol accepts this tradeoff because the on-chain cost of representing sub-satoshi values would far exceed the value lost.
No On-Chain Representation
Millisatoshis exist only within Lightning and other off-chain protocols. They cannot be sent on-chain, stored in a UTXO, or represented in a Bitcoin Script. Any system bridging between on-chain and off-chain must handle the precision boundary carefully, particularly submarine swaps and splicing operations.
Integer Overflow in Large Amounts
Millisatoshis multiply the satoshi value by 1,000, so the maximum representable amount in a 64-bit unsigned integer is approximately 18.4 quintillion msat, about 184 billion BTC. Bitcoin's 21 million BTC cap is orders of magnitude lower, so overflow is not a practical concern for honest implementations. Implementations must still validate that msat amounts do not exceed the total Bitcoin supply to prevent manipulation.
Precision Confusion
Developers new to Lightning sometimes confuse satoshis and millisatoshis, causing bugs where amounts are 1,000x too large or too small. BOLT 11 invoices add further opportunity for mistakes because milli, micro, nano, and pico multipliers are all relative to BTC rather than sats. Careful unit testing and strongly typed msat values, which most implementations provide, help prevent these errors.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.